avafinger / bpi-m64-firmware

Banana Pi M64 firmware (eMMC, Wifi, bluetooth, GbE, OV5640)
27 stars 9 forks source link

New Kernel Wi-Fi AP6212 driver is no good. #8

Closed JimmyChangJY closed 7 years ago

JimmyChangJY commented 7 years ago

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
JimmyChangJY commented 7 years ago

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
avafinger commented 7 years ago

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.

avafinger commented 7 years ago

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

avafinger commented 7 years ago

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.

JimmyChangJY commented 7 years ago

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?

avafinger commented 7 years ago

Please, run the script and check again: https://github.com/avafinger/bpi-m64-firmware/commit/c439b5be30dc4606f56d48d2c50a9b0332ad4fd9

JimmyChangJY commented 7 years ago

:+1: FYI In the C439b5b 91 line

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

avafinger commented 7 years ago

Fixed, thanks.

JimmyChangJY commented 7 years ago

GOOD for you !! avafinger