Christian Lamparter
91d3b87353
uboot-fritz4040: fix crash caused by interaction with gcc 7.1+
David Bauer reported a u-boot crash (data abort) at a odd
place (byteswap) when he ran ping/tftp on his 7530.
|(FRITZ7530) # ping 192.168.1.70
|eth0 PHY0 up Speed :1000 Full duplex
|eth0 PHY1 Down Speed :10 Half duplex
|eth0 PHY2 Down Speed :10 Half duplex
|eth0 PHY3 Down Speed :10 Half duplex
|eth0 PHY4 Down Speed :10 Half duplex
|Using eth0 device
|data abort
|pc : [<84234774>] lr : [<842351a4>]
|sp : 8412fdb0 ip : 0000009b fp : 00000000
|r10: 00000000 r9 : 00000001 r8 : 8412ff68
|r7 : 00000000 r6 : 0000002a r5 : 84244e90 r4 : 8425e28e
|r3 : 84244e90 r2 : 14000045 r1 : 8412fdb0 r0 : 8425e28e
|Flags: nZCv IRQs off FIQs off Mode SVC_32
|Resetting CPU ...
|
|resetting ...
This issue is caused by switch from gcc 5.5 to 7.1+ as explained
in the upstream patch:
|From a768e513b07b5999a8e7d7740ac8d9da04ee7e51 Mon Sep 17 00:00:00 2001
|From: Denis Pynkin <denis.pynkin@collabora.com>
|Date: Fri, 21 Jul 2017 19:28:42 +0300
|Subject: [PATCH] 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 S
|
|Core reason is usage of structures for network headers without packed
|attribute.
This patch just backports the upstream change to the
uboot-fritz4040 package.
Reported-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2019-01-26 19:40:23 +01:00
..
2017-01-27 16:53:31 +01:00
2018-02-05 12:58:27 +01:00
2018-05-05 06:55:22 +02:00
2016-12-16 22:39:22 +01:00
2018-08-30 14:11:36 +02:00
2016-12-16 22:39:22 +01:00
2018-02-11 16:10:51 +01:00
2017-11-16 22:56:54 +01:00
2017-10-07 15:00:26 +02:00
2017-04-06 16:25:08 +02:00
2018-05-05 06:55:22 +02:00
2018-06-21 07:02:30 +02:00
2019-01-26 19:40:23 +01:00
2018-03-13 22:28:59 +01:00
2018-06-26 23:35:18 +02:00
2018-09-26 20:36:32 +02:00
2018-02-13 10:01:51 +01:00
2018-02-13 10:01:51 +01:00
2018-05-23 09:09:16 +02:00
2018-05-23 09:29:28 +02:00
2018-04-11 03:43:38 +02:00
2018-06-18 18:58:12 +02:00
2018-03-23 23:53:20 +01:00
2016-12-16 22:39:22 +01:00
2018-05-23 09:40:45 +02:00
2017-01-24 09:45:05 +01:00