Need Help with M2U as WIFI Access Point

I followed the instructions here and in the forum and was not able to see the SSID from my mobile. I then followed the instructions in section #4 here: BananaPi BPI-M64(A64) New Image Android 8.1 & Ubuntu Release 2018-08-17 and was able to see it!

The problem is once I try to connect I see the following in ‘dmesg’:

[ 2881.570166] INTERNAL ERROR: FIRMWARE HALTED : set BUS DOWN

and the SSID disappears from my client machines even though it appears that hostapd is still running. If I do an ‘ifconfig’ the wlan0 interface is gone. Everything is fine until I attempt to connect.

It looks like a pretty hard error and not something related to a config file but just in case here they are:

Here is the full relevant ‘dmesg’:

[ 2881.570166] INTERNAL ERROR: FIRMWARE HALTED : set BUS DOWN
[ 2881.575165] CONSOLE: c/mc deauth_reason on STA BSS?
[ 2881.575182] CONSOLE: 000000.547 wl0: wl_open
[ 2881.575191] CONSOLE: 000000.648 wl0: wlc_enable_probe_req: state down, deferring setting of host flags
[ 2881.575197] CONSOLE: 000000.689 wl_nd_ra_filter_clear_cache: Enter..
[ 2881.575202] CONSOLE: 000079.045
[ 2881.575210] CONSOLE: FWID 01-3621395e
[ 2881.575215] CONSOLE: flags 1
[ 2881.575219] CONSOLE: 000079.045
[ 2881.575227] CONSOLE: TRAP c(7f938): pc 241e, lr 2409, sp 7f98c, cpsr 8000000c, spsr 81000010
[ 2881.575236] CONSOLE: 000079.046   r0 7d81c, r1 0, r2 3d3e4, r3 3cf38, r4 8c, r5 3d358, r6 7d7a0
[ 2881.575246] CONSOLE: 000079.046   r7 7d824, r8 7d82c, r9 fffffffc, r10 0, r11 418, r12 884
[ 2881.575274] CONSOLE: 000079.046
[ 2881.575283] CONSOLE:    sp+0 0007d81c 00000000 0003d3e4 0003cf38
[ 2881.575291] CONSOLE: 000079.046   sp+10 00000884 00002409 0000241e 81000010
[ 2881.575295] CONSOLE:
[ 2881.575300] CONSOLE: 000079.046 sp+14 00002409
[ 2881.575306] CONSOLE: 000079.046 sp+8c 0000c17d
[ 2881.575311] CONSOLE: 000079.046 sp+124 00018f85
[ 2881.575317] CONSOLE: 000079.046 sp+234 00000531
[ 2881.575322] CONSOLE: 000079.046 sp+270 00000531
[ 2881.575328] CONSOLE: 000079.046 sp+274 00019abd
[ 2881.575333] CONSOLE: 000079.046 sp+348 0001c001
[ 2881.575339] CONSOLE: 000079.046 sp+450 00000901
[ 2881.575344] CONSOLE: 000079.046 sp+458 0000a6e3
[ 2881.575350] CONSOLE: 000079.046 sp+554 0001d61b
[ 2881.575355] CONSOLE: 000079.046 sp+58c 0002305d
[ 2881.575361] CONSOLE: 000079.046 sp+5b4 00008121
[ 2881.575366] CONSOLE: 000079.046 sp+5d4 000026fd
[ 2881.575372] CONSOLE: 000079.046 sp+5e4 00002041
[ 2881.575377] CONSOLE: 000079.046 sp+630 000029db
[ 2881.575382] CONSOLE: 000079.047 sp+650 000029db
[ 2881.575391] dhdsdio_checkdied: msgtrace address : 0x00000000
               console address  : 0x0007DEBC
               Assrt not built in dongle
               Dongle trap type 0xc @ epc 0x241e, cpsr 0x8000000c, spsr 0x81000010, sp 0x7f98c,lp 0x2409, rpc 0x241e Trap offset 0x7f938, r0 0x7d81c, r1 0x0, r2 0x3d3e4, r3 0x3cf38, r4 0x8c, r5 0x3d358, r6 0x7d7a0, r7 0x7d824


[ 2881.575513] dhdsdio_dpc: failed backplane access over SDIO, halting operation

Any idea what is happening here?

Here is the load module switches:

root@MyShowStudio:/var/lib/bananapi/bpi-init.d# more S10-bpi-hw-wifi.sh
#!/bin/bash
BOARD=$(bpi-hw)

load_modules()
{
  case ${BOARD} in
  bpi-m3)
    modprobe bcmdhd
    ;;
  bpi-m64)
    modprobe bcmdhd
    ;;
  bpi-m2m)
    modprobe bcmdhd
    ;;
  bpi-m2u)
    modprobe bcmdhd op_mode=2 firmware_path=/lib/firmware/ap6212/fw_bcm43438a1.bin
    ;;
  bpi-m2p)
    modprobe bcmdhd
    ;;
  bpi-m2)
    modprobe bcmdhd
    ;;
  bpi-m1p)
    modprobe ap6211
    ;;
  *)
    ;;
  esac
}

#main
load_modules

And here is the /etc/hostapd.conf:

root@MyShowStudio:/var/lib/bananapi/bpi-init.d# cat /etc/hostapd.conf
interface=wlan0
ssid=MyShowStudio
hw_mode=g
channel=6
driver=nl80211
#bridge=br0
logger_syslog=0
logger_syslog_level=0
wmm_enabled=1
ieee80211n=1
wpa=2
preamble=1
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
#noscan=1
#ht_capab=[HT40-][SHORT-GI-40][SHORT-GI-40][DSSS_CCK-40]
#country_code=US
#ieee80211d=1

#5 Ghz example config
#hw_mode=a
#channel=108
#ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]

Hi, I also have this problem (intermittently): did anyone get to the bottom of it? Everything gets pretty warm on my board, so suspecting that it may be hardware related…

Sample dmesg output:

[ 1584.975241] INTERNAL ERROR: FIRMWARE HALTED : set BUS DOWN

[ 1584.976412] CONSOLE:  exceed:0

[ 1584.976426] CONSOLE: 000000.026 reclaim section 1: Returned 78856 bytes to the heap

[ 1584.976438] CONSOLE: 000001.694 wl0: wl_open

[ 1584.976451] CONSOLE: 000001.718 wl0: wlc_enable_probe_req: state down, deferring setting of host flags

[ 1584.976465] CONSOLE: 000001.755 wl0: bc/mc deauth_reason on STA BSS?

[ 1584.976476] CONSOLE: 000001.874 wl0: wl_open

[ 1584.976489] CONSOLE: 000001.898 wl0: wlc_enable_probe_req: state down, deferring setting of host flags

[ 1584.976503] CONSOLE: 000001.954 wl_nd_ra_filter_clear_cache: Enter..

[ 1584.976516] CONSOLE: 000106.908 internal error, 2776840888/106908

[ 1584.976525] CONSOLE: 000106.908

Hello, how about replace your board ap6212 firmware?

1 Like

Aha, thanks for this! I hadn’t found this suggestion: I will give it a try.

Seems to have fixed it for me… it’s been up and accepting connections for over an hour now. Thanks for the help!

I have the same issue… wifi dies after some time. dmesg shows: [ 3430.218052] dhdsdio_dpc: failed backplane access over SDIO, halting operation [ 3436.001769] dhd_prot_ioctl : bus is down. we have nothing to do [ 3436.001846] dhd_check_hang: Event HANG send up due to re=0 te=0 e=-1 s=0