[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PalmOS devices conflict with the kernel image?



On Sun, Jun 04, 2006 at 09:25:19PM -0400, Carl Fink wrote:
On Sun, Jun 04, 2006 at 01:15:18PM -0700, Martin J. Hillyer wrote:

Here's what I had to do.  Edit ~/.jpilot/jpilot.rc and make sure it has
the correct username entered, and note the port (mine is
/dev/ttyUSB1).

You can do that from the J-Pilot Preferences, you don't need to modify the
file directly. Done.


Yeah, I did that, but it kept getting changed back again.  Didn't take
until I edited the file by hand.  (I had had a Visor previously and
changed my username between devices.)

Everything else I left as-is.  Plug the Palm device in you can watch
- /var/log/syslog to see if it connects to your Palm.

[snip]

That's exactly what it looked like when I could use Hotplug.  Now I just get
May 28 13:30:35 localhost kernel: usb 5-3.5: new full speed USB device using ehci_hcd and address 62
May 28 13:30:53 localhost kernel: usb 5-3.5: new full speed USB device using ehci_hcd and address 63

... where that final number keeps incrementing.
--

Well, I'm rapidly getting out of my depth here, but in my /etc/udev/
directory, in the files devfs.rules and udev.rules, the following
lines appear:


# USB devices
BUS=="usb", KERNEL=="auer[0-9]*",       NAME="usb/%k"
BUS=="usb", KERNEL=="cpad[0-9]*",       NAME="usb/%k"
BUS=="usb", KERNEL=="dabusb*",          NAME="usb/%k"
BUS=="usb", KERNEL=="hiddev*",          NAME="usb/%k"
BUS=="usb", KERNEL=="legousbtower*",    NAME="usb/%k"
BUS=="usb", KERNEL=="lp[0-9]*",         NAME="usb/%k"
BUS=="usb", KERNEL=="ttyUSB*", \
       SYSFS{product}=="Palm Handheld*|Handspring Visor", \
                                       SYMLINK+="pilot"

I haven't studied in detail about how udev works (I was initially wary
of installing it as I had read of problems in messages to this list),
but so far it seems to 'just work' for me, and it seems that this
line is probably the one to set up /dev/ttyUSB*?  Googling for
"ttyusb not created" gave me the following as the first hit:
http://www.clasohm.com/blog/one-entry?entry_id=12096
This link is for Fedora Core 3 (I couldn't find anything Debian
specific with my cursory search), but it does mention creating a file
in /etc/udev/rules.d with the Visor line above.  Note that the entry
udev.rules in the /etc/udev/rules.d directory is a link to that file
in the parent directory as Debian seems to set it up, i.e.

$ lsl /etc/udev/rules.d/udev.rules
lrwxrwxrwx 1 root root 13 2006-05-03 14:52 /etc/udev/rules.d/udev.rules -> ../udev.rules

Also, from the blog link above, there is a link to an article by Daniel
Drake on writing udev rules (including a short section on Palm
devices), reworked on June 3, 2006 so it's up to date:
http://www.reactivated.net/writing_udev_rules.html
I'll have to read this myself some day soon :-).

HTH
--
Martin Hillyer


Reply to: