Before tossing out guesses first did you verify you can reproduce the baseline build for the htc device? There should be some site for getting the GPL fulfilment of kernel source and kernel config used by that device. I like to start by making sure I can build what is shipped such that I can see my bits running on the target before I start with changing things.
some guesses: * you built the kernel with the different .config options from the baseline turn debug options and any unneeded configs you know are not needed off. * run strip --strip-debug * try the bzImage instead of the zImage, bzImage's are smaller. <-- likely this is what you need. Are you sure its the kernel that is too big? boot.img holds kernel, and initial RAM-DISK does your ramdisk need a diet? FWIW In one of my builds I had kernel driver modules part of my ramdisk and if I didn't run trip on the *.ko files I'd see similar issues. But I don't think HTC does what I did WRT kernel modules so its unlikely that's your problem. good luck. On Sun, Jun 1, 2014 at 5:27 AM, zoe vas <[email protected]> wrote: > I have compiled a kernel from source for the htc evo 4g. I get > successfully the zImage. > So, when i build the whole tree, i use the zImage as kernel instead of the > prebuilt kernel. > > However when i build the whole android tree, i get the following error: > > out/target/product/supersonic/boot.img total size is 5988352 > error: out/target/product/supersonic/*boot.img too large* (5988352 > > [5406720 - 270336]) > make: *** [out/target/product/supersonic/boot.img] Error 1 > make: *** Deleting file `out/target/product/supersonic/boot.img' > > Searching in web, i didn't find a solution. > > I only found that the size of partitions are defined in the file > device/htc/supersonic/*BoardConfig.mk *but i don't know how to change > them*.* > > BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00280000 > BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000 > BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x15e00000 # limited so we enforce > room to grow > BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x1aba0000 > > BOARD_FLASH_BLOCK_SIZE := 131072 > > I dont know how to solve this issue. Please help! > > -- > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel > --- > You received this message because you are subscribed to the Google Groups > "Android Linux Kernel Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- create interesting things. -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel --- You received this message because you are subscribed to the Google Groups "Android Linux Kernel Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
