Public bug reported: 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. ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug kernel-net maverick needs-upstream-testing -- 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: usbnet refusing links w/o globally unique MAC -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs