BBB TP-Link WL8200ND
From Wiki
Jump to navigationJump to search
Note: I never could get the adapter to actually associate on the network. I ended up acquiring a TP-Link TL-WN722N that was plug and play.
Edit ~/linux-dev/KERNEL/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c, adding the line for the WN8200ND at line 361.
Before:
{RTL_USB_DEVICE(0x2001, 0x330a, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2019, 0xab2b, rtl92cu_hal_cfg)}, /*Planex -Abocom*/ {RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ {RTL_USB_DEVICE(0x7392, 0x7822, rtl92cu_hal_cfg)}, /*Edimax -Edimax*/ {}
After:
{RTL_USB_DEVICE(0x2001, 0x330a, rtl92cu_hal_cfg)}, /*D-Link-Alpha*/ {RTL_USB_DEVICE(0x2019, 0xab2b, rtl92cu_hal_cfg)}, /*Planex -Abocom*/ {RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ {RTL_USB_DEVICE(0x2357, 0x0100, rtl92cu_hal_cfg)}, /*TP-Link WN8200ND*/ {RTL_USB_DEVICE(0x7392, 0x7822, rtl92cu_hal_cfg)}, /*Edimax -Edimax*/ {}
Edit ~/linux-dev/build_kernel.sh
Before:
export LINUX_GIT #@unset FULL_REBUILD FULL_REBUILD=1 if [ "${FULL_REBUILD}" ] ; then
After
export LINUX_GIT unset FULL_REBUILD #FULL_REBUILD=1 if [ "${FULL_REBUILD}" ] ; then
Rebuild the kernel:
./build_kernel.sh
When complete, copy the following files from the VM to the BBB (assuming ssh is running, and you can scp. Otherwise, figure a way to move them). You may wish to rename the original files on the BBB, first.
cd KERNEL/drivers/net/wireless/rtlwifi scp rtlwifi.ko root@bbb:/lib/modules/3.8.13-bone32/kernel/drivers/net/wireless/rtlwifi scp rtl8192c/rtl8192c-common.ko root@bbb:/lib/modules/3.8.13-bone32/kernel/drivers/net/wireless/rtlwifi/rtl8192c scp rtl8192cu/rtl8192cu.ko root@bbb:/lib/modules/3.8.13-bone32/kernel/drivers/net/wireless/rtlwifi/rtl8192cu
Connect the TP-Link WN82000ND to the USB port, and install the drivers:
modprobe rtl8192cu
Verify the driver loaded and found the WN8200ND:
dmesg
If found, the resulting output should look something like this:
... [839175.080125] cfg80211: Calling CRDA to update world regulatory domain [839175.239278] rtl8192cu 1-1:1.0: usb_probe_interface [839175.239348] rtl8192cu 1-1:1.0: usb_probe_interface - got id [839175.240340] rtl8192cu: Chip version 0x11 [839175.313294] rtl8192cu: MAC address: a0:f3:c1:26:0a:73 [839175.318739] rtl8192cu: Board Type 0 [839175.323171] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1 [839175.329839] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin [839175.339578] usbcore: registered new interface driver rtl8192cu [839175.375301] ieee80211 phy0: Selected rate control algorithm 'rtl_rc' [839175.381781] rtlwifi: wireless switch is on