Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: PL2303 module backport from 2.6.8 to 2.4.20

  1. #1

    PL2303 module backport from 2.6.8 to 2.4.20

    Hi. I've got a PL2303(X) adaptor which didn't work with any 2.4.X kernels.
    (There seem to be different chipsets under this name which are nonetheless incompatible to one another - the 2.4.X kernel holds support for just one of them)
    However the 2.6.X kernel modules worked just fine so I backported the driver from 2.6.8 to 2.4.20 and wonder if there's anybody else with the same problem interested in the patch/modified driver files.

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    yes, everybody is interested. Post it.

  3. #3

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Thanks!

  5. #5

    ehci incompatibility?

    Hi Folks.
    It seems that the device that's perfectly working on a wl500g doesn't cooperate with my new wl500g deluxe. In fact, I get a "unable to get device descriptor" when I plug it and the green LED on my hub only flashes shortly before staying dark. (usually lit up even without the driver loaded )
    I suspect that the incompatibility has got something to do with the fact that the deluxe has got USB2.0 while the wl500g only has got USB1.1 .
    I gave my adaptre away along with the wl500g since a friend of mine needed it but I lacked another machine with USB2.0 to verify... so - just out of curiosity: can anyone confirm this incompatibility with either ehci-hcd or USB2.0 as such and has anyone succeeded plugging adaptres with different chipsets to the deluxe he'd recommend?

  6. #6
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    kodomo, small question regarding your patch - which sources you've used to perform diff? This is not against 1.9.2.7 kernel...
    As for your problem - please try using it without a hub. Also, usb 1.1 devices are handled by uhci, so you could try compiling alternate driver (as there are two in the kernel).

  7. #7
    Join Date
    Apr 2004
    Location
    Adelaide, Australia
    Posts
    88
    Quote Originally Posted by kodomo
    Can you post the full files? I can't find a suitable base version for you patch to apply cleanly to.

    -- Rod

  8. #8
    Quote Originally Posted by Oleg
    kodomo, small question regarding your patch - which sources you've used to perform diff? This is not against 1.9.2.7 kernel...
    As for your problem - please try using it without a hub. Also, usb 1.1 devices are handled by uhci, so you could try compiling alternate driver (as there are two in the kernel).
    The patches are against linux kernel 2.4.20 (worked against vanilla as well as the one in openwrt stable)
    - I don't think that the hub's the problem, as it worked with the hub though I could try (have to ask the person I gave it to though and he's gone for about 2 weeks - so this could take a while )
    - it was working perfectly on my /wl500g/ but is not on the /wl500g deluxe/, which has usb 2.0 (as to my knowledge there's only ehci for usb 2.0)
    - I don't think that the problem's with the driver itself as the usb system fails to get the device identified and rejects it way before the driver could be loaded.

    Here are the patches again together with the plain files.
    Attached Files Attached Files

  9. #9
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by kodomo
    The patches are against linux kernel 2.4.20 (worked against vanilla as well as the one in openwrt stable)
    - I don't think that the hub's the problem, as it worked with the hub though I could try (have to ask the person I gave it to though and he's gone for about 2 weeks - so this could take a while )
    Try using it wthout hub, as hubs are often causing problems. This could be just hub incompatibility of some kind. wl500g uses ohci for usb 1.1, wl500gx - uhci.
    - it was working perfectly on my /wl500g/ but is not on the /wl500g deluxe/, which has usb 2.0 (as to my knowledge there's only ehci for usb 2.0)
    ehci handles usb 2.0 devices only, 1.1 devices are handled by uhci. Internally usb 2.0 controllers have 2 usb hosts (2.0 and 1.1) and MUX which connects ports to the correct host.

  10. #10
    Quote Originally Posted by Oleg
    ehci handles usb 2.0 devices only, 1.1 devices are handled by uhci. Internally usb 2.0 controllers have 2 usb hosts (2.0 and 1.1) and MUX which connects ports to the correct host.
    Now this would be a /very/ good reason for it not to work, since I didn't compile uhci support into my deluxe kernel *g* Thus all other devices connected to the hub were (by coincidence) USB2.0 compatible, while the said adaptre only supported 1.1. Thanks . This should solve my problem.
    Last edited by kodomo; 02-04-2005 at 15:35.

  11. #11
    Join Date
    Apr 2004
    Location
    Adelaide, Australia
    Posts
    88
    Oleg,

    Here is the patch in the right format for your firmware build.

    -- Rod
    Attached Files Attached Files

  12. #12

    new port from 2.6.12.3 to 2.4.30

    Hi.

    If anyone's interested, I've re-ported the driver from 2.6.12.3 to 2.4.30 (the old port was hackish and lacking some functionality. The 2.6.12.3 version seems to be working out fine.
    Attached Files Attached Files

  13. #13
    Does anybody have a port for kernel 2.4.20 ?

    Thanks a lot.

    Gabriel

  14. #14
    @kodomo

    I am using your driver with a Kernel 2.4.33 pre1. I attached a Digitus USB1.1 Adapter and everything works great.

    I have this messages in my dmesg file:

    host/usb-uhci.c: ENXIO 40408280, flags 0, urb 810e2ee0, burb 810e2ee0
    pl2303.c: pl2303_read_int_callback - usb_submit_urb failed with result -6

    Any serious problem? I am using the normal UHCI driver in the kernel. Should I use the UHCI JE Driver?

    Thanks,
    Madman
    Last edited by madman; 19-02-2006 at 20:21.

  15. #15
    When I use the UHCI JE Driver I get the following error, but it works...

    pl2303.c: pl2303_read_int_callback - usb_submit_urb failed with result -19

    Any ideas? Is it because of USB2.0 and USB1.1 mix?

Page 1 of 2 12 LastLast

Similar Threads

  1. ip6tables and filter module
    By Veri in forum WL-500g Custom Development
    Replies: 0
    Last Post: 18-07-2005, 02:43
  2. Compiling at76c503a module for ASUS
    By rlopes in forum WL-500g Custom Development
    Replies: 10
    Last Post: 24-06-2005, 22:43
  3. can't insmod module usb-storage
    By mirco in forum WL-500g Q&A
    Replies: 3
    Last Post: 16-09-2004, 12:57

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •