I am trying to update kernel for my SM-A500S using device source code at http://opensource.samsung.com. I have done the following steps to get the zImage file:
- Extract the Kernel.tar.gz to kernel folder
- Install eabi-4.7 tool chains and lz4c library
- Change nothing and execute build_kernel.sh
The build process is success and I can find the zImage file at "kernel/arch/arm/boot/" but the size for my kernel is too big (18.09 MB) comparing with the stock kernel size (8.50 MB). I have tried to create the new boot image by doing the following steps:
- Extract stock boot.img using abootimg
- Edit bootimg.cfg and remove the bootsize number
- Create new boot image with abootimg --create
and tried to update the kernel using Odin v3.07.
Odin v3.07 return error with FAIL (Size).
What I have done wrong so far ?? How can I reduce my kernel size to the same as stock roms ??
Thank you so much