openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks » Howto: Internet Sharing Via Wm6 (windows Mobile 6) Using Usb

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-Oct-2007, 17:55
famewolf
Guest
 
Posts: n/a
Default

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/showpost....mp;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:

Code:
svn co https://synce.svn.sourceforge.net/sv...usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install
Create an /etc/sysconfig/network/ifcfg-rndis0 with the following contents:

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'
I basically copied the ifcfg-bnep0 I had previously created over to ifcfg-rndis0. It needs to already exist so when the interface comes up it will grab an ip address and set up routing.

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.
  #2 (permalink)  
Old 14-Dec-2007, 00:49
Cabewse
Guest
 
Posts: n/a
Default

I love you, seriously, I love you.

My laptop has no bluetooth, this works well on Fedora 8. Only difference is I made /etc/sysconfig/networking/devices/ifcfg-rndis0 rather than the location you said.
  #3 (permalink)  
Old 14-Dec-2007, 02:38
famewolf
Guest
 
Posts: n/a
Default

Quote:
I love you, seriously, I love you.

My laptop has no bluetooth, this works well on Fedora 8. Only difference is I made /etc/sysconfig/networking/devices/ifcfg-rndis0 rather than the location you said.
[/b]

Glad it worked for you!

A cacheing proxy such as "polipo" will help alot also to reduce latency.

  #4 (permalink)  
Old 09-Mar-2008, 23:57
jd_johnson
Guest
 
Posts: n/a
Arrow

Hi,

I really want to get this working, I have installed opensuse 10.2 and tried to follow the instructions but I get an error, see below.

Checked out revision 3307.
iljohnson@fats-refurb:~> cd usb-rndis-lite/
iljohnson@fats-refurb:~/usb-rndis-lite> make
make -C /lib/modules/2.6.18.2-34-default/build SUBDIRS=/home/iljohnson/usb-rndis-lite modules
make[1]: Entering directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make: *** [default] Error 2

Still learning and would appreciate some help if possible.

JD
  #5 (permalink)  
Old 11-Mar-2008, 17:10
jd_johnson
Guest
 
Posts: n/a
Default

Quote:
Hi,

I really want to get this working, I have installed opensuse 10.2 and tried to follow the instructions but I get an error, see below.

Checked out revision 3307.
iljohnson@fats-refurb:~> cd usb-rndis-lite/
iljohnson@fats-refurb:~/usb-rndis-lite> make
make -C /lib/modules/2.6.18.2-34-default/build SUBDIRS=/home/iljohnson/usb-rndis-lite modules
make[1]: Entering directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.18.2-34-obj/i386/default'
make: *** [default] Error 2

Still learning and would appreciate some help if possible.

JD
[/b]

I have it up and working now, needed to load the kernel development software.

The rndis0 interface does not come up automatically and I need to turn off the wireless connection and then using network manager pretend to edit the Palm device and then the network manger brings the interface up.

I have tried to use ifup with no luck, even with it enabled with network manager. The interface name rndis0 does not seem to be recognised with ifup. Maybe something to do with rndis0 being controlled by ifplugd??

I am using opensuse 10.2 on a Compaq laptop 8240.

I am very happy to have this working now as it opens up a world of mobile options.
  #6 (permalink)  
Old 12-May-2008, 12:33
Nanang Pamuji
Guest
 
Posts: n/a
Default

Quote:
I have it up and working now, needed to load the kernel development software.

The rndis0 interface does not come up automatically and I need to turn off the wireless connection and then using network manager pretend to edit the Palm device and then the network manger brings the interface up.

I have tried to use ifup with no luck, even with it enabled with network manager. The interface name rndis0 does not seem to be recognised with ifup. Maybe something to do with rndis0 being controlled by ifplugd??

I am using opensuse 10.2 on a Compaq laptop 8240.

I am very happy to have this working now as it opens up a world of mobile options.
[/b]
Dear JD,

I do not understand how to load kernel development software. Would u like to tell me how?

Thanks.

nanang
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2