[LEDE-DEV] apm821xx target: kernel gets too big

Christian Lamparter chunkeey at gmail.com
Sun Mar 18 06:17:37 PDT 2018


On Sonntag, 18. März 2018 00:24:06 CET Hauke Mehrtens wrote:
> Hi,
> 
> After the upgrade to GCC 7.3 the kernel on the apm821xx target gets too
> big for the meraki_mr24 device and the build in build bot is failing.
> Could you please have a look at this problem:
> http://phase1.builds.lede-project.org/builders/apm821xx%2Fnand
From what I remember, the limits are set in place to accomodate the
initramfs image. And the initramfs is currently limited by these u-boot
varliables:

meraki_loadaddr=c00000
meraki_loadaddr_kernel=c10000
meraki_loadaddr_fdt=c00400
meraki_loadaddr_ramdisk=e00000

The image (with the meraki header) get loaded to c00000.
The FDT is located at 0xc00400 - 0xc0ffff = 64512 Bytes (DTB_SIZE)
The kernel has to fit into 0xc10000 - 0xe00000 = 2031616 Bytes 
(1984 KB aka. KERNEL_SIZE) 
And the ram disk is from 0xe00000 onward.

The kernel for sysupgrade.tar does not have such a limitation.

Chris do you have any idea?



More information about the Lede-dev mailing list