Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Wi-Fi Bluetooth for Linux Forum Discussions

lida_4439816
Level 2
Level 2

Recently,i just deal with a project with bcm43438 chip and i want to use it in linux kernel 3.18+,i cant find the suitable driver for the chip, does someone have idea about it?@hihyc_1175151@ScKe_1713761

0 Likes
1 Solution
RoCh_2868046
Level 4
10 likes received First like received Welcome!
Level 4

Hello,

Moving to FMAC is probably the best option for you, as ZhengbaoZ_96 mentioned. You will need to backport the driver to your Linux version, but FMAC comes with backport tool incorporated and it should not be very difficult. Please refer to this guide: Getting started on Linux Driver Backporting - FMAC   for the steps. You can backport to any 3.0+ Linux kernels.

I hope this helps.

View solution in original post

14 Replies
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

hello:

We supports many chips in fmac way, please take a look at link, here has a fmac release for linux solution:

Wi-Fi/Bluetooth for Linux and Android

0 Likes
lida_4439816
Level 2
Level 2

i have saw that information before, and that websit provide driver with kernel 4.1+, maybe i need a driver with 3.18-.last week i try to add the driver bcmdhd.1.201.59.x.cn to my kernel but i failed for many files are changed.

0 Likes
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

Hello:

     I think you need to raise cases from module partner or distributor for the specific dhd release.

0 Likes
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

and  please reach out to the module Partner you are working with as they will be able to help you with the DHD driver.

0 Likes
RoCh_2868046
Level 4
10 likes received First like received Welcome!
Level 4

Hello,

Moving to FMAC is probably the best option for you, as ZhengbaoZ_96 mentioned. You will need to backport the driver to your Linux version, but FMAC comes with backport tool incorporated and it should not be very difficult. Please refer to this guide: Getting started on Linux Driver Backporting - FMAC   for the steps. You can backport to any 3.0+ Linux kernels.

I hope this helps.

lida_4439816
Level 2
Level 2

thank you for your help, now i have compile the kernel and the drivers modules.but something is wrong with AP6212.when i reset the borad and insmod the driver modules ,the log is below:

mmc2: queuing unknown CIS tuple 0x80 (2 bytes)

mmc2: queuing unknown CIS tuple 0x80 (3 bytes)

mmc2: queuing unknown CIS tuple 0x80 (3 bytes)

mmc2: queuing unknown CIS tuple 0x80 (7 bytes)

mmc2: queuing unknown CIS tuple 0x81 (9 bytes)

mmc2: new high speed SDIO card at address 0001

brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001

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

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

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

someone knows what are that information means?

0 Likes
EvSt_281971
Level 2
First like received First like given
Level 2

you use fw (brcmfmac43430-sdio.bin) and nvram (brcmfmac43430-sdio.txt) from ap6212 bsp?

0 Likes
lida_4439816
Level 2
Level 2

yes i use the bsp from cypress website(cypress-firmware-v4.14.77-2019_0503),in the package i find the brcmfmac43430-sdio.bin but i cant find brcmfmac43430-sdio.txt, so i download another txt from internet and then i got the log:

brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001

brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May  2 2019 02:39:18 version 7.45.98.83 (r714225 CY) FWID 01-e539531f

and then there is no messages more , i dont know what happenned.is that means i got a wrong bin file?

0 Likes
lida_4439816
Level 2
Level 2

yes i use the bsp from cypress website(cypress-firmware-v4.14.77-2019_0503),in the package i find the brcmfmac43430-sdio.bin but i cant find brcmfmac43430-sdio.txt, so i download another txt from internet and then i got the log:

brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001

brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May  2 2019 02:39:18 version 7.45.98.83 (r714225 CY) FWID 01-e539531f

and then there is no messages more , i dont know what happenned.is that means i got a wrong bin file?

0 Likes
EvSt_281971
Level 2
First like received First like given
Level 2

you have fw and nvram from bsp?

0 Likes
lida_4439816
Level 2
Level 2

i get the .bin file for cypress web,but i have no nvram file, i just download a nvram file for internet but i dont sure it is right. now i can see the wlan0,

wlan0     Link encap:Ethernet  HWaddr 18:93:7F:36:36:0E 

          BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

but if i config it : ifcongif wlan0 up , my borad will lose power.

0 Likes
lida_4439816
Level 2
Level 2

can you help me with another problen? now i insmod all the driver modules and when i ifconfig -a , i can see the wlan0:

wlan0     Link encap:Ethernet  HWaddr 18:93:7F:36:36:0E 

          BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

but if i use ifconfig wlan0 up,something worng happened,the log is:

ifconfig: SIOCSIFFLAGS: Input/output error

do you know what is that means?

0 Likes
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

Hello:

    I think you need to get the correct nvram from AP6212 vendor.

second:  after first step you need to capture more logs by add debug = 0x in the insmod process.

0 Likes
lida_4439816
Level 2
Level 2

by now , i use the hostapd to config the wlan0, and when i config it ,i got the log:

~ # hostapd -B /etc/wireless/hostapd.conf

Configuration file: /etc/wireless/hostapd.conf

IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

wlan0: Could not connect to kernel driver

Using interface wlan0 with hwaddr 18:93:7f:36:36:0e and ssid "AP6212"

IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

wlan0: interface state UNINITIALIZED->ENABLED

wlan0: AP-ENABLED

and now i can see the wifi hotpot on my phone, but i cant connect to it.maybe i see more time to fix it.

0 Likes