Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 05:00:07 AM
The Plug Computer Forum
|
General Category
|
General Discussion
|
FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered?
Pages: [
1
]
« previous
next »
Print
Author
Topic: FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered? (Read 2505 times)
creeble
Newbie
Karma: 0
Posts: 20
FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered?
«
on:
February 24, 2010, 01:04:03 PM »
I know this subject has been beaten to death here, but I can't seem to find this specific answer.
I have no trouble connecting to sheeva with ttyUSB0, but when I need to reboot the plug, I have to pull the cord -- and away goes ttyUSB0! It often doesn't come back fast enough to catch the next boot.
This is some udev thing, and I don't know how to deal with it. What I'd like is to manually load the ftdi_sio driver into the kernel (I already do), have a hard /dev entry for ttyUSB0, and have udev ignore this
particular
device.
Anybody know how to do this, or have another solution?
Failing that, does the sheeva have an internal reset switch so I can keep it powered up while rebooting?
Logged
MarkF
Full Member
Karma: 7
Posts: 144
Re: FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered?
«
Reply #1 on:
February 24, 2010, 02:20:39 PM »
The plug has a reset switch. It is located behind a hole near the mini-USB connector. I use a straightened twist-tie to actuate mine.
Logged
Mark
creeble
Newbie
Karma: 0
Posts: 20
Re: FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered?
«
Reply #2 on:
February 24, 2010, 03:59:36 PM »
Ouch!
Thanks!
Logged
Juanisan
Newbie
Karma: 0
Posts: 20
Re: FTDI driver / Linux -- how to keep ttyUSB0 persistent when sheeva is repowered?
«
Reply #3 on:
March 03, 2010, 06:40:00 PM »
root@mrlinux:~# cat /util/jjosheeva
#!/bin/sh
TTY="`dmesg | tail -1 | awk '{ print substr($11, 1, 6) }'`"
while [ "$TTY" != "ttyUSB" ]; do
sleep 1
TTY="`dmesg | tail -1 | awk '{ print substr($11, 1, 6) }'`"
done
TTY="`dmesg | tail -1 | awk '{ print $11 }'`"
exec seyon -modems /dev/$TTY
root@mrlinux:~#
I made an icon on my desktop to link to this script and as soon as I plug in the sheeva, the terminal pops up before you can get to the countdown to stop the boot. Sometimes my plug comes up as ttyUSB0 or 1 or 2 etc... This catches them all
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Application ideas and development Q/A
=> Success stories
=> Marvell PlugIN - Free Your Imagination
-----------------------------
Hardware and U-Boot firmware
-----------------------------
=> Hardware
=> U-Boot stuff
-----------------------------
Linux Stuff
-----------------------------
=> Android for SheevaPlug is Available!
=> General Linux questions
=> Kernel
=> Linux distributions
Loading...