New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

B2 Wireless AP setup: RTL8188CUS

Got problems with your B2 or B3? Share and get helped!
Post Reply
tiddler
Posts: 32
Joined: 07 Apr 2009, 03:23

B2 Wireless AP setup: RTL8188CUS

Post by tiddler »

Can you assist in the setup of a B2 as a Wireless Access Point?

I've bought a USB Wifi adapter, which seems to register:
mybubba@b2:~$ lsusb
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN

I have done this:
apt-get install firmware-realtek

root@mybubba:/home/owner# lsmod
Module Size Used by
ipv6 247164 36
ipt_REJECT 2236 1
xt_state 800 4
xt_tcpudp 1808 7
iptable_filter 772 1
ipt_MASQUERADE 1160 1
iptable_nat 3220 1
ip_tables 11024 2 iptable_filter,iptable_nat
x_tables 12132 7 ipt_REJECT,xt_state,xt_tcpudp,iptable_filter,ipt_MASQUERADE,iptable_nat,ip_tables
nf_conntrack_irc 2912 0
nf_nat_ftp 1268 0
nf_nat 12278 3 ipt_MASQUERADE,iptable_nat,nf_nat_ftp
nf_conntrack_ipv4 9092 7 iptable_nat,nf_nat
nf_defrag_ipv4 848 1 nf_conntrack_ipv4
nf_conntrack_ftp 5128 1 nf_nat_ftp
nf_conntrack 47640 8 xt_state,ipt_MASQUERADE,iptable_nat,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp
fuse 61348 1
talitos 23848 0
mpc8xxx_wdt 3680 0

But I don't think the kernel module for the device has loaded.

How would I know the correct kernel module has loaded? Or should I be looking for some errors somewhere?

Also, my interfaces file just has the following. Do I need to add an entry for wlan0 ? Or if the correct kernel module loads, will that file be updated automatically?

root@mybubba:/home/owner# more /etc/network/interfaces
iface eth0 inet dhcp

iface eth1 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0

auto lo
iface lo inet loopback


Any help on my next steps would be appreciated.
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: B2 Wireless AP setup: RTL8188CUS

Post by Gordon »

Apparently there are no Squeeze packages to support the CUS version of this chip - the SU drivers don't work. I guess you need to compile it yourself.

driver source
tiddler
Posts: 32
Joined: 07 Apr 2009, 03:23

Re: B2 Wireless AP setup: RTL8188CUS

Post by tiddler »

Thanks Gordon.

I had started to go down that road. But I am getting the following build error:

8188C_8192C_usb_linux_v4.0.2_9000.20130911# make
make ARCH=ppc CROSS_COMPILE= -C /lib/modules/2.6.39.4-13/build M=/home/owner/rtl/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911 modules
make: *** /lib/modules/2.6.39.4-13/build: No such file or directory. Stop.
make: *** [modules] Error 2

I do have the build essentials and kernel headers installed. Any suggestions welcome.
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: B2 Wireless AP setup: RTL8188CUS

Post by Gordon »

Are you compiling on the B2 itself? I had a similar issue with one of my first projects. The modules directory should contain a symlink to the kernel source ( build -> ../../../usr/src/linux ). Obviously this means you need to have the source and it needs to be prepared. There is a second issue here as well and that is that the source as distributed by Excito is meant to create a Debian package and adds additional symbols during that build. The result is that if you use that source to create external modules, the version stamping is off and the module won't work. You need to change the Makefile so that the module version you're creating matches `uname -r`: i.e. change the value for EXTRAVERSION from ".4" to ".4-13", or whatever that last number says on your B2 (my B3 has 11).
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 Wireless AP setup: RTL8188CUS

Post by paulchany »

Hi,

I bought a Netis Wireless N nano USB Adapter WF2120.

lsusb shows it as:
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

My Bubba system is a Debian Wheezy system; my /etc/apt/sources.list is:

Code: Select all

deb http://ftp.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://b3.update.excito.org/ stable main
I'm running the kernel version: 2.6.39.4-4.

I builded the custom kernel as adivsed abowe and reboot Bubba 2 successfully.

I setup the network by following advices here:
http://www.cyberciti.biz/faq/debian-ubu ... ess-point/
and here:
https://agentoss.wordpress.com/2011/10/ ... ian-linux/

But, when I'm trying to run the command:

Code: Select all

sudo hostapd -dd /etc/hostapd/hostapd.conf
I get the messages:
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
Line 6: invalid/unknown driver 'rtl8192sfw'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'

I tried with driver names: rtl8192cu, rtlwifi to, but without any success.
Which drivername is walid? How can I find the proper drivername for my usb wireless network adapter?
Best, Pali
Post Reply