主机平台: UBUNTU14.04
硬件平台:明远智睿MY-IMX6-EK140P-6Y-256M-EMMC
内核版本 :linux-4.1.15
交叉编译链:arm-linux-gnueabihf-
文件系统:L4115-fsl-image-qt5-myimx6a7.tar.bz2 |
WIFI源码:rtl8723BU_WiFi_linux_v5.8.4_33660.20190516_COEX20181129-7272.tar.gz
BT源码:Linux_BT_USB_v3.10_20171108_8723BU_BTCOEX_20171128-6d50.tgz
1.BT
a.解压源码
tar xvf Linux_BT_USB_v3.10_20171108_8723BU_BTCOEX_20171128-6d50.tgz
cd Linux_BT_USB_v3.10_20171108_8723BU_BTCOEX_20171128-6d50/bluetooth_usb_driver
b.设置交叉编译环境变量
export ARCH=arm export CROSS_COMPILE=~/my-work/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- c.修改Makefile
...
KDIR := /home/linyn/my-work/imx6/4.1/wifi/linux-4.1.15
...
d.编译
make -j4
可以看到编译的出的rtk_btusb.ko
e.测试(复制zImage和模块rtk_btusb.ko到板子上) cp rtl8723b_fw rtl8723bu_config /lib/firmware/ insmod 8723bu.ko hciconfig hci0 up hciconfig hci0 piscan
hciconfig -a
hcitool scan
2:WIFI
a.解压源码
tar zxvf rtl8723BU_WiFi_linux_v5.8.4_33660.20190516_COEX20181129-7272.tar.gz
cd rtl8723BU_WiFi_linux_v5.8.4_33660.20190516_COEX20181129-7272
b.设置交叉编译环境变量
export ARCH=arm export CROSS_COMPILE=~/my-work/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- c.修改Makefile CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_NEW = y 。。。 。。。 ifeq ($(CONFIG_PLATFORM_NEW), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT ARCH := arm CROSS_COMPILE := ${CROSS_COMPILE} KSRC := /home/linyn/my-work/imx6/4.1/wifi/linux-4.1.15
endif d.编译 make -j4 可以看到编译的出的8723bu.ko e.测试(复制zImage和模块8723bu.ko到板子上) insmod 8723bu.ko wpa_passphrase MYZR-WIFI myzr2012 > /etc/wpa_supplicant.conf
wpa_supplicant -B -i wlan0 -D wext -c /etc/wpa_supplicant.conf
udhcpc -i wlan0
|