Bananian

mainline kernel - support for ap6210 will be missed

4 2099
dkl42  
Edited by dkl42 at Fri Nov 6, 2015 15:57

Hi,

after setup a new Banana Pro with a bananian 15.08 image the onboard wlan was been worked fine.

Then I switched to the mainline kernel 4.2.0 and have the problem, that the wlan driver don't been loaded.
If there any change to activate it again?

The steps which was been done by me:

- copy the given image to a fresh sd card
- boot from the card, config the system (BananaPro with OTG), update the system (apt-get update && apt-get upgrade)
- reboot
- config the wlan0 interface
- reboot
- check the wlan0 interface (and it was already connected to my local wlan!)
- update the kernel to mainline (apt-get install linux-image-4.2.0-...)
- reboot
- check the configuration with bananian-config, bananian-hardware and so on

And the wlan interface doesn't exist any more.

Who have an idea how I can activate the wlan0 interface again?

Thanks in advance
Dieter

igorpec  
Probably the driver is brcmfmac

dkl42  
Thanks for the remember, but thats not the point.

The first point which I don't understand is the given machine model. dmesg shown it as 'LeMaker Banana Pi' and not as the expected 'LeMaker Banana Pro'.

-> the kernel will be used the wrong dtb

After I overwrite the banana pi dtb with the given banana pro dtb, the name of the machine model name was changed to the correct one. And the brcmfmac was been loaded ... with some error messages.

brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

How I can fix the machine model name without the hard way to overwrite the dtb?
And what are the next stepts to activate the wlan0 interface?

PS: with the patched dtb the brcmfmac and also the brcmfutil will be shown by lsmod

Thanks for your support.
Dieter

igorpec  
Automatic DTB is usually defined within u-boot but since some boards can share u-boot you need to fix uboot in boot script.

If you wan't to do it properly you need to build a dedicated u-boot or fix loading of proper DTB in boot script.

I am not aware of those error messages - i use different kernel and don't even own a Banana PRO. Only normal one and Cubietruck which has almost identical wireless chip.

Type iwconfig and your wlan0 adaptor should give you some extra info if properly initialized. If not, than there must be some troubles with kernel.

If everything is ok, use wlan0 the normal way.

dkl42  
Yes, that was the point. After I've change the entry in the boot.cmd the kernel was using the correct dtb.
  1. nano boot.cmd
  2. -> replace ${fdtfile} with "dtb/sun7i-a20-bananapro.dtb" (without the ")

  3. mkimage -C none -A arm -T script -d boot.cmd boot.scr
Copy the Code

The next step was the fix for the wlan connection. The generic driver for the brcmfmac is included, but the chip specific part will been missed.

It can be taken from the cubieboard.
  1. wget -O /lib/firmware/brcm/brcmfmac43362-sdio.txt http://dl.cubieboard.org/public/Cubieboard/benn/firmware/ap6210/nvram_ap6210.txt
Copy the Code

Now, after another reboot, the wlan connection can be configure and used.

Thanks for the help.

PS: On my way to the solution I've seen another image. "armbian". OK, the hardware detection must be done manually, too. But the wlan and UART ports works without patches. Maybe I should move ...

You have to log in before you can reply Login | Sign Up

Points Rules