avafinger / bpi-m64-firmware

Banana Pi M64 firmware (eMMC, Wifi, bluetooth, GbE, OV5640)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Kernel Wi-Fi AP6212 driver is no good.

JimmyChangJY opened this issue · comments

I follow the guide. And build the whole system again.
BTW The new system can run Chromium smoothly.

But I found the Wi-Fi is not working.
So I update the driver frome below
https://github.com/BPI-SINOVOIP/BPI_WiFi_Firmware/tree/master/ap6212
Right now the wifi work perfectly.

Below is before I fix the driver dmesg log.

dmesg|grep fail


[   15.652584] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   15.652589] _dhdsdio_download_firmware: dongle image file download failed
[   15.652822] dhd_open : wl_android_wifi_on failed (-35)
[   16.079761] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   16.079767] _dhdsdio_download_firmware: dongle image file download failed
[   16.080011] dhd_open : wl_android_wifi_on failed (-35)
[   26.674347] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   26.674353] _dhdsdio_download_firmware: dongle image file download failed
[   26.674610] dhd_open : wl_android_wifi_on failed (-35)
[   27.103108] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   27.103114] _dhdsdio_download_firmware: dongle image file download failed
[   27.103350] dhd_open : wl_android_wifi_on failed (-35)
[   37.508481] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   37.508486] _dhdsdio_download_firmware: dongle image file download failed
[   37.508727] dhd_open : wl_android_wifi_on failed (-35)
[   37.931590] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   37.931596] _dhdsdio_download_firmware: dongle image file download failed
[   37.931838] dhd_open : wl_android_wifi_on failed (-35)
[   48.323145] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   48.323151] _dhdsdio_download_firmware: dongle image file download failed
[   48.323400] dhd_open : wl_android_wifi_on failed (-35)
[   48.745540] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   48.745546] _dhdsdio_download_firmware: dongle image file download failed
[   48.745788] dhd_open : wl_android_wifi_on failed (-35)
[   59.155985] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[   59.155991] _dhdsdio_download_firmware: dongle image file download failed

dmesg|grep err

[   11.752994] dhd_deferred_work_init: work queue initialized 
[   11.928859] dhd_module_init: Exit err=0

What is below error message present???


ubuntu@Jimmy:~$ dmesg|grep err
[    5.751011] kvm [1]: interrupt-controller@1c84000 IRQ25
[    8.211648] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 52, RTO !!
[    8.212458] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 52, RTO !!
[    8.216662] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 8, RTO !!
[    8.217473] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 5, RTO !!
[    8.218283] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 5, RTO !!
[    8.219089] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 5, RTO !!
[    8.219896] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 5, RTO !!
[    8.220708] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 55, RTO !!
[    8.221518] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 55, RTO !!
[    8.222327] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 55, RTO !!
[    8.223134] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 55, RTO !!
[    9.089670] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 52, RTO !!
[    9.090477] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 52, RTO !!
[    9.094716] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 8, RTO !!
[    9.095523] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 5, RTO !!
[    9.096327] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 5, RTO !!
[    9.097132] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 5, RTO !!
[    9.097936] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 5, RTO !!
[    9.098746] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 55, RTO !!
[    9.099553] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 55, RTO !!
[    9.100360] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 55, RTO !!
[    9.101164] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 55, RTO !!
[    9.102012] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 1, RTO !!
[   11.001346] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 52, RTO !!
[   11.014696] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 52, RTO !!
[   11.069318] sunxi-mmc 1c10000.sdmmc: smc 2 p1 err, cmd 8, RTO !!
[   11.313676] dhd_deferred_work_init: work queue initialized 
[   11.320241] dhd_module_init: Exit err=0

Thanks for the info, you must have a new revision board with updated Wifi chip. My board is rather old.
You have A1 chip.

[ 15.652584] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin

[ 8.211648] sunxi-mmc 1c11000.sdmmc: smc 1 p2 err, cmd 52, RTO !!
Don't worry, It is not really an error per si, it's trying to detect some mmc memory type.

Can you please check if BT (Bluetooth) is working with this A1 chip?

BT will possibly not work if you have not manually changed it to load the A1 firmware, so i just made this script to do it, please try: https://github.com/avafinger/bpi-m64-firmware#things-you-should-do-after-flashing-the-os-image

Note: If BT is not working it will eat a lot of CPU if you try to use BT.

BT also need to modify new driver
https://github.com/BPI-SINOVOIP/BPI_WiFi_Firmware/tree/master/ap6212
And BT work smooth.

My wifi has new issue.
dmesg|grep fail
[ 673.825828] dhd_aoe_hostip_clr failed code -1
[ 673.825832] aoe_update_host_ipv4_table failed

I can see the whole wifi connecting info is correct.
DHCP setting can let me get the correct IP.
But I can't ping my router IP address.
Any Idea?

Please, run the script and check again: c439b5b

👍
FYI
In the C439b5b
91 line

  •    wget https://github.com/avafinger/bpm64-firmware/raw/master/update_wifi_bt.sh 
    

is wrong !

It should be
https://raw.githubusercontent.com/avafinger/bpi-m64-firmware/master/update_wifi_bt.sh

Fixed, thanks.

GOOD for you !!
avafinger