[PATCH] ARM: compressed: discard ksym/kcrctab input section

Matthias Brugger matthias.bgg at gmail.com
Mon Oct 23 23:51:38 PDT 2017



On 10/24/2017 12:19 AM, Russell King - ARM Linux wrote:
> On Mon, Oct 23, 2017 at 11:17:35PM +0200, Matthias Brugger wrote:
>> Yes, I apply a dtb to my zImage. I do that because the board has no support on
>> mainline u-boot right now and I do kernel enablement on the board. Support in
>> u-boot is no priority ATM.
> 
> Right, so the reason your system isn't booting is because of the
> additional section in the zImage, which causes additional bytes
> after _edata.
> 
> That causes the appending of the dtb to be in the wrong place,
> so it doesn't get found.
> 
> With Arnd's patch applied, if you do:
> 
> dd if=arch/arm/boot/zImage bs=1 count=$(( $(stat -c %s arch/arm/boot/zImage) - 8)) of=zImg
> cat zImg $dtb > zImg.boot
> 
> and then try booting zImg.boot instead, that should work, and
> would prove my point.
> 

I can confirm that this fixes the issue.

Regards,
Matthias



More information about the linux-arm-kernel mailing list