Author Topic: Howto Load Usb Driver(s) To Get Usbd0?  (Read 40908 times)

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #30 on: May 31, 2006, 11:15:03 am »
Quote
Quote
Actually it doesn't (take another peek), but no matter.
Yes it does.

You say you set the Zaurus IP address to 192.168.129.201, which is standard.

the screenshot shows the top line of the WinXP dialog also indicating an IP address of 192.168.129.201, this therefore, won't work.

I have had the old drivers installed, but they make no difference as the ID numbers have changed with the gadget ethernet driver (and in any case it appears that your gadget driver is working as the device is recognised).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129111\"][{POST_SNAPBACK}][/a][/div]
I think we need to clear this up, as this might be the cause of my problem. I'm looking at my windows network settings for my zaurus connection (which was called 'Local Area Connection 2' & which I've renamed to Zaurus). This is the same setting I've had that always worked with previous 2.4 kernel connections. I have 192.168.129.201 in the 'IP address' field, 255.255.255.0 in the 'Subnet mask' field and '192.168.129.200 in the 'Default gateway' field. What values do you have for each of these?
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #31 on: May 31, 2006, 12:12:06 pm »
On the Windows machine:

IP: 192.168.129.200
Subnet: 255.255.255.0
gateway: my modem's IP address
(so this connection can talk to the outside world, hopefully  )

On the Zaurus:

IP: 192.168.129.201
subnet: 255.255.255.0
gateway: 192.168.129.200
(so that my Zaurus routes stuff to the PC, probably also needs some 'route' magic)


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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #32 on: June 04, 2006, 10:02:00 pm »
Quote
On the Windows machine:

IP: 192.168.129.200
Subnet: 255.255.255.0
gateway: my modem's IP address
(so this connection can talk to the outside world, hopefully  )

On the Zaurus:

IP: 192.168.129.201
subnet: 255.255.255.0
gateway: 192.168.129.200
(so that my Zaurus routes stuff to the PC, probably also needs some 'route' magic)[div align=\"right\"][a href=\"index.php?act=findpost&pid=129151\"][{POST_SNAPBACK}][/a][/div]
I'm not trying to argue the fact that this works for you, but for me, it locks up my network connection (presumably with an ip address conflict). How come under a 2.4 kernel rom my Z's net connection ip had to match that of the Z, and it worked? I always understood that it was the way of letting both the Z & the pc know the common address. If I understand correctly, it seems you have it set up with two.

I'm going to lay this out again just to make sure we're not talking about two different things. First I have my pc's connection to the net set up as dhcp. Let's say it gets an address of 10.10.0.4 (I have no control over the subnet used, i.e. I can't change it). Formerly I've had the Z's connection on the pc side set up like this:

ip: 192.168.129.201
subnet: 255.255.255.0
gateway: (blank)

and my Z set up like this:

ip: 192.168.129.201
subnet: 255.255.255.0
gateway: (blank)

Which allowed me to ssh in to my Z from the pc, but the Z was never able to get to the net. I always wanted to fix that but never could. But you're saying I should have the Z's connection on the pc side set up like this:

ip: 192.168.129.200
subnet: 255.255.255.0
gateway: 10.10.0.4

and my Z set up like this:

ip: 192.168.129.201
subnet: 255.255.255.0
gateway: 192.168.129.200

Correct? thks
GROG!

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #33 on: June 05, 2006, 03:14:28 am »
>>presumably with an ip address conflict
*************

Sure, you were contradicting the basics of TCP-IP...

Ant

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #34 on: June 05, 2006, 06:26:39 am »
Quote
>>presumably with an ip address conflict
*************

Sure, you were contradicting the basics of TCP-IP...[div align=\"right\"][a href=\"index.php?act=findpost&pid=129819\"][{POST_SNAPBACK}][/a][/div]
So you're saying I was right in the first place?
GROG!

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #35 on: June 05, 2006, 09:06:21 am »
Quote
Quote
>>presumably with an ip address conflict
*************

Sure, you were contradicting the basics of TCP-IP...[div align=\"right\"][a href=\"index.php?act=findpost&pid=129819\"][{POST_SNAPBACK}][/a][/div]
So you're saying I was right in the first place?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129845\"][{POST_SNAPBACK}][/a][/div]

NO!

grog,

on a given subnet, each NIC is supposed to own a distinct ip address.
So, you'd need TWO different IP's on the same subnet: one for the Z and one for the PC.

Ant

EDIT
This is  a "normal" case: what's unique is the MAC address and not the IP address.
But to be precise, a NIC can have several ip *aliases*.
« Last Edit: June 05, 2006, 12:02:07 pm by ant »

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #36 on: June 05, 2006, 11:11:38 am »
Quote
Quote
So you're saying I was right in the first place?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129845\"][{POST_SNAPBACK}][/a][/div]NO!

grog,
on a given subnet, each NIC is supposed to own a distinct ip address.
So, you'd need TWO different IP's on the same subnet: one for the Z and one for the PC.[div align=\"right\"][a href=\"index.php?act=findpost&pid=129876\"][{POST_SNAPBACK}][/a][/div]
errggghh. I think we're all getting confused here (or at least I am). I know that different boxen on the same subnet require different ip's. But I thought that the Z's usb settings on the pc side needed to match, i.e. the settings represented how the Z as a sudo-network (usb) device could be addressed by the pc. How else could the pc be able to contact the Z unless the address was hard-coded into the usb settings. And by putting a different address in there, it seems to me to fuddle up the mix. Like I said, this always worked fine before I stumbled blindly into 2.6 kernel land.

I doubt that I'm explaining myself properly. I'll conitnue to hack at it, if I stumble on a solution I'll post it. thks
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #37 on: June 05, 2006, 11:54:46 am »
Quote
errggghh. I think we're all getting confused here (or at least I am). I know that different boxen on the same subnet require different ip's. But I thought that the Z's usb settings on the pc side needed to match, i.e. the settings represented how the Z as a sudo-network (usb) device could be addressed by the pc. How else could the pc be able to contact the Z unless the address was hard-coded into the usb settings. And by putting a different address in there, it seems to me to fuddle up the mix.

The gadget or CDC/RNDIS ethernet driver makes the usb connection appear to be an ethernet device on the PC end, the same goes for the driver on the Zaurus end. Therefore you handle it exactly the same as if you were connecting a cross-over ethernet cable between two computers with real ethernet cards.

Quote
Like I said, this always worked fine before I stumbled blindly into 2.6 kernel land.

Hmm...

Anyway, the two need different IP addresses. what happens when you change them to be different & both on the same subnet?


Simon

P.S. I'm sure you already appreciate this, but if you setup with an IP of .201 on the Zaurus and .200 on the PC, make sure you try to ping/ssh to .201 from the PC, and to .200 from the Zaurus.
« Last Edit: June 05, 2006, 11:57:07 am by lardman »
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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #38 on: June 05, 2006, 01:15:13 pm »
Quote
Anyway, the two need different IP addresses. what happens when you change them to be different & both on the same subnet?
I have that right now, 192.168.129.200 on the pc side, 192.168.129.201 on the Z. The network settings on the pc takes a llllooonnnggg time to come up when I try to access it's properties & it won't initialize at all. I tried removing the gateway address (my pc's network address), but makes no difference.

Quote
P.S. I'm sure you already appreciate this, but if you setup with an IP of .201 on the Zaurus and .200 on the PC, make sure you try to ping/ssh to .201 from the PC, and to .200 from the Zaurus.[div align=\"right\"][a href=\"index.php?act=findpost&pid=129901\"][{POST_SNAPBACK}][/a][/div]
Still makes no sense to me, but I'll play along . Right now I can't ping either address. Until I get the interface back up again, it's really snafu'd.
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #39 on: June 05, 2006, 05:57:19 pm »
ok, so I decided to try something really wild & wacky . I installed OZ/OPIE 3.5.4.1.rc4. Set root's password, set the usb0 ip to 192.168.129.201 & left the pc's settings as per lardmans' instructions and ...

IT WORKS!! IT WORKS!! IT WORKS!!

So I kept on my wacky road & did a fresh install of gpe. Set up usb0 in the exact same way and IT DOES NOT WORK!!!

So why can't I get the gpe image to work!!!!????? What is the diff between the gpe & opie images at this level. Nothing, or so I formerly believed.
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #40 on: June 06, 2006, 06:38:54 am »
Run 'lsmod' on the GPE image and see whether the g_ether module is loaded.

If not, you need to 'modprobe g_ether' (probably need to cd to its location under /lib/modules/...)


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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #41 on: June 06, 2006, 06:50:56 am »
Quote
Run 'lsmod' on the GPE image and see whether the g_ether module is loaded.

If not, you need to 'modprobe g_ether' (probably need to cd to its location under /lib/modules/...)[div align=\"right\"][a href=\"index.php?act=findpost&pid=130031\"][{POST_SNAPBACK}][/a][/div]
Done. Here's specifically the steps I had to take with both images:

- edit /etc/network/interfaces to change usb0 to 192.168.129.201 & gateway to 192.168.129.200
- modprobe g_ether
- ifup usb0
GROG!

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #42 on: June 06, 2006, 03:37:25 pm »
Quote
Quote
Run 'lsmod' on the GPE image and see whether the g_ether module is loaded.

If not, you need to 'modprobe g_ether' (probably need to cd to its location under /lib/modules/...)[div align=\"right\"][a href=\"index.php?act=findpost&pid=130031\"][{POST_SNAPBACK}][/a][/div]
Done. Here's specifically the steps I had to take with both images:

- edit /etc/network/interfaces to change usb0 to 192.168.129.201 & gateway to 192.168.129.200
- modprobe g_ether
- ifup usb0[div align=\"right\"][a href=\"index.php?act=findpost&pid=130038\"][{POST_SNAPBACK}][/a][/div]
Just wanted to make myself clear in case there's any confusion. These are the steps that I previously took that enabled only opie to work. I haven't made any headway since that point. thks
« Last Edit: June 06, 2006, 04:04:14 pm by grog »
GROG!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #43 on: August 08, 2006, 07:05:05 am »
Grog, the same instructions should work for you with GPE (the base systems are the same). Are you saying that they don't work?

If so, at what point do they fail?


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

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Howto Load Usb Driver(s) To Get Usbd0?
« Reply #44 on: August 08, 2006, 01:30:38 pm »
Quote
Grog, the same instructions should work for you with GPE (the base systems are the same). Are you saying that they don't work?

If so, at what point do they fail?[div align=\"right\"][a href=\"index.php?act=findpost&pid=137800\"][{POST_SNAPBACK}][/a][/div]
I'd pretty much given up on this, but I'll take another stab. i installed 3.5.4.1.release first with OPIE & setup my windows 2000 pc & Z exactly as you previously suggested:
Quote
On the Windows machine:

IP: 192.168.129.200
Subnet: 255.255.255.0
gateway: my modem's IP address
(so this connection can talk to the outside world, hopefully  )

On the Zaurus:

IP: 192.168.129.201
subnet: 255.255.255.0
gateway: 192.168.129.200
(so that my Zaurus routes stuff to the PC, probably also needs some 'route' magic)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129151\"][{POST_SNAPBACK}][/a][/div]
And I 'modprobe g_ether' & 'ifup usb0', but while the pc shows the network device loaded, I can't ping nor contact the Z as '192.168.129.201'.

I think the pc is now confused. I recognized the Z as a new device, even though I had previously tried this with rc4. I had to point it at the usb8023k.sys driver again & the new network icon now says it's "Linux USB Ethernet/RNDIS Gadget #2". When I set the ip address, it complained that it had the same address as the "Linux USB Ethernet/RNDIS Gadget", but that isn't shown anywhere so I can delete or change it's settings. So I think this may be an address conflict problem between the two devices, but I can't see any way of removing the first one.

I'll try it on my XP box when I can make time @ home.

(sigh) I love windows
GROG!