balena-os / balena-allwinner

Apache License 2.0
21 stars 14 forks source link

Rocko+ builds fail #40

Open splitice opened 6 years ago

splitice commented 6 years ago

There appears be a bug with newer yocto versions which results in kernels that crash with errors similar to:

[    0.797936] Internal error: Oops - undefined instruction: 0 [#1] SMP THUMB2
[    0.804914] Modules linked in:
[    0.808231] CPU: 0 PID: 106 Comm: modprobe Not tainted 4.14.52 #2
[    0.814477] Hardware name: Allwinner sun8i Family
[    0.819178] task: d9ce9380 task.stack: d9922000
[    0.823716] PC is at ret_fast_syscall+0x2/0x62
[    0.828162] LR is at SyS_brk+0x115/0x13c
[    0.832072] pc : [<c0106782>]    lr : [<c01fa3ad>]    psr: 60000013
[    0.838482] sp : d9923fa8  ip : 50c5387d  fp : 00001000
[    0.843846] r10: 00000000  r9 : d9922000  r8 : c0106984
[    0.849062] r7 : 0000002d  r6 : b6fc9bb8  r5 : 00446034  r4 : 00000009
[    0.855579] r3 : 362964bb  r2 : 362964bb  r1 : 00000000  r0 : 012fc000
[    0.862098] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.869221] Control: 50c5387d  Table: 5992c06a  DAC: 00000051
[    0.874958] Process modprobe (pid: 106, stack limit = 0xd9922210)
[    0.881042] Stack: (0xd9923fa8 to 0xd9924000)
[    0.885396] 3fa0:                   00000009 00446034 00000000 00000050 00000000 00000001
[    0.893563] 3fc0: 00000009 00446034 b6fc9bb8 0000002d 00000001 00000001 00000001 00001000
[    0.901731] 3fe0: 0044d6d8 be812dfc b6fdf99c b6fe0d88 60000010 00000000 ffffffff ffffffff
[    0.909909] Code: 00000000 00000000 00000000 b6720000 (2008f8d9)
[    0.915999] ---[ end trace 94e78d06d421662a ]---
[    0.921426] Internal error: Oops - undefined instruction: 0 [#2] SMP THUMB2
[    0.928505] Modules linked in:
[    0.932051] CPU: 1 PID: 107 Comm: modprobe Tainted: G      D         4.14.52 #2
[    0.939512] Hardware name: Allwinner sun8i Family
[    0.944212] task: db179380 task.stack: d994e000
[    0.948746] PC is at ret_fast_syscall+0x2/0x62
[    0.953191] LR is at SyS_brk+0x115/0x13c
[    0.957273] pc : [<c0106782>]    lr : [<c01fa3ad>]    psr: 60000013
[    0.963685] sp : d994ffa8  ip : 50c5387d  fp : 00001000
[    0.968901] r10: 00000000  r9 : d994e000  r8 : c0106984
[    0.974117] r7 : 0000002d  r6 : b6ef7bb8  r5 : 00407034  r4 : 00000009
[    0.975243] mmc1: new DDR MMC card at address 0001
[    0.975921] mmcblk1: mmc1:0001 BWBD3R 29.1 GiB
[    0.976294] mmcblk1boot0: mmc1:0001 BWBD3R partition 1 4.00 MiB
[    0.976581] mmcblk1boot1: mmc1:0001 BWBD3R partition 2 4.00 MiB
[    0.977661]  mmcblk1: p1
[    1.004270] r3 : 362964bb  r2 : 362964bb  r1 : 00000000  r0 : 01cd7000
[    1.010790] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.017913] Control: 50c5387d  Table: 5995406a  DAC: 00000051
[    1.023649] Process modprobe (pid: 107, stack limit = 0xd994e210)
[    1.029733] Stack: (0xd994ffa8 to 0xd9950000)
[    1.034087] ffa0:                   00000009 00407034 00000000 00000050 00000000 00000001
[    1.042254] ffc0: 00000009 00407034 b6ef7bb8 0000002d 00000001 00000001 00000001 00001000
[    1.050421] ffe0: 0040e6d8 befe6dfc b6f0d99c b6f0ed88 60000010 00000000 ffffffff ffffffff
[    1.058592] Code: 00000000 00000000 00000000 b6720000 (2008f8d9)
[    1.064678] ---[ end trace 94e78d06d421662b ]---
[    1.070493] Internal error: Oops - undefined instruction: 0 [#3] SMP THUMB2
[    1.077456] Modules linked in:
[    1.080511] CPU: 2 PID: 113 Comm: modprobe Tainted: G      D         4.14.52 #2
[    1.087807] Hardware name: Allwinner sun8i Family
[    1.092505] task: d9d45480 task.stack: d999c000
[    1.097035] PC is at ret_fast_syscall+0x2/0x62
[    1.101476] LR is at SyS_brk+0x115/0x13c
[    1.105392] pc : [<c0106782>]    lr : [<c01fa3ad>]    psr: 60000013
[    1.111649] sp : d999dfa8  ip : 50c5387d  fp : 00001000
[    1.116865] r10: 00000000  r9 : d999c000  r8 : c0106984
[    1.122081] r7 : 0000002d  r6 : b6fbcbb8  r5 : 00401034  r4 : 00000009
[    1.128598] r3 : 362964bb  r2 : 362964bb  r1 : 00000000  r0 : 00b15000
[    1.135116] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.142239] Control: 50c5387d  Table: 599a006a  DAC: 00000051
[    1.147975] Process modprobe (pid: 113, stack limit = 0xd999c210)
[    1.154058] Stack: (0xd999dfa8 to 0xd999e000)
[    1.158411] dfa0:                   00000009 00401034 00000000 00000050 00000000 00000001
[    1.166578] dfc0: 00000009 00401034 b6fbcbb8 0000002d 00000001 00000001 00000001 00001000
[    1.174745] dfe0: 004086d8 becd0dfc b6fd299c b6fd3d88 60000010 00000000 ffffffff ffffffff
[    1.182914] Code: 00000000 00000000 00000000 b6720000 (2008f8d9)
[    1.188998] ---[ end trace 94e78d06d421662c ]---
[    1.194381] Internal error: Oops - undefined instruction: 0 [#4] SMP THUMB2
[    1.201336] Modules linked in:
[    1.204391] CPU: 3 PID: 114 Comm: modprobe Tainted: G      D         4.14.52 #2
[    1.211687] Hardware name: Allwinner sun8i Family
[    1.216383] task: d9d76e80 task.stack: d99c2000
[    1.220911] PC is at ret_fast_syscall+0x2/0x62
[    1.225350] LR is at SyS_brk+0x115/0x13c
[    1.229267] pc : [<c0106782>]    lr : [<c01fa3ad>]    psr: 60000013
[    1.235523] sp : d99c3fa8  ip : 50c5387d  fp : 00001000
[    1.240740] r10: 00000000  r9 : d99c2000  r8 : c0106984
[    1.245956] r7 : 0000002d  r6 : b6fadbb8  r5 : 004ab034  r4 : 00000009
[    1.252473] r3 : 362964bb  r2 : 362964bb  r1 : 00000000  r0 : 00f45000
[    1.258991] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.266114] Control: 50c5387d  Table: 599c806a  DAC: 00000051
[    1.271851] Process modprobe (pid: 114, stack limit = 0xd99c2210)
[    1.277935] Stack: (0xd99c3fa8 to 0xd99c4000)
[    1.282288] 3fa0:                   00000009 004ab034 00000000 00000050 00000000 00000001
[    1.290455] 3fc0: 00000009 004ab034 b6fadbb8 0000002d 00000001 00000001 00000001 00001000
[    1.298622] 3fe0: 004b26d8 be90ddec b6fc399c b6fc4d88 60000010 00000000 ffffffff ffffffff
[    1.306790] Code: 00000000 00000000 00000000 b6720000 (2008f8d9)
[    1.312875] ---[ end trace 94e78d06d421662d ]---

This has been reported to Yocto in 2017 with seemingly no response here: https://lists.yoctoproject.org/pipermail/yocto/2017-November/039022.html

floion commented 6 years ago

Hi, we have since moved to Yocto Sumo. Can you recheck now with the latest build from sources to see if this is still a problem?

splitice commented 6 years ago

@brdrcol has done a build recently based off master and it looks like this might be fixed with Sumo.

As we have not ported over all our SBCs supporting files / patches yet (and we don't have any other Allwinners) we can't say for sure however.