LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
Search this Thread
Old 01-02-2003, 04:54 PM   #1
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Sony Clie' PEG-S360 USB with Slack8.1


Another howto, folks:

Before you get started:

The Sony Clie' PEG-S360 is just recently supported in kernel 2.4.20, so you'll need to patch your exisiting Slack8.1 kernel source (2.4.18) with the 2.4.19 and 2.4.20 patches, then compile and install. There is a wealth of info on just how to do this on this forum and others.

After you're up and running with kernel 2.4.20, let's get started setting-up your Sony PDA:

1.) Set-up your USB system:
a.) Edit /etc/rc.d/rc.modules and uncomment-out the lines referencing to usb-uhci (Intel and VIA chips) and usbserial.
b.) Add the following line to the same file, just below usbserial:

/sbin/modprobe visor

2.) Turn on your Sony Clie', plug it in, then reboot.

3.) Check to make sure the required USB modules are loaded:

$ lsmod

You need to verify that usbcore, usb-uhci, visor, and usbserial modules are loaded. If you're missing any of these, go back and check your /etc/rc.d/rc.modules file.

4.) Let's test it. Perform a hotsync on your Clie' by selecting it from the main menu. Then (as root):

$ dmesg |grep usb

You should see something similar to this:

Jan 2 13:46:03 kernel: usbserial.c: Handspring Visor / Palm 4.0 / Cli� 4.x converter detected
Jan 2 13:46:03 kernel: visor.c: Handspring Visor / Palm 4.0 / Cli� 4.x: Number of ports: 2
Jan 2 13:46:03 kernel: visor.c: Handspring Visor / Palm 4.0 / Cli� 4.x: port 1, is for Generic use and is bound to ttyUSB0
Jan 2 13:46:03 kernel: visor.c: Handspring Visor / Palm 4.0 / Cli� 4.x: port 2, is for HotSync use and is bound to ttyUSB1
Jan 2 13:46:03 kernel: usbserial.c: Handspring Visor / Palm 4.0 / Cli� 4.x converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Jan 2 13:46:03 kernel: usbserial.c: Handspring Visor / Palm 4.0 / Cli� 4.x converter now attached to ttyUSB1 (or usb/tts/1 for devfs)

Got it? good...now let's move on...

5.) If you want to have access to your PDA as user, you'll need to perform the following as root:

$ chmod 666 /dev/ttyUSB1
(my PDA is bound to /dev/ttyUSB1 as shown above...yours might differ)

6.) As of this writing, the ONLY program I've found that works with the PEG-S360 is Pilot-Link 0.11.6...so grab yourself a copy from:

http://www.pilot-link.org

Untar the file, cd to it's directory, then do the usual:
$ ./configure
$ make
$ su
$ make install

7.) Now that you've got Pilot-Link installed, let's test it:

$ dlpsh -p /dev/ttyUSB1

With regards to /dev/ttyUSB?, again, you need to check this with the message you got in step 4. Yours might be different.

If all went well, your PDA will make the hotsync-sound and you will be dumped into the pilot-link "DLP shell". Good so far? OK. Now exit the DLP shell by typing:

$ exit

8.) Pilot-link has no front-end (that I know of), so I'm using JPilot. Get it:

http://www.jpilot.org

Install it the same way you did with Pilot-Link above.

8.) JPilot will not work with the Clie' PEG-S360 on it's own. This is where Pilot-Link comes in.

First, we need to create the .jpilot directory in your home directory. As user:

$ jpilot

JPilot should open up on the desktop and you should see an empty conduit. That's fine. JPilot has now created an empty .jpilot directory for you in your home directory. Close JPilot.

9.) Let's populate that .jpilot directory with the contents of your Clie':

Do a hotsync on your PDA, then immediately after, pull up a console and as user:

$ pilot-xfer -p /dev/ttyUSB1 -b ~/.jpilot

You should now see messages scroll by indicating that your Clie' is backing-up it's contents to the .jpilot directory in your home directory. When the backup is finished, run JPilot

$ jpilot

10.) And there you are...all of your info is now loaded into JPilot's interface where you can edit and save as you will.

When you're ready to upload info from JPilot into your Clie, as user:

$ pilot-xfer -p /dev/ttyUSB1 -r ~/.jpilot

- This is obviously a work-around, as support for the Clie' PEG-S360 isn't out there yet (as of this writing), but it's better than nothing. Be sure to read all the readme's with both JPilot and Pilot-Link.

Enjoy!






 
Old 02-12-2003, 12:16 AM   #2
@lex
LQ Newbie
 
Registered: Feb 2003
Posts: 15

Rep: Reputation: 0
something different

Hi.

I have a Palm m130, which I've read uses the visor module, and also Slack8.1. I loaded the modules and checked dmesg, but received different messages than you show in your example. Here's what I got:

-------------------------
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x46d/0xc501) is not claimed by any active driver.
hub.c: USB new device connect on bus1/2, assigned device number 3
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: USB new device connect on bus1/2/1, assigned device number 4
hub.c: USB hub found
hub.c: 3 ports detected
hub.c: USB new device connect on bus1/2/1/1, assigned device number 5
usb.c: USB device 5 (vend/prod 0x3f0/0x20c) is not claimed by any active driver.
-------------------------



When I try to connect up to a ttyUSB device I get the error:

-------------------------
Unable to bind to port /dev/ttyUSB1
pi_bind: No such device
-------------------------

I added the ttyUSBx devices 1-4 with mknod, and set ownership and permissions of 666 as outlined in the visor HOWTO on the kpilot.org site.

How would I determine what device this should show up under? What dev would "bus1/1" or "device number 5" be listed under, for example? I've tried various dev's under /dev/usb/, and also the various /dev/ttySx dev's, but except for the /dev/ttyUSBx's those should be pointing to a serial port.

Any suggestions would help keep my wife with the Mac (who hotsync's whenever she wants to) from laughing at me.

Alex
 
Old 02-12-2003, 05:29 PM   #3
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Original Poster
Rep: Reputation: 30
Lightbulb

From the output of your dmesg, it looks to me as if the Visor module is not working with your Palm.

Are you running the stock 2.4.18 kernel? The Visor module in later kernels (2.4.19 & 2.4.20) has been revamped, and thus may have better support for your Palm M130.

Update: I switched to Slackware Beta 9. It has the hotplugging script added and works seamlessly with my Sony Clie' and KPilot (KDE3.1). No fuss...just "plug-n-play"...(am I allowed to say that here?)
 
Old 02-12-2003, 07:45 PM   #4
@lex
LQ Newbie
 
Registered: Feb 2003
Posts: 15

Rep: Reputation: 0
kewl

I'm using the stock kernel. The impression I got from the visor howto was that as long as your visor module works (i.e., gives you no error messages in dmesg), you don't need to patch the kernel. My bad.

Okay, I've discovered that everyone's calling what's in slackware-current "beta9", even though there's no mention of beta9 anywhere on the slackware.com site. According to google, slackware beta9 seems to be most popular in Brazil, since that's where most of the articles about it are appearing that are listed on the first 2 pages of google.

Thx,

@lex

Last edited by @lex; 02-13-2003 at 11:35 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I install sony clie PEG-S360 on FC4 lmcilwain Linux - Hardware 2 08-15-2005 07:41 AM
Clie PEG-TJ27 .... can connect but no sync. Slyder42 Linux - Laptop and Netbook 3 12-03-2004 05:49 PM
Sony Clie PEG-NZ90/G Daem0hn Linux - Laptop and Netbook 1 02-12-2004 06:50 AM
Sony Clie PEG-SJ20 cannot sync using pilotlink 0.11.8 downinthemine Linux - Hardware 3 01-03-2004 12:47 PM
Hotsync Sony Clie PEG SJ30 neogeek Linux - Laptop and Netbook 3 09-28-2003 03:02 AM


All times are GMT -5. The time now is 09:17 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration