usb-rndis problem on 2.6.31-r5 kernel - gentoo user

View: New views
10 Messages — Rating Filter:   Alert me  

usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello to the whole list.

2009/11/8 Mark Ellis <mark@...>:
> I know nothing about gentoo, I'm copying this to the synce-users list, I
> suggest you subscribe to it, there are some gentoo guys that listen in
> and may be able to help.
Hi! Thank you Mark.
I've just subscribed the synce-users mailing list.
I hope I didn't miss any reply, since I subscribed the list only few
minutes ago.

>
> A lot can depend on the distro, especially if it applies custom patches.
Yes, sure, but, most of the times, it depends on the kernel configuration.
Note that I use gentoo-sources, but I also tried using vanilla-sources
obtaining the
same result.

I tried with fedora 11 in a virtual machine and I have no problems with it.
So I made a comparison between the modules loaded in fedora and the modules
loaded into my distribution. They are the same. Or this is what I can see.

>
> If the rndis_host module loads without any errors and recognizes the
> device, it's not likely a problem with kernel config.
This is what I get, every time I connect my PDA (Win Mobile 6.5) to the PC:

usb 3-1: new full speed USB device using uhci_hcd and address 2
usb 3-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver cdc_ether
rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
eth1: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device,
80:00:60:0f:e8:00

By the way! Mark, this is what I get with ifconfig -a! eth1, is there!
Sorry ... . Actually, according to the dmesg which shows eth1:

eth1      Link encap:Ethernet  HWaddr 80:00:60:0f:e8:00
          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)

Actually the mac-address is the PDA's mac-address. But ifconfig
without any parameter, doesn't show it.

I think that the following message is the most significant one:
rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47

Thank you.

Flavio

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-11-08 at 19:57 +0100, Flavio wrote:

> Hello to the whole list.
>
> 2009/11/8 Mark Ellis <mark@...>:
> > I know nothing about gentoo, I'm copying this to the synce-users list, I
> > suggest you subscribe to it, there are some gentoo guys that listen in
> > and may be able to help.
> Hi! Thank you Mark.
> I've just subscribed the synce-users mailing list.
> I hope I didn't miss any reply, since I subscribed the list only few
> minutes ago.
>
> >
> > A lot can depend on the distro, especially if it applies custom patches.
> Yes, sure, but, most of the times, it depends on the kernel configuration.
> Note that I use gentoo-sources, but I also tried using vanilla-sources
> obtaining the
> same result.
>
> I tried with fedora 11 in a virtual machine and I have no problems with it.
> So I made a comparison between the modules loaded in fedora and the modules
> loaded into my distribution. They are the same. Or this is what I can see.
>
> >
> > If the rndis_host module loads without any errors and recognizes the
> > device, it's not likely a problem with kernel config.
> This is what I get, every time I connect my PDA (Win Mobile 6.5) to the PC:
>
> usb 3-1: new full speed USB device using uhci_hcd and address 2
> usb 3-1: configuration #1 chosen from 1 choice
> usbcore: registered new interface driver cdc_ether
> rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
> eth1: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device,
> 80:00:60:0f:e8:00
>
> By the way! Mark, this is what I get with ifconfig -a! eth1, is there!
> Sorry ... . Actually, according to the dmesg which shows eth1:
>
> eth1      Link encap:Ethernet  HWaddr 80:00:60:0f:e8:00
>           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)
>
> Actually the mac-address is the PDA's mac-address. But ifconfig
> without any parameter, doesn't show it.
>
Ok, whole new game now.

If you're looking for a sync connection that's not coming up, we need to
look at synce-hal. For internet sharing, run a dhcp client on the
interface.

> I think that the following message is the most significant one:
> rndis_host 3-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
>
> Thank you.
>
> Flavio



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/8 Mark Ellis <mark@...>:
> Ok, whole new game now.
>
> If you're looking for a sync connection that's not coming up, we need to
> look at synce-hal. For internet sharing, run a dhcp client on the
> interface.
synce-hal shouldn't be necessary in my opinion.
Furthermore, I can't run a dhcpcd command on an interface that is not
up yet.

Flavio

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-11-08 at 21:38 +0100, Flavio wrote:
> 2009/11/8 Mark Ellis <mark@...>:
> > Ok, whole new game now.
> >
> > If you're looking for a sync connection that's not coming up, we need to
> > look at synce-hal. For internet sharing, run a dhcp client on the
> > interface.
> synce-hal shouldn't be necessary in my opinion.

If you want a sync connection, this is necessary. If you only want
internet sharing, it is not.

> Furthermore, I can't run a dhcpcd command on an interface that is not
> up yet.
>

Yes you can.




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

signature.asc (204 bytes) Download Attachment

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/8 Mark Ellis <mark@...>:
> If you want a sync connection, this is necessary. If you only want
> internet sharing, it is not.
Ok, it is not necessary! :)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Iain Buchanan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Flavio,

gentoo user here :)  Although I only sync, and I don't use the internet
via my mobile (Palm Treo Pro).


On Sun, 2009-11-08 at 21:56 +0100, Flavio wrote:
> 2009/11/8 Mark Ellis <mark@...>:
> > If you want a sync connection, this is necessary. If you only want
> > internet sharing, it is not.
> Ok, it is not necessary! :)

So I didn't get some answers from the thread already:

1. do you have a firewall? (`iptables -L` to be sure)

2. what version of which kernel module are you using?  Did you get
usb-rndis-lite from the overlay?  Have you re-emerged it since booting
2.6.31?

I'm running 2.6.30-tuxonice-r5.  I also get
kernel: rndis_host 4-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
but I don't know if I've always seen that or not...

--
Iain Buchanan <iaindb at netspace dot net dot au>

Is it weird in here, or is it just me?
                -- Steven Wright


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/9 Iain Buchanan <iaindb@...>:
> Hi Flavio,
>
> gentoo user here :)  Although I only sync, and I don't use the internet
> via my mobile (Palm Treo Pro).
Hi Iain!
:-)

> So I didn't get some answers from the thread already:
>
> 1. do you have a firewall? (`iptables -L` to be sure)
No, I haven't. Iptables is not installed into my laptop.

>
> 2. what version of which kernel module are you using?  Did you get
> usb-rndis-lite from the overlay?  Have you re-emerged it since booting
> 2.6.31?
I use gentoo-sources-2.6.31-r5 (I also tried vanilla sources, but it's
the same thing).
I got usb_rndis_lite from my local overlay (downloaded an ebuild from
bugs.gentoo.org,
if I remeber correctly)and I used it in the past but now, it is not
possible to compile that package.
I also tried to emerge it with the 2.6.31-r5 kernel but it doesn't compile.
I prefer to use RNDIS driver inside the kernel... so it's the unique
chance I suppose.

>
> I'm running 2.6.30-tuxonice-r5.  I also get
> kernel: rndis_host 4-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
> but I don't know if I've always seen that or not...
By the way... If I try to connect the HTC Kaiser to fedora 11 kernel
2.6.30.9-96.fc11.x86_64 I get the following log:

usb 2-1: new full speed USB device using ohci_hcd and address 2
usb 2-1: New USB device found, idVendor=0bb4, idProduct=0b0b
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: Generic RNDIS
usb 2-1: Manufacturer: HTC
usb 2-1: SerialNumber:
usb 2-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver cdc_ether

rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
<----------------------

eth1: register 'rndis_host' at usb-0000:00:06.0-1, RNDIS device,
80:00:60:0f:e8:00
usbcore: registered new interface driver rndis_host
usbcore: registered new interface driver rndis_wlan
NetworkManager: <info>  (eth1): new Ethernet device (driver: 'usb')
NetworkManager: <info>  (eth1): exported as
/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
NetworkManager: <info>  (eth1): device state change: 1 -> 2 (reason 2)
NetworkManager: <info>  (eth1): bringing up device.
NetworkManager: <info>  (eth1): preparing device.
NetworkManager: <info>  (eth1): deactivating device (reason: 2).
nm-system-settings: Added default wired connection 'Auto eth1' for
/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
NetworkManager: <info>  Policy set 'System eth0' (eth0) as default for
routing and DNS.
NetworkManager: <info>  (eth1): carrier now ON (device state 2)
NetworkManager: <info>  (eth1): device state change: 2 -> 3 (reason 40)
NetworkManager: <info>  Activation (eth1) starting connection 'Auto eth1'
NetworkManager: <info>  (eth1): device state change: 3 -> 4 (reason 0)
NetworkManager: <info>  Activation (eth1) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager: <info>  Activation (eth1) Stage 1 of 5 (Device
Prepare) started...
NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device
Configure) scheduled...
NetworkManager: <info>  Activation (eth1) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device
Configure) starting...
NetworkManager: <info>  (eth1): device state change: 4 -> 5 (reason 0)
NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device
Configure) successful.
NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure
Start) scheduled.
NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device
Configure) complete.
NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure
Start) started...
NetworkManager: <info>  (eth1): device state change: 5 -> 7 (reason 0)
NetworkManager: <info>  Activation (eth1) Beginning DHCP transaction.
NetworkManager: <info>  dhclient started with pid 2255
NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure
Start) complete.
dhclient: Internet Systems Consortium DHCP Client 4.1.0p1
dhclient: Copyright 2004-2009 Internet Systems Consortium.
dhclient: All rights reserved.
dhclient: For info, please visit http://www.isc.org/sw/dhcp/
dhclient:
NetworkManager: <info>  DHCP: device eth1 state changed (null) -> preinit
dhclient: Listening on LPF/eth1/80:00:60:0f:e8:00
dhclient: Sending on   LPF/eth1/80:00:60:0f:e8:00
dhclient: Sending on   Socket/fallback
dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
dhclient: DHCPOFFER from 169.254.2.1
dhclient: DHCPREQUEST on eth1 to 255.255.255.255 port 67
dhclient: DHCPACK from 169.254.2.1
NetworkManager: <info>  DHCP: device eth1 state changed preinit -> bound
NetworkManager: <info>  Activation (eth1) Stage 4 of 5 (IP Configure
Get) scheduled...
NetworkManager: <info>  Activation (eth1) Stage 4 of 5 (IP Configure
Get) started...
NetworkManager: <info>    address 169.254.2.2
NetworkManager: <info>    prefix 24 (255.255.255.0)
NetworkManager: <info>  Activation (eth1) Stage 5 of 5 (IP Configure
Commit) scheduled...
NetworkManager: <info>  Activation (eth1) Stage 4 of 5 (IP Configure
Get) complete.
NetworkManager: <info>  Activation (eth1) Stage 5 of 5 (IP Configure
Commit) started...
avahi-daemon[1105]: Joining mDNS multicast group on interface
eth1.IPv4 with address 169.254.2.2.
avahi-daemon[1105]: New relevant interface eth1.IPv4 for mDNS.
avahi-daemon[1105]: Registering new address record for 169.254.2.2 on eth1.IPv4.
dhclient: bound to 169.254.2.2 -- renewal in 1069062 seconds.
avahi-daemon[1105]: Registering new address record for
fe80::8200:60ff:fe0f:e800 on eth1.*.
NetworkManager: <info>  Policy set 'System eth0' (eth0) as default for
routing and DNS.
NetworkManager: <info>  (eth1): device state change: 7 -> 8 (reason 0)
NetworkManager: <info>  Activation (eth1) successful, device activated.
NetworkManager: <info>  Activation (eth1) Stage 5 of 5 (IP Configure
Commit) complete.


So, I see the error -47 appears here too... but I guess the problem is
elsewhere now!!!
I used (K)NetworkManager before, but now, I can't because with KDE4
KNetworkManager
won't compile and I use wicd. Could it be wicd the problem?


Thank you,

Flavio

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi! I finally solved the problem.

I got a patch for usb-rndis-lite package from LordLandon and compiled
the following kernel modules:
CONFIG_USB_NET_RNDIS_HOST
CONFIG_USB_ETH_RNDIS

Here's the new gentoo ebuild and the patch.
http://bugs.gentoo.org/show_bug.cgi?id=236162

Now internet connection sharing works again.

Thank you,

Flavio

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Iain Buchanan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-11-10 at 18:45 +0100, Flavio wrote:
> Hi! I finally solved the problem.
>
> I got a patch for usb-rndis-lite package from LordLandon and compiled
> the following kernel modules:
> CONFIG_USB_NET_RNDIS_HOST
> CONFIG_USB_ETH_RNDIS
>
> Here's the new gentoo ebuild and the patch.
> http://bugs.gentoo.org/show_bug.cgi?id=236162

neat, I see they closed the bug because it's not in the official tree :(
We're light on devs interested in SynCE atm.

It all looks #if'd for 2.6.31 but are you able to check it still works
against an older kernel?  I'll eventually get around to applying it to
the SynCE overlay and testing it...

Speaking of which you might be interested in the SynCE overlay.  It
sometimes has more recent versions of SynCE than the official tree:
http://www.synce.org/moin/SynceInstallation/Gentoo

> Now internet connection sharing works again.

excellent.

> Thank you,

and thank you for finding the fix!
--
Iain Buchanan <iaindb at netspace dot net dot au>

Unix:  Some say the learning curve is steep, but you only have to climb it once.
-- Karl Lehenbauer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users

Re: usb-rndis problem on 2.6.31-r5 kernel - gentoo user

by Flavio-11 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/11 Iain Buchanan <iaindb@...>:
> neat, I see they closed the bug because it's not in the official tree :(
> We're light on devs interested in SynCE atm.
The bug report has been closed before I submitted the new ebuild and the
new patch. Anyway, I did it because it might be useful to gentoo people.

>
> It all looks #if'd for 2.6.31 but are you able to check it still works
> against an older kernel?  I'll eventually get around to applying it to
> the SynCE overlay and testing it...
No, at the moment, I can't, sorry.

>
> Speaking of which you might be interested in the SynCE overlay.  It
> sometimes has more recent versions of SynCE than the official tree:
> http://www.synce.org/moin/SynceInstallation/Gentoo
By the way, note that the synce overlay can't be installed.
If you du layman -L the synce overlay isn't present and if you perform
a layman -a synce, it returns the message: "* Overlay "synce" does not exist!"


> and thank you for finding the fix!
Not at all! ;-)

Bye,

Flavio

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Users mailing list
SynCE-Users@...
https://lists.sourceforge.net/lists/listinfo/synce-users