iMX6 YOCTO 4.1.15-1.2.0 doesn't generate bcmdhd.ko (Murata drivers)

cancel
Showing results for 
Search instead for 
Did you mean: 

iMX6 YOCTO 4.1.15-1.2.0 doesn't generate bcmdhd.ko (Murata drivers)

2,867 Views
joanllopart
Contributor II

Hi,

We really need help. We had YOCTO 3.14.52-1.1.0 with MURATA Wi-Fi drivers working well:

(i.MX 6 Series Software and Development Tool|NXP )

root@imx6ulevk:~# find / -name "*bcmdhd*" -print | sort

/lib/firmware/bcm/1BW_BCM43340/bcmdhd.1BW.OOB.cal

/lib/firmware/bcm/1BW_BCM43340/bcmdhd.1BW.SDIO.cal

/lib/firmware/bcm/1BW_BCM43340/fw_bcmdhd.bin

/lib/firmware/bcm/1BW_BCM43340/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/1DX_BCM4343W/bcmdhd.1DX.OOB.cal

/lib/firmware/bcm/1DX_BCM4343W/bcmdhd.1DX.SDIO.cal

/lib/firmware/bcm/1DX_BCM4343W/fw_bcmdhd.bin

/lib/firmware/bcm/1DX_BCM4343W/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/SN8000_BCM43362/bcmdhd.SN8000.OOB.cal

/lib/firmware/bcm/SN8000_BCM43362/bcmdhd.SN8000.SDIO.cal

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd.bin

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd_apsta.bin

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/ZP_BCM4339/bcmdhd.ZP.OOB.cal

/lib/firmware/bcm/ZP_BCM4339/bcmdhd.ZP.SDIO.cal

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd.bin

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd_apsta.bin

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd_mfgtest.bin

/lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/net/wireless/bcmdhd
/lib/modules/3.14.52-1.1.0_ga+g5f6f0a5/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko

/sys/bus/platform/devices/bcmdhd_wlan.16

/sys/devices/soc0/bcmdhd_wlan.16

root@imx6ulevk:~#

Now, we have upgrade to YOCTO 4.1.15-1.2.0 and, now, when we compile it, the file bcmdhd.ko is not generated.

Why?

18:52:02 root@mi_imx6ul:~> find / -name "*bcmdhd*" -print | sort

/lib/firmware/bcm/1BW_BCM43340/bcmdhd.1BW.OOB.cal

/lib/firmware/bcm/1BW_BCM43340/bcmdhd.1BW.SDIO.cal

/lib/firmware/bcm/1BW_BCM43340/fw_bcmdhd.bin

/lib/firmware/bcm/1BW_BCM43340/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/1DX_BCM4343W/bcmdhd.1DX.OOB.cal

/lib/firmware/bcm/1DX_BCM4343W/bcmdhd.1DX.SDIO.cal

/lib/firmware/bcm/1DX_BCM4343W/fw_bcmdhd.bin

/lib/firmware/bcm/1DX_BCM4343W/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/SN8000_BCM43362/bcmdhd.SN8000.OOB.cal

/lib/firmware/bcm/SN8000_BCM43362/bcmdhd.SN8000.SDIO.cal

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd.bin

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd_apsta.bin

/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd_mfgtest.bin

/lib/firmware/bcm/ZP_BCM4339/bcmdhd.ZP.OOB.cal

/lib/firmware/bcm/ZP_BCM4339/bcmdhd.ZP.SDIO.cal

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd.bin

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd_apsta.bin

/lib/firmware/bcm/ZP_BCM4339/fw_bcmdhd_mfgtest.bin

/sys/bus/platform/devices/bcmdhd_wlan@0

/sys/bus/platform/drivers/bcmdhd_wlan

/sys/bus/platform/drivers/bcmdhd_wlan/bcmdhd_wlan@0

/sys/devices/platform/bcmdhd_wlan@0

/sys/devices/platform/regulators/regulators:fixedregulator@100/regulator/regulator.5/bcmdhd_wlan@0-wlreg_on

/sys/firmware/devicetree/base/bcmdhd_wlan@0

/sys/kernel/debug/regulator/wlreg_on/bcmdhd_wlan@0-wlreg_on

/sys/module/bcmdhd

/var/lib/dpkg/info/firmware-bcmdhd.list

/var/lib/dpkg/info/firmware-bcmdhd.md5sums

18:53:15 root@mi_imx6ul:~>

Someone with the same problem? thanks for your help and time!

Labels (2)
0 Kudos
5 Replies

629 Views
xiaobanwu
Contributor I

I finally got the bcmdhd.ko file.

1. bitbake -c menuconfig linux-imx

    In the Device Drivers->Network device support ->Wireless LAN->Broadcom FullMAC wireless cards support , enable bcmdhd and sdio, with all the others blank(otherwise in my case, those options just make the driver not work on imx6q)

2. cp -f <YOCTO BUILD>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/.config <YOCTO BUILD>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/source/arch/arm/configs/imx_v7_defconfig

3. add the following at the end of linux-imx_4.1.15.bb, the reason is that the do_configure() will override the generated .config file which will make step 1 useless.

linux-imx_4.1.15.bb
addtask copy_defconfig_again after do_configure before do_compile
do_copy_defconfig_again () {
# copy latest imx_v7_defconfig to use
cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig

4. bitbake -f -c copy_defconfig linux-imx

5. bitbake core-image-base

6. The bcmdhd.ko can be found at <YOCTO BUILD>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/drivers/net/wireless/bcmdhd

Cheers,

Xiaoban

0 Kudos

629 Views
xiaobanwu
Contributor I

Oh, sorry, I forgot to mention that in <YOCTO BUILD>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/build/source/drivers/net/wireless/bcmdhd/Makefie, in default "DRIVER_TYPE ?= y", but I think somehow the configuration from the generated .config file can not change it to "m" during the make process, so I mannually changed it into "DRIVER_TYPE ?= m" for safe.

0 Kudos

629 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi joanllopart

please check Broadcom firmware packages on
Radio Modules (11)
http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

629 Views
xiaobanwu
Contributor I

Hi Igor,

I am having a similar problem. It can only build the bcmdhd.o, but not the bcmdhd.ko. And the link you provided has 404 error now.

Thanks very much for your help and time.

Best wishes,

Xiaoban

0 Kudos

629 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos