EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

SAM-BA CDC 2.9 rc6 driver fix for Ubuntu 10.04

Started by Kris May 25, 2010
Hi Ubuntu users,

In case you use Ubuntu and have upgraded to 10.04 you might have noticed
- as I have - that "connect" freezes when launching (in my case
SAM9260).

I posted a fix on www.at91.com

The fix works fine for me, proviso you're using a clean 10.04 install.
I just used the 2.6.31.6 kernel driver usb-serial.c and
usb_serial_generic_open and ignored the filp args in the open calls,
recompiled and replaced the lib usbserial.ko module.

A bit of a relief, instead of fiddling with new kernels et al... :-)

If anyone needs the mod'd driver and can't access at91.com, I can post
it here.

Hope this helps others not being put off by Lucid Lynx :-)

Best regards,
Kris

Hi Kris

I'm not able to find this fix (I don't understand why but www.at91.com forums doesn't show any topics :-() could you email it to me ?

Thanks

Sergio Tanzilli
Acme Systems srl

--- In A..., Kris wrote:
>
> Hi Ubuntu users,
>
> In case you use Ubuntu and have upgraded to 10.04 you might have noticed
> - as I have - that "connect" freezes when launching (in my case
> SAM9260).
>
> I posted a fix on www.at91.com
>
> The fix works fine for me, proviso you're using a clean 10.04 install.
> I just used the 2.6.31.6 kernel driver usb-serial.c and
> usb_serial_generic_open and ignored the filp args in the open calls,
> recompiled and replaced the lib usbserial.ko module.
>
> A bit of a relief, instead of fiddling with new kernels et al... :-)
>
> If anyone needs the mod'd driver and can't access at91.com, I can post
> it here.
>
> Hope this helps others not being put off by Lucid Lynx :-)
>
> Best regards,
> Kris
>

Hi kris,
I am using an Olimex sam7s256 board. I tried to get it up and running in linux (Ubuntu). I was able to successfully install GCC and binutils. I installed SAM-BA for linux from the atmel site. I was able to get the USB port for connection as specified in the SAM-BA manual (.dev/ttyUSB0). But when I try to use the GUI and 'connect' there is no response. I though that there is a connection failure, so when I presses the reset button in the board, I get a message "Failed to initialize FLASH accesses". No matter how long I wait before pressing the reset button, I am not getting any SAM-BA window as given in SAM-BA manuals.
an any one one help me out in this? I did the 'tst' jumper set, reconnect the board for 10 s, disconnect and 'tst' jumper reset, reconnect before opening SAM-BA. Any help will be greatly appreciated. I am stuck. It is the same for both SAM-BA 2.9 and 2.8.
Can this be rectified by changing any parameters in the accompanying TCL files...
Thanks.
You were talking about some 'fix' for your problem. I am interested in knowing that b'cos I just did a fresh install of 10.04 Ubuntu and used SAM-BA 2.9 (i did try 2.8 and 2.9 too.)
If it is not possible can you suggest any other tool to flash the board other than SAMBA or should I buy the JTAG and do it with openOCD?
Thanks in advance.

Krish.

Hi Ubuntu users,
>
>In case you use Ubuntu and have upgraded to 10.04 you might have noticed
>- as I have - that "connect" freezes when launching (in my case
>SAM9260).
>
>I posted a fix on www.at91.com
>
>The fix works fine for me, proviso you're using a clean 10.04 install.
>I just used the 2.6.31.6 kernel driver usb-serial.c and
>usb_serial_generic_open and ignored the filp args in the open calls,
>recompiled and replaced the lib usbserial.ko module.
>
>A bit of a relief, instead of fiddling with new kernels et al... :-)
>
>If anyone needs the mod'd driver and can't access at91.com, I can post
>it here.
>
>Hope this helps others not being put off by Lucid Lynx :-)
>
>Best regards,
>Kris
>
>

The 2024 Embedded Online Conference