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

IPB

Welcome Guest ( Log In | Register )

> Usb Connection Howto, Windows & Linux - OE specific
lardman
post Apr 7 2005, 06:03 AM
Post #1





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Another pinned topic :-)

Let's nail setting up USB connections between a Z and a PC (running WinXP or Linux), which is a basic thing which ought to be documented (and which comes up from time to time).

What we need is:
* Your Z (hardware, OZ version, kernel version)
* Your PC OS (including kernel version/service pack/etc.)
* Where you got the drivers from (if needed)
* What changes you made on the PC (if any, mainly for Linux)
* What changes you made on your Z (if any)

Cheers,


Si

P.S. I know there are already HowTos in the ZUG HowTos area, however these generally apply to Sharp ROMs (and although there may not be many differences, there are enough).

By all means, lift the info from there if it works, it'll go back in there once this is all sorted.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
NickNak
post Sep 14 2005, 08:56 AM
Post #2





Group: Members
Posts: 11
Joined: 6-September 05
From: Bedfordshire, UK
Member No.: 8,046



Using an ethernet bridge to plug your Zaurus into your network seems to me preferable to routing a two-node subnet between your PC and the Z and then using NAT to give the Z access to your network/the internet. Details of how to do it are at the usbnet website. On Gentoo, this is particularly easy:

1. Create symlinks to /etc/init.d/net.lo called /etc/init.d/net.usb0 and /etc/init.d/net.br0
2. Put the following in /etc/conf.d/net:

CODE
bridge_br0="eth0"
# You need to configure eth0 and usb0 as null so that dhcp is not used,
# we don't want IP addresses etc for these interfaces.
config_eth0=( "null" )
config_usb0=( "null" )
# Could use config_br0=( "dhcp" )
config_br0=( "192.168.2.30" )
depend_br0() {
   need net.eth0
}
gateway="br0/192.168.2.1"
# when hotplug configures usb0, add it to the bridge.
postup() {
   local iface=${1}
   if [[ ${iface} == usb0 ]]; then
       brctl addif br0 ${iface}
   fi
}


Obviously tailor the IP addresses to suit.

3. Configure the TCP/IP connecton on the Zaurus to make it part of the same subnet as your PC, e.g.
IP Address = 192.168.2.50
Subnet Mask = 255.255.255.0
Gateway = 192.168.2.1
First and Second DNS the same as your PC.

4. Test the configuration:

CODE
/etc/init.d/net.eth0 stop
/etc/init.d/net.br0 start


then plug in and switch on the PDA. Check that your PC and PDA have network access

5. Make the new configuration permanent:

CODE
rc-update del net.eth0
rc-update add net.br0 default
Go to the top of the page
 
+Quote Post
jan
post Feb 19 2006, 12:51 PM
Post #3





Group: Members
Posts: 88
Joined: 10-February 06
Member No.: 9,115



QUOTE(NickNak @ Sep 14 2005, 06:56 PM)
Using an ethernet bridge to plug your Zaurus into your network seems to me preferable to routing a two-node subnet between your PC and the Z and then using NAT to give the Z access to your network/the internet.
*

Hmm, looks good, but I do need NAT, IP MASQ on the PC because I my internet is via PPP. Can I do netfilter IP MASQ together with bridging?
Go to the top of the page
 
+Quote Post

Posts in this topic
lardman   Usb Connection Howto   Apr 7 2005, 06:03 AM
lardman   Zaurus - C750, 2.6.11 kernel, OZ 3.5.3pre (probabl...   Apr 7 2005, 06:07 AM
darac   Zaurus: SL-5500 (Collie) Hentges.net ROM T7 (based...   Apr 13 2005, 12:45 PM
obergix   QUOTE(darac @ Apr 13 2005, 10:45 PM)Add the f...   May 18 2005, 12:15 AM
gfdsa   Zaurus: SL-600L, OZ 3.5.2, Dock Station PC: WinXP ...   Apr 14 2005, 08:58 AM
jancici   hi, for me this is not working, I can remember tha...   Apr 17 2005, 01:30 PM
lardman   Start a seperate thread please, this thread is jus...   Apr 18 2005, 12:10 AM
lardman   Zaurus: OZ 3.5.3 C7x0 with 2.4.18 kernel (GPE onl...   Apr 18 2005, 01:13 AM
dansawyer   The howto is very helpful as it is. I would sugge...   May 26 2005, 05:56 AM
niv   Windowz: you may want to use NT/2000/XP routing to...   Jun 19 2005, 05:48 PM
charcler   HELLO sysops... gurus... wanna.. new... all ;) M...   Aug 4 2005, 07:50 PM
ajaygautam   Z: SL5500, OZ 3.5.3,2.4.18-rmk7-pxa3-embedix PC: G...   Aug 11 2005, 10:47 AM
NickNak   Using an ethernet bridge to plug your Zaurus into ...   Sep 14 2005, 08:56 AM
Headrush   QUOTE(NickNak @ Sep 14 2005, 11:56 AM)Using a...   Sep 19 2005, 02:11 PM
jan   QUOTE(NickNak @ Sep 14 2005, 06:56 PM)Using a...   Feb 19 2006, 12:51 PM
NickNak   Using this method, usb0 and eth0 do not need IP ad...   Sep 19 2005, 02:31 PM
Headrush   I had this usbd connection working perfectly and t...   Dec 4 2005, 12:41 PM
lardman   No, no, no, no, no - this is a thread giving detai...   Dec 5 2005, 03:32 AM
7_feet_up   Debian unstable Zaurus USB-network how-to: Install...   Dec 17 2005, 09:08 AM
Storm   QUOTE(7_feet_up @ Dec 17 2005, 01:08 PM)Debia...   Jan 30 2006, 02:24 PM
7_feet_up   QUOTE(Storm @ Jan 30 2006, 11:24 PM)<snip...   Mar 20 2006, 01:24 PM
microsoft/linux   what happens if the usbnet driver is built into my...   Jan 22 2006, 09:49 PM
7_feet_up   QUOTE(microsoft/linux @ Jan 23 2006, 06:49 AM...   Jan 24 2006, 03:00 AM
microsoft/linux   ok, I changed GUIs, after I updated to 3.5.4. Now ...   Mar 20 2006, 09:11 PM
pgas   PC: windows XP Zaurus: 860 oz/gpe 3.5.4 2.6 kernel...   Mar 20 2006, 11:42 PM
jerrybme   QUOTE(pgas @ Mar 21 2006, 01:42 AM)PC: window...   Mar 24 2006, 07:05 AM
GenericAnimeBoy   For those of us poor fools who have to internet co...   Mar 21 2006, 10:34 PM
papercrane   The Cxx00 doesn't talk to Windows correctly ye...   Mar 29 2006, 12:32 PM
Tron   QUOTE(papercrane @ Mar 29 2006, 10:32 PM)The ...   Apr 4 2006, 12:25 AM
nick88   Hi, I followed the shell scripts and can ping a...   Apr 6 2006, 05:20 PM
telemetric_au   followed 7_feet_up's guide (thanks) and it wou...   Apr 17 2006, 06:33 AM
telemetric_au   well after mucking aroun some i cant get my z to p...   Apr 17 2006, 07:11 AM
telemetric_au   I GOT IT WORKING !!! --finally after ...   Apr 18 2006, 04:17 AM
telemetric_au   Just to make life even more sweet, i just set the ...   Apr 18 2006, 04:44 AM
telemetric_au   i just added an updated bridging guide to the wik...   Apr 28 2006, 03:25 PM
lardman   Please add stuff to the official OZ wiki: http://o...   Apr 29 2006, 02:03 PM
telemetric_au   trying to do it now, but the server is soooo slow....   Apr 29 2006, 02:25 PM
NickNak   I have run into problems with my bridging setup: ...   May 1 2006, 12:17 PM
7_feet_up   QUOTE(NickNak @ May 1 2006, 09:17 PM)I have r...   May 3 2006, 02:32 AM
telemetric_au   sorry, but i have no experience with that problem ...   May 2 2006, 03:09 PM
NickNak   The "USB Networking" howto submitted by ...   May 4 2006, 01:54 PM
telemetric_au   QUOTE(NickNak @ May 5 2006, 08:54 AM)The ...   May 4 2006, 03:04 PM
telemetric_au   NickNak: fixed up my title to debian rather than ...   May 4 2006, 03:20 PM
benplaut   waiting for an arch tutorial, all you arch users h...   Jul 18 2006, 06:51 PM
lardman   If someone fancies tidying up the info in this thr...   Jul 19 2006, 02:32 AM
speculatrix   I added some stuff which is somewhat 6000 specific...   Oct 10 2006, 05:38 AM
lardman   I'll have a look through, thanks Si   Oct 10 2006, 06:54 AM


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

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 02:09 PM