[BPI-R3] [Solved] Issue with wifi

Hi,

I just started to configure openwrt and I noticed that I cannot enable wifi:

root@OpenWrt:/# uci show wireless
uci: Entry not found

I also think that there is something odd in logs:

[   36.454476] /../mt_wifi/embedded/mcu/andes_core.c:956 assert FALSEfailed
[   36.461165] CPU: 0 PID: 4331 Comm: ifconfig Tainted: P                  5.4.171 #0
[   36.468709] Hardware name: Bananapi BPI-R3 (DT)
[   36.473220] Call trace:
[   36.475657]  dump_backtrace+0x0/0x120
[   36.479302]  show_stack+0x14/0x20
[   36.482603]  dump_stack+0xb4/0xf4
[   36.486099]  AndesSendCmdMsg+0x764/0xdb8 [mt_wifi]
[   36.491001]  chip_cmd_tx+0x40/0x50 [mt_wifi]
[   36.495330]  MtCmdFwStartReq+0xc4/0x160 [mt_wifi]
[   36.500084]  ShowHeraRelatedInfoProc+0xed0/0x2880 [mt_wifi]
[   36.505704]  mt_load_fw+0x10c/0x2f0 [mt_wifi]
[   36.510111]  NICLoadFirmware+0xc/0x18 [mt_wifi]
[   36.514690]  WfMcuInit+0x184/0x410 [mt_wifi]
[   36.519011]  WfInit+0x5c/0x290 [mt_wifi]
[   36.522984]  mt_wifi_init+0x338/0x688 [mt_wifi]
[   36.527564]  mt_wifi_open+0x114/0x218 [mt_wifi]
[   36.532145]  virtual_if_init_handler+0x40/0xa8 [mt_wifi]
[   36.537504]  RTMP_COM_IoctlHandle+0x87c/0x19c8 [mt_wifi]
[   36.542865]  main_virtual_if_open+0x8c/0x1c0 [mt_wifi]
[   36.547987]  __dev_open+0xcc/0x150
[   36.551372]  __dev_change_flags+0x134/0x198
[   36.555537]  dev_change_flags+0x20/0x60
[   36.559356]  devinet_ioctl+0x3e8/0x748
[   36.563089]  inet_ioctl+0x1f4/0x370
[   36.566562]  sock_do_ioctl+0x48/0x2c0
[   36.570208]  sock_ioctl+0x318/0x518
[   36.573682]  do_vfs_ioctl+0xa4/0xb28
[   36.577240]  ksys_ioctl+0x44/0x90
[   36.580539]  __arm64_sys_ioctl+0x1c/0xb8
[   36.584446]  el0_svc_common.constprop.2+0x7c/0x110
[   36.589219]  el0_svc_handler+0x20/0x80
[   36.592951]  el0_svc+0x8/0x1c8
[   36.596017] WiFi@C03L1,load_fw_v1() 888: load fw fail
[   36.601058] WiFi@C03L1,mt_load_fw() 1344: fw download fail
[   37.585367] 8021q: adding VLAN 0 to HW filter on device lan5
[   37.621976] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.631135] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.643459] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.652431] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.661454] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.692205] 7986@C12L1ra0,rt28xx_ap_ioctl() 870: interface is down, cmd [8be2] return!!!
[   37.715679] br-lan: port 1(lan1) entered disabled state
[   37.726334] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode

more logs here: https://pastebin.com/Szuz6qHk and here: https://pastebin.com/sAFNp6SA

I am tried booting from sdcard(image from Banana Pi BPI-R3 OpenWRT image), nand, and nor. Always the same. I am running OpenWrt 21.02-SNAPSHOT

What could be the reason?

There has not been support for the BananaPi R3 in OpenWrt 21.02. Hence I assume what you are seeing is SinoVoip’s build of MediaTek’s proprietary SDK (which is based on OpenWrt, similar to e.g. how Ubuntu or Raspbian is based on Debian).

Please try booting from the SD card image which you can get from downloads.openwrt.org , you will need to write it to the SD card either using wipefs and dd on the console or using a tool like Balena Etcher. If the board doesn’t start from the SD card image, make sure the little switches are all in the correct position to select booting from SD card.

1 Like

That didn’t help much. uci show wireless output was still empty. However, I came across this: https://github.com/openwrt/mt76/issues/702

After disconnecting the uart and power cycle the board the wifi appeared :slight_smile:

Thanks for the help!