PDA

View Full Version : Howto: Use internet sharing on USB with Linux and WM6


famewolf
30th October 2007, 12:58 AM
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.php?p=3588717&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):


wget -qO- http://sprunge.us/BSjF | patch



svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/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:


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.

scheich
4th November 2007, 08:09 PM
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

famewolf
4th November 2007, 08:52 PM
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

You will need to configure a file similar to your eth0 file, wherever that is located...you can probably copy the eth0 config file over and rename it.

Try installing the usb driver, hooking up your phone and see if you have a new ethernet device to configure.

scheich
5th November 2007, 04:06 PM
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:

auto rndis0
iface rndis0 inet dhcp


I now have the problem( but I have it with bluetooth, too) when the pocketpc disconnects, I have to restart my pc, because I dont know, how to restart the network services, or so...
Everytime I want to reconnect, the pocket pc/ifconfig say fine, you are connected, but I get no ping reply.

scheich
5th November 2007, 04:13 PM
yess, just 30 seconds in google, and I know it.

sudo /etc/init.d/networking restart

evilc
13th November 2007, 04:41 PM
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

famewolf
13th November 2007, 06:25 PM
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

Svn = source...you are compiling a kernel module..this requires you to have both a compiler and the kernel source that matches the kernel you are running installed. svn comes from the packages subversion but just getting the source isn't gonna help you. See if one of the puppy linux developers will compile it for you.

evilc
14th November 2007, 06:13 PM
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.

evilc
20th November 2007, 03:07 PM
I just got this working in ubuntu 7.10

Do

apt-get install subversion


Then (I changed https: to http: cause I couldn't get https working on various linux OSes)

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install


I then set Internet Sharing on my Kaiser, plugged it in, and it worked immediately.

famewolf
20th November 2007, 03:49 PM
I just got this working in ubuntu 7.10

Do

apt-get install subversion


Then (I changed https: to http: cause I couldn't get https working on various linux OSes)

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install


I then set Internet Sharing on my Kaiser, plugged it in, and it worked immediately.

Glad you are finding it useful! It's faster then bluetooth connections and uses a MTU of 8050 instead of the normal 1500 for ethernet which seems to help alot with latency.

boot_sectorz
9th December 2007, 09:55 PM
famewolf does it again. Thanx man been searching for this for some time now. Will try it out later when I get home.
Keep up the good work

jpneely
21st December 2007, 03:23 PM
I just got this working in ubuntu 7.10

Do

apt-get install subversion


Then (I changed https: to http: cause I couldn't get https working on various linux OSes)

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install


I then set Internet Sharing on my Kaiser, plugged it in, and it worked immediately.

I did this but when I turn on Internet Sharing on my t-mobile Wing (WM6) the phone says check cable.

dmesg
[ 2385.588000] ipaq 2-2:1.0: device disconnected
[ 2388.964000] usb 2-2: new full speed USB device using uhci_hcd and address 14
[ 2389.132000] usb 2-2: configuration #1 chosen from 1 choice
[ 2441.192000] usb 2-2: USB disconnect, address 14
[ 2444.776000] usb 2-1: new full speed USB device using uhci_hcd and address 15
[ 2444.944000] usb 2-1: configuration #1 chosen from 1 choice

ifconfigeth0 Link encap:Ethernet HWaddr 00:09:6B:10:40:A9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0:avah Link encap:Ethernet HWaddr 00:09:6B:10:40:A9
inet addr:169.254.5.93 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2508 (2.4 KiB) TX bytes:2508 (2.4 KiB)

wlan0 Link encap:Ethernet HWaddr 00:18:4D:EC:28:03
inet addr:192.168.10.10 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::218:4dff:feec:2803/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1702 errors:0 dropped:0 overruns:0 frame:0
TX packets:824 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2066640 (1.9 MiB) TX bytes:164814 (160.9 KiB)
Interrupt:11 Memory:d4010000-d4020000

Any suggestions?

famewolf
21st December 2007, 06:55 PM
Doesn't look like your kernel module is getting loaded..you can try doing a depmod -a or modprobe the module to force it to load.

viperflyer
24th December 2007, 04:06 AM
Good job. Thanks a lot. I did a search a while ago and gave up.

jpneely
26th December 2007, 07:57 PM
Thanks...I'll try it when I get home.

jpneely
27th December 2007, 04:16 AM
Famewolf,

Thanks that got me in the right direction. I didn't have something loaded in the kernel.

I re-ran

sudo clean.sh
sudo make install

and it immediately connected. I disconnected, restated networking and it started working perfectly.

Thank you very much
JPNeely

famewolf
27th December 2007, 04:58 AM
Famewolf,

Thanks that got me in the right direction. I didn't have something loaded in the kernel.

I re-ran

sudo clean.sh
sudo make install

and it immediately connected. I disconnected, restated networking and it started working perfectly.

Thank you very much
JPNeely

Glad you got it working! For those using tether alot I highly recommend a cacheing web proxy called "polipo" and make sure you use "poor mans multiplexing" which reuses connections..this helps to cut down on the latency of the connection alot! It also does pipelining and of course the cache helps speed things up.

dferreira
27th December 2007, 11:56 AM
How about setting it the other way around? I want to use the laptop internet connection to give to the PDA internet access.

Laptop connection -> PDA

Bluetooth or USB would be nice :)

famewolf
27th December 2007, 03:57 PM
How about setting it the other way around? I want to use the laptop internet connection to give to the PDA internet access.

Laptop connection -> PDA

Bluetooth or USB would be nice :)

Thats out of the scope of this thread but if you have internet sharing enabled on the pc (you didn't specify windows pc or linux) and connect via wifi to a router it works fine. Feel free to start another thread.

schettj
3rd January 2008, 06:08 PM
Just another "yep, it works" post

Wm6 mogul/6800/titan

CentOS 5.x on Compaq 8510w laptop

So, I have both bluetooth (pand) and rndis working. Given BT2.0 speeds and usb 2.0 speeds, which would be better to use speed wise, and has anyone made the usbmodem (wmodem) work just for the trifecta? I used to have that working on the apache running wm6, but that same setup does not work with the mogul.

Anywhoo, thanks for the post!

famewolf
3rd January 2008, 06:59 PM
Just another "yep, it works" post

Wm6 mogul/6800/titan

CentOS 5.x on Compaq 8510w laptop

So, I have both bluetooth (pand) and rndis working. Given BT2.0 speeds and usb 2.0 speeds, which would be better to use speed wise, and has anyone made the usbmodem (wmodem) work just for the trifecta? I used to have that working on the apache running wm6, but that same setup does not work with the mogul.

Anywhoo, thanks for the post!


USB (Even 1.1) is faster than bluetooth due to the fact your connection already has high latency and bluetooth adds even MORE. If you get a OPTIMAL 3g connection (which will almost never happen in the real world) you can actually lose speed using bluetooth as 3G's upper end is higher than bluetooth's. Also you will note the usb driver is using a mtu of 8050 so it's transferring more in "bursts" which translates to faster response for you.

The old bluetooth dun and usb dun both continue to work as they did in the past. Usb dun is supported via /dev/ttyUSB0 by loading the usbserial and ipaq modules. Bluetooth dun is supported via /dev/rfcomm0. Both require you to setup a dial up networking config and use the proper port. Internet sharing makes this process alot easier.

<we now pause for station identification> ;)

dferreira
3rd January 2008, 07:22 PM
Thats out of the scope of this thread but if you have internet sharing enabled on the pc (you didn't specify windows pc or linux) and connect via wifi to a router it works fine. Feel free to start another thread.

Actually, I'm using Ubuntu 7.10. I did some search about how to enable bluetooth internet sharing from the laptop to the PDA, but it never shows up on the PDA as an available service. Sorry about hijacking the thread, but this is the only thread that has something about internet sharing between linux and our devices... And as I see it, you seem to know what's going on :)

I'll continue my search... in case I manage to get to work, I'll let you know.

corwinckler
7th January 2008, 07:43 PM
[ 1682.740000] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 1682.916000] usb 2-1: configuration #1 chosen from 1 choice
[ 1683.024000] usbcore: registered new interface driver cdc_ether
[ 1684.748000] rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device, 80:00:60:0f:e8:00
[ 1684.748000] usbcore: registered new interface driver rndis_host

BUT, I dont see rndis0 when i do ifconfig.

When I restart networking i get (amongst other things):
IOCSIFADDR: No such device
rndis0: ERROR while getting interface flags: No such device
rndis0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up rndis0.

What did I miss?

--Cor

famewolf
7th January 2008, 07:47 PM
[ 1682.740000] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 1682.916000] usb 2-1: configuration #1 chosen from 1 choice
[ 1683.024000] usbcore: registered new interface driver cdc_ether
[ 1684.748000] rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device, 80:00:60:0f:e8:00
[ 1684.748000] usbcore: registered new interface driver rndis_host

BUT, I dont see rndis0 when i do ifconfig.

When I restart networking i get (amongst other things):
IOCSIFADDR: No such device
rndis0: ERROR while getting interface flags: No such device
rndis0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up rndis0.

What did I miss?

--Cor

You have not configured rndis0 by creating a config file in /etc/sysconfig/network or wherever your particular distro puts it.

corwinckler
7th January 2008, 07:58 PM
Im on ubuntu, and I did add to /etc/network/interfaces:
---
iface rndis0 inet dhcp
auto rndis0
----
As someone sugested. This is exactly what eth1 and eth0 looks like also.

But it does not seem to associate this with the new module that was compiled.

lsmod |grep rndi
rndis_host 8320 0
cdc_ether 7552 1 rndis_host
usbnet 20104 2 rndis_host,cdc_ether
usbcore 138632 7 hci_usb,rndis_host,cdc_ether,usbnet,ehci_hcd,uhci_ hcd



--Cor

HTC TytnII - Ubuntu Gutsy

corwinckler
7th January 2008, 07:59 PM
Is there a command/tool I can invoke to see whether the new device rndis0 'exists'?

Can someone who has done this ubuntu and got it working please post their interfaces (or equivalent) file?

watson540
8th January 2008, 03:15 AM
hey guys. first off apologies for my ugly text formatting as im writing this on my phone

i figured this out months ago. yes its also possible to sync your phone as well with synce.

i remember you postiing in one of my topics pertaining to this famewolf ...and great job on making good instructions for those out there.

however. i did want to clarify that when i did this on my gentoo box..all i had to do was compile usb-rndis-lite from synce svn.

as far as the extra config files you have specified..these are not necessary. the only file i had to edit was resolv.conf ..and if you run networkmanager you shouldnt even have to edit that!

it should connect just fine without having to set all those aliases and extra steps.

also it is good to note that you will need the rndis driver and usb gadget stuff compiled into your kernel for this to work

gjherbiet
7th February 2008, 11:57 PM
This works just fine !

I tried it on a Ubuntu Gutsy Gibbon (7.10) with a HTC TyTN II (Kaiser) and it just worked !

Before, when I plugged the USB cable, another "Wired network" entry was appearing in the network manager applet but it disconnected as soon as I was starting the GPRS connection using the internet sharing app on the HTC.

After compilation from svn and modprobing cdc_ether, rndis_host and usbnet it works just fine.

Note : On Ubuntu, no file edition is required (and it is recommended not to touch /etc/network/interfaces for network manager applet to work properly).

The working procedure (after download from svn, compiling and modprobing) :
1) connect HTC via usb cable
2) start connection using internet sharing app on HTC
3) select the wired network with "unknown USB interface" on network manager applet on Ubuntu
4) Surf the web !

Thanks again, I will use this hack a lot (...and even more when I'll receive my eeePC ;-)

motersho
11th February 2008, 06:12 PM
Awesome work on this. I have been looking for support for the rndis driver for linux since I got my verizon xv6800. Here is my issue though.

I have the rndis modules loaded (rndis_host, cdc_ether, and usbnet) I have the device listed when I do and ifconfig. Hell when I start ics on my phone I can even get an IP address (192.168.0.102) My problem is that I cannot get the laptop to communicate with the internet except for dns resolution. Thats right I can ping google.com and ping resolves the ip but doesnt reply. Same with other sites. In firefox I cannot browser any sites. I can dig <hostname> and get all the info that I want.

My question is, what am I missing?

here is some more info the verizon xv6800 does not come with ICS so I found this and was able to get it installed.
http://forum.xda-developers.com/showpost.php?p=1791921&postcount=684

Thanks

famewolf
11th February 2008, 08:21 PM
Awesome work on this. I have been looking for support for the rndis driver for linux since I got my verizon xv6800. Here is my issue though.

I have the rndis modules loaded (rndis_host, cdc_ether, and usbnet) I have the device listed when I do and ifconfig. Hell when I start ics on my phone I can even get an IP address (192.168.0.102) My problem is that I cannot get the laptop to communicate with the internet except for dns resolution. Thats right I can ping google.com and ping resolves the ip but doesnt reply. Same with other sites. In firefox I cannot browser any sites. I can dig <hostname> and get all the info that I want.

My question is, what am I missing?

here is some more info the verizon xv6800 does not come with ICS so I found this and was able to get it installed.
http://forum.xda-developers.com/showpost.php?p=1791921&postcount=684

Thanks

You more than likely have one of the cheap chinese knockoff bluetooth adaptors with a HWADDR of 00:00:00:00:00:00......while these will work fine for Bluetooth DUN they will not work for Bluetooth PAND because the adaptor is emulating a network card now and not just a com port...for a network card the hwaddr does matter. I have 3 or 4 in a box that exibit indenticaly results to yours..get an ip but can't go anywhere...you will either have to use DUN which has been recooked into alot of roms or pay a little more for an adapter...the $15 one I have is an airnet model and it has a unique hwaddr.

motersho
12th February 2008, 01:57 AM
Except that i am not doing this via bluetooth. I am trying via the usb cable.

famewolf
12th February 2008, 05:19 AM
Except that i am not doing this via bluetooth. I am trying via the usb cable.

Sorry....I wrote a bluetooth article also and responded to this in a hurry this morning before going out the door..was still half asleep apparently. I have no idea why you'd get an IP and not be able to go anywhere on USB..all that would be handled by the phone's internet sharing program.

motersho
12th February 2008, 04:31 PM
Cool I am going to do a hard reset and see if some of the other crap that I have install is causing this. I will let you know.

geneman7
13th February 2008, 07:58 AM
I just got this working in ubuntu 7.10

Do

apt-get install subversion


Then (I changed https: to http: cause I couldn't get https working on various linux OSes)

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install


I then set Internet Sharing on my Kaiser, plugged it in, and it worked immediately.

Worked for me with my setup running Ubuntu 7.10 and an HTC Mogul (sprint). I typed in everything in terminal exactly as shown above (hitting the "enter" key after each line). I have no idea what any of those commands mean. Who cares? it works!

gandotratushar
16th February 2008, 12:56 PM
it didnt work for me. i am using fedora 8 with NetworkManager. I installed it after checking it out from the svn. My networkmanager detects my kaiser but when i start the internet sharing from kaiser there is no more network in Network Manager. it just stops showing it any connection. any clue???

JonTheNiceGuy
21st February 2008, 07:09 PM
it didnt work for me. i am using fedora 8 with NetworkManager. I installed it after checking it out from the svn. My networkmanager detects my kaiser but when i start the internet sharing from kaiser there is no more network in Network Manager. it just stops showing it any connection. any clue???

Try starting the internet sharing before attaching the Kaiser, or unplug and re-plug it.

Regards,

Jon

JonTheNiceGuy
21st February 2008, 07:19 PM
Hi guys,

I just want you to know that I'm really glad these notes were put up online.

I recently bought an Asus EEE PC, and using these notes and a couple of other posts, I got my HTC Kaiser working with the EEE PC. Admittedly, I've had to create an icon to run the dhclient command, but it seems to work OK for me.

If you've got an EEE PC and want to know how I did it, I documented my steps on the EEEUSER wiki - http://wiki.eeeuser.com/howto:install_synce_usb_rndis_lite_drivers

Thanks again,

Jon

ggoldfingerd
26th February 2008, 09:16 PM
I receive the following errors when attempting to make in usb-rndis-lite

HPLINUX usb-rndis-lite # make

make -C /lib/modules/2.6.23-gentoo-r8/build SUBDIRS=/root/usb-rndis-lite modules
make[1]: Entering directory '/usr/src/linux-2.6.23-gentoo-r8'
CC [M] /root/usb-rndis-lite/cdc_ether.o
/root/usb-rndis-lite/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/root/usb-rndis-lite/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
make[2]: *** [/root/usb-rndis-lite/cdc_ether.o] Error 1
make[1]: *** [_module_/root/usb-rndis-lite] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.23-gentoo-r8'
make: *** [default] Error 2

I am new to linux, so I am not sure what this means. As you can see, I am use gentoo and I am logged in a root.

Thanks

famewolf
27th February 2008, 02:25 AM
I receive the following errors when attempting to make in usb-rndis-lite

HPLINUX usb-rndis-lite # make

make -C /lib/modules/2.6.23-gentoo-r8/build SUBDIRS=/root/usb-rndis-lite modules
make[1]: Entering directory '/usr/src/linux-2.6.23-gentoo-r8'
CC [M] /root/usb-rndis-lite/cdc_ether.o
/root/usb-rndis-lite/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/root/usb-rndis-lite/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
make[2]: *** [/root/usb-rndis-lite/cdc_ether.o] Error 1
make[1]: *** [_module_/root/usb-rndis-lite] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.23-gentoo-r8'
make: *** [default] Error 2

I am new to linux, so I am not sure what this means. As you can see, I am use gentoo and I am logged in a root.

Thanks

You are new to linux and you are starting with gentoo? Glutton for punishment? Have no clue...you'd have to check on the gentoo forums or the synce forums.

famewolf
27th February 2008, 02:29 AM
Hi guys,

I just want you to know that I'm really glad these notes were put up online.

I recently bought an Asus EEE PC, and using these notes and a couple of other posts, I got my HTC Kaiser working with the EEE PC. Admittedly, I've had to create an icon to run the dhclient command, but it seems to work OK for me.

If you've got an EEE PC and want to know how I did it, I documented my steps on the EEEUSER wiki - http://wiki.eeeuser.com/howto:install_synce_usb_rndis_lite_drivers

Thanks again,

Jon

Good Job Jon...glad the thread helped...FYI....no one should have any reason to ask you for those "hex addresses" which are basically the address of your phone....not information I'd give out either. ;)

ggoldfingerd
28th February 2008, 12:17 AM
You are new to linux and you are starting with gentoo? Glutton for punishment? Have no clue...you'd have to check on the gentoo forums or the synce forums.

Yea, I am not sure why I chose gentoo, its just want I had installed on my ps3. I may switch. The sad part is that KDE is almost done installing, which is taking a long time.

What do you recommend of a linux system?

I will post this error on the gentoo forums and see what they have to say.

Thanks

famewolf
28th February 2008, 01:29 AM
Yea, I am not sure why I chose gentoo, its just want I had installed on my ps3. I may switch. The sad part is that KDE is almost done installing, which is taking a long time.

What do you recommend of a linux system?

I will post this error on the gentoo forums and see what they have to say.

Thanks

Both Suse and Ubuntu (Kubuntu for kde) are friendly distro's to start with. I personally use Suse.

claymore_letifer
28th February 2008, 05:00 PM
hey what would cause this?:
i have a Verizon VX6800 with the ICS form the thread installed, the laptop is a dell latitude D600 running Fedora core 7 kernel 2.6.23.15-80.
fedora seems setup phone as a network device and ICS is giving me a ip address:
[out put from /var/log/messages]
Feb 28 10:24:10 notizbuch kernel: usb 2-1: new full speed USB device using uhci_hcd and address 10
Feb 28 10:24:10 notizbuch kernel: usb 2-1: configuration #1 chosen from 1 choice
Feb 28 10:24:12 notizbuch kernel: rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device, 80:00:60:0f:e8:00
Feb 28 10:24:12 notizbuch kernel: net eth2: device_rename: sysfs_create_symlink failed (-17)
Feb 28 10:24:13 notizbuch dhclient: DHCPREQUEST on eth2 to 255.255.255.255 port 67
Feb 28 10:24:13 notizbuch dhclient: DHCPACK from 192.168.0.1
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Joining mDNS multicast group on interface eth2.IPv4 with address 192.168.0.102.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: New relevant interface eth2.IPv4 for mDNS.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for 192.168.0.102 on eth2.IPv4.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Joining mDNS multicast group on interface eth2.IPv6 with address fec0::c:8200:60ff:fe0f:e800.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: New relevant interface eth2.IPv6 for mDNS.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for fec0::c:8200:60ff:fe0f:e800 on eth2.*.
Feb 28 10:24:14 notizbuch NET[6198]: /sbin/dhclient-script : updated /etc/resolv.conf
Feb 28 10:24:14 notizbuch dhclient: bound to 192.168.0.102 -- renewal in 126264 seconds.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for 2002:46dc:3184:c:8200:60ff:fe0f:e800 on eth2.*.


it seems to be setting up the route as far as i can tell:

[output from route command]
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth2


i can even resolve FQDNs :

[output form nslookup cmd]
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: yahoo.com
Address: 66.94.234.13
Name: yahoo.com
Address: 216.109.112.135


i can even ping the phone its self:

Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: yahoo.com
Address: 66.94.234.13
Name: yahoo.com
Address: 216.109.112.135


but i can't ping anything else (by name or ip):

PING 216.109.112.135 (216.109.112.135) 56(84) bytes of data.

--- 216.109.112.135 statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms

PING yahoo.com (66.94.234.13) 56(84) bytes of data.

--- yahoo.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms


i have tried restart ICS and and the laptop top along with network services, and disconnecting and reconnecting the phone via USB cable. the phone can browse the web but my laptop can only resolve names to ip but not talk to them i even tried wiping out my iptables just in case that was stopping something but still can't ping or connect to any web site.
anyone have any ideas why i can only resolve names FQDNs but can't ping them is it my phone or the laptop fubared on its settings.
thanks.

famewolf
28th February 2008, 06:32 PM
hey what would cause this?:
i have a Verizon VX6800 with the ICS form the thread installed, the laptop is a dell latitude D600 running Fedora core 7 kernel 2.6.23.15-80.
fedora seems setup phone as a network device and ICS is giving me a ip address:
[out put from /var/log/messages]
Feb 28 10:24:10 notizbuch kernel: usb 2-1: new full speed USB device using uhci_hcd and address 10
Feb 28 10:24:10 notizbuch kernel: usb 2-1: configuration #1 chosen from 1 choice
Feb 28 10:24:12 notizbuch kernel: rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device, 80:00:60:0f:e8:00
Feb 28 10:24:12 notizbuch kernel: net eth2: device_rename: sysfs_create_symlink failed (-17)
Feb 28 10:24:13 notizbuch dhclient: DHCPREQUEST on eth2 to 255.255.255.255 port 67
Feb 28 10:24:13 notizbuch dhclient: DHCPACK from 192.168.0.1
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Joining mDNS multicast group on interface eth2.IPv4 with address 192.168.0.102.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: New relevant interface eth2.IPv4 for mDNS.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for 192.168.0.102 on eth2.IPv4.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Joining mDNS multicast group on interface eth2.IPv6 with address fec0::c:8200:60ff:fe0f:e800.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: New relevant interface eth2.IPv6 for mDNS.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for fec0::c:8200:60ff:fe0f:e800 on eth2.*.
Feb 28 10:24:14 notizbuch NET[6198]: /sbin/dhclient-script : updated /etc/resolv.conf
Feb 28 10:24:14 notizbuch dhclient: bound to 192.168.0.102 -- renewal in 126264 seconds.
Feb 28 10:24:14 notizbuch avahi-daemon[2846]: Registering new address record for 2002:46dc:3184:c:8200:60ff:fe0f:e800 on eth2.*.


it seems to be setting up the route as far as i can tell:

[output from route command]
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth2


i can even resolve FQDNs :

[output form nslookup cmd]
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: yahoo.com
Address: 66.94.234.13
Name: yahoo.com
Address: 216.109.112.135


i can even ping the phone its self:

Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: yahoo.com
Address: 66.94.234.13
Name: yahoo.com
Address: 216.109.112.135


but i can't ping anything else (by name or ip):

PING 216.109.112.135 (216.109.112.135) 56(84) bytes of data.

--- 216.109.112.135 statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms

PING yahoo.com (66.94.234.13) 56(84) bytes of data.

--- yahoo.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3000ms


i have tried restart ICS and and the laptop top along with network services, and disconnecting and reconnecting the phone via USB cable. the phone can browse the web but my laptop can only resolve names to ip but not talk to them i even tried wiping out my iptables just in case that was stopping something but still can't ping or connect to any web site.
anyone have any ideas why i can only resolve names FQDNs but can't ping them is it my phone or the laptop fubared on its settings.
thanks.

Well everything you posted looks good so I'm just gonna throw out a few suggestions for you to try and if any resolve the issue please post back. Have you tried using usb on a windows machine to see if the same problem occurs? This would eliminate whether it was the phone or provider.

First if Verizon has a portal site or even just the normal http:/www.verizon.com navigate to that and see if you can get to it. It's possible the provider is preventing tethering.

Second, grab a knoppix cd and see if you can get the module compiled for it or use another version of linux (ideally have a friend running another copy and try at their house.)

Lastly try a different pc is possible and if you know someone else with a different verizon phone see if you can try using their phone...

All of this is to see where the problem lies.....lastly although not the best solution a possible workaround might be this....I've seen posts (It might have been menneisys and I think I mispelled his name) about an http proxy that runs on the phone...since you have an actual ip address you can try installing that and using the http proxy...one example is toonel.net which even compresses data.

Lastly....try using alternate dns servers such as the opendns.com ones (208.67.222.222 and 208.67.220.220)....these are available to the public and typically are faster than the provider ones anyway.

Hope something helps.....you could also use virtualbox(virtualbox) and install suse or ubuntu into a VM and pass the USB device into the vm to see if it works there. I know this would work as I've ran XP in a vm and passed the usb device in to do things with activesync.

ReflexNPG
2nd March 2008, 05:16 PM
Hi!

I am looking for help to connect my trinity to an Asus Wl-500GP.
The problem is, that i have a buildroot environment running, but i dont know how to insert and cross compile the usb-rndis-lite source.

Please help!

famewolf
2nd March 2008, 05:24 PM
Hi!

I am looking for help to connect my trinity to an Asus Wl-500GP.
The problem is, that i have a buildroot environment running, but i dont know how to insert and cross compile the usb-rndis-lite source.

Please help!

I'm assuming your asus router is running openwrt or ddwrt...you need to talk with them to find out how to compile kernel modules for it.

ReflexNPG
2nd March 2008, 05:47 PM
@famewolf:
yes, its running with openwrt (i wrote it in the subject of my previous post).
But openwrt is linux, and i thought this thread is also for non x86 systems.

famewolf
2nd March 2008, 08:31 PM
@famewolf:
yes, its running with openwrt (i wrote it in the subject of my previous post).
But openwrt is linux, and i thought this thread is also for non x86 systems.

Thats correct..openwrt is linux..and if you could log in and compile a kernel on openwrt I could help you but since openwrt requires you to compile the code somewhere else you need to talk with the openwrt folks to find out how to do that.

elrosti
5th March 2008, 02:47 PM
Hi famewolf:

Sorry for my bad english. I speak spanish. I need some help with this.

I'm usign openSuSE 10.2, I can't install usb-rndis-lite from svn because I'm getting an error, so I install usb-rndis-lite- 0.11.

Later I make the file /etc/sysconfig/network/ifcfg-rndis0 just you say.

when I type "dmesg" i see a lot of information and in the botom something like this


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


but I'm not seeing a line like this


rndis0: register 'rndis_host' at usb-0000:02:02.0-2, RNDIS device, xx:xx:xx:xx:xx:xx


I don't know if this is important.

When I type "ifconfig" I only see 'eth0' and 'lo' sections, but I not see that 'rndis0' section. ¿ I need make other file or modify something ? Your help would be highly apreciated.

Good bye.

famewolf
5th March 2008, 09:21 PM
Hi famewolf:

Sorry for my bad english. I speak spanish. I need some help with this.

I'm usign openSuSE 10.2, I can't install usb-rndis-lite from svn because I'm getting an error, so I install usb-rndis-lite- 0.11.

Later I make the file /etc/sysconfig/network/ifcfg-rndis0 just you say.

when I type "dmesg" i see a lot of information and in the botom something like this


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


but I'm not seeing a line like this


rndis0: register 'rndis_host' at usb-0000:02:02.0-2, RNDIS device, xx:xx:xx:xx:xx:xx


I don't know if this is important.

When I type "ifconfig" I only see 'eth0' and 'lo' sections, but I not see that 'rndis0' section. ¿ I need make other file or modify something ? Your help would be highly apreciated.

Good bye.

..and this is after you have enabled internet sharing on the phone and clicked connect?

The device will show up in dmesg even when internet sharing is not enabled...but only when it is enabled will the rndis0 device show up.

elrosti
6th March 2008, 06:51 PM
famewolf: I was using a corrupted usb-rndis-lite svn version, that was the reason for my compile error, now I compile usb-rndis-lite svn version and all is working good.

Thanks for the tip, Now I can use internet sharing in Linux and don't need reboot in Windows !!!.

Bye

shade73a
21st March 2008, 04:28 PM
I receive the following errors when attempting to make in usb-rndis-lite

HPLINUX usb-rndis-lite # make

make -C /lib/modules/2.6.23-gentoo-r8/build SUBDIRS=/root/usb-rndis-lite modules
make[1]: Entering directory '/usr/src/linux-2.6.23-gentoo-r8'
CC [M] /root/usb-rndis-lite/cdc_ether.o
/root/usb-rndis-lite/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/root/usb-rndis-lite/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
make[2]: *** [/root/usb-rndis-lite/cdc_ether.o] Error 1
make[1]: *** [_module_/root/usb-rndis-lite] Error 2
make[1]: Leaving directory '/usr/src/linux-2.6.23-gentoo-r8'
make: *** [default] Error 2

I am new to linux, so I am not sure what this means. As you can see, I am use gentoo and I am logged in a root.

Thanks

Late post for others i suppose, but you need to activate some stuff in the kernel, like usb_net .... Then your ready.

selectakwest
3rd April 2008, 10:18 PM
Hmm. Using Ubuntu I installed the rndis driver and made the entry to netowrk devices file. I get this when I look to restart.
rndis0: ERROR while getting interface flags: No such device
Yet it works as eth2, but it didn't like 15 minutes ago.
dmesg does however recognize that it as an rndis device.
[ 833.776000] usb 2-2: new full speed USB device using uhci_hcd and address 7
[ 833.968000] usb 2-2: configuration #1 chosen from 1 choice
[ 833.972000] ipaq 2-2:1.0: PocketPC PDA converter detected
[ 833.976000] usb 2-2: PocketPC PDA converter now attached to ttyUSB0
[ 1961.692000] usb 2-2: USB disconnect, address 7
[ 1961.692000] ipaq ttyUSB0: PocketPC PDA converter now disconnected from ttyUSB0
[ 1961.692000] ipaq 2-2:1.0: device disconnected
[ 1963.252000] usb 2-2: new full speed USB device using uhci_hcd and address 8
[ 1963.448000] usb 2-2: configuration #1 chosen from 1 choice
[ 1965.088000] rndis0: register 'rndis_host' at usb-0000:00:1d.1-2, RNDIS device (SynCE patched), 80:00:60:0f:e8:00


No idea why it started working, but it did despite it giving me errors that reportedly lead to it not working.

Follow this got me to be able to browse my phone.
http://ohioloco.ubuntuforums.org/showthread.php?t=345176

selectakwest
4th April 2008, 04:32 PM
And it has never worked since. Weird. Anyone know what I need to do?

h0me5k1n
7th April 2008, 11:49 PM
Many thanks famewolf.

Instead of creating a /etc/sysconfig/network/ifcfg-rndis0 file (the sysconfig directory doesn't exist in Ubuntu) it should be /etc/network/ifcfg-rndis0 before editing the /etc/network/interfaces file - that's what worked for me.

Posting using my mobile connection!! :D

rubberalmy
7th May 2008, 07:32 AM
Tried this but it didn't work on Ubuntu 8.04. The moment I get to trying to make, an error pops up. Below is what comes up:

jack@jack:~/usb-rndis-lite$ make
make -C /lib/modules/2.6.24-16-rt/build SUBDIRS=/home/jack/usb-rndis-lite modules
make[1]: Entering directory `/lib/modules/2.6.24-16-rt/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.24-16-rt/build'
make: *** [default] Error 2

Anybody out there know what's happening and if there's a way to fix this? I'm desperate to get this working.

famewolf
7th May 2008, 08:44 AM
Tried this but it didn't work on Ubuntu 8.04. The moment I get to trying to make, an error pops up. Below is what comes up:

jack@jack:~/usb-rndis-lite$ make
make -C /lib/modules/2.6.24-16-rt/build SUBDIRS=/home/jack/usb-rndis-lite modules
make[1]: Entering directory `/lib/modules/2.6.24-16-rt/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.24-16-rt/build'
make: *** [default] Error 2

Anybody out there know what's happening and if there's a way to fix this? I'm desperate to get this working.


You have your kernel source installed?

rubberalmy
7th May 2008, 09:32 AM
You have your kernel source installed?

I'm an absolute noob at this. How do I install the kernel source?

I've googled a few places that mentioned installing build essential.....tried that but didn't get the job done either

famewolf
7th May 2008, 07:11 PM
I'm an absolute noob at this. How do I install the kernel source?

I've googled a few places that mentioned installing build essential.....tried that but didn't get the job done either

I don't run ubuntu...it may be "apt install kernel-souce" on the command line. You will need to do some research.

tunppi
23rd June 2008, 05:44 PM
Hi.
I managed to get that code work with my HTC wizard fine, but when im trying to share internet with my htc Diamond, computer doesnt get IP-address.

diamond shares internet fine for win xp but not my ubuntu 8.04. any ideas?
both my diamond and asus eee pc tells theyre connected, but eee pc cannot get ip.

halp me :) my main idea is to get rid of htc wiz and this isnt looking good :p


here is what I did:

apt-get install subversion

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install

/etc/network/interfaces:

iface rndis0 inet dhcp
auto rndis0

famewolf
23rd June 2008, 07:19 PM
Hi.
I managed to get that code work with my HTC wizard fine, but when im trying to share internet with my htc Diamond, computer doesnt get IP-address.

diamond shares internet fine for win xp but not my ubuntu 8.04. any ideas?
both my diamond and asus eee pc tells theyre connected, but eee pc cannot get ip.

halp me :) my main idea is to get rid of htc wiz and this isnt looking good :p


here is what I did:

apt-get install subversion

svn co http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install

/etc/network/interfaces:

iface rndis0 inet dhcp
auto rndis0


If it works on the wizard but not on the diamond then the problem is the diamond..not the setup. When I switched to my at&t tilt from my wizard it worked out of the box with no changes so if you are running a custom rom I suggest you try another. The assignment of ip is handled by the phone.

Peter-Flox
2nd July 2008, 11:14 PM
i've just tested the connection with my new HTC Touch Diamond. Unfortunately i have the same problem as tunppi.
Everything works fine on windows xp, just connect, get ip, have fun.
On my ubuntu 8.04 its just connect and have problems ;)
The diamond says connected, and the rndis device appears as interface. Looks fine so far. But i do not get an automatic ip address via DHCP, my ubuntu falls back to something called "ahvi" (i think it was) and i get a private address 169...
I've also tried to manually assign an ip address and to ping the diamond, ubuntu responded with "Destination Host unreachable", although route entries look fine.

Any more suggestions?

doomasala
3rd July 2008, 04:13 AM
I'm a complete linux noob...

I've got Mandriva One 2008.1 installed in my system and I'd like to use the WM6.1 Internet sharing feature.

I couldn't find the /etc/sysconfig/network/ folder. Maybe the folder is different for this linux distro.

Also- svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/ -doesn't seem to work.

Can anyone help me out? I'm completely lost when it comes to using Linux shell commands and all.... :(

famewolf
3rd July 2008, 05:33 AM
To those with the diamond having issues....the only thing I can suggest is making sure you grab the most recent version by rerunning the svn checkout command and compile/install. You may get more support on the synce.org site. I'm just a linux user who wanted his wizard and kaiser to work.


To the Mandriva user...you need to give more information than "it doesn't work"...did it tell you that svn command was not found? You have to install the svn package. As for where the script needs to be....you can do a search for "ifcfg-lo" and wherever that one is, is where you need to put the others (assuming our systems are close enough to use the same filenames).

Lastly if you run internet sharing on your device and click connect where it is showing "waiting on usb connection" prior to connecting it...then when you plug the usb cable in you can run dmesg at the command line to see if it's printing any information about finding the device. Cutting and pasting this info into a message may help us by comparing what shows up for the wizard and kaiser.

The svn co command can take quite a while to grab all the files...the directory won't be there till it finishes...don't just cut and paste the commands but run them one at a time so you can see error messages.

I just grabbed the most recent copy of the module and verified it compiles and works....you will have to have your kernel source installed to compile a kernel module.

Hope some of this helps.

markuz
3rd July 2008, 08:53 AM
I have the same problem with my HTC Touch Diamond. Internet sharing works on vista, but Ubuntu 8.04 doesn't receive the IP (newest version of usb-rndis!!).

My HTC VOX worked without any problems on the same machine :-(

doomasala
4th July 2008, 12:27 PM
Thanks 4 the reply famewolf

I won't be at home for a few days. I shall post in detail when I get back. Again thanks for ur reply....

cbloo21
20th July 2008, 11:03 PM
!up

Same problem...no ip on DHCP

cbloo21
22nd July 2008, 09:21 AM
nothing for Diamond ?

famewolf
22nd July 2008, 01:24 PM
nothing for Diamond ?


I've indicated I need to see the dmesg output from when a diamond user connected their phone with internet sharing enabled (and possibly not enabled). Perhaps when one of you gets around to providing that information I can see if I see any differences. As it stands I can't suggest anything on a phone I don't have.

cbloo21
23rd July 2008, 09:05 AM
This is dmesg :

[ 159.620119] usb 5-2: new high speed USB device using ehci_hcd and address 5
[ 159.674688] usb 5-2: configuration #1 chosen from 1 choice
[ 160.067824] rndis_host 5-2:1.0: dev can't take 1558 byte packets (max 1536)
[ 160.069702] rndis0: register 'rndis_host' at usb-0000:00:1d.7-2, RNDIS device (SynCE patched), 3e:8c:56:dc:d9:65


and odccm :
** (odccm:6201): DEBUG: PDA network interface discovered! udi='/org/freedesktop/Hal/devices/net_3e_8c_56_dc_d9_65'

and ifconfig :
rndis0 Link encap:Ethernet inet adr:169.254.2.2

so no ip ...I have svn release of usb-rndis-lite.

famewolf
23rd July 2008, 04:31 PM
This is dmesg :

[ 159.620119] usb 5-2: new high speed USB device using ehci_hcd and address 5
[ 159.674688] usb 5-2: configuration #1 chosen from 1 choice
[ 160.067824] rndis_host 5-2:1.0: dev can't take 1558 byte packets (max 1536)
[ 160.069702] rndis0: register 'rndis_host' at usb-0000:00:1d.7-2, RNDIS device (SynCE patched), 3e:8c:56:dc:d9:65


and odccm :
** (odccm:6201): DEBUG: PDA network interface discovered! udi='/org/freedesktop/Hal/devices/net_3e_8c_56_dc_d9_65'

and ifconfig :
rndis0 Link encap:Ethernet inet adr:169.254.2.2

so no ip ...I have svn release of usb-rndis-lite.

Thank you. You should probably provide this information on the synce forum's becuase it's very different from the information the tilt/kaiser is giving. I'll assume you captured that dmesg while internet sharing was "waiting for connection" cause thats important...it shows something different when internet sharing is not enabled on the phone...my tilt shows:

usb 3-1: configuration #1 chosen from 1 choice
rndis0: register 'rndis_host' at usb-0000:03:00.1-1, RNDIS device (SynCE patched), XX:00:XX:0f:XX:00
usb 3-1: New USB device found, idVendor=0bb4, idProduct=0303
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: Generic RNDIS
usb 3-1: Manufacturer: HTC
usb 3-1: SerialNumber: xxxxxxxxxxxxxxxxx

I know that it looks for the idVendor and idProduct and yours is not providing one.

cbloo21
24th July 2008, 10:27 AM
I reached to connect via BT, following this thread :
http://forum.eeeuser.com/viewtopic.php?pid=23948#p23948

I ve a single BT key for 10 €.

then , on the dhclient I take directly a ip , where usb cable didn't offer anything.

I think this is especialy on htc Diamond, I ve tried with a HTC Touch there was no problem.

TinoM
1st August 2008, 12:55 PM
I can't get it to work with my Diamond and Ubuntu 8.04 :/

The rndis0-interface gets only a local (169.x.x.x) ip when connecting the Diamond. And when i start the connection sharing on it and make it connect before i put in the usb-cable into my laptop it doesn't get an ip at all :(.

Here is a detailed lsusb for the HTC Diamond:

Bus 004 Device 004: ID 0bb4:0b13 High Tech Computer Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 1 ?
bDeviceProtocol 1 Microsoft ActiveSync
bMaxPacketSize0 64
idVendor 0x0bb4 High Tech Computer Corp.
idProduct 0x0b13
bcdDevice 0.00
iManufacturer 1 HTC
iProduct 2 Generic RNDIS
iSerial 3 3fbf5000-7351-0801-3575-590113261660
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 239 Miscellaneous Device
bInterfaceSubClass 1 ?
bInterfaceProtocol 1 Microsoft ActiveSync
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 02 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 1 ?
bDeviceProtocol 1 Microsoft ActiveSync
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered


Any help appriciated!

baeza
14th August 2008, 12:28 AM
Please TinoM, post your ifconfig when Diamond is connected and IS is not loaded; also when IS is loaded and connected to 3G net. Watch 'Network Manager' to see how the Diamond interface (rndis0 or ethX) is handled (itinerant or manual-dchp).

fbcyborg
20th August 2008, 06:59 PM
Hi there,

I tried to do as the first post of this thread says, but it seems I still have some problem.

I can compile the driver, and this is the output I get:
usb-rndis-lite # make install
make -C /lib/modules/2.6.25-gentoo-r7/build SUBDIRS=/home/fbcyborg/usb-rndis-lite modules_install
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7'
DEPMOD 2.6.25-gentoo-r7
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7'
depmod -ae
As you can see, my distribution is Gentoo. I guess the compilation is OK.

As regard the configuration file for rndis0, I think that the file /etc/sysconfig/network/ifcfg-rndis0is not valid for my distribution.
I don't have a single config file for each network interface in my distribution. Instead there's only one file, that is /etc/conf.d/net where you can put all what you want about network IP settings an many other things.
So, maybe that file is not appropriate to put the ifcfg-rndis0 content.

Anybody knows where is the appropriate one?

Once I plug my usb cable i get the following messages on the kernel ring buffer:
hub 1-0:1.0: unable to enumerate USB device on port 1
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: no configuration chosen from 1 choice

I don't really know the reason why I can't get what I expected.
If you need an lsmod, there's no problem.

Thanks in advance.

nolsen311
9th September 2008, 08:22 PM
All I had to do to get this working in Gentoo (2.6.26-r1) was turn on Internet sharing as documented in the first post...

and symlink /etc/init.d/net.lo -> /etc/init.d/net.rndis0
(ln -s /etc/init.d/net.lo /etc/init.d/net.rndis0)

I'm also running Laurentius26 KaiserDiamond.

francus
14th September 2008, 10:38 PM
I have Ubuntu 7.10, and a Palm 750 with WM6. The connection works, and many thanks for your instruction. Now I am posting using this connection, but does not work well. I works much better with windows xp

The connection is unable to handle some concurrent windows, often is very slow, with often messages "server not existent" so have to reload the same page to get it. Finally the connection is not available to virtual machines.

When I connect the usb cable a new eth2 appears on ifconfig:

ifconfig
eth2 Link encap:Ethernet HWaddr 80:00:60:0F:E8:00
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2002:d9ca:947d:6a:8200:60ff:fe0f:e800/64 Scope:Global
inet6 addr: fec0::6a:8200:60ff:fe0f:e800/64 Scope:Site
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3190 errors:5726 dropped:0 overruns:0 frame:2654
TX packets:3720 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1470856 (1.4 MB) TX bytes:747193 (729.6 KB)



dmesg
[ 90.812000] rndis0: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[ 93.112000] NET: Registered protocol family 17
[ 104.912000] eth2: no IPv6 routers present

thanks again

famewolf
14th September 2008, 10:40 PM
Using polipo cacheing web proxy with pipelining enabled and "poor man's multiplexing" enabled will help the speed of web surfing alot.

I have Ubuntu 7.10, and a Palm 750 with WM6. The connection works, and many thanks for your instruction. Now I am posting using this connection, but does not work well. I works much better with windows xp

The connection is unable to handle some concurrent windows, often is very slow, with often messages "server not existent" so have to reload the same page to get it. Finally the connection is not available to virtual machines.

When I connect the usb cable a new eth2 appears on ifconfig:

ifconfig
eth2 Link encap:Ethernet HWaddr 80:00:60:0F:E8:00
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2002:d9ca:947d:6a:8200:60ff:fe0f:e800/64 Scope:Global
inet6 addr: fec0::6a:8200:60ff:fe0f:e800/64 Scope:Site
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3190 errors:5726 dropped:0 overruns:0 frame:2654
TX packets:3720 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1470856 (1.4 MB) TX bytes:747193 (729.6 KB)



dmesg
[ 90.812000] rndis0: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[ 93.112000] NET: Registered protocol family 17
[ 104.912000] eth2: no IPv6 routers present

thanks again

marcovolpe
15th September 2008, 08:59 AM
same problem of TinoM

usb connected ath0 Link encap:Ethernet HWaddr 00:15:af:a1:db:fe
inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:afff:fea1:dbfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:119 errors:1 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:60564 (59.1 KB) TX bytes:21757 (21.2 KB)

eth0 Link encap:Ethernet HWaddr 00:1f:c6:65:c5:38
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fbfc0000-fc000000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1288 errors:0 dropped:0 overruns:0 frame:0
TX packets:1288 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64400 (62.8 KB) TX bytes:64400 (62.8 KB)

rndis0 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:8050 Metric:1
RX packets:20 errors:10 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1522 (1.4 KB) TX bytes:7540 (7.3 KB)

wifi0 Link encap:UNSPEC HWaddr 00-15-AF-A1-DB-FE-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3614 errors:0 dropped:0 overruns:0 frame:115
TX packets:360 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:280
RX bytes:443388 (432.9 KB) TX bytes:39773 (38.8 KB)
Interrupt:18


ics started
ath0 Link encap:Ethernet HWaddr 00:15:af:a1:db:fe
inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:afff:fea1:dbfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:1 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:97878 (95.5 KB) TX bytes:24338 (23.7 KB)

eth0 Link encap:Ethernet HWaddr 00:1f:c6:65:c5:38
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fbfc0000-fc000000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1288 errors:0 dropped:0 overruns:0 frame:0
TX packets:1288 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64400 (62.8 KB) TX bytes:64400 (62.8 KB)

rndis0 Link encap:Ethernet HWaddr fe:f4:b5:1c:3e:13
inet6 addr: fe80::fcf4:b5ff:fe1c:3e13/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1890 (1.8 KB)

wifi0 Link encap:UNSPEC HWaddr 00-15-AF-A1-DB-FE-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4182 errors:0 dropped:0 overruns:0 frame:120
TX packets:399 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:280
RX bytes:525139 (512.8 KB) TX bytes:44300 (43.2 KB)
Interrupt:18

kuapao
22nd September 2008, 01:04 AM
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

I realize this was a while back...but did you ever find a way to share your HTC's internet connection with Puppy Linux through USB?

krayziturtle
22nd September 2008, 08:48 PM
Thank you very much, famewolf.
You, sir, are the man.

kuapao
23rd September 2008, 11:18 PM
I realize this was a while back...but did you ever find a way to share your HTC's internet connection with Puppy Linux through USB?

I decided to compile the usb-rndis-lite module myself in Puppy Linux and have made the resulting file available at the Puppy Linux forum:
http://www.murga-linux.com/puppy/viewtopic.php?p=234233#234233

arthurbrownleeiv
10th March 2009, 06:04 PM
Has anyone found a fix for this? Having a Fuze, I imagine my problem is the same as the Diamond. The problem being, no IP being assigned to opensuse.

joele54
12th July 2009, 11:18 AM
I have been able to successfully use the original description of getting usb-rndis-lite working under Suse 11.1 on a Dell D830 laptop. No glitches whatsoever. Just an FYI and thanks for the howto!

Regardz(tm),
joele54

BlastFX
24th July 2009, 01:09 AM
Thank you very much for this, thamewolf! Works perfectly under Ubuntu 9.04! I still prefer Vista, but I have a choice now :-)

jonalowe
21st August 2009, 05:40 PM
I hope someone is still watching this thread.
I have a Motorola Q9C running WM6.1, Verizon. Internet Sharing works both on USB and Bluetooth under Windows XP. I'm running Ubuntu 9.04, dual boot, on the same computer. USB Internet sharing doesn't work under Linux (neither does Bluetooth, but that is another story), in spite of following each of the steps in this thread for Ubuntu users.

My lsusb dump looks like this:

Bus 001 Device 015: ID 22b8:7009 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x7009
bcdDevice 0.01
iManufacturer 1 Motorola Inc
iProduct 2 Motorola USB Remote NDIS Network Device
iSerial 3 ffffffff-ff04-ffff-97b9-xxxxxxxx
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 3 RNDIS
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 06 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


dmesg is this:

[ 9787.084123] usb 1-1: new high speed USB device using ehci_hcd and address 15
[ 9787.232914] usb 1-1: configuration #1 chosen from 1 choice
[ 9789.176031] usbcore: registered new interface driver cdc_ether
[ 9791.410341] rndis0: register 'rndis_host' at usb-0000:02:07.2-1, RNDIS device (SynCE patched), 80:fb:00:xx:xx:xx
[ 9791.411120] usbcore: registered new interface driver rndis_host


ifconfig looks like this:

rndis0 Link encap:Ethernet HWaddr 80:fb:00:xx:xx:xx
inet6 addr: 2002:46de:4505:5:82fb:ff:fe00:2919/64 Scope:Global
inet6 addr: fec0::5:82fb:ff:fe00:2919/64 Scope:Site
inet6 addr: fe80::82fb:ff:fe00:2919/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1
RX packets:147 errors:139 dropped:0 overruns:0 frame:0
TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6179 (6.1 KB) TX bytes:47063 (47.0 KB)


Internet sharing on the phone shows connected. When ubuntu tries to connect, it times out.
I don't see an inet address, only at inet6 address. Any ideas what could be wrong?

Jon

famewolf
21st August 2009, 06:54 PM
I hope someone is still watching this thread.
I have a Motorola Q9C running WM6.1, Verizon. Internet Sharing works both on USB and Bluetooth under Windows XP. I'm running Ubuntu 9.04, dual boot, on the same computer. USB Internet sharing doesn't work under Linux (neither does Bluetooth, but that is another story), in spite of following each of the steps in this thread for Ubuntu users.

My lsusb dump looks like this:

Bus 001 Device 015: ID 22b8:7009 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x7009
bcdDevice 0.01
iManufacturer 1 Motorola Inc
iProduct 2 Motorola USB Remote NDIS Network Device
iSerial 3 ffffffff-ff04-ffff-97b9-xxxxxxxx
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 3 RNDIS
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 06 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


dmesg is this:

[ 9787.084123] usb 1-1: new high speed USB device using ehci_hcd and address 15
[ 9787.232914] usb 1-1: configuration #1 chosen from 1 choice
[ 9789.176031] usbcore: registered new interface driver cdc_ether
[ 9791.410341] rndis0: register 'rndis_host' at usb-0000:02:07.2-1, RNDIS device (SynCE patched), 80:fb:00:xx:xx:xx
[ 9791.411120] usbcore: registered new interface driver rndis_host


ifconfig looks like this:

rndis0 Link encap:Ethernet HWaddr 80:fb:00:xx:xx:xx
inet6 addr: 2002:46de:4505:5:82fb:ff:fe00:2919/64 Scope:Global
inet6 addr: fec0::5:82fb:ff:fe00:2919/64 Scope:Site
inet6 addr: fe80::82fb:ff:fe00:2919/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1
RX packets:147 errors:139 dropped:0 overruns:0 frame:0
TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6179 (6.1 KB) TX bytes:47063 (47.0 KB)


Internet sharing on the phone shows connected. When ubuntu tries to connect, it times out.
I don't see an inet address, only at inet6 address. Any ideas what could be wrong?

Jon



Certain models of phone running windows mobile 6.1 require an additional patch to the source so they can get an ip address via dhcp.....so go into your usb-rndis-lite directory and do the following:


wget -c https://synce.svn.sourceforge.net/svnroot/synce/trunk/patches/usb-rndis-lite-samsung.patch

patch < usb-rndis-lite-samsung.patch

make clean
make
make install


A reboot may be needed to make sure it's loading the new modules. Let me know if that resolves your issue as this information comes from the ubuntu forums and I don't have this issue with my Tilt.

Sergio PC
21st August 2009, 07:30 PM
Alright I might be out of my element, but I get out of da box internet sharing with Juanty.
Just use the usb pop up menu.
BTW: Jaunty is my one and only OS.

TrYde
21st August 2009, 08:34 PM
I've been surprised to see that Fedora 11, on its last release, has a native HTC RNDIS driver. It creates a network connection just like in windows. I haven't tested with synce, but definetely works with Internet Sharing / WMWifirouter.

jonalowe
21st August 2009, 08:43 PM
Thanks for getting back to me so quick.

Now, the network manager says "Device not managed" when I am all hooked up. Phone still shows connected. Before network manager would allow me to select it, and attempt to hook up.

new lsusb:

Bus 001 Device 004: ID 22b8:7009 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x7009
bcdDevice 0.01
iManufacturer 1 Motorola Inc
iProduct 2 Motorola USB Remote NDIS Network Device
iSerial 3 ffffffff-ff04-ffff-97b9-xxxxxxxxxxx
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 3 RNDIS
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 06 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


new dmesg:

[ 130.204115] usb 1-1: new high speed USB device using ehci_hcd and address 4
[ 130.360808] usb 1-1: configuration #1 chosen from 1 choice
[ 130.564033] usbcore: registered new interface driver cdc_ether
[ 131.030527] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 131.436091] rndis_host 1-1:1.0: hard mtu 1558 (4096 from dev), rx buflen 8192, align 8
[ 131.438682] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 131.846914] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 132.255113] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 132.660090] rndis_host 1-1:1.0: status ep1in, 8 bytes period 7
[ 132.662265] rndis0: register 'rndis_host' at usb-0000:02:07.2-1, RNDIS device (SynCE patched), 80:fb:00:00:29:19
[ 132.663085] usbcore: registered new interface driver rndis_host
[ 132.832037] rndis0: rxqlen 0 --> 10
[ 132.832037] rndis0: rxqlen 10 --> 11


new ifconfig:

rndis0 Link encap:Ethernet HWaddr 80:fb:00:00:xx:xx
inet6 addr: 2002:46de:4505:8:82fb:ff:fe00:2919/64 Scope:Global
inet6 addr: fec0::8:82fb:ff:fe00:2919/64 Scope:Site
inet6 addr: fe80::82fb:ff:fe00:2919/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1
RX packets:58 errors:47 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3682 (3.6 KB) TX bytes:12127 (12.1 KB)

rndis0:avahi Link encap:Ethernet HWaddr 80:fb:00:00:xx:xx
inet addr:169.254.2.29 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1


Note that I am getting rndis0:avahi now, whatever that is!

Jon

jonalowe
21st August 2009, 08:47 PM
Alright I might be out of my element, but I get out of da box internet sharing with Juanty.
Just use the usb pop up menu.
BTW: Jaunty is my one and only OS.

Could you elaborate on the "usb popup menu"? Nothing pops up when I plug in a USB item.

Jon

famewolf
21st August 2009, 09:31 PM
Thanks for getting back to me so quick.

Now, the network manager says "Device not managed" when I am all hooked up. Phone still shows connected. Before network manager would allow me to select it, and attempt to hook up.

new lsusb:

Bus 001 Device 004: ID 22b8:7009 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x7009
bcdDevice 0.01
iManufacturer 1 Motorola Inc
iProduct 2 Motorola USB Remote NDIS Network Device
iSerial 3 ffffffff-ff04-ffff-97b9-xxxxxxxxxxx
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 3 RNDIS
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 06 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


new dmesg:

[ 130.204115] usb 1-1: new high speed USB device using ehci_hcd and address 4
[ 130.360808] usb 1-1: configuration #1 chosen from 1 choice
[ 130.564033] usbcore: registered new interface driver cdc_ether
[ 131.030527] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 131.436091] rndis_host 1-1:1.0: hard mtu 1558 (4096 from dev), rx buflen 8192, align 8
[ 131.438682] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 131.846914] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 132.255113] rndis_host 1-1:1.0: pipe: 1077970048, maxp: 8, partial: 8, retval: 0
[ 132.660090] rndis_host 1-1:1.0: status ep1in, 8 bytes period 7
[ 132.662265] rndis0: register 'rndis_host' at usb-0000:02:07.2-1, RNDIS device (SynCE patched), 80:fb:00:00:29:19
[ 132.663085] usbcore: registered new interface driver rndis_host
[ 132.832037] rndis0: rxqlen 0 --> 10
[ 132.832037] rndis0: rxqlen 10 --> 11


new ifconfig:

rndis0 Link encap:Ethernet HWaddr 80:fb:00:00:xx:xx
inet6 addr: 2002:46de:4505:8:82fb:ff:fe00:2919/64 Scope:Global
inet6 addr: fec0::8:82fb:ff:fe00:2919/64 Scope:Site
inet6 addr: fe80::82fb:ff:fe00:2919/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1
RX packets:58 errors:47 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3682 (3.6 KB) TX bytes:12127 (12.1 KB)

rndis0:avahi Link encap:Ethernet HWaddr 80:fb:00:00:xx:xx
inet addr:169.254.2.29 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1


Note that I am getting rndis0:avahi now, whatever that is!

Jon

I'll ask this just to cover all options...you are enabling internet sharing on the phone before you connect the usb cable up? It will create a rndis connection with internet sharing turned off but that is for syncing as opposed to tethering.

famewolf
21st August 2009, 09:35 PM
Alright I might be out of my element, but I get out of da box internet sharing with Juanty.
Just use the usb pop up menu.
BTW: Jaunty is my one and only OS.

If your distro is using one of the new kernels then it may include all the new synce enhacements and not need a seperate compile. Opensuse and some of the others are still on 2.6.27.xx so they still need some tweaks.

jonalowe
21st August 2009, 09:42 PM
I'll ask this just to cover all options...you are enabling internet sharing on the phone before you connect the usb cable up? It will create a rndis connection with internet sharing turned off but that is for syncing as opposed to tethering.

Yes I am, and I've tried it both ways. I even went to the Jaunty Live CD to see if it would come up with no changes. Nothing. USB sees it. However with USB, I can't get to the files on the phone, but with Bluetooth I can. Weird. And both work in XP.

Sergio PC
22nd August 2009, 01:17 AM
Could you elaborate on the "usb popup menu"? Nothing pops up when I plug in a USB item.
Jon
You know..... the HTC USB pop up menu, check out the pic.
If your distro is using one of the new kernels then it may include all the new synce enhancements and not need a seperate compile. Opensuse and some of the others are still on 2.6.27.xx so they still need some tweaks.
We get weekly 30meg updates :p
Yes I am, and I've tried it both ways. I even went to the Jaunty Live CD to see if it would come up with no changes. Nothing. USB sees it. However with USB, I can't get to the files on the phone, but with Bluetooth I can. Weird. And both work in XP.
Are you updating Jaunty? Have you activated Update manager?Like in pic 2?

jonalowe
22nd August 2009, 05:00 AM
I've selected USB on my phone under the internet sharing menu, just like I did on Windows. My Jaunty is fully updated. Kernel 2.6.29-1. Nothing shows up on a fresh install with all updates. I will start over on this process.

jonalowe
22nd August 2009, 04:15 PM
Ok, here's the latest.

Did a fresh install and did th emods described here with rndis-lite. It appears to be getting an IP address as shown in var/log/syslog:

Aug 22 08:59:26 eeepc avahi-autoipd(rndis0)[11330]: Found user 'avahi-autoipd' (UID 104) and group 'avahi-autoipd' (GID 110).
Aug 22 08:59:26 eeepc avahi-autoipd(rndis0)[11330]: Successfully called chroot().
Aug 22 08:59:26 eeepc avahi-autoipd(rndis0)[11330]: Successfully dropped root privileges.
Aug 22 08:59:26 eeepc avahi-autoipd(rndis0)[11330]: Starting with address 169.254.2.29
Aug 22 08:59:31 eeepc avahi-autoipd(rndis0)[11330]: Callout BIND, address 169.254.2.29 on interface rndis0
Aug 22 08:59:31 eeepc avahi-daemon[3735]: Joining mDNS multicast group on interface rndis0.IPv4 with address 169.254.2.29.
Aug 22 08:59:31 eeepc avahi-daemon[3735]: New relevant interface rndis0.IPv4 for mDNS.
Aug 22 08:59:31 eeepc avahi-daemon[3735]: Registering new address record for 169.254.2.29 on rndis0.IPv4.
Aug 22 08:59:35 eeepc avahi-autoipd(rndis0)[11330]: Successfully claimed IP address 169.254.2.29
Aug 22 08:59:35 eeepc ntpdate[11373]: can't find host ntp.ubuntu.com
Aug 22 08:59:35 eeepc ntpdate[11373]: no servers can be used, exiting

However, as you can see, if the system tries to go anywhere, it can't.

Latest dmesg:
[ 9366.052096] usb 5-4: new high speed USB device using ehci_hcd and address 26
[ 9366.196319] usb 5-4: configuration #1 chosen from 1 choice
[ 9368.112129] rndis0 (rndis_host): not using net_device_ops yet
[ 9368.115552] rndis0: register 'rndis_host' at usb-0000:00:1d.7-4, RNDIS device (SynCE patched), 80:fb:00:00:29:19


Latest ifconfig:
rndis0 Link encap:Ethernet HWaddr 80:fb:00:xx:xx:xx
inet6 addr: 2002:46df:24b4:d:82fb:ff:fe00:2919/64 Scope:Global
inet6 addr: fec0::d:82fb:ff:fe00:2919/64 Scope:Site
inet6 addr: fe80::82fb:ff:fe00:2919/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1
RX packets:53 errors:42 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3309 (3.3 KB) TX bytes:22125 (22.1 KB)

rndis0:avahi Link encap:Ethernet HWaddr 80:fb:00:00:29:19
inet addr:169.254.2.29 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:3954 Metric:1


New lsusb:

Bus 005 Device 026: ID 22b8:7009 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x7009
bcdDevice 0.01
iManufacturer 1 Motorola Inc
iProduct 2 Motorola USB Remote NDIS Network Device
iSerial 3 ffffffff-ff04-ffff-97b9-xxxxxxxxxxxxx
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 3 RNDIS
iInterface 0
** UNRECOGNIZED: 05 24 01 00 01
** UNRECOGNIZED: 04 24 02 00
** UNRECOGNIZED: 05 24 06 00 01
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 3 RNDIS
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


I note my MTU is very high, MTU 3954. Could this be a problem?

Thanks again.
Jon

jonalowe
22nd August 2009, 07:16 PM
I managed to get sharing going on Bluetooth on this computer, by tilting my head and squinting, using the Blueman Bluetooth manager instead of the stock app. Of course, no one elses directions helped me to finally get it going! I have to do things in exactly a non-logical sequence to get it going.

USB sharing still eludes me, and I still would like to get that going. But I now know sharing in Linux IS possible! In fact, I'm using it now.

The Ubuntu network manager sees my phone via USB, but says it doesn't manage it, so it is greyed out.

I tried the patch for the other phone; no help. I didn't have that error message anyway.

Sergio PC
22nd August 2009, 07:29 PM
I managed to get sharing going on Bluetooth on this computer, by tilting my head and squinting, using the Blueman Bluetooth manager instead of the stock app. Of course, no one elses directions helped me to finally get it going! I have to do things in exactly a non-logical sequence to get it going.

USB sharing still eludes me, and I still would like to get that going. But I now know sharing in Linux IS possible! In fact, I'm using it now.

The Ubuntu network manager sees my phone via USB, but says it doesn't manage it, so it is greyed out.

I tried the patch for the other phone; no help. I didn't have that error message anyway.
Well if you need any info, that will show you how it works properly (like on mine :p) let me know.
Ex: Directory's or programs installed.

jonalowe
25th August 2009, 04:49 PM
I finally got it to work. See here:

http://ubuntuforums.org/showpost.php?p=7844094&postcount=60

Jon

fbcyborg
27th October 2009, 11:05 PM
Here again.

I've just finished to setup my Linux Distribution on my notebook. I use Gentoo Linux.
I tried to install usb-rndis-lite, but I'm not able to compile it.
Here's what I get during compile:
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c: In function 'usbnet_probe':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1199: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1200: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1201: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1202: error: 'struct net_device' has no member named 'open'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1203: error: 'struct net_device' has no member named 'stop'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1205: error: 'struct net_device' has no member named 'tx_timeout'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_bind':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:508: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_tx_fixup':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:662: warning: assignment makes integer from pointer without a cast
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r3'
make: *** [default] Error 2
I use KDE-4.3.1.

Anybody knows how to get it compiled?

famewolf
27th October 2009, 11:26 PM
Here again.

I've just finished to setup my Linux Distribution on my notebook. I use Gentoo Linux.
I tried to install usb-rndis-lite, but I'm not able to compile it.
Here's what I get during compile:
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c: In function 'usbnet_probe':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1199: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1200: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1201: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1202: error: 'struct net_device' has no member named 'open'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1203: error: 'struct net_device' has no member named 'stop'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1205: error: 'struct net_device' has no member named 'tx_timeout'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_bind':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:508: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_tx_fixup':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:662: warning: assignment makes integer from pointer without a cast
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r3'
make: *** [default] Error 2
I use KDE-4.3.1.

Anybody knows how to get it compiled?

Have you tried just using the modules provided by the kernel? The newer kernels 2.6.3X are supposed to already include the usb-rndis changes from my understanding. Do you have kernel-source installed as well as kernel headers? Did you get that using the latest svn release? It might be in the middle of being worked on...pull a previous release from the synce website.

If none of those helped you should probably search the synce forums for the same error.

fbcyborg
27th October 2009, 11:31 PM
Hi!
I saw something new about it in the kernel actually.
I use the gentoo-sources-2.6.31-r3.
Are you talking about USB Gadget support?
Can you tell me exactly what modules I have to compile, please?
Is this, correct?
<*> USB Gadget Drivers (Ethernet Gadget (with CDC Ethernet support)) --->
Ethernet Gadget (with CDC Ethernet support)
RNDIS support (NEW)

fbcyborg
27th October 2009, 11:34 PM
Here's what I get when I connect my Kaiser to the PC:
usb 2-1: new full speed USB device using uhci_hcd and address 5
usb 2-1: configuration #1 chosen from 1 choice
rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
eth1: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device, 80:00:60:0f:e8:00
But no eth1 interface is coming up.

famewolf
28th October 2009, 01:04 AM
Here's what I get when I connect my Kaiser to the PC:
usb 2-1: new full speed USB device using uhci_hcd and address 5
usb 2-1: configuration #1 chosen from 1 choice
rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
eth1: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device, 80:00:60:0f:e8:00
But no eth1 interface is coming up.


Did you turn on internet sharing on the phone?

fbcyborg
28th October 2009, 10:49 AM
Yes, of course. I was also connected to the Internet.
Please, can you give me the exact kernel configuration, related to the modules I need to have it working?

famewolf
28th October 2009, 04:58 PM
Yes, of course. I was also connected to the Internet.
Please, can you give me the exact kernel configuration, related to the modules I need to have it working?


I'm afraid I can't because it appears gentoo is using kernel patches that are not in opensuse's kernel. The only rndis entries in my config are:

CONFIG_USB_NET_RNDIS_WLAN=m
CONFIG_USB_NET_RNDIS_HOST=m

You might have better luck on the synce forums but it sounds like a gentoo issue to me so you may have to check on their forums as well. There may be a patch out there that has to be applied to the usb-rndis-lite code to make it work with the new kernel source.

fbcyborg
28th October 2009, 05:22 PM
Hi,

my configuration is similar to yours:
# CONFIG_USB_NET_RNDIS_WLAN is not set
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_ETH_RNDIS=y
I don't think WLAN is necessary.

I don't think gentoo patches can be a problem.
Since there's no wiki somewhere into the Internet, I only would like to know if compiling the right kernel modules is enough, to have it working.
As far as I can see, it seems that if I compile that modules, I should be able to see eth1 when the kaiser is connected. So these kernel modules, substitute usb-rndis-lite at all, isn't it?

famewolf
28th October 2009, 06:10 PM
Hi,

my configuration is similar to yours:
# CONFIG_USB_NET_RNDIS_WLAN is not set
CONFIG_USB_NET_RNDIS_HOST=y
CONFIG_USB_ETH_RNDIS=y
I don't think WLAN is necessary.

I don't think gentoo patches can be a problem.
Since there's no wiki somewhere into the Internet, I only would like to know if compiling the right kernel modules is enough, to have it working.
As far as I can see, it seems that if I compile that modules, I should be able to see eth1 when the kaiser is connected. So these kernel modules, substitute usb-rndis-lite at all, isn't it?

If you do a google on "usb-rndis-lite kernel 2.6.31" you'll find multiple results where people indicate it won't compile under the 2.6.31 kernel due to a new kernal api. You'll need to check the synce forums for a patch or rollback your kernel if you want to compile it.

fbcyborg
28th October 2009, 06:38 PM
if you want to compile it.
You mean to compile an external package? I.e. usb-rndis-lite package as I've done before the RNDIS support has been included in the linux kernel?

famewolf
28th October 2009, 08:15 PM
You mean to compile an external package? I.e. usb-rndis-lite package as I've done before the RNDIS support has been included in the linux kernel?

Yes. As previously stated, you need to take your questions to the synce forum.

If the phone isn't working with the kernel compiled modules then you need to compile usb-rndis-lite. If usb-rndis-lite won't compile under kernel 2.6.31 then you either need to roll back to a kernel earlier then that so you CAN compile it or you need to go to the synce forums to find out what you have to do to compile it on 2.6.31.

slinkygn
2nd November 2009, 08:38 PM
If the phone isn't working with the kernel compiled modules then you need to compile usb-rndis-lite. If usb-rndis-lite won't compile under kernel 2.6.31 then you either need to roll back to a kernel earlier then that so you CAN compile it or you need to go to the synce forums to find out what you have to do to compile it on 2.6.31.

Looks like the former more than the latter.

I had already filed a bug with SynCE on usb-rndis-lite not making under 2.6.31:

http://sourceforge.net/tracker/?func=detail&aid=2882668&group_id=30550&atid=399601

Author basically says it won't get fixed.

fbcyborg
2nd November 2009, 08:42 PM
Yes, it's the same problem I reported few posts ago.
For me, the most important thing is that the usb-rndis-driver in the linux kernel are working. At the moment, they aren't.

gundamned
4th November 2009, 11:40 PM
Yes, it's the same problem I reported few posts ago.
For me, the most important thing is that the usb-rndis-driver in the linux kernel are working. At the moment, they aren't.

They are working here (2.6.31-5 kernel and HTC Diamond Touch with Win6.1), after you connected with ICS on your phone and the connection, e.g. eth2, is up and running, let see what value of MTU is on eth2, like:

> sudo ifconfig eth2

I do not remember which value is usually set to, but setting it to 1000 make it working here. To change the MTU to 1000 just issue the command:

>sudo ifconfig eth2 mtu 1000

see you!

fbcyborg
5th November 2009, 08:41 AM
Yes, Ok, but I said no ethX interfaces are coming up.

famewolf
5th November 2009, 03:04 PM
Yes, Ok, but I said no ethX interfaces are coming up.

2.6.31-5 is newer then you said you were running...also make sure you have rndis configured in your network (monitor dmesg to see if it's trying to raise an ethX but can't find configuration).

All I can do is make suggestions.

fbcyborg
6th November 2009, 10:12 PM
Thanks a lot for your suggestions.

I tried to update the linux kernel up to the 2.6.31-r5, but nothing has changed.
This is what I get:
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
eth1: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device, 80:00:60:0f:e8:00

And no new ethX interface is coming up...

Please, can you post your .config file related to the RNDIS module?
e.g.: cat .config | grep RNDIS

Thanks!!!

jasjar@123
7th November 2009, 12:52 AM
If you are using fedora 10 then there is a wireless Internet tab at the top right and same with fedora 11.Even i use fedora 11 and no settings Required for Internet sharing.Its by default. Just connect through wireless network and connect with enternet..you done...:)

fbcyborg
7th November 2009, 08:45 AM
Hi!

I'm not using Fedora. I use Gentoo Linux. Note that it doesn't depend on the distribution you are using, but it depends on the linux kernel instead!!!
Please, can you post the result of the following command?
lsmodor even better,
determine which linux kernel you are running uname -r and do something like that:
cat /boot/config-2.6.XX | grep RNDIS

Of course, change config-2.6.XX with your own kernel configuration file, if you have one.


Thank you.

EDIT: I did it by myself, thanks to the virtualization.
[root@fedora ~]# cat /boot/config-2.6.30.9-96.fc11.x86_64 | grep RNDIS
CONFIG_USB_NET_RNDIS_WLAN=m
CONFIG_USB_NET_RNDIS_HOST=m

So, in my case CONFIG_USB_NET_RNDIS_WLAN is missing. I am going to compile it and try again.

EDIT: no way to get it working. I still get that error message. Looking for missing modules.... :(

majorasshole
7th November 2009, 02:32 PM
Just installed Ubuntu 9.10 on my laptop. I usually used Bluetooth tethering with Blueman on the previous distro I used (OpenSuse 11.1) with quite some success.

I simply tried the Internet Sharing on my KS20 with 6.5.1 rom, and BT sharing is broken since 23071 releases. So I tried USB sharing, and it worked directly without configuring anything. So I can tell that latest Ubuntu with combined Kernel 2.6.31 and NetworkManager 0.7.996 under Gnome give a slick and clean support to USB net sharing. Might worth upgrading if you use a previous version, and a good track to follow on OpenSuse 11.2. I wil try it as soon as it's released in it's final version.

gundamned
7th November 2009, 03:03 PM
Thanks a lot for your suggestions.

I tried to update the linux kernel up to the 2.6.31-r5, but nothing has changed.
This is what I get:
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
eth1: register 'rndis_host' at usb-0000:00:1d.0-1, RNDIS device, 80:00:60:0f:e8:00



I get the same when i plug the mobile into the usb port of my laptop and start (on the mobile) the I.S.Connection. The difference is that somehow i have udev creating a new ethX interface:


[ 6566.116090] usb 2-1: new high speed USB device using ehci_hcd and address 50
[ 6566.254515] usb 2-1: New USB device found, idVendor=0bb4, idProduct=0303
[ 6566.254526] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6566.254533] usb 2-1: Product: Generic RNDIS
[ 6566.254538] usb 2-1: Manufacturer: HTC
[ 6566.254543] usb 2-1: SerialNumber: 3fbf5000-7351-0801-3575-680128600570
[ 6566.254728] usb 2-1: configuration #1 chosen from 1 choice
[ 6566.494907] rndis_host 2-1:1.0: dev can't take 1536 byte packets (max 1536), adjusting MTU to 1478
[ 6566.503138] rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 6566.522149] eth1: register 'rndis_host' at usb-0000:00:1d.7-1, RNDIS device, 80:00:60:0f:e8:00
[ 6566.536654] udev: renamed network interface eth1 to eth2



And no new ethX interface is coming up...

Please, can you post your .config file related to the RNDIS module?
e.g.: cat .config | grep RNDIS


Sure, here it is:

>cat /boot/config-2.6.31.5 | grep RNDIS
CONFIG_USB_NET_RNDIS_WLAN=m
CONFIG_USB_NET_RNDIS_HOST=m
CONFIG_USB_ETH_RNDIS=y

Also, not that i am using NetworkManager 0.7.1 and its daemon, which brings up automatically the interface.

Hope this helps,

fbcyborg
8th November 2009, 12:22 AM
Thank you.

By the way... When rndis was working for me too, I was using NetworkManager too.
Since I use KDE4 now, I can't use KNetworkManager. I use wicd now, that makes the same things that KNetworkManager does. It should bring ethX interfaces up without any problem. The only difference is that /etc/init.d/net.XX must not exist or wicd won't work.
Furthermore, also when NetworkManager was installed on my notebook, net.eth1 was not present. So I don't think it could be a problem.
I have to find out what are all the necessary modules to get it working.

gundamned
8th November 2009, 12:03 PM
Thank you.

By the way... When rndis was working for me too, I was using NetworkManager too.
Since I use KDE4 now, I can't use KNetworkManager. I use wicd now, that makes the same things that KNetworkManager does. It should bring ethX interfaces up without any problem. The only difference is that /etc/init.d/net.XX must not exist or wicd won't work.
Furthermore, also when NetworkManager was installed on my notebook, net.eth1 was not present. So I don't think it could be a problem.
I have to find out what are all the necessary modules to get it working.

I think the modules you need are these:
rndis_host 6896 0
cdc_ether 4504 1 rndis_host
usbnet 15348 2 rndis_host,cdc_ether
mii 4704 1 usbnet

it is taken from the 'lsmod' output, on the right there are the dependencies.

See you

fbcyborg
8th November 2009, 07:29 PM
Thank you.
Yes, I now these are the modules I need and they have been compiled actually, but I still have problems :(

LordLandon
10th November 2009, 02:24 PM
Here again.

I've just finished to setup my Linux Distribution on my notebook. I use Gentoo Linux.
I tried to install usb-rndis-lite, but I'm not able to compile it.
Here's what I get during compile:
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c: In function 'usbnet_probe':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1199: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1200: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1201: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1202: error: 'struct net_device' has no member named 'open'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1203: error: 'struct net_device' has no member named 'stop'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.c:1205: error: 'struct net_device' has no member named 'tx_timeout'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_bind':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:508: error: 'struct net_device' has no member named 'change_mtu'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_tx_fixup':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:662: warning: assignment makes integer from pointer without a cast
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r3'
make: *** [default] Error 2
I use KDE-4.3.1.

Anybody knows how to get it compiled?

Fixed it.
Run

$ wget -qO- http://sprunge.us/BSjF | patch

before running make for rndis-lite.

fbcyborg
10th November 2009, 03:47 PM
Thank you.

The patch corrects the first problem, but I have another one:
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r5'
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.o
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.o
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.o
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_tx_fixup':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:664: warning: assignment makes integer from pointer without a cast
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r5'
make: *** [default] Error 2
So this is what happen when I make after applying the patch.

By the way: shouldn't be the USB-RNDIS driver inside the linux kernel working?
I could use that instead of compiling usb-rndis.

Finally, I'm compiling usb-rndis-lite-0.11. Should it be another version?

famewolf
10th November 2009, 04:05 PM
Thank you.

The patch corrects the first problem, but I have another one:
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r5'
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/usbnet.o
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.o
CC [M] /var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.o
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c: In function 'rndis_tx_fixup':
/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/rndis_host.c:664: warning: assignment makes integer from pointer without a cast
make[2]: *** [/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11/cdc_ether.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/sys-fs/usb-rndis-lite-0.11/work/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r5'
make: *** [default] Error 2
So this is what happen when I make after applying the patch.

By the way: shouldn't be the USB-RNDIS driver inside the linux kernel working?
I could use that instead of compiling usb-rndis.

Finally, I'm compiling usb-rndis-lite-0.11. Should it be another version?


If you did the "svn co ...." in the first instructions it should have created a "usb-rndis-lite" directory with the latest version. Running the patch against that gives a clean compile with no errors.


i530:/workarea/usb-rndis-lite # wget -qO- http://sprunge.us/BSjF | patch
patching file rndis_host.c
patching file usbnet.c
i530:/workarea/usb-rndis-lite # make
make -C /lib/modules/2.6.31.5-0.1-default/build SUBDIRS=/home/workarea/usb-rndis-lite modules
make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default/. modules
CC [M] /home/workarea/usb-rndis-lite/usbnet.o
CC [M] /home/workarea/usb-rndis-lite/cdc_ether.o
CC [M] /home/workarea/usb-rndis-lite/rndis_host.o
/home/workarea/usb-rndis-lite/rndis_host.c: In function ‘rndis_tx_fixup’:
/home/workarea/usb-rndis-lite/rndis_host.c:664: warning: assignment makes integer from pointer without a cast
Building modules, stage 2.
MODPOST 3 modules
CC /home/workarea/usb-rndis-lite/cdc_ether.mod.o
LD [M] /home/workarea/usb-rndis-lite/cdc_ether.ko
CC /home/workarea/usb-rndis-lite/rndis_host.mod.o
LD [M] /home/workarea/usb-rndis-lite/rndis_host.ko
CC /home/workarea/usb-rndis-lite/usbnet.mod.o
LD [M] /home/workarea/usb-rndis-lite/usbnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
i530:/workarea/usb-rndis-lite # make install
make -C /lib/modules/2.6.31.5-0.1-default/build SUBDIRS=/home/workarea/usb-rndis-lite modules_install
make[1]: Entering directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default/. modules_install
INSTALL /home/workarea/usb-rndis-lite/cdc_ether.ko
INSTALL /home/workarea/usb-rndis-lite/rndis_host.ko
INSTALL /home/workarea/usb-rndis-lite/usbnet.ko
DEPMOD 2.6.31.5-0.1-default
make[1]: Leaving directory `/usr/src/linux-2.6.31.5-0.1-obj/x86_64/default'
depmod -ae
WARNING: -e needs -E or -Fi530:/workarea/usb-rndis-lite #
i530:/workarea/usb-rndis-lite # ls
cdc_ether.c cdc_ether.o modules.order .rndis_host.ko.cmd .svn usbnet.mod.c
cdc_ether.ko .cdc_ether.o.cmd Module.symvers rndis_host.mod.c .tmp_versions usbnet.mod.o
.cdc_ether.ko.cmd clean.sh ndis.h rndis_host.mod.o usbnet.c .usbnet.mod.o.cmd
cdc_ether.mod.c Kbuild reload.sh .rndis_host.mod.o.cmd usbnet.h usbnet.o
cdc_ether.mod.o Makefile rndis_host.c rndis_host.o usbnet.ko .usbnet.o.cmd
.cdc_ether.mod.o.cmd Module.markers rndis_host.ko .rndis_host.o.cmd .usbnet.ko.cmd


Thank you LordLandon for the patch. I'll edit the first post to show to run your patch if their kernel is 2.6.31 or higher.

fbcyborg
10th November 2009, 04:10 PM
Excuse me but I'making some confusion.
I tried that patch both on the 0.11 and svn version.

The result is the same. Maybe I'm missing something, but what version of usb-rndis-lite are you compiling?

EDIT:
This is what I do:
wget http://downloads.sourceforge.net/synce/usb-rndis-lite-0.11.tar.gz
tar xzvf usb-rndis-lite-0.11.tar.gz
cd usb-rndis-lite-0.11
wget -qO- http://sprunge.us/BSjF | patch
make

And this is what I get:
make -C /lib/modules/2.6.31-gentoo-r5/build SUBDIRS=/home/fbcyborg/tmp/usb-rndis-lite-0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r5'
CC [M] /home/fbcyborg/tmp/usb-rndis-lite-0.11/usbnet.o
CC [M] /home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.o
/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
make[2]: *** [/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.o] Error 1
make[1]: *** [_module_/home/fbcyborg/tmp/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r5'
make: *** [default] Error 2


What I am mistaking?

I also tried to do the steps indicated in the first post, but I still get the same error.

famewolf
10th November 2009, 04:26 PM
Excuse me but I'making some confusion.
I tried that patch both on the 0.11 and svn version.

The result is the same. Maybe I'm missing something, but what version of usb-rndis-lite are you compiling?

EDIT:
This is what I do:
wget http://downloads.sourceforge.net/synce/usb-rndis-lite-0.11.tar.gz
tar xzvf usb-rndis-lite-0.11.tar.gz
cd usb-rndis-lite-0.11
wget -qO- http://sprunge.us/BSjF | patch
make

And this is what I get:
make -C /lib/modules/2.6.31-gentoo-r5/build SUBDIRS=/home/fbcyborg/tmp/usb-rndis-lite-0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r5'
CC [M] /home/fbcyborg/tmp/usb-rndis-lite-0.11/usbnet.o
CC [M] /home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.o
/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.c: In function 'usbnet_generic_cdc_bind':
/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.c:113: error: implicit declaration of function 'is_wireless'
make[2]: *** [/home/fbcyborg/tmp/usb-rndis-lite-0.11/cdc_ether.o] Error 1
make[1]: *** [_module_/home/fbcyborg/tmp/usb-rndis-lite-0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r5'
make: *** [default] Error 2


What I am mistaking?

Run these commands EXACTLY as they are (from the first post). Do not do a wget. Do not change them. Run them one at a time and make sure you don't get an error on any of them. If make continues to fail then gentoo has applied a patch to the kernel source that is incompatible with the patch provided. I keep telling you to use the svn co (subversion checkout) command to get the latest version of the source code from synce but you keep showing me that your using that 0.11 version.

Run (one at a time):


svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
wget -qO- http://sprunge.us/BSjF | patch
make
sudo ./clean.sh
sudo make install

fbcyborg
10th November 2009, 04:50 PM
No, it doesn't depend on gentoo patches.

I've just tried vanilla-sources (no patches are applied from gentoo team), and I get the same result. Same error! It's making me crazy!!!!
I am on a amd64 architecture. Could it be a problem?

famewolf
10th November 2009, 05:59 PM
No, it doesn't depend on gentoo patches.

I've just tried vanilla-sources (no patches are applied from gentoo team), and I get the same result. Same error! It's making me crazy!!!!
I am on a amd64 architecture. Could it be a problem?

Shouldn't be. I'm on an x86_64 architecture and that would be the only difference. Did you try googling on the "is_wireless" error you're getting?

famewolf
10th November 2009, 06:02 PM
Shouldn't be. I'm on an x86_64 architecture and that would be the only difference. Did you try googling on the "is_wireless" error you're getting?

From the first result on google:

http://old.nabble.com/cdc_ether.c:113:-error:-implicit-declaration-of-function-declaration-of-function-%E2%80%98is_wireless%E2%80%99-td18298443.html



Re: cdc_ether.c:113: error: implicit declaration of function declaration of function ‘is_wireless’
Click to flag this post

by John Carr-3 Jul 06, 2008; 10:46am :: Rate this Message: - Use ratings to moderate (?)

Reply | Reply to Author | Print | View Threaded | Show Only this Message
I know that bug well. I actually consider it a feature, because it makes it clear that you have the wrong kernel settings. Otherwise cdc_ether compiles without windows mobile and everything else fails silently.

Basically, there is a section like this:

#if defined(CONFIG_USB_NET_RNDIS_HOST) || defined(CONFIG_USB_NET_RNDIS_HOST_MODULE)
// you need this
#else
// but you're getting this
#endif

So if you enable CONFIG_USB_RNDIS_HOST_MODULE in your kernel config, this should build OK. This is default on most distros, with Gentoo the old exception i'm so far aware of. I guess Debian armel has a smaller kernel by default?

We could just remove the #ifdef, but we are trying to stay somewhat in sync with the kernel.

John

fbcyborg
10th November 2009, 06:26 PM
THANK YOU!
Compiling the USB_RNDIS_HOST module, solved the problem.

Now Internet sharing connection works like a charm!

Just a question: why the RNDIS drivers included into the kernel don't work?

EDIT: I also created a new ebuild for gentoo users, and attached the patch to the bug report (http://bugs.gentoo.org/show_bug.cgi?id=236162).

gundamned
16th November 2009, 10:33 AM
THANK YOU!
Just a question: why the RNDIS drivers included into the kernel don't work?


I am using the RNDIS drivers included into the kernel 2.6.31.5, and they work nicely. I am using vanilla kernel got from kernel.org, and compiled using the common practics, no patch at all.

What is the problem you are getting with kernel rndis modules?

fbcyborg
16th November 2009, 11:20 AM
What is the problem you are getting with kernel rndis modules?
No interfaces come up and it seems my PDA isn't recognized. But I have to try again. I am waiting for the new release of KNetworkManager.

qkzoo
19th December 2009, 07:48 PM
Ok, please bear with me. I have a PC that I just installed Ubuntu 9.1 onto. I have no experience with Linux whatsoever, this IS my learning experience here. On my Windows machine, I can hook up my phone and boom, I'm on the internet as long as internet sharing is enabled on my phone. On the Ubuntu box, I hook the phone up to USB, enable internet sharing, and wa-la, I'm connected, or so it seems. When in Firefox or Google Chrome, I can visit "Google" sites, but that's it. Any attempt to visit another website eventually times out, but immediately typing in a Google address will load the Google address I typed in. As we don't have broadband or anything out here, I only use my PPC to connect to the internet. So, without broadband access, only dialup speeds accessible from my Windows box, anybody know of anyway I can get the internet working on the Ubuntu box, so I can begin really playing with it?

Thanks!!

Q

famewolf
20th December 2009, 01:23 AM
Ok, please bear with me. I have a PC that I just installed Ubuntu 9.1 onto. I have no experience with Linux whatsoever, this IS my learning experience here. On my Windows machine, I can hook up my phone and boom, I'm on the internet as long as internet sharing is enabled on my phone. On the Ubuntu box, I hook the phone up to USB, enable internet sharing, and wa-la, I'm connected, or so it seems. When in Firefox or Google Chrome, I can visit "Google" sites, but that's it. Any attempt to visit another website eventually times out, but immediately typing in a Google address will load the Google address I typed in. As we don't have broadband or anything out here, I only use my PPC to connect to the internet. So, without broadband access, only dialup speeds accessible from my Windows box, anybody know of anyway I can get the internet working on the Ubuntu box, so I can begin really playing with it?

Thanks!!

Q

From a console can you give use the results of a "route -n"? You should have a default gw showing to the network connection for the modem...also an "ifconfig" showing that your phone/modem is connected and has an ip address will be helpful. Please make sure, as you mentioned that internet sharing is running on the phone first. Your route -n will look something like this:

ernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.6.6.6 0.0.0.0 255.255.255.255 UH 0 0 0 modem0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 modem0


In my example I have the net through my OTHER phone which is on a modem0 connection via /dev/ttyUSB0 using kinternet....you will have a ethX or a rndis0 or something similar and should have a 192.168.0.102 or something similar IP. While connected you should also do a cat of /etc/resolv.conf and see whats in it...to go to websites you have to have dns entries...if resolv.conf is blank try adding the following:


search site
nameserver 208.67.222.222
nameserver 208.67.220.220


These are the opendns servers and are available to everyone.

juppmapice
20th December 2009, 04:04 AM
Hi, I just wanna say that I have Fedora 11 and never had to install anything to get USB tethering with my Xperia. Simply plug it in share my internet connection and voila.

famewolf
20th December 2009, 04:17 AM
Hi, I just wanna say that I have Fedora 11 and never had to install anything to get USB tethering with my Xperia. Simply plug it in share my internet connection and voila.

As stated previously the newer distro's that have kernel 2.6.30 or newer no longer require compiling the kernel modules UNLESS you have to patch them for specific phone issues such as where the diamond would not get an ip address.

Tolt
6th September 2010, 02:12 PM
i'm running debian lenny with kernel version 2.6.35.4 (latest stable release atm) and i don't need any new driver to post this message through my p3600 using WMWiFiRouter in wifi->usb mode (which uses rndis). :)

famewolf
6th September 2010, 07:29 PM
i'm running debian lenny with kernel version 2.6.35.4 (latest stable release atm) and i don't need any new driver to post this message through my p3600 using WMWiFiRouter in wifi->usb mode (which uses rndis). :)

As stated in the over 6 month old post directly above yours:

"As stated previously the newer distro's that have kernel 2.6.30 or newer no longer require compiling the kernel modules UNLESS you have to patch them for specific phone issues such as where the diamond would not get an ip address."

Tolt
7th September 2010, 01:20 AM
As stated in the over 6 month old post directly above yours:

"As stated previously the newer distro's that have kernel 2.6.30 or newer no longer require compiling the kernel modules UNLESS you have to patch them for specific phone issues such as where the diamond would not get an ip address."

yeah i hate reading you got me. :)

okay then i'll add some specific data i wanted to add in my previous post (i was in a hurry sorry) for people like me who already compiled a very minimal customized kernel with that driver disabled, doesn't know exactly were to look to reenable it and ends in this forum by querying google with 'xda rndis linux' because he knows in xda-developers forum there are a lot competent people who care about helping other users with useful, precise and abundant information:

the driver i've enabled to achieve rndis/activesync support can be found here:
#make menuconfig

Device Drivers -->
Networking device support -->
USB Network Adapters -->
<M> Multi-purpose USB Networking Framework
-M- CDC Ethernet support (smart devices such as cable modems)
<M> Host for RNDIS and ActiveSync devices (EXPERIMENTAL).
it should work both as a module <M> or built-in <*>.

best regards.