Yep, as you might be able to see by my bug edits. I don't really know
how to narrow it down from here, and advice is appreciated.

On Thu, Mar 17, 2011 at 06:56, Andy Whitcroft <a...@canonical.com> wrote:
> @Michael -- did you make any progress on identifying why this does work
> in 2.6.38, as clearly the code there for the device naming is not any
> different.  Thanks!
>
> ** Changed in: linux (Ubuntu)
>       Status: New => Incomplete
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/731127
>
> Title:
>  usbnet refusing links w/o globally unique MAC
>
> Status in “linux” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  Ran into this trying to tether my HTC G1 running Cyanogenmod 6.1.0.
>
>  The MAC address presented (ex: 42:b4:ea:XX:XX:XX) isn't locally unique
>  ( 0x42 && 0x02 != 0). This is cryptically rejected by usbnet.c as
>  being due to "bad CDC descriptors".
>
>  I fixed this by removing the check for globally unique MAC addresses.
>  My fix is inspired by muhoo @ http://forum.cyanogenmod.com/topic/16433
>  -usb-tethering-not-
>  working/page__p__143349__hl__%2Busb+%2Btether__fromsearch__1#entry143349
>  which led me to http://synce.svn.sourceforge.net/viewvc/synce/trunk
>  /usb-rndis-lite/
>
>  Some intra-repository diffing cross-referenced with linux-
>  source-2.6.35-27-generic led me to their change:
>
>   #include <linux/module.h>
>   #include <linux/sched.h>
>  @@ -1181,10 +1181,13 @@
>        // NOTE net->name still not usable ...
>        if (info->bind) {
>                status = info->bind (dev, udev);
>  -             // heuristic:  "usb%d" for links we know are two-host,
>  -             // else "eth%d" when there's reasonable doubt.  userspace
>  -             // can rename the link if it knows better.
>  -             if ((dev->driver_info->flags & FLAG_ETHER) != 0
>  +             // heuristic:  "rndis%d" for links with RNDIS framing,
>  +             // "usb%d" for links we know are two-host, else "eth%d" when
>  +             // there's reasonable doubt.  userspace can rename the link
>  +             // if it knows better.
>  +             if ((dev->driver_info->flags & FLAG_FRAMING_RN) != 0)
>  +                     strcpy (net->name, "rndis%d");
>  +             else if ((dev->driver_info->flags & FLAG_ETHER) != 0
>                                && (net->dev_addr [0] & 0x02) == 0)
>                        strcpy (net->name, "eth%d");
>
>  Attaches is my simplified patch against maverick's kernel. I'm going to try 
> the mainline kernel next to confirm that the bug still exists there.
>
>  I'm working my way through https://wiki.ubuntu.com/Bugs/HowToFix to
>  see if I can submit this proper-like, but thought I'd make this bug in
>  the mean time.
>
>  ProblemType: Bug
>  DistroRelease: Ubuntu 10.10
>  Package: linux-image-2.6.35-27-generic 2.6.35-27.48
>  Regression: No
>  Reproducible: Yes
>  ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
>  Uname: Linux 2.6.35-27-generic x86_64
>  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
>  Architecture: amd64
>  AudioDevicesInUse:
>   USER        PID ACCESS COMMAND
>   /dev/snd/controlC0:  michael    1830 F.... pulseaudio
>   /dev/snd/pcmC0D0p:   michael    1830 F...m pulseaudio
>   /dev/snd/seq:        michael    1837 F.... timidity
>  Card0.Amixer.info:
>   Card hw:0 'Intel'/'HDA Intel at 0xf6dfc000 irq 47'
>     Mixer name : 'Silicon Image SiI1392 HDMI'
>     Components : 'HDA:83847616,1028020a,00100201 
> HDA:10951392,1028020a,00100000'
>     Controls      : 31
>     Simple ctrls  : 19
>  Date: Tue Mar  8 01:34:16 2011
>  HibernationDevice: RESUME=UUID=670a3954-4d15-468e-996f-894e4b3117bc
>  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027.1)
>  MachineType: Dell Inc. XPS M1330
>  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-27-generic 
> root=UUID=d7ff6202-3e43-4213-836e-441da5761b22 ro quiet splash
>  ProcEnviron:
>   PATH=(custom, user)
>   LANG=en_US.utf8
>   SHELL=/bin/bash
>  RelatedPackageVersions: linux-firmware 1.38.4
>  SourcePackage: linux
>  dmi.bios.date: 12/26/2008
>  dmi.bios.vendor: Dell Inc.
>  dmi.bios.version: A15
>  dmi.board.name: 0N6705
>  dmi.board.vendor: Dell Inc.
>  dmi.chassis.type: 8
>  dmi.chassis.vendor: Dell Inc.
>  dmi.modalias: 
> dmi:bvnDellInc.:bvrA15:bd12/26/2008:svnDellInc.:pnXPSM1330:pvr:rvnDellInc.:rn0N6705:rvr:cvnDellInc.:ct8:cvr:
>  dmi.product.name: XPS M1330
>  dmi.sys.vendor: Dell Inc.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/731127/+subscribe
>


** Package changed: linux (Ubuntu) => linux-backports-modules-2.6.35 (Ubuntu)

** Summary changed:

- usbnet refusing links w/o globally unique MAC
+ linux-backports-modules-2.6.35 break tethering to HTC G1 when running 
linux-image-2.6.35-28-generic

** Description changed:

- Ran into this trying to tether my HTC G1 running Cyanogenmod 6.1.0.
+ w/ linux-image-2.6.35-28-generic and linux-backports-modules-compat-
+ wireless-2.6.36-2.6.35-28-generic (this is bad):
  
- The MAC address presented (ex: 42:b4:ea:XX:XX:XX) isn't locally unique (
- 0x42 && 0x02 != 0). This is cryptically rejected by usbnet.c as being
- due to "bad CDC descriptors".
+ [   44.489235] usb 1-1: new high speed USB device using ehci_hcd and address 5
+ [   44.909215] usbcore: registered new interface driver cdc_ether
+ [   44.975498] usb 1-1: bad CDC descriptors
+ [   44.977907] usbcore: registered new interface driver rndis_host
  
- I fixed this by removing the check for globally unique MAC addresses. My
- fix is inspired by muhoo @ http://forum.cyanogenmod.com/topic/16433-usb-
- tethering-not-
- working/page__p__143349__hl__%2Busb+%2Btether__fromsearch__1#entry143349
- which led me to http://synce.svn.sourceforge.net/viewvc/synce/trunk/usb-
- rndis-lite/
+ w/ only linux-image-2.6.35-28-generic (this is good):
  
- Some intra-repository diffing cross-referenced with linux-
- source-2.6.35-27-generic led me to their change:
+ [   35.101077] usb 1-1: new high speed USB device using ehci_hcd and address 4
+ [   35.414001] usbcore: registered new interface driver cdc_ether
+ [   35.462177] rndis_host 1-1:1.0: usb0: register 'rndis_host' at 
usb-0000:00:1d.7-1, RNDIS device, ba:f4:ab:2c:00:9c
+ [   35.462263] usbcore: registered new interface driver rndis_host
  
-  #include <linux/module.h>
-  #include <linux/sched.h>
- @@ -1181,10 +1181,13 @@
-       // NOTE net->name still not usable ...
-       if (info->bind) {
-               status = info->bind (dev, udev);
- -             // heuristic:  "usb%d" for links we know are two-host,
- -             // else "eth%d" when there's reasonable doubt.  userspace
- -             // can rename the link if it knows better.
- -             if ((dev->driver_info->flags & FLAG_ETHER) != 0
- +             // heuristic:  "rndis%d" for links with RNDIS framing,
- +             // "usb%d" for links we know are two-host, else "eth%d" when
- +             // there's reasonable doubt.  userspace can rename the link
- +             // if it knows better.
- +             if ((dev->driver_info->flags & FLAG_FRAMING_RN) != 0)
- +                     strcpy (net->name, "rndis%d");
- +             else if ((dev->driver_info->flags & FLAG_ETHER) != 0
-                               && (net->dev_addr [0] & 0x02) == 0)
-                       strcpy (net->name, "eth%d");
-  
- Attaches is my simplified patch against maverick's kernel. I'm going to try 
the mainline kernel next to confirm that the bug still exists there.
- 
- I'm working my way through https://wiki.ubuntu.com/Bugs/HowToFix to see
- if I can submit this proper-like, but thought I'd make this bug in the
- mean time.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
- Package: linux-image-2.6.35-27-generic 2.6.35-27.48
+ Package: linux-backports-modules-compat-wireless-2.6.36-2.6.35-28-generic 
2.6.35-28.19
  Regression: No
  Reproducible: Yes
- ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
- Uname: Linux 2.6.35-27-generic x86_64
+ ProcVersionSignature: Ubuntu 2.6.35-28.50-generic 2.6.35.11
+ Uname: Linux 2.6.35-28-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
  Architecture: amd64
  AudioDevicesInUse:
-  USER        PID ACCESS COMMAND
-  /dev/snd/controlC0:  michael    1830 F.... pulseaudio
-  /dev/snd/pcmC0D0p:   michael    1830 F...m pulseaudio
-  /dev/snd/seq:        michael    1837 F.... timidity
+  USER        PID ACCESS COMMAND
+  /dev/snd/controlC0:  michael    1830 F.... pulseaudio
+  /dev/snd/pcmC0D0p:   michael    1830 F...m pulseaudio
+  /dev/snd/seq:        michael    1837 F.... timidity
  Card0.Amixer.info:
-  Card hw:0 'Intel'/'HDA Intel at 0xf6dfc000 irq 47'
-    Mixer name : 'Silicon Image SiI1392 HDMI'
-    Components : 'HDA:83847616,1028020a,00100201 
HDA:10951392,1028020a,00100000'
-    Controls      : 31
-    Simple ctrls  : 19
+  Card hw:0 'Intel'/'HDA Intel at 0xf6dfc000 irq 47'
+    Mixer name : 'Silicon Image SiI1392 HDMI'
+    Components : 'HDA:83847616,1028020a,00100201 
HDA:10951392,1028020a,00100000'
+    Controls      : 31
+    Simple ctrls  : 19
  Date: Tue Mar  8 01:34:16 2011
  HibernationDevice: RESUME=UUID=670a3954-4d15-468e-996f-894e4b3117bc
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027.1)
  MachineType: Dell Inc. XPS M1330
  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-27-generic 
root=UUID=d7ff6202-3e43-4213-836e-441da5761b22 ro quiet splash
  ProcEnviron:
-  PATH=(custom, user)
-  LANG=en_US.utf8
-  SHELL=/bin/bash
+  PATH=(custom, user)
+  LANG=en_US.utf8
+  SHELL=/bin/bash
  RelatedPackageVersions: linux-firmware 1.38.4
  SourcePackage: linux
  dmi.bios.date: 12/26/2008
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A15
  dmi.board.name: 0N6705
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvrA15:bd12/26/2008:svnDellInc.:pnXPSM1330:pvr:rvnDellInc.:rn0N6705:rvr:cvnDellInc.:ct8:cvr:
  dmi.product.name: XPS M1330
  dmi.sys.vendor: Dell Inc.

** Changed in: linux-backports-modules-2.6.35 (Ubuntu)
       Status: Incomplete => New

** Summary changed:

- linux-backports-modules-2.6.35 break tethering to HTC G1 when running 
linux-image-2.6.35-28-generic
+ linux-backports-modules-compat-wireless-2.6.36-2.6.35-28-generic breaks 
tethering to HTC G1 when running linux-image-2.6.35-28-generic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/731127

Title:
  linux-backports-modules-compat-wireless-2.6.36-2.6.35-28-generic
  breaks tethering to HTC G1 when running linux-image-2.6.35-28-generic

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to