www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

How to get Linksys USB200M and maybe other USB NICs to work

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Linux and Networking
View previous topic :: View next topic  
Author Message
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Thu Aug 26, 2010 7:45 am    Post subject: How to get Linksys USB200M and maybe other USB NICs to work Reply with quote

Hi, I just thought I'd post a little howto on getting the Linksys USB200M to work, after spending far more time than I'd like at it. If it's useful, post a comment here, and if it's really useful, maybe Fulvio will update the kernel and Dansguardian patch in a new version (pretty please with sugar on top!!!!).

Intro
USB NICs are especially useful when it comes to using Zeroshell on a netbook such as an Eee PC, as
a) The inbuilt ethernet adapter in the netbook may not be supported, and
b) You may want to use another NIC in the netbook rather than using a VLAN capable switch to have Zeroshell perform filtering duty.

In any case, it is very tough to beat the bang/buck of a netbook for Zeroshell, and this will only improve over time. You get oodles of RAM and CPU, you get all the components you need including PSU, a screen so you can see what you are doing, even an inbuilt UPS, and it's pretty darn power efficient too. It's hard to go wrong with the value even if you have to buy a USB ethernet adaptor just to get it to work.

Here is a list of other USB ethernet adapters suitable for linux:
http://free-electrons.com/blog/usbeth/
Another that will very likely work with Zeroshell is the D-link DUB-E100.

The problem is that when you put the USB200M in and boot zeroshell on a USB flash or an SD card, only 1 of the 3 lights will come on and it won't have the kernel modules loaded. Even if you load the kernel modules from the shell, after Zeroshell boots, the interface (eth0) won't show itself when you press "N", you can only see the VPN. Very frustrating!

So here's what you do (knowing how to use vi is assumed).
Shell
1. Get into shell from your netbook, by typing S.

2. Edit the preboot Enabled file:
Code:
vi /Database/var/register/system/startup/scripts/preboot/Enabled


3. Add the following line:
Code:
yes


4. Edit the preboot File file:
Code:
vi /Database/var/register/system/startup/scripts/preboot/File


5. Add the following two lines:
Code:
modprobe usbnet
modprobe asix


Via Web Interface:
If you have the use of another computer with a working NIC so that you can use the web interface from 192.168.0.75, you can of course go into Startup/Cron and edit/enable the preboot script yourself to look like the above. But the first way is probably most convenient.

Other USB NICs

As the Asix driver is used for loads (all?) of USB NICs, I would strongly suspect that this procedure will work for all the USB NICs that were supported by the particular ZS kernel you are trying to use.

Credit for helpful ideas goes to these posts:
http://www.zeroshell.net/eng/forum/viewtopic.php?p=5485&sid=58107b6f1ddff869612d35ffbc2371bf
http://ccforums.clearfoundation.com/showflat.php?Cat=0&Number=118780&an=0&page=2
http://forums.whirlpool.net.au/archive/1507269
Back to top
View user's profile Send private message
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Fri Aug 27, 2010 11:54 am    Post subject: Reply with quote

The above appears to work for 13 beta, or at least from memory that's what I did. In 12 beta it doesn't work (I get something like Preboot Failed - Error 126 or something like that). In order to get it to work I had to put those lines in via the web interface, i.e. by finding a laptop with compatible NIC, booting from that, changing things from the web interface, and sticking the USB stick with Zeroshell on it back into the original Eee PC. A bit of a pain, lucky I had the other laptop to do it from.
Back to top
View user's profile Send private message
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Sun Aug 29, 2010 5:46 pm    Post subject: Reply with quote

Note that using the Linksys USB200M you will get errors appearing in dmesg. It is also likely with the DUB-E100.* Here is the error I get:

Code:
ETH00: asix_rx_fixup() Bad RX Length 1518


Not sure how to fix. It doesn't appear to affect the functioning of the network, but I would appreciate any help.

* See http://www.spinics.net/lists/arm-kernel/msg43299.html

See also http://www.linuxquestions.org/questions/linux-wireless-networking-41/please-help-fix-sky2-error-rx-length-error-status-0x42c0500-length-600-a-675324/
Back to top
View user's profile Send private message
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Sun Sep 05, 2010 1:15 am    Post subject: Reply with quote

For some reason, I seem to be getting only about 1MB/s on an SSHFS connection that is routed on the zeroshell box. When I change it so that it's on the same subnet (e.g. just going through the switch), I get 22+MB/s. I'm not sure whether it's
a) the dmesg errors slowing the connection down, i.e. the driver situation isn't 100%
b) the Eee PC not being able to handle the workload (doubtful I think, even though USB shifts workload to the CPU)
c) the USB NIC isn't as fast as it is supposed to be

However, if all you are after is a way to filter your connection to the internet, it works really well. And if you are using it to route between two subnets on your home network, provided they don't need to transfer massive files between each other, it works well too.
Back to top
View user's profile Send private message
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Thu Sep 09, 2010 12:59 pm    Post subject: Reply with quote

Had a bit more of a play... I realized that I am only getting 160-200KB/s when routed through the zeroshell Eee PC, using sshfs. I tried looking at top and there is next to no CPU being used, and very little memory. dmesg gives a pretty much constant stream of that earlier message "asix_rx_fixup()" etc. This happens whether I use a USB200M or a D-Link DUB-E100.

Other than that, it's working perfectly. URL filtering is great, no slowdown on dansguardian, it all "just works". With a new kernel or maybe even kernel module this would be working phenomenally. And realistically, for just one subnet it works ok as is. The maximum speed I can download is 570KB/s, which is not the full bandwidth but better than 200KB/s.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Linux and Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group