usb接口的WIFI
首先可以接一个u盘来检测接口驱动是否有问题
还有SDIO类型的等
******linux编译wifi驱动RTL8188EUS*******
driver //驱动代码
修改Makefile文件 drivers/rtl8188EUS_linux_v4.3.0.4_11485.20140519/Makefile
CONFIG_PLATFORM_ARM_S3C2440 = y
ifeq ($(CONFIG_PLATFORM_ARM_S3C6K4), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-none-linux-gnueabi-
KVER := 2.6.32.2
KSRC ?= /home/yyz/mini2440/linux-2.6.32.2
endif
make
cp 8188eu.ko /home/yyz/nfsroot
wpa_supplicant_hostapd //联网使用的工具
/home/yyz/smbshare/RTL8188EUS_linux_v4.3.0.4_11485.20140519/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_r7475.20130812/wpa_supplicant
vi Makefile
CC=arm-linux-gcc
make
cp wpa_supplicant /home/yyz/nfsroot
wireless_tools //WIFI网络的使用工具
/home/yyz/smbshare/RTL8188EUS_linux_v4.3.0.4_11485.20140519/wireless_tools/wireless_tools.30.rtl
vi Makefile
CC=arm-linux-gcc
make
cp iwlist /home/yyz/nfsroot
# ifconfig -a
# ifconfig wlan0 up
# ./iwlist wlan0 sc
# udhcpc -i wlan0
# ping -I wlan0 8.8.8.8
cat examples/tmp.conf
/****************************************************************/
ctrl_interface=/var/run/wpa_supplicant update_config=1
ctrl_interface_group=root ap_scan=1
network={
ssid="RT-ICS"
psk="YZtek654321"
key_mgmt=WPA-PSK
}
/****************************************************************/
insmod 8188eu.ko
ifconfig wlan0 up wpa_supplicant -d -Dwext -iwlan0 -c/tmp.conf -B
udhcpc -i wlan0
阅读(1115) | 评论(0) | 转发(0) |