Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Tell us your most wanted features from QNAP products.
Post Reply
aleksey_z
Getting the hang of things
Posts: 66
Joined: Tue Jun 10, 2014 6:41 pm

Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by aleksey_z »

NAS TS-239ProII+ & QTS 4.2.4

I'm trying to get the module pl2303.ko, as I did on the TS-119 earlier viewtopic.php?f=306&t=98636

I'm install Optware-IPKG instead Entware-ng and all fine.

1. Download source from http://www.sourceforge.net/projects/qosgpl
2. Copy GPL_TS-20150925-4.2.0.tar.bz file to NAS /share/Public
3. ssh nas login as Admin
4. cd /share/Public
5. gunzip GPL_TS-20150925-4.2.0.gz
6. tar -xvf GPL_TS-20150925-4.2.0
7. cp GPL_TS/kernel_cfg/TS-239/linux-3.4.6.cfg GPL_TS/src/linux-3.4.6/.config
8. cd GPL_TS/src/linux-3.4.6
9. vi .config
change # CONFIG_USB_SERIAL_PL2303 is not set
to
CONFIG_USB_SERIAL_PL2303=m
<ESC> :wq
10. ipkg install autoconf automake binutils gcc freetype make
11. make oldconfig
12. make modules
13. cp /share/Public/GPL_TS/src/linux-3.4.6/drivers/usb/serial/pl2303.ko /usr/local/modules/pl2303.ko
cp /share/Public/GPL_TS/src/linux-3.4.6/drivers/usb/serial/usbserial.ko /usr/local/modules/usbserial.ko
cp /share/Public/GPL_TS/src/linux-3.4.6/drivers/usb/serial/ftdi_sio.ko /usr/local/modules/ftdi_sio.ko
cp /share/Public/GPL_TS/src/linux-3.4.6/drivers/usb/serial/cp210x.ko /usr/local/modules/cp210x.ko
14. insmod /usr/local/modules/usbserial.ko
15. insmod /usr/local/modules/ftdi_sio.ko
16. insmod /usr/local/modules/pl2303.ko
17. insmod /usr/local/modules/cp210x.ko

Attach module: pl2303.ko usbserial.ko ftdi_sio.ko cp210x.ko

Thankyou.
You do not have the required permissions to view the files attached to this post.
Last edited by aleksey_z on Sat Mar 18, 2017 10:30 pm, edited 1 time in total.
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by zyxmon »

Kernel sources do not have linux/compiler-gcc6.h for gcc6. You can install gcc5.4 from archive or try to copy linux/compiler-gcc5.h to linux/compiler-gcc6.h
aleksey_z
Getting the hang of things
Posts: 66
Joined: Tue Jun 10, 2014 6:41 pm

Re: Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by aleksey_z »

Thanks for the answer, but I have little knowledge in Linux.
What will these commands look like in the Putty terminal line?
These,
zyxmon wrote:Kernel sources do not have linux/compiler-gcc6.h for gcc6. You can install gcc5.4 from archive
or these:
zyxmon wrote: or try to copy linux/compiler-gcc5.h to linux/compiler-gcc6.h
I'm ready to try right now, I'm sitting at the computer.

And one more problem - I do not see the folder .qpkg and all installed packages in WinSCP. Earlier on the TS-119 I saw this folder and all installed packages.
You do not have the required permissions to view the files attached to this post.
zyxmon
Experience counts
Posts: 1001
Joined: Mon Oct 27, 2014 2:27 pm
Location: Moscow, Russia
Contact:

Re: Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by zyxmon »

Copying file in linux is the simplest thing one should know. If you do not know it - do not try to compile a kernel module.
aleksey_z
Getting the hang of things
Posts: 66
Joined: Tue Jun 10, 2014 6:41 pm

Re: Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by aleksey_z »

I performed the following actions:

Code: Select all

[~] # opkg remove gcc 6.3.0-1

Code: Select all

[~] # opkg install http://pkg.entware.net/binaries/x86-32/archive/gcc_5.4.0-1_x86-32.ipk
but get:

Code: Select all

[~] # opkg install http://pkg.entware.net/binaries/x86-32/archive/gcc_5.4.0-1_x86-32.ipk
Downloading http://pkg.entware.net/binaries/x86-32/archive/gcc_5.4.0-1_x86-32.ipk
Installing gcc (6.3.0-1) to root...
Downloading http://pkg.entware.net/binaries/x86-32/gcc_6.3.0-1_x86-32.ipk
Configuring gcc.
Why?
aleksey_z
Getting the hang of things
Posts: 66
Joined: Tue Jun 10, 2014 6:41 pm

Re: Module pl2303.ko for kernel 3.4.6 TS-239ProII+

Post by aleksey_z »

zyxmon wrote:Copying file in linux is the simplest thing one should know. If you do not know it - do not try to compile a kernel module.
I'm install Optware-IPKG instead Entware-ng and all fine.

Thanks.
Post Reply

Return to “Features Wanted”