Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wireless AP setup: RTL8188CUS

394 views
Skip to first unread message

Csanyi Pal

unread,
Jan 30, 2014, 1:00:01 PM1/30/14
to
Hi,

I just bought an USB dongle nano Netis WF-2120 adapter.
I want to set it up on my headless Debian Wheezy server as a Wireless
Access Point.

I'm trying to follow these steps here:
http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/

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

I also installed debian packages hostapd and firmware-realtek, and now I
don't know what steps I need more to get this working?

I want to use the ifupdown method described in the
/usr/share/doc/hostapd/README.Debian file.

However, I can't find the installed driver, and I don't know how can I
load it as a kernel module?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87wqhh7...@gmail.com

Csanyi Pal

unread,
Jan 30, 2014, 2:50:02 PM1/30/14
to
Csanyi Pal <csan...@gmail.com> writes:

> I just bought an USB dongle nano Netis WF-2120 adapter.
> I want to set it up on my headless Debian Wheezy server as a Wireless
> Access Point.
>
> I'm trying to follow these steps here:
> http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/
>
> lsusb shows it as:
> Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
> 802.11n WLAN Adapter
>
> I also installed debian packages hostapd and firmware-realtek, and now I
> don't know what steps I need more to get this working?
>
> I want to use the ifupdown method described in the
> /usr/share/doc/hostapd/README.Debian file.
>
> However, I can't find the installed driver, and I don't know how can I
> load it as a kernel module?

When I'm trying to get information about the rtl8192cu kernel module
that is needed from my USB Wireless Adapter,

sudo modinfo rtl8192cu | grep 17AB

I get the following error:

libkmod: ERROR ../libkmod/libkmod.c:505
kmod_lookup_alias_from_builtin_file: could not open builtin file
'/lib/modules/2.6.39.4-4/modules.builtin.bin'
ERROR: Module rtl8192cu not found.

Whta could be the problem here?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87fvo56...@gmail.com

Pol Hallen

unread,
Jan 30, 2014, 3:10:02 PM1/30/14
to
> I just bought an USB dongle nano Netis WF-2120 adapter

apt-get install firmware-realtek

Pol


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52EAB0FD...@fuckaround.org

Csanyi Pal

unread,
Jan 30, 2014, 3:20:01 PM1/30/14
to
Hi Pol,

Pol Hallen <de...@fuckaround.org> writes:

>> I just bought an USB dongle nano Netis WF-2120 adapter
>
> apt-get install firmware-realtek

I already have installed firmware-realtek, but still wifi adapter
doesn't work.

I can't to load the kernel module at all:

sudo modinfo rtl8192cu | grep 17AB
libkmod: ERROR ../libkmod/libkmod.c:505
kmod_lookup_alias_from_builtin_file: could not open builtin file
'/lib/modules/2.6.39.4-4/modules.builtin.bin'
ERROR: Module rtl8192cu not found.


sudo modprobe rtl8192cu
libkmod: ERROR ../libkmod/libkmod.c:505
kmod_lookup_alias_from_builtin_file: could not open builtin file
'/lib/modules/2.6.39.4-4/modules.builtin.bin'
FATAL: Module rtl8192cu not found.

What can I do now?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/877g9h6...@gmail.com

Brian

unread,
Jan 30, 2014, 6:10:02 PM1/30/14
to
On Thu 30 Jan 2014 at 21:12:54 +0100, Csanyi Pal wrote:

> sudo modprobe rtl8192cu
> libkmod: ERROR ../libkmod/libkmod.c:505
> kmod_lookup_alias_from_builtin_file: could not open builtin file
> '/lib/modules/2.6.39.4-4/modules.builtin.bin'

This is kernel 2.6.39.4-4. Are you using Squeeze?

> FATAL: Module rtl8192cu not found.

Does the file /lib/modules/2.6.39.4-4/modules.builtin.bin exist?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/3001201423065...@desktop.copernicus.demon.co.uk

Brian

unread,
Jan 30, 2014, 7:00:02 PM1/30/14
to
On Thu 30 Jan 2014 at 23:09:22 +0000, Brian wrote:

> On Thu 30 Jan 2014 at 21:12:54 +0100, Csanyi Pal wrote:
>
> > FATAL: Module rtl8192cu not found.
>
> Does the file /lib/modules/2.6.39.4-4/modules.builtin.bin exist?

That question is a bit silly! Please say what you get with

cd /lib/modules/2.6.39.4-4/kernel/drivers/

grep -r 8192 *


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/3001201423505...@desktop.copernicus.demon.co.uk

Csanyi Pal

unread,
Jan 31, 2014, 8:40:02 AM1/31/14
to
Brian <ad...@cityscape.co.uk> writes:

> On Thu 30 Jan 2014 at 23:09:22 +0000, Brian wrote:
>
>> On Thu 30 Jan 2014 at 21:12:54 +0100, Csanyi Pal wrote:
>>
>> > FATAL: Module rtl8192cu not found.

The system is:
uname -a
Linux b2 2.6.39.4-4 #1 Fri Aug 19 14:41:59 CEST 2011 ppc GNU/Linux

Description: Debian GNU/Linux 7.3 (wheezy)
Release: 7.3

>> Does the file /lib/modules/2.6.39.4-4/modules.builtin.bin exist?

> That question is a bit silly! Please say what you get with
>
> cd /lib/modules/2.6.39.4-4/kernel/drivers/
>
> grep -r 8192 *

csanyipal@b2:/lib/modules/2.6.39.4-4/kernel/drivers$ grep -r 8192 *
Binary file media/video/pvrusb2/pvrusb2.ko matches

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87ppn8m...@gmail.com

Csanyi Pal

unread,
Jan 31, 2014, 11:00:02 AM1/31/14
to
Brian <ad...@cityscape.co.uk> writes:

> On Thu 30 Jan 2014 at 21:12:54 +0100, Csanyi Pal wrote:
>
>> sudo modprobe rtl8192cu
>> libkmod: ERROR ../libkmod/libkmod.c:505
>> kmod_lookup_alias_from_builtin_file: could not open builtin file
>> '/lib/modules/2.6.39.4-4/modules.builtin.bin'
>
> This is kernel 2.6.39.4-4. Are you using Squeeze?

This is a Debian GNU/Linux 7.3 (wheezy) on the Bubba | Two headless
Power PC. ( One can see about the Bubba 3 here:
http://www.excitostore.com/ ). There are no more Bubba | Two out there..

I have had remove the Bubba stuff ( packages ) and had installed only
Debian GNU/Linux Sqweeze, and when Wheezy com out as a stable release, I
upgraded Squeeze to Wheezy on my headless Bubba | Two Power PC.

My sources.list on this system is now:
<quote>
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
</quote>

Maybe this is the problem, because a few months ago the last line abowe
was:
deb http://update.excito.org/ stable main

Yesterday when I want to update the Bubba system, this link:
deb http://update.excito.org/ stable main

doesn't works any more, so I found the link:
deb http://b3.update.excito.org/ stable main

which I'm being using now.

So, again, maybe this is not right link for my Wheezy system..

This is because the linux image, the kernel is not supported yet by the
Debian package management ( as I know ) for this peace of hardware, and
the kernel must updated from excito.org.

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/878utwm...@gmail.com

Brian

unread,
Jan 31, 2014, 1:00:02 PM1/31/14
to
On Fri 31 Jan 2014 at 14:32:02 +0100, Csanyi Pal wrote:

> csanyipal@b2:/lib/modules/2.6.39.4-4/kernel/drivers$ grep -r 8192 *
> Binary file media/video/pvrusb2/pvrusb2.ko matches

This kernel does not have the driver for your device.

In another mail you wrote:

> So, again, maybe this is not right link for my Wheezy system..

> This is because the linux image, the kernel is not supported yet by the > Debian package management ( as I know ) for this peace of hardware, and > the kernel must updated from excito.org.

excito.org has a forum. Any help there?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/3101201417543...@desktop.copernicus.demon.co.uk

Csanyi Pal

unread,
Jan 31, 2014, 1:40:02 PM1/31/14
to
Brian <ad...@cityscape.co.uk> writes:

> On Fri 31 Jan 2014 at 14:32:02 +0100, Csanyi Pal wrote:
>
>> csanyipal@b2:/lib/modules/2.6.39.4-4/kernel/drivers$ grep -r 8192 *
>> Binary file media/video/pvrusb2/pvrusb2.ko matches
>
> This kernel does not have the driver for your device.
>
> In another mail you wrote:
>
> > So, again, maybe this is not right link for my Wheezy system..
>
> > This is because the linux image, the kernel is not supported yet by
> > the > Debian package management ( as I know ) for this peace of
> > hardware, and > the kernel must updated from excito.org.
>
> excito.org has a forum. Any help there?

I'm trying to get help there too:
http://forum.excito.net/viewtopic.php?f=9&t=5166

My question is there and here the same:

Can I just download the
http://b3.update.excito.org/pool/main/l/linux/bubba3-kernel_2.6.39.4-13_powerpc.deb

kernel and can I install it with

dpkg -i bubba3-kernel_2.6.39.4-13_powerpc.deb

command?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87zjmck...@gmail.com

Csanyi Pal

unread,
Jan 31, 2014, 3:20:02 PM1/31/14
to
Csanyi Pal <csan...@gmail.com> writes:

> Brian <ad...@cityscape.co.uk> writes:
>
>> On Fri 31 Jan 2014 at 14:32:02 +0100, Csanyi Pal wrote:
>>
>>> csanyipal@b2:/lib/modules/2.6.39.4-4/kernel/drivers$ grep -r 8192 *
>>> Binary file media/video/pvrusb2/pvrusb2.ko matches
>>
>> This kernel does not have the driver for your device.
>>
>> In another mail you wrote:
>>
>> > So, again, maybe this is not right link for my Wheezy system..
>>
>> > This is because the linux image, the kernel is not supported yet by
>> > the > Debian package management ( as I know ) for this peace of
>> > hardware, and > the kernel must updated from excito.org.
>>
>> excito.org has a forum. Any help there?
>
> I'm trying to get help there too:
> http://forum.excito.net/viewtopic.php?f=9&t=5166
>
> My question is there and here the same:
>
> Can I just download the
> http://b3.update.excito.org/pool/main/l/linux/bubba3-kernel_2.6.39.4-13_powerpc.deb
>
> kernel and can I install it with
>
> dpkg -i bubba3-kernel_2.6.39.4-13_powerpc.deb
>
> command?

However, I red on the Wiki Excito about how to build a custom_kernel:

http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel

and there are mentioned the following version of the kernel source:

http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc

so I think that that it should be safe to install the binary
bubba3-kernel_2.6.39.4-13_powerpc.deb, that I downloaded from the abowe
mentioned link ( http://b3.update.excito.org/pool/main/l/linux/... ),
right?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87fvo3s...@gmail.com

Csanyi Pal

unread,
Feb 1, 2014, 3:30:01 AM2/1/14
to
Csanyi Pal <csan...@gmail.com> writes:

> Csanyi Pal <csan...@gmail.com> writes:
>
>> Brian <ad...@cityscape.co.uk> writes:
>>
>>> On Fri 31 Jan 2014 at 14:32:02 +0100, Csanyi Pal wrote:
>>>
>>>> csanyipal@b2:/lib/modules/2.6.39.4-4/kernel/drivers$ grep -r 8192 *
>>>> Binary file media/video/pvrusb2/pvrusb2.ko matches
>>>
>>> This kernel does not have the driver for your device.
>>>
>>> In another mail you wrote:
>>>
>>> > So, again, maybe this is not right link for my Wheezy system..
>>>
>>> > This is because the linux image, the kernel is not supported yet by
>>> > the > Debian package management ( as I know ) for this peace of
>>> > hardware, and > the kernel must updated from excito.org.
>>>
>>> excito.org has a forum. Any help there?
>>
>> I'm trying to get help there too:
>> http://forum.excito.net/viewtopic.php?f=9&t=5166
>>
>> My question is there and here the same:
>>
>> Can I just download the
>> http://b3.update.excito.org/pool/main/l/linux/ \
>> bubba3-kernel_2.6.39.4-13_powerpc.deb
>>
>> kernel and can I install it with
>>
>> dpkg -i bubba3-kernel_2.6.39.4-13_powerpc.deb
>>
>> command?
>
> However, I red on the Wiki Excito about how to build a custom_kernel:
>
> http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel
>
> and there are mentioned the following version of the kernel source:
>
> http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc
>
> so I think that that it should be safe to install the binary
> bubba3-kernel_2.6.39.4-13_powerpc.deb, that I downloaded from the abowe
> mentioned link ( http://b3.update.excito.org/pool/main/l/linux/... ),
> right?

Does this kernel 2.6.39.4-13 powerpc support the RTL8188CUS chipset?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87bnyr4...@gmail.com

Brian

unread,
Feb 1, 2014, 5:20:01 AM2/1/14
to
On Sat 01 Feb 2014 at 09:27:36 +0100, Csanyi Pal wrote:

> Csanyi Pal <csan...@gmail.com> writes:
>
> > so I think that that it should be safe to install the binary
> > bubba3-kernel_2.6.39.4-13_powerpc.deb, that I downloaded from the abowe
> > mentioned link ( http://b3.update.excito.org/pool/main/l/linux/... ),
> > right?
>
> Does this kernel 2.6.39.4-13 powerpc support the RTL8188CUS chipset?

Download the kernel and look inside it (I would use mc) to see what
drivers it provides.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/0102201410112...@desktop.copernicus.demon.co.uk

Csanyi Pal

unread,
Feb 1, 2014, 5:30:01 AM2/1/14
to
Brian <ad...@cityscape.co.uk> writes:

> On Sat 01 Feb 2014 at 09:27:36 +0100, Csanyi Pal wrote:
>
>> Csanyi Pal <csan...@gmail.com> writes:
>>
>> > so I think that that it should be safe to install the binary
>> > bubba3-kernel_2.6.39.4-13_powerpc.deb, that I downloaded from the abowe
>> > mentioned link ( http://b3.update.excito.org/pool/main/l/linux/... ),
>> > right?
>>
>> Does this kernel 2.6.39.4-13 powerpc support the RTL8188CUS chipset?
>
> Download the kernel and look inside it (I would use mc) to see what
> drivers it provides.

I downloaded the bubba3-kernel_2.6.39.4-13_powerpc.deb and look inside
it with MC. I searched for string '8192' in it but don't find anything.

Maybe I should build a custom kernel as described here:
http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel

and follow the advices described here:
http://forum.excito.net/viewtopic.php?f=9&t=4744

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/8738k33...@gmail.com

Scott Ferguson

unread,
Feb 1, 2014, 5:40:01 AM2/1/14
to
On 31/01/14 04:53, Csanyi Pal wrote:
> Hi,
>
> I just bought an USB dongle nano Netis WF-2120 adapter.
> I want to set it up on my headless Debian Wheezy server as a Wireless
> Access Point.
>
> I'm trying to follow these steps here:
> http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/
>
> lsusb shows it as:
> Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
> 802.11n WLAN Adapter
>
> I also installed debian packages hostapd and firmware-realtek, and now I
> don't know what steps I need more to get this working?
>
> I want to use the ifupdown method described in the
> /usr/share/doc/hostapd/README.Debian file.
>
> However, I can't find the installed driver, and I don't know how can I
> load it as a kernel module?
>


Had you read this wiki page about that chipset?
https://wiki.debian.org/rtl819x

Kind regards


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52ECCD94...@gmail.com

Csanyi Pal

unread,
Feb 1, 2014, 6:00:02 AM2/1/14
to
Scott Ferguson <scott.ferguso...@gmail.com> writes:

> On 31/01/14 04:53, Csanyi Pal wrote:
>> Hi,
>>
>> I just bought an USB dongle nano Netis WF-2120 adapter.
>> I want to set it up on my headless Debian Wheezy server as a Wireless
>> Access Point.
>>
>> I'm trying to follow these steps here:
>> http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi \
>> -hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/
>>
>> lsusb shows it as:
>> Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
>> 802.11n WLAN Adapter
>>
>> I also installed debian packages hostapd and firmware-realtek, and now I
>> don't know what steps I need more to get this working?
>>
>> I want to use the ifupdown method described in the
>> /usr/share/doc/hostapd/README.Debian file.
>>
>> However, I can't find the installed driver, and I don't know how can I
>> load it as a kernel module?
>>
>
>
> Had you read this wiki page about that chipset?
> https://wiki.debian.org/rtl819x

Yes, I had. There I found that that my USB Wifi adapter is supported:

when I plug in the WiFi usb adapter, lsusb shows the following:
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
802.11n WLAN Adapter

and on the webpage https://wiki.debian.org/rtl819x there is this davice
listed:

USB: 0BDA:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
Adapter

On the web page: https://wiki.debian.org/rtl819x there I found the
following information:

rtl8192cu (supported devices)

Supports USB devices based on the RTL8188CUS and RTL8192CU chips.

Introduced in Linux 2.6.39, enabled at
linux-2.6 2.6.39~rc7-1~experimental.1.

So now what should I do to get this USB Wifi adapter works?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87ob2r2...@gmail.com

Scott Ferguson

unread,
Feb 1, 2014, 7:10:02 AM2/1/14
to
On 01/02/14 21:57, Csanyi Pal wrote:
> Scott Ferguson <scott.ferguso...@gmail.com> writes:
>
>> On 31/01/14 04:53, Csanyi Pal wrote:
>>> Hi,
>>>
>>> I just bought an USB dongle nano Netis WF-2120 adapter.
>>> I want to set it up on my headless Debian Wheezy server as a Wireless
>>> Access Point.
>>>
<snipped>
>>>
>>> However, I can't find the installed driver, and I don't know how can I
>>> load it as a kernel module?
>>>
>>
>>
>> Had you read this wiki page about that chipset?
>> https://wiki.debian.org/rtl819x
>
> Yes, I had. There I found that that my USB Wifi adapter is supported:
>
> when I plug in the WiFi usb adapter, lsusb shows the following:
> Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
> 802.11n WLAN Adapter
>
> and on the webpage https://wiki.debian.org/rtl819x there is this davice
> listed:
>
> USB: 0BDA:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
> Adapter
>
> On the web page: https://wiki.debian.org/rtl819x there I found the
> following information:
>
> rtl8192cu (supported devices)
>
> Supports USB devices based on the RTL8188CUS and RTL8192CU chips.
>
> Introduced in Linux 2.6.39, enabled at
> linux-2.6 2.6.39~rc7-1~experimental.1.
>
> So now what should I do to get this USB Wifi adapter works?
>


Sorry - if I knew that I would have posted a suggestion or answer
sooner. I'd just noticed that it wasn't mentioned in the thread.

Did you install the matching headers? Do you get a match on the chipset
series when greping through the likely modules after piping through string?

I did notice that chipset appearing in a list of aliases on that wiki
page - that's one thing I'd check for. You could also check with the
author of that wiki page (it's not one of mine).

I don't have a similar chipset or much experience with wifi in general
so it's very unlikely I could offer more help than you are already getting.

Kind regards


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52ECE312...@gmail.com

Brian

unread,
Feb 1, 2014, 10:10:01 AM2/1/14
to
On Sat 01 Feb 2014 at 11:27:08 +0100, Csanyi Pal wrote:

> Maybe I should build a custom kernel as described here:
> http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel
>
> and follow the advices described here:
> http://forum.excito.net/viewtopic.php?f=9&t=4744

Will the source for the kernel have the module you need?

It might be less trouble to buy wifi device which is supported by your
present kernel.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/0102201414594...@desktop.copernicus.demon.co.uk

Csanyi Pal

unread,
Feb 1, 2014, 5:20:02 PM2/1/14
to
> Did you install the matching headers?

I did install the linux-headers-2.6-powerpc.

> Do you get a match on the chipset series when greping through the
> likely modules after piping through string?

When I run 'make menuconfig' in the kernel source directory, I found the
Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter
module

in the

Linux/powerpc 2.6.39.4-4 Kernel Configuration / \
Device Drivers / Network device support / Wireless LAN

In menuconfig I saved the setup in to .config file.

But when I run after 'make menuconfig' the 'make' command, I get error message:

arch/powerpc/kernel/align.c: In function ‘fix_alignment’:
arch/powerpc/kernel/align.c:704:33: error: variable ‘instruction’ set
but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [arch/powerpc/kernel/align.o] Error 1
make: *** [arch/powerpc/kernel] Error 2

What could be the problem here?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/878utu3...@gmail.com

Scott Ferguson

unread,
Feb 1, 2014, 7:10:02 PM2/1/14
to
Sorry (again). But I don't have clue.
I can tell you how to suppress the warning (--disable-werror):-
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

but not how to fix the problem that generates it.


Kind regards


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52ED8B92...@gmail.com

Csanyi Pal

unread,
Feb 2, 2014, 1:00:02 AM2/2/14
to
I'm trying to fix this problem with installing gcc-4.4 on my Debian
Wheezy system.

Now when I have installed the gcc-4.4, I made a symbolic link:
ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 16 febr 2 06:34 /usr/bin/gcc -> /usr/bin/gcc-4.4

The gcc symbolic link are linked before this to the /usr/bin/gcc-4.6.

Now I'm running the 'make' command in the kernel source file with the
.config setup file. Sofar it is successfull, but it is ongoing yet. I'm
waiting the make command to terminate successfull.

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87txcih...@gmail.com

Csanyi Pal

unread,
Feb 3, 2014, 11:00:03 AM2/3/14
to
It's done ( after 8 houers ):

sudo dpkg -i bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb
bubba3-kernel_2.6.39.4-13_powerpc.deb
(Adatbázis olvasása ... 76193 files and directories currently
installed.)
bubba3-kernel-headers-powerpc 1:2.6.39.4-13 cseréjének előkészítése (e
csomaggal: bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb) ...
Csere kicsomagolása: bubba3-kernel-headers-powerpc ...
Selecting previously unselected package bubba3-kernel.
dpkg: considering removing bubba-kernel in favour of bubba3-kernel ...
dpkg: yes, will remove bubba-kernel in favour of bubba3-kernel
Kicsomagolás: bubba3-kernel innen: bubba3-kernel_2.6.39.4-13_powerpc.deb
...
Beállítás: bubba3-kernel-headers-powerpc (1:2.6.39.4-13) ...
Beállítás: bubba3-kernel (1:2.6.39.4-13) ...
WARNING: could not open /lib/modules/2.6.39.4-13/modules.builtin: No
such file or directory

Well, about this WARNING at the end: is this serious?

Should I reboot my Bubba box now safely?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87sis0c...@gmail.com

Csanyi Pal

unread,
Feb 3, 2014, 11:10:02 AM2/3/14
to
I did the followings.

1.
dget -xu \
http://b3.update.excito.org/pool/main/l/linux/linux_2.6.39.4-13.dsc

2.
cd linux-2.6.39.4/

3.
make menuconfig

4.
Load the default excito configuration: From the menu, select Load an
Alternate Configuration File and enter the following path:
arch/powerpc/configs/bubbatwo_defconfig

5.
I customize the kernel so I included the rtl8192cu driver as a Module.
The resulting configuration are placed in
arch/powerpc/configs/bubbatwo_defconfig

6.
dpkg-buildpackage -us -uc -b -apowerpc

7.
I get the resulting two packages in the parent directory:
bubba3-kernel_2.6.39.4-13_powerpc.deb
bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb

8.
I installed these packages with the command:
sudo dpkg -i \
bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb \
bubba3-kernel_2.6.39.4-13_powerpc.deb


I investigate a little and found that that the
/lib/modules/2.6.39.4-13/build/drivers/net/wireless/rtlwifi/rtl8192cu/

directory is empty..

I don't understand the followings, quoted from the forum here:
http://forum.excito.net/viewtopic.php?f=9&t=4744

<quote>
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.
</quote>

What missed I here?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87zjm8b...@gmail.com

Scott Ferguson

unread,
Feb 3, 2014, 7:40:02 PM2/3/14
to
export CC=/usr/bin/gcc-4.4 (??)

>>
>> The gcc symbolic link are linked before this to the /usr/bin/gcc-4.6.
>>
>> Now I'm running the 'make' command in the kernel source file with the
>> .config setup file. Sofar it is successfull, but it is ongoing yet. I'm
>> waiting the make command to terminate successfull.
>
> It's done ( after 8 houers ):
>
> sudo dpkg -i bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb
> bubba3-kernel_2.6.39.4-13_powerpc.deb
> (Adatbázis olvasása ... 76193 files and directories currently
> installed.)
> bubba3-kernel-headers-powerpc 1:2.6.39.4-13 cseréjének előkészítése (e
> csomaggal: bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb) ...
> Csere kicsomagolása: bubba3-kernel-headers-powerpc ...
> Selecting previously unselected package bubba3-kernel.
> dpkg: considering removing bubba-kernel in favour of bubba3-kernel ...
> dpkg: yes, will remove bubba-kernel in favour of bubba3-kernel
> Kicsomagolás: bubba3-kernel innen: bubba3-kernel_2.6.39.4-13_powerpc.deb
> ...
> Beállítás: bubba3-kernel-headers-powerpc (1:2.6.39.4-13) ...
> Beállítás: bubba3-kernel (1:2.6.39.4-13) ...
> WARNING: could not open /lib/modules/2.6.39.4-13/modules.builtin: No
> such file or directory
>
> Well, about this WARNING at the end: is this serious?

I'm not certain, but it doesn't 'sound' good :/

>
> Should I reboot my Bubba box now safely?

I'd wait for a suggestion from someone knowledgable on the subject (if
possible). I also don't remove a working kernel until I've tested it's
replacement (the original package might be in /var/cache/apt/archives).


Kind regards
>


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/52F0364C...@gmail.com

Selim T. Erdogan

unread,
Feb 11, 2014, 2:40:03 PM2/11/14
to
Csanyi Pal, 3.02.2014:
Shouldn't you be looking in
/lib/modules/2.6.39.4-13/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/
^^^^^^
Do you have a module there?


> I don't understand the followings, quoted from the forum here:
> http://forum.excito.net/viewtopic.php?f=9&t=4744
>
> <quote>
> 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.
> </quote>
>
> What missed I here?

That looks like it's about getting compilation errors, but you seem to
have compiled fine so I don't think it's relevant.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20140211193...@cs.utexas.edu

Csanyi Pal

unread,
Feb 24, 2014, 2:20:02 PM2/24/14
to
Hi Selim,
I have finally compiled and installed the custom 2.6.39.4-13 kernel with
modules too.

What I did is the following.

I download the kernel debian packages
bubba3-kernel_2.6.39.4-13_powerpc.deb
bubba3-kernel-headers-powerpc_2.6.39.4-13_powerpc.deb

from here:
http://b3.update.excito.org/pool/main/l/linux/

then I installed these two debian packages, and reboot the Bubba 2
headless PC Box successfully.

After that I did follow the steps described here:
http://wiki.excito.org/wiki/index.php/Building_a_custom_kernel

with the small exception:

In menuconfig I check the needed module:
===========
arch/powerpc/configs/bubbatwo_defconfig - Linux/powerpc 2.6.39.4 Kernel
Configuration
Linux/powerpc 2.6.39.4 Kernel Configuration
Device Drivers -->
Netword Device Support -->
Wireless LAN -->
Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter

Save the file in Menuconfig, then exit from there.

cp arch/powerpc/configs/bubbatwo_defconfig .config

make

sudo make modules_install

This did install the modules in the right place.

Now I'm trying to setup the network and interfaces so get the usb
wireless adapter to works.

I'm following the advices described here:
http://www.cyberciti.biz/faq/debian-ubuntu-linux-setting-wireless-access-point/

and here:
https://agentoss.wordpress.com/2011/10/31/creating-a-wireless-access-point-with-debian-linux/

sofar without success..

When I run the command bellow:
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?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87eh2sg...@gmail.com

Csanyi Pal

unread,
Feb 24, 2014, 2:50:01 PM2/24/14
to
Moreover, now, when I connect my usb wifi adapter to my Bubba 2, I get a
new interface, the wlanN, where the N is a number, from 1 to 5 so far.

How can I setup this, to always get the wlan0 name of the wifi interface?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/878ut0g...@gmail.com

Csanyi Pal

unread,
Feb 24, 2014, 3:10:01 PM2/24/14
to
OK, I have now the followings in my /etc/network/interfaces file:

<file>
auto lo
iface lo inet loopback

# Internet on eth0
allow-hotplug eth0
iface eth0 inet dhcp

# LAN on eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0

# wifi on wlan0
allow-hotplug wlan0
iface wlan0 inet manual

# for static ip
iface br0 inet static
bridge_ports eth0 wlan0
# adapt with your network settings
address 192.168.10.250
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
</file>

Now, when I run the command:
sudo ifup wlan0

I get nothing as output..

If I run it again, I get:
ifup: interface wlan0 already configured

but, the command
sudo ifconfig -a
gives to me only:
eth0 Link encap:Ethernet HWaddr 00:22:02:00:07:3c
inet addr:95.85.143.55 Bcast:95.85.143.255
Mask:255.255.252.0
inet6 addr: fe80::222:2ff:fe00:73c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:827310 errors:0 dropped:0 overruns:0 frame:0
TX packets:187232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:400388262 (381.8 MiB) TX bytes:46632384 (44.4 MiB)
Base address:0x8000

eth1 Link encap:Ethernet HWaddr 00:22:02:00:07:3d
inet addr:192.168.10.1 Bcast:192.168.10.255
Mask:255.255.255.0
inet6 addr: fe80::222:2ff:fe00:73d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179577 errors:0 dropped:0 overruns:0 frame:0
TX packets:269461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47300513 (45.1 MiB) TX bytes:345162067 (329.1 MiB)
Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8398 errors:0 dropped:0 overruns:0 frame:0
TX packets:8398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2537465 (2.4 MiB) TX bytes:2537465 (2.4 MiB)

and
sudo iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

Where is the wlan0 interface?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87ppmcf...@gmail.com

Scott Ferguson

unread,
Feb 24, 2014, 10:00:02 PM2/24/14
to
On 25/02/14 07:03, Csanyi Pal wrote:
> Csanyi Pal <csan...@gmail.com> writes:
>
>> Csanyi Pal <csan...@gmail.com> writes:
>>
>>> Hi Selim,
>>>
>>> "Selim T. Erdogan" <se...@alumni.cs.utexas.edu> writes:
>>>
>>>> Csanyi Pal, 3.02.2014:
>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>
>>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>>
>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>> writes:
>>>>>>>
>>>>>>>> On 02/02/14 09:14, Csanyi Pal wrote:
>>>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>>>> writes:
>>>>>>>>>
>>>>>>>>>> On 01/02/14 21:57, Csanyi Pal wrote:
>>>>>>>>>>> Scott Ferguson
>>>>>>>>>>> <scott.ferguso...@gmail.com> writes:
>>>>>>>>>>>
>>>>>>>>>>>> On 31/01/14 04:53, Csanyi Pal wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> I just bought an USB dongle nano Netis
>>>>>>>>>>>>> WF-2120 adapter.

WI1 chip1: Realtek RTL8188CUS
FCC ID: T58WF2120R
https://apps.fcc.gov/oetcf/eas/reports/GenericSearchResult.cfm?RequestTimeout=500



>>>>>>>>>>>>> I want to set it up on my
>>>>>>>>>>>>> headless Debian Wheezy server as a Wireless
>>>>>>>>>>>>> Access Point.
>>>>>>>>>>>>>
>>>>>>>>>> <snipped>
>>>>>>>>>>>>>
<snipped>
>>>
>>> sudo make modules_install
>>>
>>> This did install the modules in the right place.
>>>
>>> Now I'm trying to setup the network and interfaces so get the
>>> usb wireless adapter to works.
>>>
>>> I'm following the advices described here:
>>> http://www.cyberciti.biz/faq/debian-ubuntu-linux-setting-wireless-access-point/
>>>
>>>
>>> and here:
>>> https://agentoss.wordpress.com/2011/10/31/creating-a-wireless-access-point-with-debian-linux/
>>>
>>>
>>> sofar without success..
>>>
>>> When I run the command bellow: 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

FWIW that's the one I'd try (only if the stock module failed would I
compile one from non-Debian source).

>>>, rtlwifi to, but without
>>> any success. Which drivername is walid? How can I find the proper
>>> drivername for my usb wireless network adapter?

See above paragraph (based on the chipset from the FCCID)


apropos of little.... what do you get from?:-
$ mlocate rtl8192sfw

>>
>> Moreover, now, when I connect my usb wifi adapter to my Bubba 2, I
>> get a new interface, the wlanN, where the N is a number, from 1 to
>> 5 so far.

That's as it should be I believe.

>>
>> How can I setup this, to always get the wlan0 name of the wifi
>> interface?

$ grep wlan /etc/udev/rules.d/70-persistent-net.rules
if it's there (I don't have one I can check at present) then edit the
entry matching the correct MAC address and change it's name from wlanN
to wlan0, then remove the other wlanN lines. You'll need to be root to
edit the file.

>
> OK, I have now the followings in my /etc/network/interfaces file:
<snipped>
>
> # wifi on wlan0 allow-hotplug wlan0 iface wlan0 inet manual
>
<snipped>
>
> Now, when I run the command: sudo ifup wlan0
>
> I get nothing as output..
>
> If I run it again, I get: ifup: interface wlan0 already configured

Yes. ifup only does something if the net device is not up already.
Instead try:-
# ifdown wlan0;ifup wlan0

>
> but, the command sudo ifconfig -a gives to me only: eth0 Link
> encap:Ethernet HWaddr 00:22:02:00:07:3c
<snipped>
>
> eth1 Link encap:Ethernet HWaddr 00:22:02:00:07:3d
<snipped>
>
> lo Link encap:Local Loopback
<snipped>
> and sudo iwconfig lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> eth1 no wireless extensions.
>
> Where is the wlan0 interface?

You set it to manual (so it's off somewhere reading the manual?) ;p

It's there, but you haven't specified it e.g.:-
# iwconfig wlan0
which is why iwconfig it's trying all of the *configured* network devices.

man interfaces <snipped section>
"The manual Method
This method may be used to define interfaces for which *no*
configuration is done by default. Such interfaces can be configured
manually by means of up and down commands or /etc/net‐work/if-*.d scripts."

What I take that to mean is - that unless you have something in
/etc/network/if-*.d then the if up/down commands need to be qualified.
.i.e issuing:-
# ifup wlan0
is interpreted as "do nothing to wlan0". Compare that to "ifup eth1"
which is interpreted as "ifup eth1 <use settings from section in
interfaces>"



Ref:-
https://wiki.debian.org/WiFi
https://wiki.debian.org/WiFi/HowToUse
http://linux-wless.passys.nl/query_alles.php



Kind regards


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/530C06F3...@gmail.com

Csanyi Pal

unread,
Feb 26, 2014, 4:00:03 PM2/26/14
to
Scott Ferguson <scott.ferguso...@gmail.com> writes:

> On 25/02/14 07:03, Csanyi Pal wrote:
>> Csanyi Pal <csan...@gmail.com> writes:
>>
>>> Csanyi Pal <csan...@gmail.com> writes:
>>>
>>>> Hi Selim,
>>>>
>>>> "Selim T. Erdogan" <se...@alumni.cs.utexas.edu> writes:
>>>>
>>>>> Csanyi Pal, 3.02.2014:
>>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>>
>>>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>>>
>>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>>> writes:
>>>>>>>>
>>>>>>>>> On 02/02/14 09:14, Csanyi Pal wrote:
>>>>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>>>>> writes:
>>>>>>>>>>
>>>>>>>>>>> On 01/02/14 21:57, Csanyi Pal wrote:
>>>>>>>>>>>> Scott Ferguson
>>>>>>>>>>>> <scott.ferguso...@gmail.com> writes:
>>>>>>>>>>>>
>>>>>>>>>>>>> On 31/01/14 04:53, Csanyi Pal wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I just bought an USB dongle nano Netis
>>>>>>>>>>>>>> WF-2120 adapter.
>
> WI1 chip1: Realtek RTL8188CUS
> FCC ID: T58WF2120R
> https://apps.fcc.gov/oetcf/eas/reports/ \
> GenericSearchResult.cfm?RequestTimeout=500
>
>
>
>>>>>>>>>>>>>> I want to set it up on my
>>>>>>>>>>>>>> headless Debian Wheezy server as a Wireless
>>>>>>>>>>>>>> Access Point.
>>>>>>>>>>>>>>
>>>>>>>>>>> <snipped>
>>>>>>>>>>>>>>
> <snipped>
>>>>
>>>> sudo make modules_install
>>>>
>>>> This did install the modules in the right place.
>>>>
>>>> Now I'm trying to setup the network and interfaces so get the
>>>> usb wireless adapter to works.
>>>>
>>>> I'm following the advices described here:
>>>> http://www.cyberciti.biz/faq/debian-ubuntu-linux- \
>>>> setting-wireless-access-point/
>>>>
>>>>
>>>> and here:
>>>> https://agentoss.wordpress.com/2011/10/31/creating- \
>>>> a-wireless-access-point-with-debian-linux/
>>>>
>>>>
>>>> sofar without success..
>>>>
>>>> When I run the command bellow: 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
>
> FWIW that's the one I'd try (only if the stock module failed would I
> compile one from non-Debian source).
>
>>>>, rtlwifi to, but without
>>>> any success. Which drivername is walid? How can I find the proper
>>>> drivername for my usb wireless network adapter?
>
> See above paragraph (based on the chipset from the FCCID)
>
>
> apropos of little.... what do you get from?:-
> $ mlocate rtl8192sfw

$ mlocate rtl8192sfw
/lib/firmware/RTL8192SU/rtl8192sfw.bin
Well, my home network diagram is:

Internet
\
cable modem
\
eth0
Bubba Two headless powerpc box -> wlan0 - USB wifi adapter )))
eth1
\
switch
\
eth0
Debian SID desktop


))) laptop

))) android mobile phone

So I want to setup Bubba Two for my home wifi LAN for laptop and android
mobile phone.

My /etc/network/interfaces file is now, without the WiFi setup:
<interfaces>
auto lo br0
iface lo inet loopback

# Internet on eth0
allow-hotplug eth0
iface eth0 inet dhcp

# LAN on eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
</interfaces>


and with WiFi setup ( that doesn't work yet ):
<interfaces>
auto lo br0
iface lo inet loopback

# Internet on eth0
allow-hotplug eth0
iface eth0 inet manual

# LAN on eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0

# for dhcp address
iface br0 inet dhcp
bridge_ports eth0 wlan0
</interfaces>

When I use this latter, I can't reach the Internet from my Debian SID
desktop, but can to ssh to my Bubba 2.

Moreover, with the latter interfaces setup, when I run the command as
root:
hostapd -dd /etc/hostapd/hostapd.conf

I lose the ssh connection from desktop to Bubba.

The /etc/hostapd/hostapd.conf file is now:
<hostapd.conf>
### Wireless network name ###
interface=wlan0
### Set your bridge name ###
bridge=br0

driver=nl80211

country_code=RS
ieee80211d=1

ssid=Cs5P3

hw_mode=g

channel=6

wme_enabled=0

wpa=2

wpa_passphrase='*********************'

## Key management algorithms ##
wpa_key_mgmt=WPA-PSK

## Set cipher suites (encryption algorithms) ##
## TKIP = Temporal Key Integrity Protocol
## CCMP = AES in Counter mode with CBC-MAC
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1

## Accept all MAC address ###
macaddr_acl=0

ignore_broadcast_ssid=0
## Shared Key Authentication ##
</hostapd.conf>

This setup doesn't work. Why?
Any advices will be appreciated!

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/87zjldo...@gmail.com

Csanyi Pal

unread,
Feb 27, 2014, 12:40:01 AM2/27/14
to
Csanyi Pal <csan...@gmail.com> writes:

<snipped>

> Well, my home network diagram is:
More in detail:

Internet
dhcp server
\
cable modem
\
eth0 ( dhcp )
Bubba Two headless powerpc box --> wlan0
| USB wifi adapter
| Wireless Access Point )))
|
isc-dhcp-server
eth1
\
switch
\
eth0 ( dhcp )
Debian SID desktop


))) laptop

))) android mobile phone

<snipped>

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/877g8hn...@gmail.com

Csanyi Pal

unread,
Feb 28, 2014, 3:40:02 PM2/28/14
to
Scott Ferguson <scott.ferguso...@gmail.com> writes:

> On 25/02/14 07:03, Csanyi Pal wrote:
>> Csanyi Pal <csan...@gmail.com> writes:
>>
>>> Csanyi Pal <csan...@gmail.com> writes:
>>>
>>>> Hi Selim,
>>>>
>>>> "Selim T. Erdogan" <se...@alumni.cs.utexas.edu> writes:
>>>>
>>>>> Csanyi Pal, 3.02.2014:
>>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>>
>>>>>>> Csanyi Pal <csan...@gmail.com> writes:
>>>>>>>
>>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>>> writes:
>>>>>>>>
>>>>>>>>> On 02/02/14 09:14, Csanyi Pal wrote:
>>>>>>>>>> Scott Ferguson <scott.ferguso...@gmail.com>
>>>>>>>>>> writes:
>>>>>>>>>>
>>>>>>>>>>> On 01/02/14 21:57, Csanyi Pal wrote:
>>>>>>>>>>>> Scott Ferguson
>>>>>>>>>>>> <scott.ferguso...@gmail.com> writes:
>>>>>>>>>>>>
>>>>>>>>>>>>> On 31/01/14 04:53, Csanyi Pal wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I just bought an USB dongle nano Netis
>>>>>>>>>>>>>> WF-2120 adapter.
>
> WI1 chip1: Realtek RTL8188CUS
> FCC ID: T58WF2120R
> https://apps.fcc.gov/oetcf/eas/reports/ \
> GenericSearchResult.cfm?RequestTimeout=500
>
>>>>>>>>>>>>>> I want to set it up on my
>>>>>>>>>>>>>> headless Debian Wheezy server as a Wireless
>>>>>>>>>>>>>> Access Point.
>>>>>>>>>>>>>>
>>>>>>>>>>> <snipped>
>>>>>>>>>>>>>>
> <snipped>
>>>>
>>>> sudo make modules_install
>>>>
>>>> This did install the modules in the right place.
>>>>
>>>> Now I'm trying to setup the network and interfaces so get the
>>>> usb wireless adapter to works.
>>>>
>>>> I'm following the advices described here:
>>>> http://www.cyberciti.biz/faq/debian-ubuntu-linux-setting- \
>>>> wireless-access-point/
>>>>
>>>>
>>>> and here:
>>>> https://agentoss.wordpress.com/2011/10/31/creating-a-wireless- \
$ sudo hostapd /etc/hostapd/hostapd-minimal.conf
Configuration file: /etc/hostapd/hostapd-minimal.conf
rfkill: Cannot open RFKILL control device
Failed to update rate sets in kernel module
Could not connect to kernel driver.

and at this point I lose the ssh connection with Bubba.

What can I do to solve this problem?

I think I should buy another USB Wireless Adapter with Realtek RTL8187B
chipset (802.11G) or the Atheros AR9170 chipset (802.11N). Right?

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/87zjlbu...@gmail.com

Csanyi Pal

unread,
Mar 2, 2014, 6:30:03 AM3/2/14
to
Scott Ferguson <scott.ferguso...@gmail.com> writes:
> On 31/01/14 04:53, Csanyi Pal wrote:
> I just bought an USB dongle nano Netis WF-2120 adapter.
> WI1 chip1: Realtek RTL8188CUS
> I want to set it up on my headless Debian Wheezy server as a Wireless
> Access Point.

I builded the custom kernel version 2.6.39.4-13 with module
rtl8192cu and reboot with this kernel. So the kernel part of the setup
is OK now.

I also have installed the firmware-realtek debian package which contains
the following among others:
Realtek RTL8192CU/RTL8188CU firmware (rtlwifi/rtl8192cufw.bin)

I edited the file
/etc/udev/rules.d/70-persistent-net.rules
and have the following line that determine the wlan0 interface:
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
ATTR{address}=="00:e0:4c:81:92:*", ATTR{dev_id} \
=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

The ATTR{address}=="00:e0:4c:81:92:*" option determine that that
whenever I plug in again this usb wifi adapter to the usb port, I get
always the wlan0 name for this interface. Here is the "*" character is
the relevant, because that part of the mac address changes always, when
one plug in the adapter again and again.

>> Scott Ferguson <scott.ferguso...@gmail.com> writes:
>> FCC ID: T58WF2120R
>> https://apps.fcc.gov/oetcf/eas/reports/GenericSearchResult \
>> .cfm?RequestTimeout=500

>>>> When I run the command bellow:
>>>> 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
> FWIW that's the one I'd try (only if the stock module failed would I
> compile one from non-Debian source).
>>>>, rtlwifi to, but without
>>>> any success. Which drivername is walid? How can I find the proper
>>>> drivername for my usb wireless network adapter?

No, I think no.
Regardnig to the web page:
http://wireless.kernel.org/en/users/Documentation/hostapd

<quote>
All new mac80211 based drivers that implement AP functionality are
supported with hostapd's nl80211 driver.
</quote>

so, I think I must to use the 'nl80211' nema for the driver in the
hostapd.conf file.

However, I'm still trying to set this to work. I'm trying to test
hostapd by using the file hostapd-minimal.conf:
interface=wlan0
driver=nl80211
ssid=test
channel=1
bridge=br0
<end of file>

and when I run the following command:

csanyipal@b2:~$ sudo hostapd /etc/hostapd/hostapd-minimal.conf
Configuration file: /etc/hostapd/hostapd-minimal.conf
rfkill: Cannot open RFKILL control device
Could not set interface mon.wlan0 flags: No such device
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.

but does'n lose the ssh connection anymore with Bubba Two. :)

Now I have the followings in my interfaces file:
auto lo br0
iface lo inet loopback

# Internet on eth0
allow-hotplug eth0
iface eth0 inet manual

# wifi on wlan0
allow-hotplug wlan0
iface wlan0 inet manual

# Bridge setup
# for dhcp address
iface br0 inet dhcp
bridge_ports eth0 wlan0

# dns-* options are implemented by the resolvconf package, if installed
# I want to remain my wired LAN
# LAN on eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
dns-nameservers 192.168.10.1
dns-search localdomain
<end of file>

With this setup I can't only reach the Internet, but can to ssh into
Bubba Two.

The command sudo ifconfig gives to me the followings:
br0 Link encap:Ethernet HWaddr 00:22:02:00:07:3c
inet addr:95.85.167.81 Bcast:95.85.167.255
Mask:255.255.252.0
inet6 addr: fe80::222:2ff:fe00:73c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7577 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:360740 (352.2 KiB) TX bytes:8581 (8.3 KiB)

eth0 Link encap:Ethernet HWaddr 00:22:02:00:07:3c
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7577 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:588072 (574.2 KiB) TX bytes:8047 (7.8 KiB)
Base address:0x8000

eth1 Link encap:Ethernet HWaddr 00:22:02:00:07:3d
inet addr:192.168.10.1 Bcast:192.168.10.255
Mask:255.255.255.0
inet6 addr: fe80::222:2ff:fe00:73d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3116 errors:0 dropped:0 overruns:0 frame:0
TX packets:4157 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:318666 (311.1 KiB) TX bytes:343364 (335.3 KiB)
Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2524 errors:0 dropped:0 overruns:0 frame:0
TX packets:2524 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:215081 (210.0 KiB) TX bytes:215081 (210.0 KiB)

wlan0 Link encap:Ethernet HWaddr 00:e0:4c:81:92:0e
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


How can I setup my home network so I can use wifi AP and the eth1 LAN at
same time?

What can I do further to get this works?
Any advices will be appreciated!

--
Regards from Pal


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/87wqgcj...@gmail.com

Selim T. Erdogan

unread,
Mar 13, 2014, 8:40:02 PM3/13/14
to
Csanyi Pal, 2.03.2014:
>
> However, I'm still trying to set this to work. I'm trying to test
> hostapd by using the file hostapd-minimal.conf:
> interface=wlan0
> driver=nl80211
> ssid=test
> channel=1
> bridge=br0
> <end of file>
>
> and when I run the following command:
>
> csanyipal@b2:~$ sudo hostapd /etc/hostapd/hostapd-minimal.conf
> Configuration file: /etc/hostapd/hostapd-minimal.conf
> rfkill: Cannot open RFKILL control device
> Could not set interface mon.wlan0 flags: No such device
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.

Can you check whether your device is capable of being put into AP mode?
(Some devices don't support it, as far as I know.) I don't remember the
exact command, but you should be able to do it using iw or iwconfig.
Several questions, for clarification:

You ssh from your sid desktop into the Bubba Two, right?
Do you define a static IP on your sid desktop for this?

It's the desktop that can't reach the Internet, right?
Once you ssh into the Bubba Two, can you reach the Internet on the
command line of the Bubba Two?
Were you able to reach the Internet from you desktop, going through the
Bubba Two, before attempting to se up the AP? (If not, I think you
should try to achieve that first, before confusing things further
with the AP setup)

For the AP, the diagram you sent in earlier messages showed it being
attached to eth0. Is that correct? I would have thought it should be
attached to your LAN (thus to eth0).
Do you plan to define static IP addresses on the wireless devices you'll
use with your AP, or are you planning on using dhcp?

Selim
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140314003...@cs.utexas.edu

ken

unread,
Mar 14, 2014, 12:20:04 PM3/14/14
to
I missed the first part of this thread. Which chip does your wifi
device contain?

Your driver specification below doesn't look right. And bridging isn't
necessary to set up an AP on one NIC and access to the internet from
that via the second NIC.
Archive: https://lists.debian.org/53232B31...@mousecar.com
0 new messages