oops on pi3 (seemingly wlan related)

Bug #1627643 reported by Oliver Grawert on 2016-09-26
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Undecided
Unassigned
linux-raspi2 (Ubuntu)
Undecided
Paolo Pisati

Bug Description

booting the latest pi3 image from http://people.canonical.com/~ogra/snappy/all-snaps/daily/current/
with monitor/kbd attached but without any network cable shows an oops on the screen when console-conf initializes networking (which tries to also bring up wlan0) this oops does not show when a network cable is plugged in and the network can be configured correctly.

sadly the first user creation relies on having network available, so it is a bit hard to get dmesg output when not having a login.

paolo asked for the used cmdline:

ogra@pi3:~$ cat /proc/cmdline
8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa02082 bcm2709.serial=0xa3c92b03 smsc95xx.macaddr=B8:27:EB:C9:2B:03 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty0 elevator=deadline root=/dev/disk/by-label/writable net.ifnames=0 init=/lib/systemd/systemd ro panic=-1 fixrtc snap_core=ubuntu-core_743.snap snap_kernel=pi2-kernel_15.snap

Paolo Pisati (p-pisati) on 2016-09-26
Changed in linux-raspi2 (Ubuntu):
assignee: nobody → Paolo Pisati (p-pisati)
Paolo Pisati (p-pisati) wrote :

With today image (04-Oct-2016 - b99626f36cddae872e43ef692c4b1b9f ubuntu-core-16-pi3.img.xz) i'm unable to reproduce it:

1) on first boot, it reaches the config screen, i correctly insert my wifi SSID and password, but when it tries to associate to my wifi it generically fails but i don't get any particular kernel msg anywhere (nothing on ttl serial nor screen)

then i pull the plug and reboot the board

2) on second boot it reaches the config screen again, but the wifi details are already filled in, the board is associated and it has an ip (i double checked this on the AP too), but when i tell it to apply the config and move to the next step, it generically fails again and on the ttl serial i see these messages:

...
[ 14.247344] brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24
[ 14.556685] brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[ 14.611781] brcmf_cfg80211_reg_notifier: not a ISO3166 code
[ 15.249810] brcmf_cfg80211_reg_notifier: not a ISO3166 code
[ 19.841564] brcmf_add_if: ERROR: netdev:wlan0 already exists
[ 19.852874] brcmf_add_if: ignore IF event
[ 20.151206] brcmf_add_if: ERROR: netdev:wlan0 already exists
[ 20.162674] brcmf_add_if: ignore IF event

Press enter to configure.
[ 200.706137] brcmf_cfg80211_reg_notifier: not a ISO3166 code
[ 200.748082] brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[ 200.748092] brcmf_cfg80211_get_tx_power: error (-52)
...

but no traces of an oops.

Now i'll try this kernel / boot firmware / etc on a classic image to see if it works there and if i get any of the above errors.

Question: how do i install and run the 'netconfig' (i think that's the name of the software we run on boot to configure the board) on a classic image?

sent from my phone, please excuse brevity

On 4 Oct 2016 23:16, "Paolo Pisati" <email address hidden> wrote:
>
> With today image (04-Oct-2016 - b99626f36cddae872e43ef692c4b1b9f
> ubuntu-core-16-pi3.img.xz) i'm unable to reproduce it:
>
> 1) on first boot, it reaches the config screen, i correctly insert my
> wifi SSID and password, but when it tries to associate to my wifi it
> generically fails but i don't get any particular kernel msg anywhere
> (nothing on ttl serial nor screen)
>
> then i pull the plug and reboot the board
>
> 2) on second boot it reaches the config screen again, but the wifi
> details are already filled in, the board is associated and it has an ip
> (i double checked this on the AP too), but when i tell it to apply the
> config and move to the next step, it generically fails again and on the
> ttl serial i see these messages:
>
> ...
> [ 14.247344] brcmf_sdio_drivestrengthinit: No SDIO Drive strength init
done for chip 43430 rev 1 pmurev 24
> [ 14.556685] brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016
00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
> [ 14.611781] brcmf_cfg80211_reg_notifier: not a ISO3166 code
> [ 15.249810] brcmf_cfg80211_reg_notifier: not a ISO3166 code
> [ 19.841564] brcmf_add_if: ERROR: netdev:wlan0 already exists
> [ 19.852874] brcmf_add_if: ignore IF event
> [ 20.151206] brcmf_add_if: ERROR: netdev:wlan0 already exists
> [ 20.162674] brcmf_add_if: ignore IF event
>
> Press enter to configure.
> [ 200.706137] brcmf_cfg80211_reg_notifier: not a ISO3166 code
> [ 200.748082] brcmf_sdio_dpc: failed backplane access over SDIO, halting
operation
> [ 200.748092] brcmf_cfg80211_get_tx_power: error (-52)
> ...
>
> but no traces of an oops.
>
> Now i'll try this kernel / boot firmware / etc on a classic image to see
> if it works there and if i get any of the above errors.
>
> Question: how do i install and run the 'netconfig' (i think that's the
> name of the software we run on boot to configure the board) on a classic
> image?

Install nplan from yakkety

sent from my phone, please excuse brevity

Paolo Pisati (p-pisati) wrote :
Download full text (3.3 KiB)

I installed nplan on yakkety but i was unable to reproduce ogra's problem neither i got the error messages i posted above - what's the software used on first boot to configure the board?

Anyhow, i manually tested the wifi driver and i was able to connect to my wlan without a hic using wpa_supplicant but while experimenting in different ways, i was able to get this stack trace:

...
[ 71.465029] brcmf_add_if: ERROR: netdev:wlan0 already exists
[ 71.470095] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 71.470965] brcmf_add_if: ignore IF event
[ 114.340647] brcmf_cfg80211_escan: Connecting: status (3)
[ 114.346198] brcmf_cfg80211_scan: scan error (-11)
[ 115.935291] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 123.778629] brcmf_cfg80211_escan: Connecting: status (7)
[ 123.784173] brcmf_cfg80211_scan: scan error (-11)
[ 133.362434] ------------[ cut here ]------------
[ 133.362695] WARNING: CPU: 0 PID: 464 at /build/linux-raspi2-ocgtfH/linux-raspi2-4.4.0/net/wireless/sme.c:981 cfg80211_connect
+0x220/0x24c [cfg80211]()
[ 133.362706] Modules linked in: brcmfmac brcmutil cfg80211 joydev i2c_bcm2708 bcm2835_gpiomem uio_pdrv_genirq uio ip_tables x_
tables
[ 133.362764] CPU: 0 PID: 464 Comm: wpa_supplicant Not tainted 4.4.0-1019-raspi2 #25-Ubuntu
[ 133.362773] Hardware name: BCM2709
[ 133.362808] [<80111f34>] (unwind_backtrace) from [<8010d194>] (show_stack+0x20/0x24)
[ 133.362829] [<8010d194>] (show_stack) from [<8056158c>] (dump_stack+0xc8/0x10c)
[ 133.362853] [<8056158c>] (dump_stack) from [<80124644>] (warn_slowpath_common+0x94/0xc4)
[ 133.362874] [<80124644>] (warn_slowpath_common) from [<80124778>] (warn_slowpath_null+0x2c/0x34)
[ 133.363079] [<80124778>] (warn_slowpath_null) from [<7f09fb6c>] (cfg80211_connect+0x220/0x24c [cfg80211])
[ 133.363454] [<7f09fb6c>] (cfg80211_connect [cfg80211]) from [<7f0bb280>] (cfg80211_mgd_wext_connect+0x11c/0x17c [cfg80211])
[ 133.363829] [<7f0bb280>] (cfg80211_mgd_wext_connect [cfg80211]) from [<7f0bb638>] (cfg80211_mgd_wext_siwessid+0xf4/0x160 [cfg80211])
[ 133.364200] [<7f0bb638>] (cfg80211_mgd_wext_siwessid [cfg80211]) from [<7f0ba7d0>] (cfg80211_wext_siwessid+0x30/0x44 [cfg80211])
[ 133.364400] [<7f0ba7d0>] (cfg80211_wext_siwessid [cfg80211]) from [<809ce504>] (ioctl_standard_iw_point+0x1a8/0x3b8)
[ 133.364423] [<809ce504>] (ioctl_standard_iw_point) from [<809ce804>] (ioctl_standard_call+0xac/0xfc)
[ 133.364444] [<809ce804>] (ioctl_standard_call) from [<809cebf0>] (wext_handle_ioctl+0x25c/0x288)
[ 133.364466] [<809cebf0>] (wext_handle_ioctl) from [<808adb58>] (dev_ioctl+0x548/0x838)
[ 133.364490] [<808adb58>] (dev_ioctl) from [<808736b4>] (sock_ioctl+0x16c/0x2a0)
[ 133.364512] [<808736b4>] (sock_ioctl) from [<802be058>] (do_vfs_ioctl+0x438/0x664)
[ 133.364533] [<802be058>] (do_vfs_ioctl) from [<802be300>] (SyS_ioctl+0x7c/0x8c)
[ 133.364554] [<802be300>] (SyS_ioctl) from [<80108d00>] (ret_fast_syscall+0x0/0x1c)
[ 133.364648] ---[ end trace 519485581e0b69c4 ]---
[ 133.558766] brcmf_run_escan: error (-52)
[ 133.562890] brcmf_cfg80211_scan: scan error (-52)
[ 133.568997] brcmf_run_escan: error (-52)
[ 133.573087] brcmf_cfg80211_scan: scan error (-52)
[...

Read more...

Oliver Grawert (ogra) wrote :

the firstboot software is called subiquity ... the binary is called console-conf, console-conf creates a netplan config at the end of its run ... i see the oops long before console-conf starts though, during the boot messages.
perhaps not seeing the wlan device is simply fallout of the oops here.

Paolo Pisati (p-pisati) wrote :

http://people.canonical.com/~ppisati/lp1630586/pi3-newbsp.img.xz

here's today's ubuntu-core edge with a new kernel - with this image[*] i was unable to reproduce the oops anymore, can i get some testing?

*: i flashed it +10 times and booted on a raspi3

Oliver Grawert (ogra) wrote :

i tried the kernel from xenial-proposed and the oops is gone with that one

Paolo Pisati (p-pisati) on 2016-11-22
Changed in linux-raspi2 (Ubuntu):
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers