[Bug 4409] New: RNDIS Ethernet Gadget fails on Windows with Linux 2.6.24

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Sat Jul 5 04:20:13 CEST 2008


http://bugs.openembedded.net/show_bug.cgi?id=4409

           Summary: RNDIS Ethernet Gadget fails on Windows with Linux
                    2.6.24
    Classification: Unclassified
           Product: Zaurus Kernel
           Version: unspecified
          Platform: ARM
        OS/Version: Windows NT/2000/XP
            Status: UNCONFIRMED
          Keywords: patch
          Severity: minor
          Priority: P3
         Component: C3xxx
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: Zismylaptop at gmail.com


The Linux RNDIS Ethernet Gadget is the name of the Windows driver used to
connect to a Linux machine by USB. This always fails ("This device cannot start
(Code 10)") using the 2007.12 distribution of Angstrom. The following page
claims this is due to a bug introduced into the Linux kernel between 2.6.22 and
2.6.24. It provides a patch that is said to solve the problem (which only
affects Windows hosts). I've included the patch separately below.

        http://docs.openmoko.org/trac/ticket/1279

--- linux-2.6.24.old/drivers/usb/gadget/ether.c    2008-04-11
00:21:02.000000000 -0500
+++ linux-2.6.24/drivers/usb/gadget/ether.c    2008-04-11 00:21:39.000000000
-0500
@@ -1558,6 +1558,7 @@
                 memcpy(req->buf, buf, n);
                 req->complete = rndis_response_complete;
                 rndis_free_response(dev->rndis_config, buf);
+                value = n;
             }
             /* else stalls ... spec says to avoid that */
         }

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Openembedded-issues mailing list