[yocto] U-Boot networking broken in Rocko

akuster808 akuster808 at gmail.com
Mon Mar 26 09:51:49 PDT 2018



On 03/26/2018 08:47 AM, Martin Townsend wrote:
> Hi,
>
> I've discovered that U-Boot in Rocko for several builds that I
> maintain is broken when performing various network related operations
> like tftp, dhcp and ping. You get a data abort and it resets.  I found
> that this has already been fixed in U-Boot with the commit below.  I
> think it has something to do with the way GCC 7.1 onwards is now
> handling memory alignment.  Anyway the problems have gone away when I
> apply this patch and was wondering if it should be included in the
> U-Boot recipes in Rocko, or is no-one else seeing this problem?

please send a patch to openembedded-core at lists.openembedded.org

with rocko called on in the beginning of subject line

thanks,
Armin
>
> Many Thanks,
> Martin.
>
> commit 704f3acfcf55343043bbed01c5fb0a0094a68e8a
> Author: Denis Pynkin <denis.pynkin at collabora.com
> <mailto:denis.pynkin at collabora.com>>
> Date:   Fri Jul 21 19:28:42 2017 +0300
>
>     net: Use packed structures for networking
>     
>     PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled
>     by default for '-O2':
>     
>     BOOTP broadcast 1
>     data abort
>     pc : [<8ff8bb30>]          lr : [<00004f1f>]
>     reloc pc : [<17832b30>]    lr : [<878abf1f>]
>     sp : 8f558bc0  ip : 00000000     fp : 8ffef5a4
>     r10: 8ffed248  r9 : 8f558ee0     r8 : 8ffef594
>     r7 : 0000000e  r6 : 8ffed700     r5 : 00000000  r4 : 8ffed74e
>     r3 : 00060101  r2 : 8ffed230     r1 : 8ffed706  r0 : 00000ddd
>     Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
>     Resetting CPU ...
>     
>     Core reason is usage of structures for network headers without packed
>     attribute.
>     
>     Reviewed-by: Yauheni Kaliuta <yauheni.kaliuta at redhat.com
> <mailto:yauheni.kaliuta at redhat.com>>
>     Signed-off-by: Denis Pynkin <denis.pynkin at collabora.com
> <mailto:denis.pynkin at collabora.com>>
>     Acked-by: Joe Hershberger <joe.hershberger at ni.com
> <mailto:joe.hershberger at ni.com>>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180326/b4bd7f21/attachment.html>


More information about the yocto mailing list