Author Topic: Replace usbdnet with usbnet  (Read 6436 times)

gregkedro

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://www.greg-and-sue.com
Replace usbdnet with usbnet
« on: October 24, 2003, 07:09:28 am »
I patched my RH8 kernel with the usbdnet driver and installed it as a module. It didn\'t work to sync my Z, so (as per my last thread) I want to try to sync with usbnet.

I did rmmod usbdnet and now usbdnet does not show up in lsmod.

make && make install of usbnet returned errors.

When I put my Z in the cradle and watch /var/log/messages, it\'s still registering usbdnet (that it\'s looking for to make the connection).

Does anyone know how to clean usbdnet off my system so that usbnet is sought for instead?

I\'m trying to hunt down an rpm for usbnet to see if I can get that installed with no errors.

-Greg

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Replace usbdnet with usbnet
« Reply #1 on: October 27, 2003, 07:26:43 am »
It that because it\'s still aliased in /etc/modules.conf?
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

gregkedro

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://www.greg-and-sue.com
Replace usbdnet with usbnet
« Reply #2 on: October 27, 2003, 08:01:00 am »
Quote
It that because it\'s still aliased in /etc/modules.conf?

No. I commented it out. But, don\'t sweat it. I give up on this thing.

I have a copy of Slackware 9.1 on the way in. It runs the 2.4.22 kernel that has pda support built in - experimental. I\'m going to do a clean install on a spare partition with it to see if it will work. I\'ve heard from guys that have the new kernel, and it\'s not any better for syncing the 5600.

It\'s really a slap in the face to Linux geeks that Sharp would make a handheld with Linux and then not provide the proper interface and drivers for a Linux desktop. They make a Linux pda that only syncs with Windows.

I am also planning on getting a CompactFlash Card (ethernet, wired) to see if I can at least ftp into my unit and do file transfers. I use lots of small text files to keep track of information. I\'d like to be able to write them on my desktop and then transfer to the Z. FTP should do that for me. And, the qtopia desktop shows support for syncing via a \"normal\" ip address on a LAN (something I\'ll try later).

Thanks to all for the help. I\'ll probably be back on this site later to check out the howtos, tips and tricks, etc. Seems like a wealth of info here, even though I was pretty disappointed that the info didn\'t get me hooked up how I wanted. I guess it\'s still too much of \"bleeding edge\" technology and it\'ll take a while for the Linux drivers to get built and unbugged.

-Greg

cmoman

  • Newbie
  • *
  • Posts: 7
    • View Profile
Replace usbdnet with usbnet
« Reply #3 on: December 12, 2003, 04:17:05 pm »
Hello,

As root just modprobe usbnet
This little script should get you going. run as root

#!/bin/bash
modprobe usbnet
ifconfig usb0 192.168.129.1 netmask 255.255.255.0 up
route add -host 192.168.129.201 usb0

cmoman

  • Newbie
  • *
  • Posts: 7
    • View Profile
Replace usbdnet with usbnet
« Reply #4 on: December 12, 2003, 04:21:02 pm »
Perhaps I was a bit quick

make sure
CDEther
acm
usbdnet

are not loaded
rmmod CDEther
rmmod acm
rmmoc usbdnet

BTW what kernel does RH 8 run? I am using Suse8.2 2.4.20 so no kernel patching is required.
Your Slackware kernel sounds fine.

Chris

tiptone

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
Replace usbdnet with usbnet
« Reply #5 on: December 12, 2003, 05:44:43 pm »
hope you haven\'t given up totally yet, try blacklisting the undesired modules:

echo CDCEther ]] /etc/hotplug/blacklist
echo acm ]] /etc/hotplug/blacklist

i run RedHat only (Fedora now) and have built and connected several boxes with my Z, let us know if you have further problems/issues.

brian

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Replace usbdnet with usbnet
« Reply #6 on: June 04, 2004, 06:08:13 am »
Quote
Hello,

As root just modprobe usbnet
This little script should get you going. run as root

#!/bin/bash
modprobe usbnet
ifconfig usb0 192.168.129.1 netmask 255.255.255.0 up
route add -host 192.168.129.201 usb0


HI , i have tried these ....it gave error messages :


SIOCSIFADDR: No such device
usb0: unknown interface: No such device
SIOCSIFNETMASK: No such device
usb0: unknown interface: No such device

im using redhat kernel 2.4.26, any ideas on this? thanks a lot

oninitdialog

  • Newbie
  • *
  • Posts: 39
    • View Profile
Replace usbdnet with usbnet
« Reply #7 on: June 04, 2004, 08:21:09 am »
I too have seen these errors on my SuSE 9.0 box. This usually happens when the Zaurus has not been detected by the usb port. Use USBVIEW to make sure the device is connected. I have also found in SuSE 9.0 you have to first create the USB network device and then the script will run.
C860 PDAXROM + SL5500 Sharp ROM
Pocketop Keyboard
WCF-12, 256Meg SD, CF, GlobalSAT GPS receiver Z-ThinUSBCable, etc.
Gentoo

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Replace usbdnet with usbnet
« Reply #8 on: October 31, 2004, 04:48:28 pm »
I've just moved from RedHat 9 to Fedora Core 2. As usbnet comes with the distro, I'd like to use it (rather than compiling usbdnet). Present state:

- no trace of CDCEther, acm or usbdnet
- lsusb lists the Zaurus
- modprobe usbnet says (in /var/log/messages):
  usb0: register usbnet at usb-0000:00:11.2-2, Sharp Zaurus SL-5x00
  usbcore: registered new driver usbnet
- ifconfig only lists lo and eth0

I'm sure I need to set up an ifup-usb0 script somewhere under /etc. It's been so long... does anyone have a sample script I could use? Thx.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Replace usbdnet with usbnet
« Reply #9 on: October 31, 2004, 05:11:58 pm »
OK, solved it. Found some of my old docs, I edited /etc/modprobe.conf ("alias usb0 usbnet") and created /etc/sysconfig/network-scripts/ifcfg-usb0 which looks like this:
Code: [Select]
DEVICE=usb0
BOOTPROTO=static
BROADCAST=192.168.129.255
IPADDR=192.168.129.1
NETMASK=255.255.255.0
NETWORK=192.168.129.0
ONBOOT=no
However, when I ran "ifconfig usb0 up" and then "ifconfig usb0" it was listed as UP but had no IP address! It did have an IPv6 address which is completely useless to me. So I read up on ifconfig and ran "ifconfig usb0 inet 192.168.192.1 netmask 255.255.255.0". Now I can ping the Zaurus and I can even ssh into it. Hopefully I'll soon figure out how to make all this happen automatically when I insert the Z into the cradle...
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

dz

  • Administrator
  • Hero Member
  • *****
  • Posts: 589
    • View Profile
    • http://www.dangerz.net
Replace usbdnet with usbnet
« Reply #10 on: October 31, 2004, 06:06:06 pm »
I still think you should go to Slackware
http://www.dangerz.net
c860 : Cacko
The greatest experience we can have is the mysterious.
- Albert Einstein

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Replace usbdnet with usbnet
« Reply #11 on: November 01, 2004, 01:43:52 am »
Well, if I could multi-boot to Debian, Suse, Slackware, Linspire, Gentoo, Fedora, OpenBSD and FreeBSD with all of them sharing the same preferences & data... I think I might even find my ideal desktop OS  I have no doubt it is indeed possible but it'll have to wait until I'm retired...
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)