Author Topic: connecting my SL-6000 to a (Debian) linux box  (Read 5439 times)

lking

  • Newbie
  • *
  • Posts: 3
    • View Profile
connecting my SL-6000 to a (Debian) linux box
« on: April 25, 2004, 01:27:14 pm »
I posted this over at the Zaurus Message Board but originally meant to ask here:

I have my new SL-6000 sitting here, plugged into my Debian linux (2.6.4 kernel, all the needed usb stuff compiled in or in as modules, I believe) home machine via USB, but I\'m having no luck actually getting access to it. I\'ve followed the several how-tos, one of which suggests that with a 2.6.* kernel this should be a piece of cake, but I seem to be missing something obvious? either that or I\'m even less competent with this linux stuff than I\'d previously thought. A major problem I have is that, when the Z is turned on, it is recognized by usbnet, but inevitably it somehow hangs my entire desktop machine and I have to do a hard reset.

But before that disasterous inevitability, I get the following from dmesg:

usb 2-1: new full speed USB device using address 2
usb 2-1: new device strings: Mfr=1, Product=2, SerialNumber=0
drivers/usb/core/message.c: USB device number 2 default language ID 0x409
usb 2-1: Product: SL-6000
usb 2-1: Manufacturer: Sharp
drivers/usb/core/usb.c: usb_hotplug
usb 2-1: registering 2-1:1.0 (config #1, interface 0)
drivers/usb/core/usb.c: usb_hotplug
usbnet 2-1:1.0: usb_probe_interface
usbnet 2-1:1.0: usb_probe_interface - got id
usb0: register usbnet at usb-0000:00:02.0-1, Sharp Zaurus, PXA-2xx based

and from ifconfig -a

usb0 Link encap:Ethernet HWaddr 1A:60:19:07:1A:F0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0  TX bytes:0 (0.0

but (and here\'s were my fragile knowledge of this stuff will become
painfully evident) what does all this tell me? I try setting PCLink on
the Z to USB-TCP/IP, but cannot seem to telnet or ssh to
192.168.129.201 from my Debian box (I previously installed all the
openSSH stuff on my Z from my Win2000 desktop at work).

but an even more basic question: where is my Z now, once it\'s plugged
in and recognized? How do I mount it?

I assume these are pretty obvious points I\'m missing, but I cannot
seem to piece together answers from what I\'ve found on the web so far,
so if anyone can offer some advice on the basics I\'m clearly missing,
I\'d be most appreciative!
Back to top

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
connecting my SL-6000 to a (Debian) linux box
« Reply #1 on: April 25, 2004, 01:57:58 pm »
Quote
How do I mount it?

You\'re using usb-net not usb-storage so you don\'t mount it, it just becomes a network device - usb0. I note that there\'s no IP address apparent for this device though but I\'m not sure how to go about fixing this on debian but on my Mandrake box I used the graphical config tools and it remembered.

If you were using storage then it would probably be /dev/sda (with no number).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

naanu

  • Newbie
  • *
  • Posts: 25
    • View Profile
connecting my SL-6000 to a (Debian) linux box
« Reply #2 on: April 30, 2004, 10:25:48 am »
What happens when you do
 \'ifconfig usb0 up\'?

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
connecting my SL-6000 to a (Debian) linux box
« Reply #3 on: April 30, 2004, 10:37:09 am »
With regards to the desktop hangs, kernel 2.6.x is still notoriously buggy when it comes to inserting and removing USB devices. Kernels 2.4.21 and later have the same usbnet module and is quite sound in the USB department.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #4 on: April 30, 2004, 12:04:46 pm »
Probably not the answer you are looking for, but I use the internal WLAN on my SL-6000. Then the SL-6000 just becomes another machine on my house network, I can access it from any of the Linux (Mandrake or YDL) or MacOS (8, 9, X) machines.

I hope this helps,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

lking

  • Newbie
  • *
  • Posts: 3
    • View Profile
connecting my SL-6000 to a (Debian) linux box
« Reply #5 on: May 02, 2004, 11:21:36 am »
thanks everyone -- very helpful: used ifconfig and route and now I have it connected and can ssh and scp to it (still freezes my entire system periodically, but after all the work I cannot bring myself to go back to the 2.4.x kernel, although that may change very shortly; stubborn fool, I am.) Thanks again.

usagi

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #6 on: May 09, 2004, 07:23:39 am »
Quote
thanks everyone -- very helpful: used ifconfig and route and now I have it connected and can ssh and scp to it (still freezes my entire system periodically, but after all the work I cannot bring myself to go back to the 2.4.x kernel, although that may change very shortly; stubborn fool, I am.) Thanks again.


Hi i am also trying to connect to my 6000 via USB I did the if config and the route, but the zaurus didn\'t accept ssh or anything else.

did you have to do anything else to get it working?
Zaurus SL-6000L
Waiting for OZ for the 6000

lking

  • Newbie
  • *
  • Posts: 3
    • View Profile
connecting my SL-6000 to a (Debian) linux box
« Reply #7 on: May 09, 2004, 08:45:21 am »
Quote
Hi i am also trying to connect to my 6000 via USB I did the if config and the route, but the zaurus didn\'t accept ssh or anything else. did you have to do anything else to get it working?


I did set up a password for root user on the Zaurus itself.[/quote]

Teletubbie

  • Sr. Member
  • ****
  • Posts: 252
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #8 on: May 09, 2004, 09:15:11 am »
I dont have a root password, but the Zaurus (5500 with OZ 3.2) is accepted. I had to deal with ./ssh/known_hosts file. You can try to comment out the rsa key for the zaurus ip, if exist. Then you are able to accept the new rsa key, that you receive from the zaurus. The case that you have a not valid rsa key in your known_hosts file  may occur for example, when you get a new Zaurus connected or flash a new rom on your Zaurus.
Hope this helps.
Cheers,
Sam
SL-5500G
OZ 3.3.6-pre1
Opie 1.1.4

usagi

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #9 on: May 09, 2004, 06:38:00 pm »
My problem is that my zaurus is brand new and it does not come with a console application pre-installed. This means I can\'t do anything other than click(tap) on stuff.  

Guess Ill have to take it to a windows computer to get it loaded with a minimum set of linux stuff.

Is there anyway around this?

Thanks
Zaurus SL-6000L
Waiting for OZ for the 6000

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #10 on: May 09, 2004, 06:47:47 pm »
usagi
Is there not an option in your PC link settings on your Z to user \'PC Link Setting\' or \'Storage\'? Then you can just use it as a external USB drive? I\'m using a C860 but I thought the 6000 had the USB drive feature too.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

usagi

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #11 on: May 09, 2004, 08:18:08 pm »
No, unfortunately the pclink setting  does not offer this option. That is a big dowgrade!!
Zaurus SL-6000L
Waiting for OZ for the 6000

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #12 on: May 09, 2004, 08:33:01 pm »
Quote
I posted this over at the Zaurus Message Board but originally meant to ask here:

I have my new SL-6000 sitting here, plugged into my Debian linux (2.6.4 kernel, all the needed usb stuff compiled in or in as modules, I believe) home machine via USB, but I\'m having no luck actually getting access to it. I\'ve followed the several how-tos, one of which suggests that with a 2.6.* kernel this should be a piece of cake, but I seem to be missing something obvious? either that or I\'m even less competent with this linux stuff than I\'d previously thought. A major problem I have is that, when the Z is turned on, it is recognized by usbnet, but inevitably it somehow hangs my entire desktop machine and I have to do a hard reset.


Never had a problem with desktop hanging - had problems with ssh hanging when the link to the zaurus went down, but it never crashed my desktop.

Quote
and from ifconfig -a

usb0 Link encap:Ethernet HWaddr 1A:60:19:07:1A:F0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0  TX bytes:0 (0.0

but (and here\'s were my fragile knowledge of this stuff will become
painfully evident) what does all this tell me? I try setting PCLink on
the Z to USB-TCP/IP, but cannot seem to telnet or ssh to
192.168.129.201 from my Debian box (I previously installed all the
openSSH stuff on my Z from my Win2000 desktop at work).


From this it looks like your usb0 is not getting a ip address - is should be getting one from the zaurus (at least it does on the c760). Try running
Code: [Select]
ifconfig usb0 192.168.129.1
This should give usb0 the ip adddress 192.168.129.1 and you should be able to ssh (and ping to the Z)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
connecting my SL-6000 to a (Debian) linux box
« Reply #13 on: May 09, 2004, 08:35:46 pm »
cripes!

Yes it is (glad I got the 860!) ;-)

Give it time, someone will port the feature or incorporate in into a new ROM.

I too had enormous problems with USB networking, I found reliability varied from one PC to another and from one linux distro to another on a same PC.

This includes hardware freezes.

I found the USB storage ported to the 5500 and usbnet quite intermittent when I ran SuSE on my old PC, and on SuSE on my current PC. I now have a 860 and using USB Storage or USB networking is 100% stable so far (two months) with Debian (using a knoppix HD install). I also have other USB mass storage devices, ie. card readers that didn\'t work, some are still intermittent. I just put it down to USB being shite ;-)

-Francis
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
connecting my SL-6000 to a (Debian) linux box
« Reply #14 on: May 10, 2004, 02:11:02 am »
embeddedkonsole can be found on the cd, named qpe-terminal, as well as the filemanager, named qpe-filemanager.
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net