* [gentoo-embedded] Specify Kernel Version for Module emerge @ 2006-06-26 16:26 Joshua ChaitinPollak 2006-06-26 17:40 ` Ahmed Ammar 0 siblings, 1 reply; 20+ messages in thread From: Joshua ChaitinPollak @ 2006-06-26 16:26 UTC (permalink / raw To: gentoo-embedded I'm trying to emerge the madwifi-ng module into my embedded system's dev environment, but the ebuild is trying compile against the kernel version installed on my desktop, not the version installed in the chrooted development environment. Is there a way to force external module ebuilds to use a specific kernel version? Thanks, -Josh -- Joshua ChaitinPollak Software Engineer Kiva Systems -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-26 16:26 [gentoo-embedded] Specify Kernel Version for Module emerge Joshua ChaitinPollak @ 2006-06-26 17:40 ` Ahmed Ammar 2006-06-26 17:53 ` Joshua ChaitinPollak 0 siblings, 1 reply; 20+ messages in thread From: Ahmed Ammar @ 2006-06-26 17:40 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 989 bytes --] Sorry how did you build your kernel ? Did you not build it inside the same chroot ? and is it in ($chroot)/usr/src/linux ? Because if you chroot into your dev setup then you will have _no_ access to the desktop machine's files etc (from within the chroot) and therfore emerging inside the chroot can not use linux source outside the chroot. You must be either doing something wrong or doing this in a way very different from how I would. Ahmed. On 26/06/06, Joshua ChaitinPollak <jpollak@kivasystems.com> wrote: > > I'm trying to emerge the madwifi-ng module into my embedded system's > dev environment, but the ebuild is trying compile against the kernel > version installed on my desktop, not the version installed in the > chrooted development environment. Is there a way to force external > module ebuilds to use a specific kernel version? > > Thanks, > > -Josh > > -- > Joshua ChaitinPollak > Software Engineer > Kiva Systems > > > -- > gentoo-embedded@gentoo.org mailing list > > [-- Attachment #2: Type: text/html, Size: 1353 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-26 17:40 ` Ahmed Ammar @ 2006-06-26 17:53 ` Joshua ChaitinPollak 2006-06-26 20:15 ` Ahmed Ammar 0 siblings, 1 reply; 20+ messages in thread From: Joshua ChaitinPollak @ 2006-06-26 17:53 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 1549 bytes --] I am building the module inside the chrooted environment. It seems that the kernel module ebuild's use uname to figure out which kernel version to compile against, because my desktop is running 2.6.15- gentoo-r2 and the ebuild fails with "/lib/modules/2.6.15-gentoo-r2/ build is missing" I just now realized the error also says "Please set KERNELPATH", so I'm going to try setting that and see if it helps. -Josh On Jun 26, 2006, at 1:40 PM, Ahmed Ammar wrote: > Sorry how did you build your kernel ? Did you not build it inside > the same chroot ? and is it in ($chroot)/usr/src/linux ? > > Because if you chroot into your dev setup then you will have _no_ > access to the desktop machine's files etc (from within the chroot) > and therfore emerging inside the chroot can not use linux source > outside the chroot. You must be either doing something wrong or > doing this in a way very different from how I would. > > Ahmed. > > On 26/06/06, Joshua ChaitinPollak <jpollak@kivasystems.com> wrote: > I'm trying to emerge the madwifi-ng module into my embedded system's > dev environment, but the ebuild is trying compile against the kernel > version installed on my desktop, not the version installed in the > chrooted development environment. Is there a way to force external > module ebuilds to use a specific kernel version? > > Thanks, > > -Josh > > -- > Joshua ChaitinPollak > Software Engineer > Kiva Systems > > > -- > gentoo-embedded@gentoo.org mailing list > > -- Joshua ChaitinPollak Software Engineer Kiva Systems [-- Attachment #2: Type: text/html, Size: 2263 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-26 17:53 ` Joshua ChaitinPollak @ 2006-06-26 20:15 ` Ahmed Ammar 2006-06-26 20:26 ` Joshua ChaitinPollak 0 siblings, 1 reply; 20+ messages in thread From: Ahmed Ammar @ 2006-06-26 20:15 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 16 bytes --] Did that work ? [-- Attachment #2: Type: text/html, Size: 20 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-26 20:15 ` Ahmed Ammar @ 2006-06-26 20:26 ` Joshua ChaitinPollak 2006-06-28 0:58 ` Ned Ludd 0 siblings, 1 reply; 20+ messages in thread From: Joshua ChaitinPollak @ 2006-06-26 20:26 UTC (permalink / raw To: gentoo-embedded Yup: export KERNELPATH=/usr/src/linux emerge <modules> Then I had to re-write the Soekris gpio ebuild for the new 2.6 kernel drivers. Ugh. On Jun 26, 2006, at 4:15 PM, Ahmed Ammar wrote: > Did that work ? -- Joshua ChaitinPollak Software Engineer Kiva Systems -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-26 20:26 ` Joshua ChaitinPollak @ 2006-06-28 0:58 ` Ned Ludd 2006-06-28 14:20 ` Joshua ChaitinPollak 0 siblings, 1 reply; 20+ messages in thread From: Ned Ludd @ 2006-06-28 0:58 UTC (permalink / raw To: gentoo-embedded On Mon, 2006-06-26 at 16:26 -0400, Joshua ChaitinPollak wrote: > Yup: > > export KERNELPATH=/usr/src/linux > emerge <modules> > > Then I had to re-write the Soekris gpio ebuild for the new 2.6 kernel > drivers. Ugh. Correct the gpio ebuild is for 2.4.x What did you have to rewrite exactly? -- Ned Ludd <solar@gentoo.org> Gentoo Linux -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] Specify Kernel Version for Module emerge 2006-06-28 0:58 ` Ned Ludd @ 2006-06-28 14:20 ` Joshua ChaitinPollak 2006-07-03 14:25 ` [gentoo-embedded] ftdi ft232r programming howto andreas.sumper 0 siblings, 1 reply; 20+ messages in thread From: Joshua ChaitinPollak @ 2006-06-28 14:20 UTC (permalink / raw To: gentoo-embedded On Jun 27, 2006, at 8:58 PM, Ned Ludd wrote: > On Mon, 2006-06-26 at 16:26 -0400, Joshua ChaitinPollak wrote: >> Yup: >> >> export KERNELPATH=/usr/src/linux >> emerge <modules> >> >> Then I had to re-write the Soekris gpio ebuild for the new 2.6 kernel >> drivers. Ugh. > > Correct the gpio ebuild is for 2.4.x > What did you have to rewrite exactly? I'm sure there is a more elegant way to do what I did, but I was in a rush. I would submit a patch, but as you probably could guess from the portage/ busybox patch bug you commented on earlier, I'm neither a portage nor patch expert. Here is a little step-by-step of what I did, I would be happy to zip up what I've done and send it to you if it would be helpful. I created a dev-embedded/gpio-new directory in my portage overlay, and copied the gpio-1.3.2 ebuild into it, renaming it gpio- new-1.3.2.ebuild. I did that because I didn't know if it is possible to differentiate ebuilds based on kernel versions. In the new ebuild, I updated the homepage and src_uri variables for the location of the new code (because it is hosted by a different developer) I set the S variable because the downloaded tarball extracts to $ {WORKDIR}/gpio-1.3.2+trillian0.01 I moved the MODULE_NAMES and BUILD_PARAMS variables into the pkg_setup () function (unneeded I'm sure) Set the BUILD_TARGET variable to be "" instead of "all". Added a line to pkg_setup(): cp ${FILESDIR}/Makefile ./ created gpio-new/files/Makefile, which is the gpio-1.3.2+trillian0.01 Makefile with the following lines appended to it: module: default clean: rm -f *.ko *.o -- Joshua ChaitinPollak Software Engineer Kiva Systems -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* [gentoo-embedded] ftdi ft232r programming howto 2006-06-28 14:20 ` Joshua ChaitinPollak @ 2006-07-03 14:25 ` andreas.sumper 2006-07-03 15:38 ` Joshua ChaitinPollak ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: andreas.sumper @ 2006-07-03 14:25 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 657 bytes --] Hi list! Has anybody ever tried to communicate through a ft232r, which is a usb to rs232 converter? I read through the documentation of ftdi (www.ftdichip.com) but all I found, was the documentation for windows. I want to make this converter work on an embedded linux box, running a 2.6.14 kernel, including the module (ftdi_sio) I see the device (/dev/ttyUSB0) but, how can I configure it (buffers, transfer speed, ...) and how can I read from the device and write to the device. Could anybody give me some advice on where to start or did anybody write some piece of code, which works with such a converter? Thanks in advance! Kind regards, Andy [-- Attachment #2: Type: text/html, Size: 1050 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-03 14:25 ` [gentoo-embedded] ftdi ft232r programming howto andreas.sumper @ 2006-07-03 15:38 ` Joshua ChaitinPollak 2006-07-04 7:48 ` andreas.sumper 2006-07-03 16:18 ` wireless 2006-07-03 16:40 ` Henrik Brix Andersen 2 siblings, 1 reply; 20+ messages in thread From: Joshua ChaitinPollak @ 2006-07-03 15:38 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 971 bytes --] On Jul 3, 2006, at 10:25 AM, andreas.sumper@cnsystems.at wrote: > > Hi list! > > Has anybody ever tried to communicate through a ft232r, which is a > usb to rs232 converter? > I read through the documentation of ftdi (www.ftdichip.com) but all > I found, was the documentation for windows. > I want to make this converter work on an embedded linux box, > running a 2.6.14 kernel, including the module (ftdi_sio) > I see the device (/dev/ttyUSB0) but, how can I configure it > (buffers, transfer speed, ...) and how can I read from the device > and write to the device. > If you are using C, just use it exactly like you would use a serial port and it will work fine. If you see ttyUSB0 already, I'm sure everything is working correctly, but just to be sure, you need the usbserial portion of the kernel and the correct USB to serial drivers compiled into the kernel, or as a module. -Josh -- Joshua ChaitinPollak Software Engineer Kiva Systems [-- Attachment #2: Type: text/html, Size: 1739 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-03 15:38 ` Joshua ChaitinPollak @ 2006-07-04 7:48 ` andreas.sumper 2006-07-04 16:43 ` Harald Schioeberg 0 siblings, 1 reply; 20+ messages in thread From: andreas.sumper @ 2006-07-04 7:48 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 1726 bytes --] Joshua ChaitinPollak <jpollak@kivasystems.com> schrieb am 07/03/2006 05:38:40 PM: > On Jul 3, 2006, at 10:25 AM, andreas.sumper@cnsystems.at wrote: > > > Hi list! > > Has anybody ever tried to communicate through a ft232r, which is a > usb to rs232 converter? > I read through the documentation of ftdi (www.ftdichip.com) but all > I found, was the documentation for windows. > I want to make this converter work on an embedded linux box, running > a 2.6.14 kernel, including the module (ftdi_sio) > I see the device (/dev/ttyUSB0) but, how can I configure it > (buffers, transfer speed, ...) and how can I read from the device > and write to the device. > > If you are using C, just use it exactly like you would use a serial > port and it will work fine. > > If you see ttyUSB0 already, I'm sure everything is working > correctly, but just to be sure, you need the usbserial portion of > the kernel and the correct USB to serial drivers compiled into the > kernel, or as a module. I see the ttyUSB0 - device and I tried to work with it, just like ttySx. the strange thing is, that after a very short period, the application running on the embedded board seems to not get any more data from the device. I guess, this is due to buffering things or so. That´s why I asked for some code or header file to be included, to set the correct values. I have to port a qt-application to the system. The application itself works on windows as well as linux and on the embedded board. But on windows, one has to set the properties of the usb-device through the driver. That´s why I asked for code, on how to do this on linux. Thanks in advance! kind regards, Andy [-- Attachment #2: Type: text/html, Size: 2162 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-04 7:48 ` andreas.sumper @ 2006-07-04 16:43 ` Harald Schioeberg 2006-07-04 17:58 ` Antwort: " andreas.sumper 0 siblings, 1 reply; 20+ messages in thread From: Harald Schioeberg @ 2006-07-04 16:43 UTC (permalink / raw To: gentoo-embedded -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I see the ttyUSB0 - device and I tried to work with it, just like ttySx. > the strange thing is, that after a very short period, the application > running on the embedded board seems to not get any more data from the > device. Totally unrelated to your device, this sounds very much like a serial handshake problem, try setting all serial ports to no handshake at all, if you haven't done yet. Harald -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) iD8DBQFEqpq+Jgyxs71kcx4RAkyqAJwPUSPhUWSoqpppazQUrX3yrnsEXwCfRMSd mjFKejGYkSOGC9zHuCTlBsA= =l09m -----END PGP SIGNATURE----- -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-04 16:43 ` Harald Schioeberg @ 2006-07-04 17:58 ` andreas.sumper 2006-07-04 18:40 ` wireless ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: andreas.sumper @ 2006-07-04 17:58 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 882 bytes --] Hi! Harald Schioeberg <schioebe@net.in.tum.de> schrieb am 07/04/2006 06:43:42 PM: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > I see the ttyUSB0 - device and I tried to work with it, just like ttySx. > > the strange thing is, that after a very short period, the application > > running on the embedded board seems to not get any more data from the > > device. > > Totally unrelated to your device, this sounds very much like a serial > handshake problem, try setting all serial ports to no handshake at all, > if you haven't done yet. How do I do that? I am not new to linux, but I did not need this before? BTW it works with the other serial devices like /dev/ttyS0, ... Only /dev/ttyUSBx make troubles. In windows, they reconfigure the virtual com ports. But I just have no clue, how I can do such a thing in linux... thanks for the hint! Ciao, Andy [-- Attachment #2: Type: text/html, Size: 1245 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-04 17:58 ` Antwort: " andreas.sumper @ 2006-07-04 18:40 ` wireless 2006-07-05 7:06 ` Valentin Longchamp 2006-07-05 8:50 ` Harald Schioeberg 2 siblings, 0 replies; 20+ messages in thread From: wireless @ 2006-07-04 18:40 UTC (permalink / raw To: gentoo-embedded andreas.sumper@cnsystems.at wrote: > Hi! > > Harald Schioeberg <schioebe@net.in.tum.de> schrieb am 07/04/2006 06:43:42 > PM: > > >>-----BEGIN PGP SIGNED MESSAGE----- >>Hash: SHA1 >> >> >> >>>I see the ttyUSB0 - device and I tried to work with it, just like > > ttySx. > >>>the strange thing is, that after a very short period, the application >>>running on the embedded board seems to not get any more data from the >>>device. >> >>Totally unrelated to your device, this sounds very much like a serial >>handshake problem, try setting all serial ports to no handshake at all, >>if you haven't done yet. > > > How do I do that? I am not new to linux, but I did not need this before? > BTW it works with the other serial devices like /dev/ttyS0, ... Only > /dev/ttyUSBx make troubles. > In windows, they reconfigure the virtual com ports. But I just have no > clue, how I can do such a thing in linux... ON my gentoo systems (non-embedded) I use 'minicom' to set the handshake, parity and start/stop bits.... I'm not sure minicom is available or will work in your case, as it is a terminal program and for setting up modem communications. hth, James -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-04 17:58 ` Antwort: " andreas.sumper 2006-07-04 18:40 ` wireless @ 2006-07-05 7:06 ` Valentin Longchamp 2006-07-05 7:21 ` Antwort: " andreas.sumper 2006-07-05 14:07 ` wireless 2006-07-05 8:50 ` Harald Schioeberg 2 siblings, 2 replies; 20+ messages in thread From: Valentin Longchamp @ 2006-07-05 7:06 UTC (permalink / raw To: gentoo-embedded -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, >> >>> I see the ttyUSB0 - device and I tried to work with it, just like > ttySx. >>> the strange thing is, that after a very short period, the application >>> running on the embedded board seems to not get any more data from the >>> device. >> Totally unrelated to your device, this sounds very much like a serial >> handshake problem, try setting all serial ports to no handshake at all, >> if you haven't done yet. > > How do I do that? I am not new to linux, but I did not need this before? > BTW it works with the other serial devices like /dev/ttyS0, ... Only > /dev/ttyUSBx make troubles. > In windows, they reconfigure the virtual com ports. But I just have no > clue, how I can do such a thing in linux... > You should be able to find all you need to configure your serial port in your program using this howto: http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ I've used this with a FTDI2232 chip with success. I hope it helps Valentin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEq2UOCGmesagzEtoRAvDtAJ9+JAvPokIqBJ1VJKIOCAdY4a9lYwCeKB/s Cc1Y/siOveWQBlPIHp2ALKg= =vIic -----END PGP SIGNATURE----- -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Antwort: Re: Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-05 7:06 ` Valentin Longchamp @ 2006-07-05 7:21 ` andreas.sumper 2006-07-05 14:07 ` wireless 1 sibling, 0 replies; 20+ messages in thread From: andreas.sumper @ 2006-07-05 7:21 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 1208 bytes --] Valentin Longchamp <valentin.longchamp@epfl.ch> schrieb am 07/05/2006 09:06:54 AM: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > >> > >>> I see the ttyUSB0 - device and I tried to work with it, just like > > ttySx. > >>> the strange thing is, that after a very short period, the application > >>> running on the embedded board seems to not get any more data from the > >>> device. > >> Totally unrelated to your device, this sounds very much like a serial > >> handshake problem, try setting all serial ports to no handshake at all, > >> if you haven't done yet. > > > > How do I do that? I am not new to linux, but I did not need this before? > > BTW it works with the other serial devices like /dev/ttyS0, ... Only > > /dev/ttyUSBx make troubles. > > In windows, they reconfigure the virtual com ports. But I just have no > > clue, how I can do such a thing in linux... > > > > You should be able to find all you need to configure your serial port in > your program using this howto: > http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ > > I've used this with a FTDI2232 chip with success. > > I hope it helps Thanks! I will give it a try during the day! bye, Andy [-- Attachment #2: Type: text/html, Size: 1672 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-05 7:06 ` Valentin Longchamp 2006-07-05 7:21 ` Antwort: " andreas.sumper @ 2006-07-05 14:07 ` wireless 1 sibling, 0 replies; 20+ messages in thread From: wireless @ 2006-07-05 14:07 UTC (permalink / raw To: gentoo-embedded > You should be able to find all you need to configure your serial port in > your program using this howto: > http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ > Valentin Hello Valentin, Very useful document. One point you can clear up for me. I have read that the serial hardware system within a 2.6 linux kernel structure have change. IF this is correct ? Then is this document still 100% accurate for embedded systems based on a 2.6 linux kernel? It there are differences, is there a companion document for 2.6 based embedded linux systems? James -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-04 17:58 ` Antwort: " andreas.sumper 2006-07-04 18:40 ` wireless 2006-07-05 7:06 ` Valentin Longchamp @ 2006-07-05 8:50 ` Harald Schioeberg 2 siblings, 0 replies; 20+ messages in thread From: Harald Schioeberg @ 2006-07-05 8:50 UTC (permalink / raw To: gentoo-embedded -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> try setting all serial ports to no handshake at all, >> if you haven't done yet. > > How do I do that? aside from all the pointers that were already on the list, setserial might also be worth a look. harald -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) iD8DBQFEq31DJgyxs71kcx4RAr0DAKDbpVK7OoNAxHfB9hfIJXpTsxCabACfd0pc gJMzaLjFXnQwL9eK4fDLXTI= =J9m4 -----END PGP SIGNATURE----- -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-03 14:25 ` [gentoo-embedded] ftdi ft232r programming howto andreas.sumper 2006-07-03 15:38 ` Joshua ChaitinPollak @ 2006-07-03 16:18 ` wireless 2006-07-04 8:02 ` Antwort: " andreas.sumper 2006-07-03 16:40 ` Henrik Brix Andersen 2 siblings, 1 reply; 20+ messages in thread From: wireless @ 2006-07-03 16:18 UTC (permalink / raw To: gentoo-embedded andreas.sumper@cnsystems.at wrote: > Hi list! > > Has anybody ever tried to communicate through a ft232r, which is a usb to > rs232 converter? > I read through the documentation of ftdi (www.ftdichip.com) but all I > found, was the documentation for windows. > I want to make this converter work on an embedded linux box, running a > 2.6.14 kernel, including the module (ftdi_sio) > I see the device (/dev/ttyUSB0) but, how can I configure it (buffers, > transfer speed, ...) and how can I read from the device and write to the > device. This page http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm Says this: The US232R-100 evaluation cable is supplied in retail packaging which includes instructions together with a Drivers and Utilities CD complete with Microsoft WHQL certified VCP drivers for Windows XP. Drivers for the Apple Mac, Linux and other versions of Windows are also included on the CD....... Interesting device. Did you purchase a raw chip, dev/eval kit, or a complete module ready for use? How much does it cost, and where did you purchase it from? I'm looking for a way to add a serial16550/rs232) port(s) to a portable, so this might be an option.... James -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Antwort: Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-03 16:18 ` wireless @ 2006-07-04 8:02 ` andreas.sumper 0 siblings, 0 replies; 20+ messages in thread From: andreas.sumper @ 2006-07-04 8:02 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 1665 bytes --] wireless <wireless@tampabay.rr.com> schrieb am 07/03/2006 06:18:40 PM: > andreas.sumper@cnsystems.at wrote: > > Hi list! > > > > Has anybody ever tried to communicate through a ft232r, which is a usb to > > rs232 converter? > > I read through the documentation of ftdi (www.ftdichip.com) but all I > > found, was the documentation for windows. > > I want to make this converter work on an embedded linux box, running a > > 2.6.14 kernel, including the module (ftdi_sio) > > I see the device (/dev/ttyUSB0) but, how can I configure it (buffers, > > transfer speed, ...) and how can I read from the device and write to the > > device. > > This page > http://www.ftdichip.com/Products/EvaluationKits/USB-Serial.htm > > Says this: > The US232R-100 evaluation cable is supplied in retail packaging > which includes instructions together with a Drivers and Utilities > CD complete with Microsoft WHQL certified VCP drivers for Windows > XP. Drivers for the Apple Mac, Linux and other versions of > Windows are also included on the CD....... > I found a header file on the cd, after getting them from our windows developers *argh* I will have a look at the header-file. Maybe, this makes it a little bit clearer! thanks for the hint! > > Interesting device. Did you purchase a raw chip, dev/eval kit, > or a complete module ready for use? we purchased the modules ready for use and the raw chips. > How much does it cost, and where did you purchase it from? the chip is about 2.50 euros. the module is about 10 euros. > I'm looking for a way to add a serial16550/rs232) port(s) to a > portable, so this might be an option.... > > Bye, Andy [-- Attachment #2: Type: text/html, Size: 2338 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-embedded] ftdi ft232r programming howto 2006-07-03 14:25 ` [gentoo-embedded] ftdi ft232r programming howto andreas.sumper 2006-07-03 15:38 ` Joshua ChaitinPollak 2006-07-03 16:18 ` wireless @ 2006-07-03 16:40 ` Henrik Brix Andersen 2 siblings, 0 replies; 20+ messages in thread From: Henrik Brix Andersen @ 2006-07-03 16:40 UTC (permalink / raw To: gentoo-embedded [-- Attachment #1: Type: text/plain, Size: 761 bytes --] On Mon, Jul 03, 2006 at 04:25:30PM +0200, andreas.sumper@cnsystems.at wrote: > Could anybody give me some advice on where to start or did anybody write > some piece of code, which works with such a converter? I have recently written a custom driver for a device with such an USB-UART. Take a look at /usr/src/linux/drivers/usb/serial/ftdi_sio.[ch] - the programming interface is well documented there. There's also a user-space library for direct communication with the FTDI chips and an utility for programming the EEPROM [1], but neither of them support the FT232R yet. Regards, Brix [1]: http://www.intra2net.com/de/produkte/opensource/ftdi/ -- Henrik Brix Andersen <brix@gentoo.org> Gentoo Metadistribution | Mobile computing herd [-- Attachment #2: Type: application/pgp-signature, Size: 211 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2006-07-05 14:05 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-06-26 16:26 [gentoo-embedded] Specify Kernel Version for Module emerge Joshua ChaitinPollak 2006-06-26 17:40 ` Ahmed Ammar 2006-06-26 17:53 ` Joshua ChaitinPollak 2006-06-26 20:15 ` Ahmed Ammar 2006-06-26 20:26 ` Joshua ChaitinPollak 2006-06-28 0:58 ` Ned Ludd 2006-06-28 14:20 ` Joshua ChaitinPollak 2006-07-03 14:25 ` [gentoo-embedded] ftdi ft232r programming howto andreas.sumper 2006-07-03 15:38 ` Joshua ChaitinPollak 2006-07-04 7:48 ` andreas.sumper 2006-07-04 16:43 ` Harald Schioeberg 2006-07-04 17:58 ` Antwort: " andreas.sumper 2006-07-04 18:40 ` wireless 2006-07-05 7:06 ` Valentin Longchamp 2006-07-05 7:21 ` Antwort: " andreas.sumper 2006-07-05 14:07 ` wireless 2006-07-05 8:50 ` Harald Schioeberg 2006-07-03 16:18 ` wireless 2006-07-04 8:02 ` Antwort: " andreas.sumper 2006-07-03 16:40 ` Henrik Brix Andersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox