build - Boot.img too large -


i have compiled kernel source htc evo 4g. zimage. so, when build whole tree, use zimage kernel instead of prebuilt kernel.

however when build whole android tree, following error:

out/target/product/supersonic/boot.img total size 5988352 error: out/target/product/supersonic/boot.img 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, didn't find solution.

i found size of partitions defined in file device/htc/supersonic/boardconfig.mk, don't know how change them.

board_bootimage_partition_size := 0x00280000 board_recoveryimage_partition_size := 0x00500000 board_systemimage_partition_size := 0x15e00000 # limited enforce room grow board_userdataimage_partition_size := 0x1aba0000  board_flash_block_size := 131072 

i don't know how solve issue.

in case boot partition limited to: 0x00528000 - 0x00042000 5mb. thats small! modern(2013-2014) devices have 10mb-50mb

you need make boot.img smaller, either removing unneeded drivers kernel, or limiting amount of data/binaries compile ramdisk.

you can check actual boot.img size of device pulling original boot.img partition using 'dd' command, , if bigger 5mb, can increase value in board_recoveryimage_partition_size.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -