Pl2303 on DSM 4.0

All discussions/development regarding the Intel D510 Chip can be placed here.

Pl2303 on DSM 4.0

Postby lebovitz » Mon Mar 19, 2012 7:45 am

Hi,

While I was able to add pl2303.ko and usbserial.ko to /lib/modules and make my USB2Serial adapter running in DSM 3.2, I was unable to do it in DSM 4.0.

lsusb shows the device plugged. However in dmesg I don't see that it was attached to /dev/ttyUSB0 and it says "pl2303 descriptors matched but endpoints did not".

Of course I did do "mknod /dev/ttyUSB0 ..."

Performing cat /dev/ttyUSB0 returns "Device not found" (although it appears in /dev directory).

I assumed that since the kernel wasn't upgraded there will be no problem migrating to DSM 4.0
Now I'm stuck with the Prolific device that is not working :(

Anyone has any answers?
lebovitz
Trainee
Trainee
 
Posts: 15
Joined: Sun Oct 30, 2011 9:49 am

Re: Pl2303 on DSM 4.0

Postby lebovitz » Wed Mar 21, 2012 6:46 pm

OK fixed it.
Synology just posted the DSM 4.0 tool chain and kernel source code 2 days ago.

It seems that although the kernel version is the same, there are still differences that prevent the drivers compiled from previous versions to work.

Once I compiled with the new tool chain everything started to work :D

If anyine needs the pl2303.ko and usbserial.ko (or ftdi_sio.ko) files compiled to x86_64 DSM 4.0 version, please let me know and I'll send them to you.
lebovitz
Trainee
Trainee
 
Posts: 15
Joined: Sun Oct 30, 2011 9:49 am

Re: Pl2303 on DSM 4.0

Postby Fatfred » Mon Apr 02, 2012 1:55 am

Hello

Can you send me the usbserial and the ftdi_sio?
I need it for my DS411+II and don't won't to make it for myself ;-)

Thank you
Fatfred
Fatfred
I'm New!
I'm New!
 
Posts: 1
Joined: Mon Apr 02, 2012 1:45 am

Re: Pl2303 on DSM 4.0

Postby GrahamM » Tue Apr 10, 2012 5:43 pm

lebovitz wrote:It seems that although the kernel version is the same, there are still differences that prevent the drivers compiled from previous versions to work.


Well, that'd explain the issues I've encountered then! If you've already got compiled up versions of the modules, I'd be grateful if you wouldn't mind passing them on to me.
GrahamM
I'm New!
I'm New!
 
Posts: 3
Joined: Tue Apr 10, 2012 2:03 pm

Re: Pl2303 on DSM 4.0

Postby Jolle » Sun Apr 15, 2012 8:39 pm

lebovitz wrote:OK fixed it.
Synology just posted the DSM 4.0 tool chain and kernel source code 2 days ago.

It seems that although the kernel version is the same, there are still differences that prevent the drivers compiled from previous versions to work.

Once I compiled with the new tool chain everything started to work :D

If anyine needs the pl2303.ko and usbserial.ko (or ftdi_sio.ko) files compiled to x86_64 DSM 4.0 version, please let me know and I'll send them to you.


Hi, I've been looking for this for a long time, could you please send me the p12303, usbserial and ftdi_sio files? And perhaps share how you compile them so I can do it myself? :)

Jolle
Jolle
I'm New!
I'm New!
 
Posts: 1
Joined: Sun Apr 15, 2012 8:31 pm

Re: Pl2303 on DSM 4.0

Postby the.neon » Mon Apr 16, 2012 5:37 pm

can some send me this files too ?

I can't compile the modules with 4.0

Regards
the.neon
I'm New!
I'm New!
 
Posts: 1
Joined: Mon Apr 16, 2012 5:33 pm

Re: Pl2303 on DSM 4.0

Postby condor » Mon Apr 23, 2012 4:31 am

Hey lebovitz,

I've been looking for those files for a while. Ever since I upgraded my DS1511+ to DSM 4.0.

Could you send me all 3 x86_64 compiled drivers: pl2303, usbserial and ftdi_sio.

Also, where did you find the tool chain for DSM 4.0 and which one did you use, x86 or x64? Could you post the steps you used to compile them?

Thanks a lot!
DS1511+ / 3GB RAM / DSM 4.2-3211 / 5 x Western Digital Green 3TB WD30EZRS (SHR)
DX510-1 / 5 x Western Digital Green 1.5TB WD15EADS (SHR)
DX510-2 / 5 x Western Digital Red 3TB WD30EFRX (SHR)
USB-Disk-1 / Silicon Image 5744 2TB (RAID0)
USB-Disk-2 / Silicon Image 5744 2TB (RAID0)
APC Smart-UPS 1000 RM / Prolific pl2303 USB-Serial Cable
Packages: Asterisk, Audio Station, Cloud Station, Download Station, Media Server, Photo Station, Surveillance Station, Video Station
condor
Trainee
Trainee
 
Posts: 15
Joined: Mon Apr 23, 2012 1:51 am

Re: Pl2303 on DSM 4.0

Postby Papageno » Tue Apr 24, 2012 4:10 pm

Hello Lebowitz,

Desperately seeking these drivers since i've (too quickly) upgraded my Syno earlier in the spring...
Can you send them to me ? :-)

Best regards,

Papageno
Papageno
I'm New!
I'm New!
 
Posts: 2
Joined: Mon Aug 29, 2011 10:25 am

Re: Pl2303 on DSM 4.0

Postby lebovitz » Wed Apr 25, 2012 6:02 am

Hi everyone,

If anyone wants the compiled drivers, please send me a PM with your email address and I'll send the drivers to you.
I can't post a ZIP file here.
lebovitz
Trainee
Trainee
 
Posts: 15
Joined: Sun Oct 30, 2011 9:49 am

Re: Pl2303 on DSM 4.0

Postby lebovitz » Wed Apr 25, 2012 6:32 am

A short guide on how to compile the drivers:

First download the DSM 4.0 Synology toolchain for your CPU. Notice that most 10 and 11 versions (i.e. 411, 1510 etc') use the pineview version. 412 however uses the Cedarview.
You can check your CPU by running: "cat /proc/cpuinfo | grep model"
Download from here: http://sourceforge.net/projects/dsgpl/files/DSM%204.0%20Tool%20Chains/ and remember to download the x64 version.
You also need to download the Synology NAS GPL source (2198 branch) from here:
http://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/2198branch/synogpl-2198-x64.tbz/download
I didn't compile things on my NAS, I have another linux machine (Ubuntu) running on 64 bits and I placed everything there. (This process is called cross compiling). Just untar everything.
cd to the source/linux-2.6.32 directory and
Code: Select all
cp synoconfigs/x86_64 .config


Afterwards in the same directory you can edit the Makefile:
Change ARCH and CROSS_COMPILE variable values to the following:
ARCH = x86_64
CROSS_COMPILE = <Path to the Synology toolchain>/x86_64-linux-gnu/bin/x86_64-linux-gnu-
Yes the line ends with a hyphen. That's how it should be done.

Now run:
Code: Select all
make oldconfig
make menuconfig

Here a "GUI" will open and you'll have to navigate to the needed place. For pl2303 you should go to:
Device Drivers --> USB support --> USB Serial Converter Support
When you find it Don't press ENTER. Press "M". This will tell the compiler to create kernel modules. After you pressed "M" (An M will appear in the check box), press ENTER. In the following screen scroll down to the FTDI drivers and PL2303 driver and press M in order to create these modules. Exit the GUI (Save your configuration) and run:
Code: Select all
make modules

After compilation finishes you should have the "ko" files under the source/linux-2.6.32/drivers/usb/serial

Hope this helps
lebovitz
Trainee
Trainee
 
Posts: 15
Joined: Sun Oct 30, 2011 9:49 am

Re: Pl2303 on DSM 4.0

Postby condor » Wed Apr 25, 2012 2:45 pm

lebovitz wrote:Hi everyone,

If anyone wants the compiled drivers, please send me a PM with your email address and I'll send the drivers to you.
I can't post a ZIP file here.


Thanks for sending me the drivers!

They worked perfectly on my DS1511+ with DSM 4.0-2198.
DS1511+ / 3GB RAM / DSM 4.2-3211 / 5 x Western Digital Green 3TB WD30EZRS (SHR)
DX510-1 / 5 x Western Digital Green 1.5TB WD15EADS (SHR)
DX510-2 / 5 x Western Digital Red 3TB WD30EFRX (SHR)
USB-Disk-1 / Silicon Image 5744 2TB (RAID0)
USB-Disk-2 / Silicon Image 5744 2TB (RAID0)
APC Smart-UPS 1000 RM / Prolific pl2303 USB-Serial Cable
Packages: Asterisk, Audio Station, Cloud Station, Download Station, Media Server, Photo Station, Surveillance Station, Video Station
condor
Trainee
Trainee
 
Posts: 15
Joined: Mon Apr 23, 2012 1:51 am

Re: Pl2303 on DSM 4.0

Postby Charly86 » Thu May 03, 2012 12:48 am

Hello,
I have done a procedure on how to make the module here http://hallard.wikidot.com/synomodules

You can download them also at the end of the procedure. It is for ds1010 atom 64 bits DSM 4.0
Charly86
I'm New!
I'm New!
 
Posts: 4
Joined: Thu May 03, 2012 12:41 am

Re: Pl2303 on DSM 4.0

Postby typhoe » Thu May 03, 2012 10:23 am

Hi,

I also managed to compile the modules at last by following this simple howto.

The only remark I have is that to be able to use the make oldconfig, I had to export the ARCH and CROSS_COMPILE variables:
Code: Select all
export ARCH CROSS_COMPILE


Thank you again!
typhoe
I'm New!
I'm New!
 
Posts: 5
Joined: Sat Oct 17, 2009 10:33 am

Re: Pl2303 on DSM 4.0

Postby pz1 » Sat Jun 02, 2012 2:24 pm

Charly86 wrote:I have done a procedure on how to make the module here http://hallard.wikidot.com/synomodules

I got stuck with that procedure with my DS212+ for compiling an Aeon Z-stick S2 (see: http://www.aeon-labs.com/site/products/view/2/ for description and download Linux drivers)
I did follow your procedure as follows:
  • First I installed OpenSuse in VirtualBox on my intel PC
  • downloaded with wget gcc421_glibc25_88f6281-GPL.tgz and synogpl-2198-6281.tbz to /root/public
  • unpacked
    Code: Select all
    ds212+> tar -xvzf gcc421_glibc25_88f6281-GPL.tgz -C /usr/local/
    lds212+> tar -xvjf synogpl-2198-6281.tbz -C /usr/local/arm-none-linux-gnueabi/
    ds212+> uname -a
    Linux DS212 2.6.32.12 #2228 Thu May 10 02:19:28 CST 2012 armv5tel GNU/Linux
    ds212+> cd /usr/local/arm-none-linux-gnueabi/source/linux-2.6.32
    ds212+> cp synoconfigs/88f61 .config
  • edited the makefile to set:
    ARCH=arm
    CROSS_COMPILE=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-

The command make oldconfig resulted in the following error:
HOSTCC scripts/basic/fixdep
/bin/sh: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2

The gcc does exist in the crosscompile path if I enter
/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
the response is:
arm-none-linux-gnueabi-gcc: no input files

What is going wrong here?
EDIT: I continued here: viewtopic.php?f=27&t=52065
Last edited by pz1 on Sun Jun 10, 2012 12:56 pm, edited 2 times in total.
DS-207+ 128MB; DSM 3.1-1594
HDD: WDC WD10EADS-00L5B1 (01.01A01)
LMS 7.7.1 via SSODS4.9.1mod2 (by j-r)
DS212+ 512MB; DSM 4.0-2228
LMS 7.7.2-007 via Synology spk
pz1
Knowledgeable
Knowledgeable
 
Posts: 364
Joined: Fri Oct 19, 2007 9:56 am
Location: Netherlands

Re: Pl2303 on DSM 4.0

Postby typhoe » Sat Jun 02, 2012 2:33 pm

Hi,

gcc doesn't seem to be found.

In Ubuntu, you can install all the needed tools with the metapackage build-essential
(sudo apt-get install build-essential)

There should be something like this in opensuse too.

Regards.
typhoe
I'm New!
I'm New!
 
Posts: 5
Joined: Sat Oct 17, 2009 10:33 am

Next

Return to Intel D510 Development Room

Who is online

Users browsing this forum: No registered users and 0 guests