Author Topic: Connection Issue Driving Me Nuts  (Read 11023 times)

imrambi

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« on: April 15, 2005, 05:47:57 pm »
I have a 5600 and I'm running gentoo. On both my laptop (PII 233) and my desktop (AMD 1.2Ghz) running kernel 2.6.11.5. running lsusb showss that the device is connected but I don't have usb0 appearing. I am not getting any errors in /var/log/messages. What could be wrong?

berkenb

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #1 on: April 15, 2005, 06:26:05 pm »
Quote
I have a 5600 and I'm running gentoo. On both my laptop (PII 233) and my desktop (AMD 1.2Ghz) running kernel 2.6.11.5. running lsusb showss that the device is connected but I don't have usb0 appearing. I am not getting any errors in /var/log/messages. What could be wrong?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75435\"][{POST_SNAPBACK}][/a][/div]

If you don't have hotplug set up, you might have to do a "modprobe usbnet". Also, you might have to bring the appropriate network interface up ("usb0", I think)...
« Last Edit: April 15, 2005, 06:26:35 pm by berkenb »

imrambi

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #2 on: April 16, 2005, 12:00:05 am »
Quote
Quote
I have a 5600 and I'm running gentoo. On both my laptop (PII 233) and my desktop (AMD 1.2Ghz) running kernel 2.6.11.5. running lsusb showss that the device is connected but I don't have usb0 appearing. I am not getting any errors in /var/log/messages. What could be wrong?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75435\"][{POST_SNAPBACK}][/a][/div]

If you don't have hotplug set up, you might have to do a "modprobe usbnet". Also, you might have to bring the appropriate network interface up ("usb0", I think)...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75441\"][{POST_SNAPBACK}][/a][/div]


I have usbnet modprobed and when I do ifconfig usb0 up (given ip and all) I get device not found.

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #3 on: April 17, 2005, 07:18:36 am »
Quote
Quote
Quote
I have a 5600 and I'm running gentoo. On both my laptop (PII 233) and my desktop (AMD 1.2Ghz) running kernel 2.6.11.5. running lsusb showss that the device is connected but I don't have usb0 appearing. I am not getting any errors in /var/log/messages. What could be wrong?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75435\"][{POST_SNAPBACK}][/a][/div]

If you don't have hotplug set up, you might have to do a "modprobe usbnet". Also, you might have to bring the appropriate network interface up ("usb0", I think)...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75441\"][{POST_SNAPBACK}][/a][/div]


I have usbnet modprobed and when I do ifconfig usb0 up (given ip and all) I get device not found.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75477\"][{POST_SNAPBACK}][/a][/div]

Hi

You need a script in /etc/sysconfig(or equivilent)/network-scripts called ifcfg-usb0

This should contain
BOOTPROTO=static
BROADCAST=192.168.129.255
IPADDR=192.168.129.1
NETMASK=255.255.255.0
NETWORK=192.168.129.0
DEVICE=usb0

What I do is:-
modprobe usbnet
Then switch on Z with interface cable connected and wait for hourglass on Z to go
then
ifconfig usb0 192.168.129.201 netmask 255.255.255.0 up
then
ifconfig -a
this shows all network devices and you should have usb0
then
ping -c 4 192.168.129.201
to check connection

I have this in a script, my hotplug setup didnt seem to work so I stick with this and have no problems.
I have another script which just unloads the usbnet module and does an ifconfig -a to show that usb0 has gone.

I am using MDK10, but apart from slightly different locations of files and the name of the module (usbdnet on some) this should work on all systems

regards

Melee
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

melee

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #4 on: April 17, 2005, 10:10:39 am »
PS

Dont plug the USB cable into a hub.

Put it directly into one of the primary USB slots off the motherboard
(the ones below the PS2 keyboard and mouse connections on a modern m/board - not ones which come off fly leads from jumpers on the motherboard and may be lower down at the rear or at front)

I was completely unable to use my hub in Linux or WinXP and the connection got flaky when using one of the "extension USB slots" under WinXP

Don't have any answers - just what worked for me

Good Luck
C860 - with Sharp ROM
1GB SD and 2 GB & 256MB CF
WiFi, Bluetooth and Sharp CF camera cards
Ubuntu 6.06
(WinXP if I really have to)

imrambi

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #5 on: April 17, 2005, 12:52:42 pm »
My device is plugged directly into the root hub (the built in usb drives) and usb0 is added in the correct place.

I've had it working, just can't get it to see a usb0 device now. I do get logs saying that it has set an address using uhci-hcd.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Connection Issue Driving Me Nuts
« Reply #6 on: April 17, 2005, 01:13:25 pm »
What does dmesg show when you plug it in?

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

imrambi

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #7 on: April 17, 2005, 04:02:02 pm »
usb 1-1: new full speed USB device using uhci_hcd and address 8

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Connection Issue Driving Me Nuts
« Reply #8 on: April 17, 2005, 04:22:58 pm »
I don't know if this will help but I had this working with FC3, until I upgraded to the 2.6.11 kernel from 2.6.10.  I noticed imrambi is running 2.6.11.  I now get the same result.
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF

imrambi

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Connection Issue Driving Me Nuts
« Reply #9 on: April 17, 2005, 11:11:26 pm »
Thanks for the confirmation. I think its something with the 2.6.11.x kernel. I submitted a bug report. I also tried out 2.6.12-rc2, and I had the same issue. I'm sticking with 2.6.9 for right now.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Connection Issue Driving Me Nuts
« Reply #10 on: April 20, 2005, 08:06:58 am »
I had a similar problem, I've not fully diagnosed it, but I was seeing this in the /var/log/messages file:

Apr 20 12:54:33 ip30 kernel: usb 2-1: new full speed USB device using address 2
Apr 20 12:54:34 ip30 kernel: usb 2-1: device not accepting address 2, error -71

This was on a self-built kernel  (2.6.11) for SuSE9.2. If I booted the original SuSE kernel, it worked, and usb0 became available.

After a bit of googling, I wondered if it were the particular USB port on my motherboard, and switched it to a USB1 port from the USB2 (where it was plugged in more for convenience/accessibility than any other reason). And guess what!

Apr 20 12:57:43 ip30 kernel: usb 1-1: new full speed USB device using address 4
Apr 20 12:57:48 ip30 kernel: usb 1-1: control timeout on ep0in
Apr 20 12:57:48 ip30 kernel: usb 1-1: Product: Zaurus SL-C7x0/C860
Apr 20 12:57:48 ip30 kernel: usb 1-1: Manufacturer: Sharp
Apr 20 12:57:54 ip30 kernel: usb0: register usbnet at usb-0000:00:1d.0-1, Sharp Zaurus, PXA-2xx based

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Connection Issue Driving Me Nuts
« Reply #11 on: April 20, 2005, 08:17:00 am »
I don't have a Linux box with USB2 posts, but my Z works fine on my Windows box which does have - perhaps this is an issue with the way your usb modules on your Linux box handle the step down if a device doesn't support USB2 (though I'd have thought this would be a pretty obviously glaring sort of error and would be fixed very quickly).

Anyone with more info?

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

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Connection Issue Driving Me Nuts
« Reply #12 on: April 20, 2005, 08:34:55 am »
Quote
perhaps this is an issue with the way your usb modules on your Linux box handle the step down if a device doesn't support USB2 (though I'd have thought this would be a pretty obviously glaring sort of error and would be fixed very quickly).

Anyone with more info?

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

I suspect I broke my kernel's USB2 drivers somehow, and this made it stop unless I plugged into usb1 port.  Or, SuSE patched the usb drivers in their kernel and thus the Z works in usb1 and usb2 ports when running stock SuSE9.2 kernel.

interestingly, my palm pilot works quite happily in USB2 port, but that's using the ttyUSBx stuff.

anyway, I'm just glad it worked.

all I really want to do is copy over all my data from the Palm to the Z.. but of course things are never that simple!

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Optogeek

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://optogeek.homelinux.net
Connection Issue Driving Me Nuts
« Reply #13 on: April 20, 2005, 11:30:07 am »
In the changelog for 2.6.12.rc2 there is a fix to the usbnet support for the Zaurus to a bug that slipped in 2.6.11.  All the usb connectivity problems in the last week have been people upgrading to 2.6.11 on there PC.
SL-C860 running Cacko 1.23
SL-5500UK with 3.13 Sharp ROM + Cacko Kernel
Origo WLAN and BlueMonkey BT CFs
1GB Crucial SD
1GB Crucial CF