You're welcome.  Glad it helped.

Incidentally, I just tried again with the latest Ubuntu 8.04 update (kernel 2.6.24-18-generic), and it looks like the driver shipped with the kernel still doesn't work. Hopefully this will be fixed in a future update.

The driver that I pulled from the vanilla kernel at kernel.org (and put in the zip file on my site) still works fine.

Yes, I think this will need to be rebuilt every time the kernel changes.

Rgds,
Steve

jim bingham wrote:
Stephen,

Thanks, this was very helpful.  A few comments may help others... at
least what I was seeing on my machine ( Dell Vostro 1500/dual core).

when running
/sys/bus/usb/devices/something/bConfigurationValue

as described below, I kept getting write errors (I believe it was an
invalid parameter).  I still got this when preceded with sudo and after
changing permissions.

I finally directly edited it.  When I tried to write it, I got an
invalid function parameter.  These symptoms were indicative of a bad
kernel module.  I was using 2.6.24-17 and 2.6.24-18, both of which had
recently been updated by the package manager and both had bad modules.
Your nicely set up zip file worked pretty much flawlessly.

The next thing was to update the fet tools firmware.  It kept stopping
and resetting interrupts early.  I added the debug option and it worked
after a couple tries.  This bothers me somewhat.  I'm a little concerned
that there may be a speed issue.  BTW, running it as root (sudo) crashes
faster.  But finally updated.

Again.... Stephen,  nicely set up package.  Easy to use.   I expect that
I'll need to install the module update with each kernel update that
ubuntu downloads.

jim

On Thu, 2008-06-05 at 07:20 -0400, Stephen Glow wrote:
Hi Jim;

I tackled getting this working in Ubuntu 8.04 a couple weeks ago. I found at that time that the driver that ships with the Ubuntu kernel has a problem with the TI FET device. At that time I put together a small .zip file with a working driver (taken from the vanilla kernel on kernel.org) which does work. I posted it to my web site here:
 www.embeddedintelligence.com/mspfet_driver.zip

Since that time I've seen a message posted to this list indicating that a kernel update on Ubuntu may have already fixed this problem. I haven't played with the device since then, so I can't personally confirm this.

Even if the driver that came with your kernel does work, you will still need a udev rule to select the proper configuration. Until this happens you won't get the needed /dev/ttyUSB0 device file. As a test, you can manually perform the same action that this rule does to see if the driver that you are currently using supports the device.

First, unplug the device and plug it back in. Then, use the dmesg command to find the location of the device's directory that was created under the /sys file system. What you are looking for is a file called 'bConfigurationValue' under the directory of the proper device in the /sys directory tree. I don't have my emulator handy to check this, but I think it should be something like:
    /sys/bus/usb/devices/something/bConfigurationValue

Once you find this file, enter the following command (using the correct file name of course):

    sudo echo 2 > /sys/bus/usb/devices/something/bConfigurationValue

If the driver you have loaded supports this device, then the /dev/ttyUSB0 file will be magically created when you enter this.

A udev rule which handles this detail is included in the .zip I referenced above. Even if you don't need the driver included in the .zip, you may find this handy.

Rgds,
Steve

jim bingham wrote:
OK, I know this must have been covered a billion times so far.  How does
one get this working with linux.  I'm running Ubuntu 8.04.  I recognize
that the TI FET is plugged in, but do not get it assigned
to /dev/ttyUSB0... or the like.
Is there a simple set of tests to validate that one has this set up
correctly?

jim


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to