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 

USB nic wierdness

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



Joined: 14 Oct 2009
Posts: 22

PostPosted: Fri Nov 13, 2009 10:44 pm    Post subject: USB nic wierdness Reply with quote

Hello all....

When we first tested ZS, we were using some real old HP hardware with usb Cisco/Linsys ethernet adapters. They came up as generic...but they worked great.

Now we have moved to a smaller, newer asus unit, and here's what happens.

We boot from a flash card...and the USB nic never shows up...yet the onboard NIC shows fine. On the USB nic itself...no link lights. If I unplug the nic from the back of the machine, and plug it back in...the link lights come on...but ZS does not see it in the GUI.

Since I'm not sure the flavor of linux...how does one get this to refresh so the USB NIC is seen and can this be done in one of the startup scripts so we don't need to do it afterward?

Thanks

TP
Back to top
View user's profile Send private message
ppalias



Joined: 17 Dec 2008
Posts: 1151
Location: Athens, Greece

PostPosted: Mon Nov 16, 2009 9:10 am    Post subject: Reply with quote

Check if there is something to be configured on the BIOS.
After the ZS is booted check in a shell if the network interface has been recognized.
Code:
lsusb

then check if the corresponding module is loaded.
Code:
lsmod

then check if the interface is working
Code:
ifconfig -a

If you cannot find something
Code:
dmesg | grep ETH

might prove helpful for locating your device name.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Thomas_Powers



Joined: 14 Oct 2009
Posts: 22

PostPosted: Mon Nov 16, 2009 3:01 pm    Post subject: Reply with quote

Well...we run the lsusb and we see the device at 0b95:7720 (we know this because if we remove it...and rerun lsusb...it is missing)

I look that up and it actually turns out to be

vendor: 0b95 ("ASIX Electronics Corp."), product: 7720 ("AX88772")

LSMOD however shows nothing about the usb ehternet device nor asix.

I do a search on the ZS box and I find in /cdrom/modules/2.6.25.20/kernel/drivers/net/usb/asix.ko but I'm not sure how to load it..and more importantly...how to get it to auto load each time.

ifconfig comes back with the info about the onboard nic, the dummy1 conncetion, and the built in VPN connection...but no USB (because there is no mod loaded for it I would assume.)

The GREP command comes back with info only about eth00...specifically r8169 : ETH00: link up.

So...what does one need to do to get the module to load for this usb nic?

All help is greatly appreciated.

TP
Back to top
View user's profile Send private message
aseques



Joined: 16 Jun 2009
Posts: 59

PostPosted: Mon Nov 16, 2009 3:59 pm    Post subject: Reply with quote

Probably the kernel is too old, or the drivers are missing, look for wich module is using in any ordinary linux distribution. i.e. voyage.hk (doing an lsmod should help too)
Once you've got the module name, look for it in zeroshell it should be in /lib/usb or /lib/net
Back to top
View user's profile Send private message
Thomas_Powers



Joined: 14 Oct 2009
Posts: 22

PostPosted: Mon Nov 16, 2009 5:43 pm    Post subject: Reply with quote

Well...we found the asix.ko in cdrom/modules/2.6.25.20/kernel/drivers/net/usb/asix.ko

if I manually do an insmod cdrom/modules/2.6.25.20/kernel/drivers/net/usb/asix.ko

and then an ifconfig -a...a new connection called eth0 shows up...and the mac address matches the device.

but if I hit freresh in the web gui...I see no network interface of eth0.

So...my question is this...

1. Why would it not show up in the web gui?
2. what do I need to do to make sure this asix.ko actually loads each time?

I'm so close...I can taste it!!

THanks for everyone's help to this point!!

TP
Back to top
View user's profile Send private message
ppalias



Joined: 17 Dec 2008
Posts: 1151
Location: Athens, Greece

PostPosted: Mon Nov 16, 2009 11:14 pm    Post subject: Reply with quote

Code:
modprobe asix

I was not able to find where to add it exactly to make sure it is loaded upon boot. Maybe you could try in
Code:
/etc/rc.d/init.d/pciprobe
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Thomas_Powers



Joined: 14 Oct 2009
Posts: 22

PostPosted: Tue Nov 17, 2009 3:53 pm    Post subject: Reply with quote

Please forgive my sheer ignorance in these matters.

I guess before I try to get it to load every time, I need to know how to get it to show up in the gui. The ifconfig shows the adapter, yet the web console will not show it. I notice the naming of the primary connection in the console is ETH00, and this new one shows up as eth0...possibly a conflict?

If anyone knows where to name this connection and how to refresh it in the gui, I would be greatly appreciative.

Thanks

TP
Back to top
View user's profile Send private message
ppalias



Joined: 17 Dec 2008
Posts: 1151
Location: Athens, Greece

PostPosted: Tue Nov 17, 2009 11:05 pm    Post subject: Reply with quote

I guess that the interface MUST exist before the gui is started, so you should make sure the module is loaded along with the other interfaces' modules.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Vizzini



Joined: 20 Aug 2010
Posts: 13

PostPosted: Thu Aug 26, 2010 7:46 am    Post subject: Reply with quote

It wasn't clear that this was resolved, but I've written a howto for this here:
http://www.zeroshell.net/eng/forum/viewtopic.php?p=8117#8117
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