OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Usb Networking, Does it work ?
jeana
post Jan 14 2009, 12:53 AM
Post #1





Group: Members
Posts: 34
Joined: 6-September 05
Member No.: 8,047



Did somebody know how to activate the USB networking ?
Go to the top of the page
 
+Quote Post
Capn_Fish
post Jan 14 2009, 11:23 AM
Post #2





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



CODE
modprobe usbnet
ifconfig usb0 up xxx.xxx.xxx.xxx


That's how it works normally, at any rate (under Angstrom/Debian, as well as other distros not on the Z).
Go to the top of the page
 
+Quote Post
jeana
post Jan 15 2009, 01:14 AM
Post #3





Group: Members
Posts: 34
Joined: 6-September 05
Member No.: 8,047



QUOTE(Capn_Fish @ Jan 14 2009, 08:23 PM) *
CODE
modprobe usbnet
ifconfig usb0 up xxx.xxx.xxx.xxx


That's how it works normally, at any rate (under Angstrom/Debian, as well as other distros not on the Z).


Thank you for your reply Capn_Fish.

Unfortunately nothing happens when doing the modprobe and ifconfig :
  • In dmesg nothing is logged
  • ifconfig gives the error : usb0: ERROR while getting interface flags: No such device
    SIOCSIFADDR: No such device
    usb0: ERROR while getting interface flags: No such device
  • lsusb list only the following : Bus 001 Device 001: ID 1d6b:0001
  • When I connect or disconnect the USB cable nothing is logged in dmesg (if I put a mouse or an USB flash dmesg give me logs and the different device are recognized)
If I do a modprobe g_ether, I have the following with dmesg :
QUOTE
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using pxa27x_udc, OUT ep1out-bulk IN ep2in-bulk STATUS ep5in-int
usb0: MAC 46:8e:dc:59:4a:bf
usb0: HOST MAC 0e:1a:45:af:21:75
usb0: RNDIS ready
pxa2xx-udc pxa2xx-udc: UDC connecting

and lsusb gives the same result.

If I disconnect the USB cable, dmesg logs nothing.
If I reconnect the USB cable, dmesg logs :
QUOTE
pxa2xx-udc pxa2xx-udc: USB reset


Any idea ?
Go to the top of the page
 
+Quote Post
danr
post Jan 15 2009, 01:54 AM
Post #4





Group: Members
Posts: 138
Joined: 12-February 04
Member No.: 1,830



I have the following in /etc/network/interfaces

CODE
iface usb0 inet static
pre-up modprobe g_ether
address 192.168.129.201
netmask 255.255.255.0
broadcast 192.168.129.255
gateway 192.168.129.1
post-down rmmod g_ether


Try it out and see if it works for you.
Go to the top of the page
 
+Quote Post
jeana
post Jan 15 2009, 02:07 AM
Post #5





Group: Members
Posts: 34
Joined: 6-September 05
Member No.: 8,047



Thank you for your help danr, but it doesn't work too.

In dmesg I get the following log after an ifup usb0 with the configuration given :
QUOTE
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using pxa27x_udc, OUT ep1out-bulk IN ep2in-bulk STATUS ep5in-int
usb0: MAC a2:14:42:31:43:b8
usb0: HOST MAC 8e:ca:e5:54:f2:eb
usb0: RNDIS ready
pxa2xx-udc pxa2xx-udc: UDC connecting
NET: Registered protocol family 10
ADDRCONF(NETDEV_UP): usb0: link is not ready


The USB cable is connected to a Windows XP Workstation.
When we plug or unplug the USB cable nothing is detected on the workstation USB devices !
Go to the top of the page
 
+Quote Post
pelrun
post Jan 15 2009, 08:04 PM
Post #6





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Augh! I encountered that back when I was using gadget networking, but it's been 6 months and I've completely forgotten how I fixed it! sad.gif

Actually - did you ifup usb0 before or after plugging the cable in? I seem to recall it never worked properly unless I started it with the cable disconnected on the zaurus end.
Go to the top of the page
 
+Quote Post
jeana
post Jan 15 2009, 11:36 PM
Post #7





Group: Members
Posts: 34
Joined: 6-September 05
Member No.: 8,047



Thank you pelrun for you experience.

I tried with and without the USB cable plugged to launch ifup usb0 without success (I launched a reboot after each operation to be sure that the system is in the same state) sad.gif
Go to the top of the page
 
+Quote Post
Yao
post May 12 2009, 10:44 PM
Post #8





Group: Members
Posts: 2
Joined: 8-March 08
Member No.: 21,481



g_ether also not work for me.
I am using sl-c1000
Go to the top of the page
 
+Quote Post
apink
post May 13 2009, 09:33 AM
Post #9





Group: Members
Posts: 106
Joined: 2-August 05
Member No.: 7,764



QUOTE(jeana @ Jan 14 2009, 01:53 AM) *
Did somebody know how to activate the USB networking ?


FWIW: Whenever I plug in my usb ethernet adapter I have to run this code:

CODE
echo -n 1 >/sys/bus/usb/devices/1-2/bConfigurationValue


Some recent advance in the system development sets a lower power cutoff threshold that my adapter doesn't meet. Thus the workaround. I've never crashed using this workaround. It has been covered in the forums.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th December 2014 - 01:26 PM