|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have been trying to find out for months how to use internet sharing via usb on a windows mobile 6 device under linux. I had managed in a prior post to get bluetooth PAND working and even to get bluetooth DUN and USB DUN working but had been unsuccessful with the USB internet sharing..until now!
This is based on information found here: http://ohioloco.ubuntuforums.org/sho...7&postcount=54 To connect your WM6 device via usb to your linux pc do the following: On your phone enable internet sharing via usb but do not connect the usb cable yet. Run the following commands..you may need to install "svn" for this to work: *note* If you run a kernel 2.6.31 or higher you will need to run the following patch before running make (provided by LordLanden): Code:
wget -qO- http://sprunge.us/BSjF | patch Code:
svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite cd usb-rndis-lite/ make sudo ./clean.sh sudo make install Code:
BOOTPROTO='dhcp' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='' MTU='1460' MRU='1500' NAME='' PEERDNS=no NETMASK='' NETWORK='' REMOTE_IPADDR='' STARTMODE='hotplug' USERCONTROL='no' _nm_name='static-0' Now plug the phone into the usb cable going to the pc and if you do a "dmesg" you should see the following (or something similar): ohci_hcd 0000:02:02.0: wakeup usb 3-2: new full speed USB device using ohci_hcd and address 4 usb 3-2: new device found, idVendor=0bb4, idProduct=0303 usb 3-2: new device strings: Mfr=1, Product=2, SerialNumber=3 usb 3-2: Product: Generic RNDIS usb 3-2: Manufacturer: HTC usb 3-2: SerialNumber: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX usb 3-2: configuration #1 chosen from 1 choice rndis0: register 'rndis_host' at usb-0000:02:02.0-2, RNDIS device, xx:xx:xx:xx:xx:xx and if you do an ifconfig you should have a new rndis0 device: rndis0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: 2002:48fa:7644:19:8200:60ff:fe0f:e800/64 Scope:Global inet6 addr: fec0::19:8200:60ff:fe0f:e800/64 Scope:Site inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1460 Metric:1 RX packets:761 errors:737 dropped:0 overruns:0 frame:0 TX packets:729 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:405771 (396.2 Kb) TX bytes:120796 (117.9 Kb) ---- The rndis0 device will exist both when internet sharing is enabled via usb and when it is NOT....here is how it works: If internet sharing IS enabled via usb you have access to the internet and will get an IP...default route will be set. If internet sharing is NOT enabled via usb then the rndis0 device will exist and can be used by programs such as syncE to manage your contact list or transfer files but you will not have internet access (from the phone) and more than likely you will not get an ip address auto assigned (it may keep the ip it used last). I know this works as I'm connected at the moment via the rndis0 device. I find it to be more responsive than the connection via bluetooth. Hope this helps someone. These instructions were specific for Opensuse but about the only thing you should have to change is making sure you have kernel-source installed so you can compile the module needed and you may have to define the rndis0 device somewhere other than /etc/sysconfig/network.
__________________
AT&T Tilt on T-mobile ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom T-Mobile MDA T-Mobile USA IPL/SPL: 2.26 GSM: 2.71.11 ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid] Qtek 8500 - WM6.1 PRO 5.2.19199 Last edited by famewolf; 10th November 2009 at 04:09 PM.. Reason: Patch for Kernel 2.6.31 and greater provided by LordLanden |
| Sponsored Links |
|
#2
|
|||
|
|||
|
hi famewolf!
really like your idea. And I wanted to use it aswell, but I didnt get it started under Ubuntu 7.10. First step with "svn" seems to be sucessfull. But I can't find that /etc/sysconfig/network/ifcfg-rndis0. I found out, that Ubuntu makes the settings in the /etc/network/interfaces. Is that right? And what do I have to write in it? Thanks for feedback, and sry for my bad english. greetz scheich |
|
#3
|
||||
|
||||
|
Quote:
Try installing the usb driver, hooking up your phone and see if you have a new ethernet device to configure.
__________________
AT&T Tilt on T-mobile ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom T-Mobile MDA T-Mobile USA IPL/SPL: 2.26 GSM: 2.71.11 ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid] Qtek 8500 - WM6.1 PRO 5.2.19199 Last edited by famewolf; 4th November 2007 at 10:02 PM.. |
|
#4
|
|||
|
|||
|
Ok, works fine now. Thx, Had just some problems with my usb hub.
for Ubuntu its very easy, just add in the /etc/network/interfaces: Code:
auto rndis0 iface rndis0 inet dhcp Everytime I want to reconnect, the pocket pc/ifconfig say fine, you are connected, but I get no ping reply. |
|
#5
|
|||
|
|||
|
yess, just 30 seconds in google, and I know it.
sudo /etc/init.d/networking restart |
|
#6
|
|||
|
|||
|
Thanks ever so much for this, exactly what I was looking for.
Unfortunately, I am trying to get this working on Puppy Linux which does not come with a compiler, and the SVN package for it will not work with SSL (svn: SSL not supported error). I really wanna get this going though as it would mean I could carry around a USB flash drive, a sync cable and my Kaiser - boot puppy linux off the USB flash drive and access the internet through my Kaiser - from any x86 based PC. I
__________________
HTC Raphael/Touch Pro Stock ROM (Not for long!) TomTom Navigator 7 Memory-Map OS V5 Landranger 1:50,000 Southern UK Conduits Pocket Player 3 XIAMultiTheme + My own skin ("SaFF") UltimateLaunch SPB Today Suite (Only using SPB Weather atm) Finger-Friendly Friends WMWiFiRouter 0.91 Sprite Backup |
|
#7
|
||||
|
||||
|
Quote:
__________________
AT&T Tilt on T-mobile ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom T-Mobile MDA T-Mobile USA IPL/SPL: 2.26 GSM: 2.71.11 ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid] Qtek 8500 - WM6.1 PRO 5.2.19199 |
|
#8
|
|||
|
|||
|
Yeah, I have asked, but no joy yet.
Also, I have no /etc/sysconfig dir, I am not sure where the Puppy equivalent would be.
__________________
HTC Raphael/Touch Pro Stock ROM (Not for long!) TomTom Navigator 7 Memory-Map OS V5 Landranger 1:50,000 Southern UK Conduits Pocket Player 3 XIAMultiTheme + My own skin ("SaFF") UltimateLaunch SPB Today Suite (Only using SPB Weather atm) Finger-Friendly Friends WMWiFiRouter 0.91 Sprite Backup |
|
#9
|
|||
|
|||
|
I just got this working in ubuntu 7.10
Do Code:
apt-get install subversion Code:
svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite cd usb-rndis-lite/ make sudo ./clean.sh sudo make install
__________________
HTC Raphael/Touch Pro Stock ROM (Not for long!) TomTom Navigator 7 Memory-Map OS V5 Landranger 1:50,000 Southern UK Conduits Pocket Player 3 XIAMultiTheme + My own skin ("SaFF") UltimateLaunch SPB Today Suite (Only using SPB Weather atm) Finger-Friendly Friends WMWiFiRouter 0.91 Sprite Backup |
|
#10
|
||||
|
||||
|
Quote:
__________________
AT&T Tilt on T-mobile ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom T-Mobile MDA T-Mobile USA IPL/SPL: 2.26 GSM: 2.71.11 ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid] Qtek 8500 - WM6.1 PRO 5.2.19199 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|