Re: [yocto] U-Boot networking broken in Rocko

2018-03-26 Thread Robert Berger

On 2018-03-26 19:51, akuster808 wrote:

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.  


I also saw something similar and by upgrading to U-boot 2018.03 the 
problem went away as well.


Regards,

Robert
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] U-Boot networking broken in Rocko

2018-03-26 Thread akuster808


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-c...@lists.openembedded.org

with rocko called on in the beginning of subject line

thanks,
Armin
>
> Many Thanks,
> Martin.
>
> commit 704f3acfcf55343043bbed01c5fb0a0094a68e8a
> Author: Denis Pynkin  >
> 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 : [<4f1f>]
>     reloc pc : [<17832b30>]    lr : [<878abf1f>]
>     sp : 8f558bc0  ip :      fp : 8ffef5a4
>     r10: 8ffed248  r9 : 8f558ee0     r8 : 8ffef594
>     r7 : 000e  r6 : 8ffed700     r5 :   r4 : 8ffed74e
>     r3 : 00060101  r2 : 8ffed230     r1 : 8ffed706  r0 : 0ddd
>     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  >
>     Signed-off-by: Denis Pynkin  >
>     Acked-by: Joe Hershberger  >
>
>
>

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] U-Boot networking broken in Rocko

2018-03-26 Thread Martin Townsend
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?

Many Thanks,
Martin.

commit 704f3acfcf55343043bbed01c5fb0a0094a68e8a
Author: Denis Pynkin 
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 : [<4f1f>]
reloc pc : [<17832b30>]lr : [<878abf1f>]
sp : 8f558bc0  ip :  fp : 8ffef5a4
r10: 8ffed248  r9 : 8f558ee0 r8 : 8ffef594
r7 : 000e  r6 : 8ffed700 r5 :   r4 : 8ffed74e
r3 : 00060101  r2 : 8ffed230 r1 : 8ffed706  r0 : 0ddd
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 
Signed-off-by: Denis Pynkin 
Acked-by: Joe Hershberger 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto