[yocto] binutils 2.29.1 ARM Thumb kernel problem

Chris Elledge celledge at digitallumens.com
Thu Apr 5 12:29:33 PDT 2018


If I have neither the +1 nor the ORR then the kernel boot does this:

Loading file '/boot/gateway3.dtb' to addr 0x21000000 with size 28500
(0x00006f54)...
Done
Loading file '/boot/zImage' to addr 0x22000000 with size 3182128
(0x00308e30)...
Done
Kernel image @ 0x22000000 [ 0x000000 - 0x308e30 ]
## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Device Tree to 3fe2f000, end 3fe38f53 ... OK

Starting kernel ...

and it stalls until the hardware watchdog trips 16 seconds later.

-Chris

On Thu, Apr 5, 2018 at 3:17 PM, Khem Raj <raj.khem at gmail.com> wrote:

>
> On Thu, Apr 5, 2018 at 12:16 PM Khem Raj <raj.khem at gmail.com> wrote:
>
>> On Thu, Apr 5, 2018 at 11:53 AM Chris Elledge <celledge at digitallumens.com>
>> wrote:
>>
>>> Unfortunately, removing the "+1" doesn't work. That results in a kernel
>>> which claims to start, but doesn't progress.
>>>
>>> Changing it to an "|1" also doesn't work due to this error:
>>> arch/arm/kernel/entry-common.S:117: Error: invalid operands (.text and
>>> *ABS* sections) for `|'
>>>
>>> Doing this to the badr macro:
>>>  #ifdef CONFIG_THUMB2_KERNEL
>>>   adr\c \rd, \sym
>>>   orr\c \rd, \rd, #1
>>>
>>
> Sent too soon I mean remove ORR completely
>
>>  #else
>>>
>>> Is giving me a "Bad Linux ARM zImage magic!" error on boot
>>>
>>> So, I don't think it's an easy change to the kernel.
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180405/daaf54d9/attachment.html>


More information about the yocto mailing list