Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPIPCPLUS] Kernel Panic when setting up hostapd-rt #459

Closed
lenormf opened this issue Sep 5, 2016 · 10 comments
Closed

[OPIPCPLUS] Kernel Panic when setting up hostapd-rt #459

lenormf opened this issue Sep 5, 2016 · 10 comments

Comments

@lenormf
Copy link

lenormf commented Sep 5, 2016

Hi,

I've been having issues with version 5.17 of Armbian (jessy, vanilla) provided on the official downloads page. I'm trying to setup an access point that will provide connected clients with an IP address fetched from a DHCP server running on a system connected to the OrangePI by ethernet:

[opi wlan0 (hostapd) → br0eth0 ] ← [external system eth0 (dnsmasq) ]

When a client connects to hostapd through the board's wlan0 interface, I can see a broadcast hitting the DHCP server (which means hostapd has accepted the peer, and the IP request has gone through the bridge properly and reached the external system connected by ethernet), but as soon as the DHCP server replies back (or maybe right before, I'm not sure), the OrangePI crashes with a kernel BUG.

I've tried having a look at the file mentioned in the stacktrace (c.f. below), but nothing came out of it (I haven't tried any other image of armbian either).

OrangePI PC Plus, Armbian 5.17 (jessy) vanilla
hostapd 2.5 for Realtek rtl871xdrv
Linux 4.6.7-sun8i

EDIT: the same issue occurs on the xenial distro (still armbian 5.17), and on the 4.7.2 version of the kernel.

Bridge setup

bridge name bridge id       STP enabled interfaces
br0     8000.00e04c6cc661   no      eth0, wlan0

hostapd.conf

ssid=SSID
interface=wlan0
hw_mode=g
channel=5
bridge=br0
logger_syslog=0
logger_syslog_level=0
wmm_enabled=1
ieee80211n=1
noscan=1
driver=rtl871xdrv

output

root@orangepipcplus:~# hostapd -dd /etc/hostapd.conf 
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
drv->ifindex=3
Configure bridge br0 for EAPOL traffic.
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=[  638.583226] br0: port 2(wlan0) entered blocking state
0 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power[  638.588689] br0: port 2(wlan0) entered forwarding state
=0 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=52 freq=5260 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=56 freq=5280 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=60 freq=5300 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=64 freq=5320 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=100 freq=5500 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=104 freq=5520 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=108 freq=5540 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=112 freq=5560 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=116 freq=5580 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=120 freq=5600 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=124 freq=5620 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=128 freq=5640 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=132 freq=5660 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=136 freq=5680 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=140 freq=5700 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 5  Frequency: 2432 MHz
DFS 0 channels required radar detection
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x7f643d70 (wlan0), first=1)
wlan0: Flushing old station entries
wlan0: Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 00:e0:4c:6c:c6:61 and ssid "SSID"
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid_ops
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED 
wlan0: Setup of interface done.
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
Wireless event: cmd=0x8b15 len=20
Wireless event: cmd=0x8c03 len=20
+rtl871x_get_sta_wpaie, 9c:a9:e4:39:6a:0e is sta's address
wlan0: Event ASSOC (0) received
wlan0: STA 9c:a9:e4:39:6a:0e IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
  New STA
ap_sta_add: register ap_handle_timer timeout for 9c:a9:e4:39:6a:0e (300 seconds - ap_max_inactivity)
wlan0: AP-STA-CONNECTED 9c:a9:e4:39:6a:0e
wlan0: STA 9c:a9:e4:39:6a:0e RADIUS: starting accounting session 0E7A312B-00000000
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 9c:a9:e4:39:6a:0e (300 seconds - ap_max_inactivity)
[  681.110823] ------------[ cut here ]------------
[  681.115507] kernel BUG at net/core/dev.c:2470!
[  681.119979] Internal error: Oops - BUG: 0 [#1] SMP ARM
[  681.125142] Modules linked in: evdev 8189fs ir_lirc_codec lirc_dev sun8i_ths sunxi_cir cpufreq_dt uio_pdrv_genirq thermal_sys uio fuse
[  681.137469] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.6.7-sun8i #2
[  681.145077] Hardware name: Allwinner sun8i Family
[  681.149808] task: c0d06500 ti: c0d00000 task.ti: c0d00000
[  681.155247] PC is at skb_checksum_help+0x15c/0x168
[  681.160073] LR is at validate_xmit_skb.part.23+0x208/0x2cc
[  681.165586] pc : [<c0750a94>]    lr : [<c0756318>]    psr: 00000113
[  681.165586] sp : c0d01b88  ip : eea2e000  fp : 00000000
[  681.177104] r10: ed804268  r9 : eea2ea80  r8 : eea2e000
[  681.182353] r7 : 00000000  r6 : 00000000  r5 : ffffffbe  r4 : ef360240
[  681.188905] r3 : 00000042  r2 : 0000003c  r1 : 0000003c  r0 : ed8bf700
[  681.195459] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  681.202620] Control: 10c5387d  Table: 6ead006a  DAC: 00000051
[  681.208390] Process swapper/0 (pid: 0, stack limit = 0xc0d00210)
[  681.214421] Stack: (0xc0d01b88 to 0xc0d02000)
[  681.218810] 1b80:                   ef360240 00000000 00000000 c0756318 edc436c0 00000000
[  681.227035] 1ba0: 00000000 00000000 ed804200 00000000 00000000 eea2e000 eea2ea80 c0756728
[  681.235260] 1bc0: eea2ea80 ed804200 ed804268 00000000 eea2e000 c0778164 eea2e000 00000010
[  681.243485] 1be0: ef360240 ef360240 ed804200 eea2e000 00000000 00000000 eea2ea80 c0756a88
[  681.251709] 1c00: ed804268 00000001 ef360240 fffffff4 00000000 00000001 ef360240 ef360240
[  681.259934] 1c20: 00000000 ed8bf700 ed8bf742 ef15b4c0 edc436c0 c084c0d0 c0d41400 ef360240
[  681.268159] 1c40: 00000000 ed8bf700 ed8bf742 c084c190 00000000 00000000 00000000 c0789394
[  681.276383] 1c60: 02080020 00000000 02080020 00000000 02080020 00000000 ef360240 c0d41400
[  681.284609] 1c80: ef15b000 c084c404 c0d03328 edc436c0 02080020 ef15b000 ed8bf700 ed8bf742
[  681.292833] 1ca0: ef360240 edc436c0 ef15b000 c0740d50 c084c2fc c084c2fc ed805400 c084c2e0
[  681.301058] 1cc0: edc436c0 edfaaa00 00000042 c084c770 00000000 ed8bf700 ed8bf742 c084d894
[  681.309283] 1ce0: 00000000 20000193 eea81040 eea81040 ed8bf758 00000000 00000000 0000d280
[  681.317508] 1d00: 0301a8c0 8a01a8c0 c0d01d1c edc436c0 c0d41400 ed8bf742 c0d01d9c edfaaa00
[  681.325733] 1d20: ed8bf700 c084dc50 ee13a000 c084de2c c0c5d280 ef6b0280 c0d01d74 c0143c5c
[  681.333958] 1d40: 0001af94 00000000 ffffffff 2ea53000 00064fb8 eeac1dfc c0143ec4 00000001
[  681.342184] 1d60: eeac1e08 edc436c0 c0d01d9c 00000001 c0c5dc18 c0d0338c c0d03394 c075113c
[  681.350409] 1d80: 00000042 00000000 02080020 c0118fc8 00000002 ee13a000 000007fc edc436c0
[  681.358634] 1da0: c0d061c4 c0d7ae44 00000900 efd823cc 00d48c0d 00000000 93f00faa 0000009e
[  681.366859] 1dc0: bf024280 edc436c0 edc436c0 c0d0338c edc436c0 ee13a4c0 00000000 ee13a000
[  681.375084] 1de0: ee13a4d8 00000000 00000000 c0753c98 552fa80d 146d5c01 edc436c0 ee13a4c0
[  681.383308] 1e00: 00000000 ee13a000 ee13a4d8 ee13a4d8 edc436c0 c0754a24 f1182000 00000000
[  681.391533] 1e20: ee13a4c0 c06294d8 00000000 00000000 00000001 00000040 edc436c0 00000004
[  681.399758] 1e40: ee13a4d8 c0b03328 0000003c f1182000 00000000 ee13a4d8 c0628ea4 000094e1
[  681.407983] 1e60: 0000012c c0d02100 00000040 c0d01e90 2ea53000 c0754338 ef6b0c00 c0c5dc00
[  681.416208] 1e80: c0d4a164 c0d0338c c0b27e94 c0b2bb78 c0d01e90 c0d01e90 c0d01e98 c0d01e98
[  681.424432] 1ea0: 00000001 00000000 00000003 c0d00000 c0d0208c c0d02080 00000100 c0d02080
[  681.432657] 1ec0: 40000003 c01242f4 00000000 ef18c780 c0d01ec8 c0d4ca40 0000000a 000094e0
[  681.440882] 1ee0: c0d02100 00200000 c0d02508 ffffe000 00000000 00000000 00000001 ef008000
[  681.449107] 1f00: f0803000 c0d49f1b c0d02508 c01246b0 c0c5a4b0 c016b1fc c0d1e4e8 c0d02860
[  681.457331] 1f20: f080200c c0d01f50 f0802000 c010147c c0108120 60000013 ffffffff c0d01f84
[  681.465556] 1f40: c0c5c578 c0d02500 c0d49f1b c010bdd4 00000001 00000000 00000000 c0119620
[  681.473781] 1f60: c0d00000 c0d0249c 00000000 00000000 c0c5c578 c0d02500 c0d49f1b c0d02508
[  681.482006] 1f80: 2ea53000 c0d01fa0 c010811c c0108120 60000013 ffffffff 00000051 00000000
[  681.490230] 1fa0: c0d00000 c015cc58 c0d01fb4 c0d01fa8 00000000 ffffffff 00000000 c0c00c78
[  681.498447] 1fc0: ffffffff ffffffff 00000000 c0c00690 00000000 c0c47a30 c0d4c294 c0d02480
[  681.506671] 1fe0: c0c47a2c c0d07fdc 4000406a 410fc075 00000000 4000807c 00000000 00000000
[  681.514916] [<c0750a94>] (skb_checksum_help) from [<c0756318>] (validate_xmit_skb.part.23+0x208/0x2cc)
[  681.524281] [<c0756318>] (validate_xmit_skb.part.23) from [<c0756728>] (validate_xmit_skb_list+0x28/0x58)
[  681.533904] [<c0756728>] (validate_xmit_skb_list) from [<c0778164>] (sch_direct_xmit+0x164/0x234)
[  681.542831] [<c0778164>] (sch_direct_xmit) from [<c0756a88>] (__dev_queue_xmit+0x238/0x6e0)
[  681.551238] [<c0756a88>] (__dev_queue_xmit) from [<c084c0d0>] (br_dev_queue_push_xmit+0x114/0x140)
[  681.560250] [<c084c0d0>] (br_dev_queue_push_xmit) from [<c084c190>] (br_forward_finish+0x94/0x9c)
[  681.569171] [<c084c190>] (br_forward_finish) from [<c084c404>] (__br_forward+0x108/0x110)
[  681.577399] [<c084c404>] (__br_forward) from [<c084c2e0>] (deliver_clone+0x34/0x50)
[  681.585105] [<c084c2e0>] (deliver_clone) from [<c084c770>] (br_flood_forward+0x18/0x20)
[  681.593161] [<c084c770>] (br_flood_forward) from [<c084d894>] (br_handle_frame_finish+0x1e0/0x514)
[  681.602171] [<c084d894>] (br_handle_frame_finish) from [<c084de2c>] (br_handle_frame+0x1dc/0x324)
[  681.611095] [<c084de2c>] (br_handle_frame) from [<c075113c>] (__netif_receive_skb_core+0x354/0xae4)
[  681.620195] [<c075113c>] (__netif_receive_skb_core) from [<c0753c98>] (netif_receive_skb_internal+0x48/0xb8)
[  681.630077] [<c0753c98>] (netif_receive_skb_internal) from [<c0754a24>] (napi_gro_receive+0x80/0xd4)
[  681.639267] [<c0754a24>] (napi_gro_receive) from [<c06294d8>] (sun8i_emac_poll+0x634/0x6d8)
[  681.647675] [<c06294d8>] (sun8i_emac_poll) from [<c0754338>] (net_rx_action+0x1f4/0x2e4)
[  681.655823] [<c0754338>] (net_rx_action) from [<c01242f4>] (__do_softirq+0xfc/0x214)
[  681.663622] [<c01242f4>] (__do_softirq) from [<c01246b0>] (irq_exit+0xb4/0x114)
[  681.670986] [<c01246b0>] (irq_exit) from [<c016b1fc>] (__handle_domain_irq+0x60/0xb4)
[  681.678869] [<c016b1fc>] (__handle_domain_irq) from [<c010147c>] (gic_handle_irq+0x48/0x8c)
[  681.687272] [<c010147c>] (gic_handle_irq) from [<c010bdd4>] (__irq_svc+0x54/0x70)
[  681.694794] Exception stack(0xc0d01f50 to 0xc0d01f98)
[  681.699873] 1f40:                                     00000001 00000000 00000000 c0119620
[  681.708098] 1f60: c0d00000 c0d0249c 00000000 00000000 c0c5c578 c0d02500 c0d49f1b c0d02508
[  681.716321] 1f80: 2ea53000 c0d01fa0 c010811c c0108120 60000013 ffffffff
[  681.722975] [<c010bdd4>] (__irq_svc) from [<c0108120>] (arch_cpu_idle+0x38/0x3c)
[  681.730426] [<c0108120>] (arch_cpu_idle) from [<c015cc58>] (cpu_startup_entry+0x1b8/0x214)
[  681.738746] [<c015cc58>] (cpu_startup_entry) from [<c0c00c78>] (start_kernel+0x38c/0x398)
[  681.746973] Code: eaffffe5 ebffff6f e3e00015 e8bd8070 (e7f001f2) 
[  681.753096] ---[ end trace ffeb1b6a190357c8 ]---
[  681.757739] Kernel panic - not syncing: Fatal exception in interrupt
[  681.764128] CPU3: stopping
[  681.766878] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D W       4.6.7-sun8i #2
[  681.774486] Hardware name: Allwinner sun8i Family
[  681.779234] [<c010e9c8>] (unwind_backtrace) from [<c010b308>] (show_stack+0x10/0x14)
[  681.787030] [<c010b308>] (show_stack) from [<c052fcc4>] (dump_stack+0x84/0x98)
[  681.794304] [<c052fcc4>] (dump_stack) from [<c010d850>] (handle_IPI+0x168/0x188)
[  681.801750] [<c010d850>] (handle_IPI) from [<c01014bc>] (gic_handle_irq+0x88/0x8c)
[  681.809367] [<c01014bc>] (gic_handle_irq) from [<c010bdd4>] (__irq_svc+0x54/0x70)
[  681.816889] Exception stack(0xef0a3f88 to 0xef0a3fd0)
[  681.821971] 3f80:                   00000001 00000000 00000000 c0119620 ef0a2000 c0d0249c
[  681.830196] 3fa0: 00000000 00000000 c0c5c578 c0d02500 c0d49f1b c0d02508 edd42adc ef0a3fd8
[  681.838415] 3fc0: c010811c c0108120 60000013 ffffffff
[  681.843503] [<c010bdd4>] (__irq_svc) from [<c0108120>] (arch_cpu_idle+0x38/0x3c)
[  681.850951] [<c0108120>] (arch_cpu_idle) from [<c015cc58>] (cpu_startup_entry+0x1b8/0x214)
[  681.859264] [<c015cc58>] (cpu_startup_entry) from [<4010154c>] (0x4010154c)
[  681.866252] CPU1: stopping
[  681.868998] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W       4.6.7-sun8i #2
[  681.876605] Hardware name: Allwinner sun8i Family
[  681.881349] [<c010e9c8>] (unwind_backtrace) from [<c010b308>] (show_stack+0x10/0x14)
[  681.889142] [<c010b308>] (show_stack) from [<c052fcc4>] (dump_stack+0x84/0x98)
[  681.896415] [<c052fcc4>] (dump_stack) from [<c010d850>] (handle_IPI+0x168/0x188)
[  681.903861] [<c010d850>] (handle_IPI) from [<c01014bc>] (gic_handle_irq+0x88/0x8c)
[  681.911479] [<c01014bc>] (gic_handle_irq) from [<c010bdd4>] (__irq_svc+0x54/0x70)
[  681.919001] Exception stack(0xef097f88 to 0xef097fd0)
[  681.924083] 7f80:                   00000001 00000000 00000000 c0119620 ef096000 c0d0249c
[  681.932307] 7fa0: 00000000 00000000 c0c5c578 c0d02500 c0d49f1b c0d02508 00000000 ef097fd8
[  681.940527] 7fc0: c010811c c0108120 60010013 ffffffff
[  681.945614] [<c010bdd4>] (__irq_svc) from [<c0108120>] (arch_cpu_idle+0x38/0x3c)
[  681.953062] [<c0108120>] (arch_cpu_idle) from [<c015cc58>] (cpu_startup_entry+0x1b8/0x214)
[  681.961375] [<c015cc58>] (cpu_startup_entry) from [<4010154c>] (0x4010154c)
[  681.968362] CPU2: stopping
[  681.971107] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D W       4.6.7-sun8i #2
[  681.978715] Hardware name: Allwinner sun8i Family
[  681.983460] [<c010e9c8>] (unwind_backtrace) from [<c010b308>] (show_stack+0x10/0x14)
[  681.991253] [<c010b308>] (show_stack) from [<c052fcc4>] (dump_stack+0x84/0x98)
[  681.998526] [<c052fcc4>] (dump_stack) from [<c010d850>] (handle_IPI+0x168/0x188)
[  682.005971] [<c010d850>] (handle_IPI) from [<c01014bc>] (gic_handle_irq+0x88/0x8c)
[  682.013590] [<c01014bc>] (gic_handle_irq) from [<c010bdd4>] (__irq_svc+0x54/0x70)
[  682.021111] Exception stack(0xef0a1f88 to 0xef0a1fd0)
[  682.026194] 1f80:                   00000001 00000000 00000000 c0119620 ef0a0000 c0d0249c
[  682.034419] 1fa0: 00000000 00000000 c0c5c578 c0d02500 c0d49f1b c0d02508 00000000 ef0a1fd8
[  682.042638] 1fc0: c010811c c0108120 60010013 ffffffff
[  682.047726] [<c010bdd4>] (__irq_svc) from [<c0108120>] (arch_cpu_idle+0x38/0x3c)
[  682.055174] [<c0108120>] (arch_cpu_idle) from [<c015cc58>] (cpu_startup_entry+0x1b8/0x214)
[  682.063487] [<c015cc58>] (cpu_startup_entry) from [<4010154c>] (0x4010154c)
[  682.070478] Rebooting in 10 seconds..

Any idea what's up ?

Thanks.

@igorpecovnik
Copy link
Member

igorpecovnik commented Sep 5, 2016

You are running an image with first beta / preview version of kernel, which is already EOL ... I hope you acknowledged that? It's good to know this, but I would try to build more recent kernel and try the same thing first.

If you need an working solution, get an image with Legacy kernel.

@lenormf
Copy link
Author

lenormf commented Sep 5, 2016

Since the issue happens on the images you provide, I thought you would want to know so that you could fix it in your releases.

@golfromeo-fr
Copy link
Contributor

golfromeo-fr commented Sep 5, 2016

Since the trace shows a kernel bug, it would be more interesting to report to kernel.org, so Igor added "not-our-bug"

But as Igor says, you may use the Armbian tool to build an up-to-date kernel image (in case this bug has been fixed by kernel.org) or wait for an "official" Armbian build with a stable linux kernel.

Feel free to report about the bug so we can close it.
Thanks for reporting.

@igorpecovnik
Copy link
Member

igorpecovnik commented Sep 5, 2016

I could be wrong and the bug is ours since we do certain adaptations to the kernel. We took a kernel from kernel.org and add certain things to the kernel, that those H3 boards works (better). We add wireless driver and of course the problem could be there ... so I am deciding based on a hunch, experience and small real data. I will leave issue open to see if we receive more input on the topic. Since the kernel is preview / beta, I won't run and try to fix this ... I rather remove it from the download since we can't possible support it.

@lenormf
Copy link
Author

lenormf commented Sep 5, 2016

@igorpecovnik what else do you need? I found this issue on the kernel bugzilla that really sounds similar to mine, except the stacktrace is quite different from mine.

I've tried the 4.7.2 and 4.6.7 kernels, the vanilla and legacy versions, and the bug still occurs. Note that I am unable to build an image myself because of the docker issues (c.f. #385), but I'm still trying to use another distro on my OPI PC+ to try to reproduce the issue (I would know whether this is a genuine Linux issue, or something we can fix in Armbian).

@golfromeo-fr
Copy link
Contributor

golfromeo-fr commented Sep 5, 2016

yes, right, if we do changes in modules 8189fs sun8i_ths sunxi_cir cpufreq_dt thermal_sys

yes possible. duckduckgo search points to Armbian for "8189fs" :) https://duckduckgo.com/?q=8189fs

is a test on OPI2e+ could be of use (hardware)? if yes, I can build an image and test on the board I have
( edit:
OPi PC has no wifi so I am not sure it is useful
OPi2e+ has RTL8189, user has rtl871xdrv family
https://linux-sunxi.org/Orange_Pi_PC )

@lenormf
the issue you mention is probably not related (different modules, architecture)
you write "vanilla and legacy" points likely to Armbian changes

@lenormf
Copy link
Author

lenormf commented Sep 5, 2016

@igorpecovnik without talking about trying to fix the issue off the bat, it'd be good if someone could confirm that the issue comes from armbian (or prove otherwise).

@igorpecovnik
Copy link
Member

igorpecovnik commented Sep 5, 2016

Again. This image is a preview and presumably full of bugs. Yes, it's a good thing that bugs are recorded. That's why images were made in the first place. But fixing issues within is low priority since kernel branch is already EOL and we can't be sure whether it's our or general bug or we are facing bug that has already been fixed upstream.

I hope this is acceptable and understandable.

Nobody prohibits anyone to find and fix problems - Linux is a community project.

@lenormf
Copy link
Author

lenormf commented Sep 6, 2016

It looks like the packets going through the bridge have their checksum offset beyond the size of the current frame, which triggers the kernel BUG. I'm leaning towards a network driver bug, particularly considering the issues everybody has with realtek chips, but since I don't really need to get bridging to work, I'm going to assume this is not an issue related to kernel changes made on armbian's side.

Closing.

@lenormf lenormf closed this as completed Sep 6, 2016
@frankipl
Copy link

Hi
I had the same issue with Armbian 5.38 on Orange PI+, meaning: kernel panic after a few seconds of hostapd working. I have tried hostapd and hostapd-realtek, compiled different versions of hostapd.
Finally I have compiled hostapd 2.0 with nl driver and apt-get remove --purge network-manager dnsmasq* (I'm using isc-dhcp)
If I'm not logged into system (via ssh) hostapd is running fine (a few hours now), when logged in, kernel still can panic after a minute.
Very strange!?

Best Regards,
Marek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants