Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

getting the latest FTDI usb-to-serial converter driver to ..

 
   Soft32 Home -> Linux -> System Development RSS
Next:  [NEWS] Linux now on 0.1% of corporate desktop - s..  
Author Message
Rage

External


Since: Jul 30, 2009
Posts: 2



(Msg. 1) Posted: Thu Jul 30, 2009 8:38 am
Post subject: getting the latest FTDI usb-to-serial converter driver to work on
Archived from groups: comp>os>linux>development>system (more info?)

I'm having trouble compiling the latest(http://www.ftdichip.com/
Drivers/VCP.htm) ftdi usb to serial converter drivers for 2.6.27.

The problem is I think that something seems to have changed in 2.6
kernel
1) members: ´num_interrupt_in`, ´num_bulk_in`, ´num_bulk_out` are
missing from ´struct usb_serial_driver`:
2) member ´open_count` is missing from ´struct usb_serial_port`

The location of member ´tty` in ´struct usb_serial_port` was changed,
but that i could fix
( modified source code: http://pastebin.com/m2961e9c7 )

These are the last compiler errors, which i don't know how to fix:

drivers/usb/serial/ftdi_sio.c:658: error: unknown field
`num_interrupt_in' specified in initializer
drivers/usb/serial/ftdi_sio.c:659: error: unknown field `num_bulk_in'
specified in initializer
drivers/usb/serial/ftdi_sio.c:659: warning: missing braces around
initializer
drivers/usb/serial/ftdi_sio.c:659: warning: (near initialization for
`ftdi_sio_device.driver_list')
drivers/usb/serial/ftdi_sio.c:659: warning: initialization makes
pointer from integer without a cast
drivers/usb/serial/ftdi_sio.c:660: error: unknown field `num_bulk_out'
specified in initializer
drivers/usb/serial/ftdi_sio.c:660: warning: initialization makes
pointer from integer without a cast
drivers/usb/serial/ftdi_sio.c:666: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:667: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:668: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:669: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:670: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:671: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:672: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:675: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:676: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:677: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:678: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c:679: warning: initialization from
incompatible pointer type
drivers/usb/serial/ftdi_sio.c: In function `ftdi_read_bulk_callback':
drivers/usb/serial/ftdi_sio.c:1770: error: structure has no member
named `open_count'
drivers/usb/serial/ftdi_sio.c: In function `ftdi_process_read':
drivers/usb/serial/ftdi_sio.c:1826: error: structure has no member
named `open_count'
drivers/usb/serial/ftdi_sio.c:1977: error: structure has no member
named `open_count'
drivers/usb/serial/ftdi_sio.c:1990: error: structure has no member
named `open_count'


Thanks to anyone who can guide me in the right direction,

Roland
Back to top
Login to vote
Rage

External


Since: Jul 30, 2009
Posts: 2



(Msg. 2) Posted: Tue Aug 04, 2009 9:58 am
Post subject: Re: getting the latest FTDI usb-to-serial converter driver to work on [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

So here's how to make the drivers compile and send/receive data
through the ports(haven't got the change to thoroughly test it), for
anyone who might be interested:



Got this from ftdichip.com support


Hello,



Yes Linux changed some of the files the driver refers to.



These patches should allow you to compile



http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patche...sb/usb-
or
ftp://ftp.ua.kernel.org/pub/mirrors/kernel.org/linux/kernel/people/gre.../usb/2.

http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patche...sb/usb-
or
http://ring.nict.go.jp/archives/linux/kernel.org/kernel/people/gregkh/.../2.6/2.


Apparently it will all be working again by kernel 2.6.31



Regards,



Gordon Lunn

Senior Applications Engineer


PS: failed hunks (2lines of code) should be changed manually with a
text editor
Back to top
Login to vote
Display posts from previous:   
Related Topics:
RFC3971 - Does anyone know if RFC3971 support is being developed for Linux? It does not seem to be implemented in the mainline..

Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....

Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....

Access shared memory from kernel module - Hi All, I wanted to know if shared memory created in user space can be accessed from a loadable kernel module. Have no...

Controlling UART transmission of bytes - I'm programming an ARM's UART that comes with a library implementing the standard unix termios interface. Regarding..

[SOLVED] Serial buffer corruption [was Re: FTDI usb-serial.. - Hi, On 4/14/07, Antonino Ingargiola <tritemio@gmail.com> wrote: > Hi to the list, > > I report a proble...
       Soft32 Home -> Linux -> System Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]