From: Craig H. <cr...@hu...> - 2004-09-16 01:56:35
|
Yeah, I've been thinking about that. I think probably we'll continue to have RNDIS on in the default root_fs, simply because Windows people are less likely to be comfortable re-flashing their gumstix with a new root_fs. In the future, with software releases, until the fixed RNDIS stuff has been in the linux kernel for a bit, I'll try to remember to post the 2 root_fs versions to sf.net with and without RNDIS on. Actually, it's just the kernel that's different, so I'll probably just post the non-RNDIS uImage and people can copy that into their rootfs. It's only about 800kB or so and takes just over a minute to transfer at 115200 using ZModem, as compared to the ~2MB of the root_fs which takes over 3 minutes using kermit (plus the time to copy it to flash in u-boot). C On Sep 15, 2004, at 6:39 PM, Edward Wei wrote: > Given these problems, do you think it is wise to have the rootfs > default to RNDIS? Yes RNDIS works on Windows, but aren't most people > working in Linux? or perhaps two rootfs versions, one for RNDIS and > the other for CDC, can be posted on sf.net. > > Ed > > > Craig Hughes wrote: > >> I had been having some trouble getting an RNDIS-enabled gumstix to >> connect to my linux host, and have tracked down the 2 problems that >> were causing this. The first was that I was using a pre-2.6.9 kernel >> on the host side, and the usbnet module has changed slightly to add a >> device for the new RNDIS device identification codes that 2.6.9 uses >> for RNDIS devices. Older kernels will face the same issue. To fix >> this, in linux/drivers/usb/net/usbnet.c you need to add a couple >> lines around line #3316: >> >> >> USB_DEVICE (0x049F, 0x505A), >> .driver_info = (unsigned long) &linuxdev_info, >> }, { >> + // New non-RNDIS configuration when using RNDIS on the gadget >> + USB_DEVICE (0x0525, 0xa4a2), // Netchip RNDIS gadget >> + .driver_info = (unsigned long) &rndis_info, >> +}, { >> USB_DEVICE (0x0E7E, 0x1001), // G.Mate "Yopy" >> .driver_info = (unsigned long) &yopy_info, >> }, { >> >> >> Then rebuild the usbnet module, and make modules_install. >> >> The second problem is that the RNDIS linux gadget presents 2 USB >> configurations; the linux configuration-selection code though doesn't >> work quite right, and accidentally selects the wrong configuration. >> The attached patch fixes that. This patch is needed for *any* host >> kernel version up to the present one. I've sent the patch upstream, >> so hopefully it might be in 2.6.9-final. >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |