Jump to content
Sign in to follow this  

Enable the wireless AP function on pcDuino V2

Recommended Posts

pcDuino V2 has an on board wifi module already, the part number of this wifi module is rtl8188cus, which is different from the previous module rt5370st, after some research, this new wifi module also has AP function. Many people have done AP function with rtl8188 on Raspberry Pi, but it’s not working on pcDuino with the same method. In this tutorial, we are going to teach you how to enable wireless AP function on pcDuino V2.


Download software

1.Download tools software:

sudo apt-get update

sudo apt-get install git vim

sudo apt-get install isc-dhcp-server

2. Download source code for driver from official website:

wget ftp://WebUser:Lc9FuH5r@


3.Download header file for compiling the driver:

sudo apt-get install pcduino-linux-headers-3.4.29+      

cd  /usr/src/ linux-headers-3.4.29+/arch

cp  arm  armv7l  -rf

Note:  You will need to restart it after this line if you are using pcDuino Lite wifi, wait at the 3 second under u-boot, enter it, otherwise it can not be started properly.

setenv loglevel 8 ramfs


mount  /deV/nandd /mnt

cd  /mn lib/modules/3.4.29+/kernel/drivers

rm gpu –rf


4. Delete original “8188cu.ko”:

rm  /lib/modules/3.4.29+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko

rm  /lib/modules/3.4.29+/kernel/drivers/net/wireless/8192cu.ko

5. Compile installing driver:

unzip  RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip

cd   RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911

chmod +x install.sh

sudo ./install.sh

6. Installation finished:

ubuntu@ubuntu:~/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911$ lsmod

Module                  Size  Used by

8192cu                624916  0

sw_interrupt            2424  0

gpio                    4509  0

pwm                     5050  0

adc                     1671  0

hardwarelib             1551  4 sw_interrupt,gpio,pwm,adc

rt5370sta             616973  0


The built in hostapd in driver can’t support system service, now thanks to open source, some maker has made it system service supportive.

git clone https://github.com/jenssegers/RTL8188-hostapd

cd RTL8188-hostapd/hostapd

sudo make install

Install 8188′s hostapd:

cd  RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/wpa_supplicant_hostapd

tar xvf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz

cd  hostapd

sudo make install

Configure hostapd:

vim  /etc/hostapd/hostapd.conf

# Basic configuration


interface=wlan3  #it depends on your own connection





# WPA and WPA2 configuration











# Hardware configuration








service hostapd restart

Name this wifi AP as wifi, password as 12345678

Now you need to reset your wifi password, and you can find this wifi available, but if it’s not working, you need to configure your internet.

vim /etc/network/interfaces

auto wlan3

iface wlan3 inet static



service networking restart

Configure dhcp:

vim /etc/dhcp/dhcpd.conf #add it in the end

subnet netmask {


  option routers;

  option domain-name-servers;


service isc-dhcp-server restart

Set up startups

Dhcpd can start after hostapd started, hostapd can shut down after dhcpd shut down.

update-rc.d hostapd defaults 80 20

update-rc.d isc-dhcp-server defaults 90 10



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this