Header Ads

Header Ads

Raspbian - rtl8192du driver Guide



Hi,

Lets talk about Raspberry PI 2/3 versions, it does lack of kernel headers and required packages for rtl8192du based wireless network card chipset. 
If you have this one chip on your wireless network card, and don't know 
how to make it work on Raspberry PI, this guide should help you.

What would we need to compile linux module driver for rtl8192du chipset:

Lets prepare our system!

Install build tools:
sudo apt-get install build-essential bc git dkms
Download and prepare Linux kernel source tree:
sudo su modprobe configs
cd /usr/src
git clone https://github.com/raspberrypi/linux.git
ln -s linux linux-headers-`uname -r`
cd linux
modprobe configs
zcat /proc/config.gz > .config
ln -s /usr/src/linux /lib/modules/`uname -r`/build
cd arch&& ln -s arm armv7l && cd ../
make mrproper && make oldconfig && make prepare && make modules_prepare

 Installing driver

Compile and install the driver:
sudo su
mkdir -p /root/sources
cd /root/sources
git clone https://github.com/lwfinger/rtl8192du.git
cd rtl8192du
make &&make install
insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/8192du.ko
sync&&reboot

Configure Wireless

Install required packages:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install wpasupplicant
Run this command and copy the output:
wpa_passphrase your_ssid your_slaptazodis
Edit the file /etc/network/interfaces.d/wifi
nano  /etc/network/interfaces.d/wifi
Put these contents, and only change ssid and psk to yours:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
 wpa-ssid "your_ssid"
 wpa-psk b2abb0fcd2f4527e11817de0823a57bb19ba4622f4595062c94ec4dd1370b5fe
 Save the file (Ctrl+O) and quit (CTRL+X), then run the following command to get connected:
/etc/init.d/networking restart

Now you can ping, for example.: the opendns server 8.8.8.8 to check if the internet/network/wifi is working.

No comments:

Copyright (c) 2012-2013 Unix Master. Powered by Blogger.