Kernel driver pl2303.ko for kernel 2.6.33.2

Tell us your most wanted features from QNAP products.

Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Mon Apr 09, 2012 11:07 pm

I tried everything to get my usb to serial converter to work, but I can't find a good kernel driver for is.

One driver gives an error when opening /dev/usb/ttyUSB0 and the otherone causes a kernel crash when opening /dev/usb/ttyUSB0.

The repository fails because the directory http://ipkg.nslu2-linux.org/feeds/optware/tsx19 has vanished.

How do I get a good kernel driver for this!? Is there a way to compile this driver myself (tutorial) ???
JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby CheechRockwizard » Fri May 18, 2012 12:50 am

I have exactly the same problem on my TS-412...

The version of pl2303.ko I have was compiled under a previous firmware/kernel release, but (surprisingly) doesn't complain when I insmod, and dmesg says all the right things:

>>>
[ 2125.020000] usbcore: registered new interface driver usbserial
[ 2125.020000] usbserial: USB Serial Driver core
[ 2136.240000] USB Serial support registered for pl2303
[ 2136.240000] pl2303 1-1.2:1.0: pl2303 converter detected
[ 2136.260000] usb 1-1.2: pl2303 converter now attached to ttyUSB0
[ 2136.260000] pl2303 1-1.3:1.0: pl2303 converter detected
[ 2136.280000] usb 1-1.3: pl2303 converter now attached to ttyUSB1
[ 2136.280000] usbcore: registered new interface driver pl2303
[ 2136.280000] pl2303: Prolific PL2303 USB to serial adaptor driver
<<<<

However, when I open the USB serial port I have a kernel crash and it reboots the NAS.

I have tried many (possibly all) the threads on this subject with mixed success.
The most recent attempt was to "ipkg install kernel-module-pl2303", but it's not in the repo
(//ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable//Packages)

[ref: viewtopic.php?f=97&t=10739&start=30]

This pl2303 chipset is widely used by many people, and I *have* had it working fine under previous kernel versions (when compiled by hand) so I don't understand why QNAP don't include it as a default module. Or at least release the kernel source to give users a fighting chance of building their own.

It would be nice if someone from QNAP could comment on why support for this chipset is proving so hard to provide...

Should have gone for a Synology NAS instead... Never mind.
CheechRockwizard
New here
 
Posts: 3
Joined: Fri Jan 27, 2012 7:00 am
Location: Surrey, UK
NAS Model: TS-212

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby doktornotor » Fri May 18, 2012 12:58 am

CheechRockwizard wrote:Or at least release the kernel source to give users a fighting chance of building their own.


http://www.qnap.com/en/index.php?lang=en&sn=856

CheechRockwizard wrote:Should have gone for a Synology NAS instead... Never mind.


Yeah, their released kernel sources failed to compile last time I tried. :lol: :roll:
QNAP, why is your homework still not done?
3.8.2 Build0301 - Codename "Titanic" - Dear customer, GTFO! NOT acceptable once again!
QTS 4.0 - Codename "Leaky Snail" - Slower than ever. Yes, we can!
QNAP's new logo competition
User avatar
doktornotor
Experience counts
 
Posts: 2742
Joined: Tue Apr 24, 2012 5:44 am
NAS Model: Not Selected

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby CheechRockwizard » Fri May 18, 2012 1:03 am

Nice one doktornotor - will have a fiddle and see what I can come up with...

Yes, the Synology comment was facetious ;o)
CheechRockwizard
New here
 
Posts: 3
Joined: Fri Jan 27, 2012 7:00 am
Location: Surrey, UK
NAS Model: TS-212

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Fri May 18, 2012 3:10 am

+1...
JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Fri May 18, 2012 3:11 am

Maybe install debian linux on the NAS... But I like the qnap web interface making things easier (altough you have to go to command line for advanced settings)..
JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby CheechRockwizard » Fri May 18, 2012 8:08 pm

I've given up on rolling my own module and will wait for a vendor supported solution, but have a workaround:

I reverted to my previous firmware version (from 3.6.1 to 3.5.2) and used the pl2303.ko file from this topic [http://forum.qnap.com/viewtopic.php?p=217282#p217282]

The process for this was to:
1) download firmware file and unzip [http://download.qnap.com/Storage/TS-412TurboNAS/TS-412_3.5.2_Build1126.zip]
2) install QFinder and install [http://download.qnap.com/Storage/Utility/Finder-3.5.0.209.zip]
3) tools->firmware update, and pointed at the TS-412_3.5.2_Build1126.img file from the zip file in (1)

This approach was recommended to me by the QNAP support team.

I was a bit reluctant to do this, for fear of losing all the data on my NAS, but this process did not affect my data at all.

Now I can control my X10 network from my 'phone again, and log all my CurrentCost output :)

Note that this is for the TS-412. But may be worth a try on other NAS versions, if you can find the firmware img file.

Hope this helps somebody!
CheechRockwizard
New here
 
Posts: 3
Joined: Fri Jan 27, 2012 7:00 am
Location: Surrey, UK
NAS Model: TS-212

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Mon May 21, 2012 7:41 am

That's not a real solution for me. I'm using the VPN functionality on the newest firmare... QNAP should provide a driver and/or a new kernel!!!

Why is it not possible to compile pl2303.ko for the newest firmware??? Is there something missing in the kernel why it is so hard to get it working?!

QNAP please answer and give us a decent solution!!
JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Wed May 30, 2012 3:51 pm

JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby schumaku » Wed May 30, 2012 3:55 pm

Pleae be aware this is a community forum, not a formal contact channel to QNAP...
User avatar
schumaku
Guru
 
Posts: 22583
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby JeroenSt80 » Thu May 31, 2012 4:38 am

See also viewtopic.php?f=85&t=33135&start=15 (I've compiled a new kernel which should support the pl2303 serial adapter (not tested yet)).
JeroenSt80
Getting the hang of things
 
Posts: 62
Joined: Sun Jan 29, 2012 4:40 am
Location: Nearby Eindhoven, The Netherlands
NAS Model: NMP-1000P

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby tuxmarc » Sun Jun 17, 2012 6:29 pm

I was able to get the pl2303.ko working together with firmware 3.7.0 by compiling the module within the GPL sources given with firmware 3.6.x. Do not use the vanilla kernel sources, just use the GPL kernel source given by QNAP.

cheers
tuxmarc
New here
 
Posts: 2
Joined: Sun Jun 17, 2012 2:10 am
NAS Model: TS-419U

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby Dionysus » Sat Jun 30, 2012 10:25 am

How did you get the QNAP kernel source to compile. When I tried it seems there are some SCSI bits missing.
Dionysus
Starting out
 
Posts: 13
Joined: Fri Feb 05, 2010 9:08 pm
NAS Model: TS-401T

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby ctr » Sun Sep 16, 2012 2:52 am

You have to use their kernel config (copy it as .config into the linux tree before activating pl2303 support). I had the same problem and recompiling fixed the problem (coming from 3.5 to 3.7). I was also using a self-compiled version on 3.5 and not a binary from the forum so something must have changed in between although its the same kernel version...
ctr
New here
 
Posts: 8
Joined: Wed Aug 03, 2011 4:40 pm
NAS Model: TS-459 Pro II

Re: Kernel driver pl2303.ko for kernel 2.6.33.2

Postby ben_31 » Sun Sep 23, 2012 6:44 am

I managed to compile it and it seems to work well with the source located in http://downloads.sourceforge.net/projec ... 7.2.tar.gz.
I do not have anymore the "pl2303_open - failed submitting read urb, error -22" error.
You do not have the required permissions to view the files attached to this post.
Ben_31
ben_31
New here
 
Posts: 5
Joined: Mon Oct 12, 2009 4:48 pm
Location: Charleroi, Belgium
NAS Model: SS-439 Pro

Next

Return to Features Wanted

Who is online

Users browsing this forum: No registered users and 1 guest