LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-24-2004, 02:24 PM   #1
bland
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
palm setup using udev


I'm trying to setup my usb palmpilot (Palm Zire 71) to sync with my desktop; digging through the forums has not revealed anything concrete for reasons outlined below.

The system is running Slackware 10 with kernel 2.6.7. I've compiled visor.o and usbserial.o directly into the kernel to keep things simple. Of 4 USB slots two are used by the USB mouse and keyboard (which work fine); one other has the palm cradle plugged in. Udev is being used as per default installation but I'm having a lot of difficulty interacting with it. The pda is being recognized (more or less), but I have no idea what device node is being created nor where to symlink /dev/pilot.

Ideally I'd like to use Kpilot for syncing, but even just trying to use something like pilot-xfer requires that I symlink /dev/pilot to some particular device.

For what it's worth there is NO instance of /dev/usb anywhere, which prevents linking to /dev/pilot. The only thing I can find is that when I press the cradle hotsync button I notice that /dev/tts/USB0 and /dev/tts/USB1 appear, and disappear when the pilot turns off. When I hit the cradle button the following "lsusb" output appears:

Bus 004 Device 001: ID 0000:0000
Bus 003 Device 003: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 002: ID 0ede:0107
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 0830:0060 Palm, Inc. Palm Tungsten T
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

If anyone can help me out I would be grateful.
 
Old 08-24-2004, 04:16 PM   #2
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
try /dev/sda1 this is the node I use for my usb flash, usb camera, usb zip... not sure if the palm is a "mass storage device" like those I mentioned but it's worth looking into. If this is the right /dev you can write a udev rule to create a symlink from /dev/sda1 to /dev/pilot.
 
Old 08-25-2004, 04:47 AM   #3
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 307

Rep: Reputation: 30
Quote:
mknod /dev/ttyUSB1 c 188 1
ln -s /dev/ttyUSB1 /dev/pilot
chmod 777 /dev/ttyUSB1
chmod 777 /dev/pilot
I just added this to my rc.local, I couldn't get it right in udev.
 
Old 08-25-2004, 11:34 AM   #4
bland
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
insyte, I've done this as well sync'ing works perfectly fine. But I was hoping to find a more graceful solution; having to manually re-create (a la rc.local) the device upon booting seems kind of kludgy to me.

lupin_the_3rd, thanks for your suggestion. I guess if udev is meant to be the New Method I'd better just sit down and figure out how it works. If I come up with a working rule I'll post it to this thread.
 
Old 08-25-2004, 12:57 PM   #5
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
http://www.reactivated.net/udevrules.php

specifically,

http://www.reactivated.net/udevrules...bstorage-extra


Found this :

# Linux: It is useful to have udev (the successor to devfs). Then you can use the following udev rules to create device links for a Sony Clié (which gets /dev/pilot) and any other Palm OS device (which gets /dev/pilot_any).

SYSFS{manufacturer}="Sony Corp.",
SYSFS{product}="Palm Handheld",
SYSFS{idVendor}="054c",
NAME="pilot"

SYSFS{product}="Palm Handheld",
NAME="pilot_any"

here: http://www.slac.com/pilone/kpilot_home/faq.html#r5

This should get you started!
 
Old 07-19-2006, 02:07 PM   #6
McKittrick
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
Same problem ...

Hello All,

I found the thread, and it depicts more or less the same situation I have.
Once, by chance I was able to synch my Zire31 with Kontact thru Kpilot.
But then it never worked again ... :-(

I have the following issues right now:
1. Playing with link and unlink, I think I deleted the /dev/pilot .. this is the default device that KPilot will look for when synching. Is there a way to re-create it?
2. I know thru KDE System Information, that my Palm gets detected in the system in the USB hub in the motherboard, but which is the "real device" that is going to so to make the symbolic link to /dev/pilot (I guess would be "link /dev/pilot /dev/????")
3. Udev? Maybe it's my answer ... I have never played with it ...

Thanks ...
 
Old 07-21-2006, 10:05 AM   #7
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,085

Rep: Reputation: 45
personally, the only way i was finally able to sync my palm was by using Jpilot. i couldn't get kpilot to work, but jpilot works great for me...just another suggestion
 
Old 10-14-2006, 12:31 AM   #8
jimmylc
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
I have a solution

I have a solution i've just found for my old ZIRE m150 on SLACKWARE 11 (come here search engines) (hell, some hours ago i didn't even know if it worked because the palm battery was dead)

You just have to put this rules on /etc/udev/rules.d/10-local.rules (or /etc/udev/rules.d/[whatever_you_like].rules) hint, if the file doesn't exist just create it, for those who doesn't RTFM:

---------------------------
# Rule needed to create the "pilot" device
BUS=="usb", SYSFS{product}=="Palm Handheld*", KERNEL=="ttyUSB[013579]", SYMLINK+
="pilot", MODE=="0666", GROUP=="users"

# Rule needed to establish the right permisions on the /dev/tts/USB* device
KERNEL=="ttyUSB[01]*", NAME="tts/USB%n", GROUP="users", MODE="0660"
---------------------------

That's it! sync and be happy, it'll work all the time, the reason many people report that it's not working for them is because they do not set the right permisions on the second file, go, try it manually, apply only the first rule and as root try this command:

chmod 666 /dev/tts/USB*

SYNC DONE!

Hope it helps

Last edited by jimmylc; 10-14-2006 at 12:35 AM.
 
Old 10-14-2006, 02:35 AM   #9
agentdcooper
Member
 
Registered: Aug 2005
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
Slackware 11 / udev / Tungsten E, and me

i have a Tungsten E palm pilot, i have issues here and there, but this is the deal, i don't always use udev, and i am running slackware 11 [maybe i will go full udev here shortly] - this is what i do, as it seems i HAVE to use udev to get Kpilot to work properly/sync with my palm EVERYTIME .... i have the following udev rule ;

> cat /etc/udev/rules.d/pilot.rules
BUS="usb" SYSFS{product}="Palm Handheld*" KERNEL="ttyUSB*" SYMLINK="pilot" MODE="666" KERNEL="ttyUSB*" SYMLINK="pilot"

then, i run this script IF for some reason Kpilot is being a bitch;

> cat /usr/bin/pilotbash.sh
#!/bin/bash
if [ ! -x /etc/rc.d/rc.udev ]; then `chmod 755 /etc/rc.d/rc.udev`;
fi
/etc/rc.d/rc.udev restart
pkill -9 pilotDaemon
if [ ! -e /dev/ttyUSB1 ] `rm /dev/ttyUSB1`; then #if /dev/ttyUSB1 does NOT exist
echo "<< File /dev/ttyUSB1 doesn't exist ... creating it now >>"
mknod /dev/ttyUSB1 c 188 1
fi

if [ ! -e /dev/pilot ] `rm /dev/pilot`; then #if /dev/pilot does NOT exist
echo "<< Symlink /dev/pilot doesn't exist ... creating it now, /dev/pilot = /dev/ttyUSB1 >>"
ln -s /dev/ttyUSB1 /dev/pilot
fi
chmod 777 /dev/ttyUSB1
chmod 777 /dev/pilot
chmod -x,ugo /etc/rc.d/rc.udev
n=`ls -al /dev/pilot`
t=`ls -al /dev/ttyUSB1`
echo "$n"
echo "$t"
echo "defining /etc/rc.d/rc.udev non-executable."
exit 0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
fixes any problem i have with udev/palm pilot/Kpilot EVERYTIME... hope this helps ---- yeah, it's a hack - but it works =)

agentdcooper
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Palm PIlot udev Kernel 2.6.13 shepper Slackware 1 10-23-2005 03:12 PM
udev + Palm = troubles Neruocomp Slackware 7 05-05-2005 12:20 PM
Using Palm with Linux - syncing from PC to Palm silverfire Linux - General 4 11-12-2004 11:33 PM
Can't setup palm helloyo Linux - Hardware 0 10-08-2003 06:39 AM
SUSE 8.1 Palm setup wingmaker Linux - Software 1 11-27-2002 01:44 PM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration