Active Topics

 


Reply
Thread Tools
Posts: 6 | Thanked: 4 times | Joined on Nov 2007
#1
Okay, My goal it to get my arduino board talking to my 770 but I'm having a hell of a time trying to build this Virtual COM Port kernel module. Source is here if you are interested.

I think I've got scatchbox setup correctly and I've got the kernel headers installed. But when I try to build the kernel module I get this:
Code:
[sbox-SDK_ARMEL: ~/ftdi_sio.tar.gz_FILES] > KERNELDIR=/usr/src/rx-34-kernel-headers make 
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/rx-34-kernel-headers/include -I/usr/src/linux-2.6.20-16-generic/drivers/usb/serial/ -O   -c -o ftdi_sio.o ftdi_sio.c

ftdi_sio.c:253:24: usb-serial.h: No such file or directory
There is a "usb-serial.c" in the kernel sources dir but no "usb-serial.h" in the kernel headers dir.
Any ideas on where to go next would be much appreciated.

Last edited by D-rock; 2007-11-18 at 08:52.
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#2
any update on this? I want my n800 to interface with my arduino as well.
 
Posts: 6 | Thanked: 4 times | Joined on Nov 2007
#3
I still haven't gotten the kernel modules to compile. I found a thread on the arduino forums about trying to make the arduino act as a human interface device (HID). Which would remove the need for the FTDI driver but it looks like that thread has died.

My last idea is to build something like this to act as a fake keyboard and put it in between the arduino and my 770. But I haven't had time to look into it further.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#4
Did you read the blurb on the download page?:

Required for 2.4 kernels that require FT2232 support only. FT2232 support included in kernel 2.6.9 or greater. Developed by Bill Ryder. Instructions in ReadMe file.

All other devices included in kernel 2.4.20 or greater (see ReadMe for 232R device support).
Sounds like a kernel re-compile may produce a module that does what you want. From the instructions linked on that page (to the README.DAT) it looks like it's going to build a 2.4.x kernel module (i.e. *.o) rather than a 2.6.x module (*.ko).
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#5
For N800 with OS2008 you can try to get my archive of various modules and try to insmod the drivers/usb/ftdi_sio.ko from it.
http://fanoush.wz.cz/maemo/modules-2...-custom.tar.gz

For N800 with OS2007 it is here

http://fanoush.wz.cz/maemo/4.2007-usbhost-kernel.tar.gz
http://fanoush.wz.cz/maemo/4.2007-us...modules.tar.gz

See also N800 usb-host thread in mailing list for details.

For 770 I currently don't have ftdi_sio.ko but could make one easily if there is a need. However there is usbserial.ko and pl2303.ko in /mnt/initfs/lib/modules/current which should be enough for pl-2303 based usb to serial converters (which are fairly common in various mobile phone cables).
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-01-31 at 11:07. Reason: link for OS2008 kernel modules updated, kernel link removed as people reported success with stock kernel
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#6
I have added ftdi_sio.ko to http://fanoush.wz.cz/maemo/modules-3.2006.49-2.tar.gz for 770
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 6 | Thanked: 4 times | Joined on Nov 2007
#7
Originally Posted by fanoush View Post
I have added ftdi_sio.ko to http://fanoush.wz.cz/maemo/modules-3.2006.49-2.tar.gz for 770
This worked perfectly! Thanks for your help.
 

The Following User Says Thank You to D-rock For This Useful Post:
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#8
so you got it working with your arduino?
 
Posts: 6 | Thanked: 4 times | Joined on Nov 2007
#9
Originally Posted by jgallen23 View Post
so you got it working with your arduino?
Yup. I just downloaded and extracted fanoush's modules to my 770. Then ran
Code:
#insmod  drivers/usb/serial/ftdi_sio.ko
I can send and receive data over serial. I have only tested using pyserial but it seems to work perfectly.
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#10
anybody know if this will work with n810 or n800?
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:22.