B+ Rasbian, and an oddball Wifi Dongle (Belkin F9L1002v1 - Realtek RTL8192SU chipset)

Posted by WACOMalt 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
B+ Rasbian, and an oddball Wifi Dongle (Belkin F9L1002v1 - Realtek RTL8192SU chipset)
October 24, 2014 06:22AM
Hi all. I've been having a lousy time trying to get my PirateBox going on a Raspberry Pi B+

I first tried following this guide: and used the image file from the torrent. (ArchLinuxARM-2014.10-PirateBox1.0.1_rpi_1.0.1.img)

This resulted in a blinking wireless card, nothing connecting. I followed these instructions to get the driver sorted out, and also tried every step from the bootup issues thread. None of these resulted in the wirless card initializing correctly. always getting:
[ 19.234788] r8712u 1-1.5:1.0 wlan0: 1 RCR=0x153f00e
[ 19.248269] r8712u 1-1.5:1.0 wlan0: 2 RCR=0x553f00e
[ 19.384894] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

----------------------------------------------------------------------------------------------------

So I decided to try installing piratebox on a rasbian image, since it sounds like this wireless chipset is better on raspbian.

I installed a fresh rasbian image, installed piratebox from the beta linked by Matthias in this thread on the last post. (1.0.1RC1)

I ran through all of the same changes and attempts I had made on the arch image, with no luck.

I didnt have wired connected, so here's a screenshot of the current situation:


I'm giving up for the night. I apologize for posting bits and pieces of my problems in other threads. it originally seemed a better idea than starting a new redundant thread, but now I feel it's needed.



Edited 5 time(s). Last edit at 10/26/2014 10:58PM by WACOMalt.
Re: B+ Rasbian, and a. oddball Wifi Dongle (Belkin F9L1002v1 - Realtek RTL8192SU chipset)
October 24, 2014 09:40AM
First of all, did you exchange the hostapd daemon & changed the hostpad.conf while trying the ARCHLinux image file provided by us?

You have to switch the default /bin/sh shell to bash, to prevent alot of trouble when running raspbian:

rm /bin/sh
ln -s /bin/bash /bin/sh

Matthias
Thanks for the fast reply.

I did try the hostapd binary from adafruit and switching the driver, but I had not done the logging changes on the Arch image.

On Raspbian now I just tried those logging changes. The Output is now as follows on start-up:

[....] starting script piratebox :
Generating hosts file ....
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Empty tmp folder
rm: cannot remove '/opt/piratebox/tmp/': Is a directory
Copy over design files
[....]   Probing wlan:/opt/piratebox/bin/piratebox_setup_wlan.sh: line 81: probe: command not found
[ ok ] Starting hostap... :.
[....]   Setting up wlan:Bringing up wifi interface wlan0
Setting up wlan0
[ ok ] Starting dnsmasq... :.
[ ok ] Starting droopy...:.
Generating HTML-Shoutbox File.
[ ok ] Starting lighttpd...:.

Should I switch back to Arch for further testing or does it matter? Id prefer staying on Raspbian since there are some other things I want this Pi to do.
Re: B+ Rasbian, and a. oddball Wifi Dongle (Belkin F9L1002v1 - Realtek RTL8192SU chipset)
October 26, 2014 10:42AM
Hey,
you can stay at raspbian, if you want to.
The point I switched from raspbian to Arch is, that Raspbian's image file contains alot of stuff the common PirateBox user don't need and it will only cost useless bandwidth.

So, the log you posted above seems to be a positive startup. But the wifi network still does not appear?

Matthias
Ah ok. Yeah I need to use this Pi for more than just my piratebox, so I'll stick on raspbian for ease of use for the other stuff for now.

The WiFi network does not show up. I have scanned with my phone and a laptop.

Thanks for the help.

EDIT:

Just to update, it seems the main issue I'm running into is this line
[....]   Probing wlan:/opt/piratebox/bin/piratebox_setup_wlan.sh: line 81: probe: command not found

Looking in that file I see the following for around line 81:
76 elif [[/color] $2 = "stop" ] ; then
77   echo "Stopping wifi interface $INTERFACE "
78   ifconfig $INTERFACE down
79 elif [[/color] $2 = "probe" ] ; then
80    # simply check if the interface is available
81    probe
82 fi

If there's any more info you need to help you help me let me know smiling smiley



Edited 2 time(s). Last edit at 10/26/2014 10:57PM by WACOMalt.
Re: B+ Rasbian, and a. oddball Wifi Dongle (Belkin F9L1002v1 - Realtek RTL8192SU chipset)
October 29, 2014 08:28PM
The probe line should work, but it doesn't matter. It seems I made a mistake.
The probe function is listed at the buttom of the script should be at the top.

I pushed the changed script in our hotfix-branch: [github.com]

Try to exchange the script, and pls report back if the script throws no error anymore.

Matthias