Author Topic: Help - Usb-ethernet On C1000  (Read 6988 times)

rohanoberoi

  • Newbie
  • *
  • Posts: 22
    • View Profile
Help - Usb-ethernet On C1000
« on: May 20, 2005, 08:20:35 am »
Hi,

I have a C1000 running stock Sharp ROM in English mode. Connected an iRiver USB mini-A cable and a Hawking HUF11 10/100 Ethernet-USB1.1 adaptor. I'm flying a little blind here, most of the information I've found talks about connecting a Zaurus to a Linux desktop, not directly to a network over a USB-Ethernet adaptor.

Code: [Select]
% su -
# lsusb
Bus 001 Device 001:ID 0000:0000
Bus 001 Device 002: ID 0bda:8150 Realtek Semiconductor Corp. RTL8150 Fast Ethernet Adapter
# modprobe usbnet
modprobe: Can't locate module usbnet
# modprobe usbdnet
modprobe: Can't locate module usbdnet
# lsmod
Module                  Size  Used by
pxa_bi                 24912   0  (unused)
net_fd                 25216   0  (unused)
usbdcore               35504   0  [pxa_bi net_fd]
usb_ohci_pxa27x        21696   0  (unused)
usbcore                63264   1  [usb_ohci_pxa27x]
usbdmonitor             5488   0
usb-monitor             6496   0
sharp_mmcsd_m          41008   2
# ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
# modprobe -l
/lib/modules.rom/2.4.20/kernel/arch/arm/mach-pxa/registers.o
/lib/modules.rom/2.4.20/kernel/drivers/block/aloha/aloha.o
/lib/modules.rom/2.4.20/kernel/drivers/block/aloha/aloha_serial.o
/lib/modules.rom/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o
/lib/modules.rom/2.4.20/kernel/drivers/input/evdev.o
/lib/modules.rom/2.4.20/kernel/drivers/input/joydev.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/acm.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/canoncam.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/bi/pxa_bi.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/net_fd/net_fd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/storage_fd/storage_fd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdcore.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdmonitor.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdserial.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/hid.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/storage/usb-storage.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb-monitor.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbcore.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbkbd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbmouse.o
/lib/modules.rom/2.4.20/net/p80211.o
/lib/modules.rom/2.4.20/pcmcia/memory_cs.o
/lib/modules.rom/2.4.20/pcmcia/prism2_cs.o
/lib/modules.rom/2.4.20/pcmcia/sharpzdc_cs.o
# modprobe prism2_usb
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: kernel-module version mismatch
        /lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o was compiled for kernel version 2.4.18-rmk7-pxa3-embedix
        while this kernel is version 2.4.20.
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: insmod /lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o failed
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: insmod prism2_usb failed
#

Any suggestions, anyone?  It seems strange that the modules that came with the stock ROM are incompatible with the stock kernel.  I can't tell if one of these modules ought to work with my USB-Ethernet card either.

Thanks!

Rohan
SL-C1000 Sharp ROM

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Help - Usb-ethernet On C1000
« Reply #1 on: May 20, 2005, 09:04:49 am »
Quote
Any suggestions, anyone? It seems strange that the modules that came with the stock ROM are incompatible with the stock kernel. I can't tell if one of these modules ought to work with my USB-Ethernet card either.

Yes it is strange, but these drivers appear to be for a wifi card so have nothing to do with your usb adaptor.

Quote
# modprobe usbnet
modprobe: Can't locate module usbnet
# modprobe usbdnet
modprobe: Can't locate module usbdnet

These modules (or one of them, can't remember which) are specifically used to make the zaurus appear as a usb ether net device itself, therefore they are not what you want to drive your usb device.

You need a driver called 'rue' from my quick google search. I've no idea whether this is available in 2.4.20, you'll have to do some googling and find out.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Help - Usb-ethernet On C1000
« Reply #2 on: May 20, 2005, 09:25:41 am »
Quote
Hi,

I have a C1000 running stock Sharp ROM in English mode. Connected an iRiver USB mini-A cable and a Hawking HUF11 10/100 Ethernet-USB1.1 adaptor. I'm flying a little blind here, most of the information I've found talks about connecting a Zaurus to a Linux desktop, not directly to a network over a USB-Ethernet adaptor.

Code: [Select]
% su -
# lsusb
Bus 001 Device 001:ID 0000:0000
Bus 001 Device 002: ID 0bda:8150 Realtek Semiconductor Corp. RTL8150 Fast Ethernet Adapter
# modprobe usbnet
modprobe: Can't locate module usbnet
# modprobe usbdnet
modprobe: Can't locate module usbdnet
# lsmod
Module                  Size  Used by
pxa_bi                 24912   0  (unused)
net_fd                 25216   0  (unused)
usbdcore               35504   0  [pxa_bi net_fd]
usb_ohci_pxa27x        21696   0  (unused)
usbcore                63264   1  [usb_ohci_pxa27x]
usbdmonitor             5488   0
usb-monitor             6496   0
sharp_mmcsd_m          41008   2
# ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
# modprobe -l
/lib/modules.rom/2.4.20/kernel/arch/arm/mach-pxa/registers.o
/lib/modules.rom/2.4.20/kernel/drivers/block/aloha/aloha.o
/lib/modules.rom/2.4.20/kernel/drivers/block/aloha/aloha_serial.o
/lib/modules.rom/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o
/lib/modules.rom/2.4.20/kernel/drivers/input/evdev.o
/lib/modules.rom/2.4.20/kernel/drivers/input/joydev.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/acm.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/canoncam.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/bi/pxa_bi.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/net_fd/net_fd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/storage_fd/storage_fd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdcore.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdmonitor.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/device/usbdserial.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/hid.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/storage/usb-storage.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb-monitor.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usb_ohci_pxa27x.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbcore.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbkbd.o
/lib/modules.rom/2.4.20/kernel/drivers/usb/usbmouse.o
/lib/modules.rom/2.4.20/net/p80211.o
/lib/modules.rom/2.4.20/pcmcia/memory_cs.o
/lib/modules.rom/2.4.20/pcmcia/prism2_cs.o
/lib/modules.rom/2.4.20/pcmcia/sharpzdc_cs.o
# modprobe prism2_usb
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: kernel-module version mismatch
        /lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o was compiled for kernel version 2.4.18-rmk7-pxa3-embedix
        while this kernel is version 2.4.20.
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: insmod /lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o failed
/lib/modules.rom/2.4.20/kernel/drivers/usb/prism2_usb.o: insmod prism2_usb failed
#

Any suggestions, anyone?  It seems strange that the modules that came with the stock ROM are incompatible with the stock kernel.  I can't tell if one of these modules ought to work with my USB-Ethernet card either.

Thanks!

Rohan
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80650\"][{POST_SNAPBACK}][/a][/div]


usbdnet is for connecting your Z to a PC via the usb link cable.

since your usb device seems to be a rtl8150, you're in luck!

have a look at my website which describes how you can get your usb lan device working.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

rohanoberoi

  • Newbie
  • *
  • Posts: 22
    • View Profile
Help - Usb-ethernet On C1000
« Reply #3 on: May 20, 2005, 10:47:07 am »
Thanks, that looks promising. Searching for rtl8150-1.o on Google only points to your site, which doesn't seem to have a download link. I've found various variants of the rtl8150.c, but I can't seem to get them to compile.

I did find one "rtl8150.o" but it does nothing and does not create eth0 when I drop it in the directory you specified.  I'm still looking for a way to either compile the driver or find a working copy of the binary. You couldn't put up a link to your binary, could you?

Rohan


Quote
since your usb device seems to be a rtl8150, you're in luck!

have a look at my website which describes how you can get your usb lan device working.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80662\"][{POST_SNAPBACK}][/a][/div]
SL-C1000 Sharp ROM

rohanoberoi

  • Newbie
  • *
  • Posts: 22
    • View Profile
Help - Usb-ethernet On C1000
« Reply #4 on: May 20, 2005, 11:44:33 am »
In case it helps anyone else, I found the module to use.  It's at:

http://www.sky.sannet.ne.jp/morostar/download/download.html

Careful, you have to use the second link, the file that is under the SL-C3000 directory; there are two.

I now have eth0.  Still trying to get the network configuration working.

Rohan
SL-C1000 Sharp ROM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Help - Usb-ethernet On C1000
« Reply #5 on: May 20, 2005, 12:52:26 pm »
Quote
In case it helps anyone else, I found the module to use.  It's at:

http://www.sky.sannet.ne.jp/morostar/download/download.html

Careful, you have to use the second link, the file that is under the SL-C3000 directory; there are two.

I now have eth0.  Still trying to get the network configuration working.

Rohan
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

actually this package contains the driver plus setup scripts for eth0

[a href=\"http://www.users.on.net/~hluc/myZaurus/custom/netswitch_0.3_arm.ipk]http://www.users.on.net/~hluc/myZaurus/cus...tch_0.3_arm.ipk[/url]

or you can just download the driver from http://www.users.on.net/~hluc/myZaurus/cus..._2.4.20_arm.ipk
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Help - Usb-ethernet On C1000
« Reply #6 on: July 28, 2005, 04:18:11 pm »
tried it doesnt work.....any suggestions where to start?

zilch on the got it, had to do a restore...7 days old...ewwww.
Now getting cant find eth0, any ideas? i have uninstalled and reinstalled it. Keeps asking if the cable is plugged in(it is).
« Last Edit: July 30, 2005, 03:38:04 am by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
Help - Usb-ethernet On C1000
« Reply #7 on: February 21, 2006, 03:24:15 pm »
anyone found a solutions for this?

I'm actually in the same situation with a C3000 and a Belkin USB to lan, installed the rtl driver from meanie's site and tried the netswitch application and have the same experience;  the application keeps asking if the cable is plugged in... I'm getting desperate on this and am looking for a CF ethernet card that works out of the box, I realy need the have ethernet on my C3000
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Help - Usb-ethernet On C1000
« Reply #8 on: February 21, 2006, 03:46:17 pm »
Quote
anyone found a solutions for this?

I'm actually in the same situation with a C3000 and a Belkin USB to lan, installed the rtl driver from meanie's site and tried the netswitch application and have the same experience;  the application keeps asking if the cable is plugged in... I'm getting desperate on this and am looking for a CF ethernet card that works out of the box, I realy need the have ethernet on my C3000
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115626\"][{POST_SNAPBACK}][/a][/div]


see if its loaded, lsmod. Whats the output. BTW Mine is working just fine, stock package from Meanies site..
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Help - Usb-ethernet On C1000
« Reply #9 on: February 21, 2006, 08:00:45 pm »
Quote
anyone found a solutions for this?

I'm actually in the same situation with a C3000 and a Belkin USB to lan, installed the rtl driver from meanie's site and tried the netswitch application and have the same experience;  the application keeps asking if the cable is plugged in... I'm getting desperate on this and am looking for a CF ethernet card that works out of the box, I realy need the have ethernet on my C3000
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115626\"][{POST_SNAPBACK}][/a][/div]

use the latest version and if you get the message about the cable just run
net reload as root or pull out the cable and stick it back in
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Mac

  • Newbie
  • *
  • Posts: 36
    • View Profile
Help - Usb-ethernet On C1000
« Reply #10 on: February 24, 2006, 08:26:46 am »
@bam;  the line you want to read from lsmod:

pegasus   used 1


I installed the latest version and the other things (sudo,...) and now it works
 (yay! Thanks meanie for the scripts), however it only works using    net dhcp  

(I have to give my password and then I can nog get the CLI prompt back, I have to close terminal)

When I click on Netswitch in the gui nothing happens and   net gui   complaints about
/etc/sysconfig/netconf/gui.conf   not being found, any suggestions?

only thing I don not understand is the "make sure zaurus has NOPASSWD for ifconfig and dhcpd" , I know how to use visudo, but do not know the correct syntax...

any help is appreciated...
« Last Edit: February 24, 2006, 10:27:33 am by Mac »
C3000 Sharp ROM
Dlink wifi - Belkin usb2lan
Billionton cf ethernet
512 mb SD

www.dinozaurus.com