Author Topic: Connection with USB and desktop kernel 2.6  (Read 3710 times)

beak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Connection with USB and desktop kernel 2.6
« on: June 05, 2004, 08:49:37 am »
Alright, time to get down to brass tacks.

I just got my SL-5500 the other day, and MAN, I loved it even before I turned it on. I wanted to have a terminal so bad on this thing, and I got it. The only problem was I had to use my Windows 2000 system reserved for games and nothing else to do so. I want to decrease my usage of Windows down to nil eventually, so... I need some help.

Here is my situation. I\'ve got a Sharp Zaurus SL-5500 using the stock ROM, version 2.38, running kernel 2.4.6-rmk1-np2-embedix (the one that came with the PDA). Connections to the outside world will be done via the USB docking station. For my computer, I\'ve got a home-built computer with an AOpen AK72 motherboard with a Slot A 800 MHz Athlon Thunderbird CPU. This particular model has four USB slots available: two in the front (via cable to the motherboard) and two in the back (built in). For my OS, I\'m running Slackware Linux 9.1 with kernel 2.6.6. I want to be able to connect to the Zaurus through FTP or SSH or something so I can transfer documents, programs, etc. to and from the PDA.

I know this might be a large order to fill, but what must one do, from scratch, to accomplish this? I plan on posting the successful steps onto my website for others to use as well (although I don\'t see what\'s wrong with using this forum as well  8) )

I am willing to recompile the kernel completely, if needed. I\'m a high-school junior (soon to be senior) and have a summer vacation to mess around with my toys.

Any and all help will be greatly appreciated.

Beak

sefthuko

  • Newbie
  • *
  • Posts: 27
    • View Profile
Connection with USB and desktop kernel 2.6
« Reply #1 on: June 06, 2004, 08:37:42 am »
Try openssh from the zug feed:

http://www.zaurususergroup.com/feed/

The ROM I\'m using has ssh in it already... I think this should work, though.  It\'ll give you SSH and SFTP (secure ftp, won\'t work with your ftp client, but much much safer)

If it doesn\'t, try running

/etc/rc.d/init.d/ssh start

or rebooting

beak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Connection with USB and desktop kernel 2.6
« Reply #2 on: June 06, 2004, 01:34:03 pm »
I finally got it to work!

This is how you can connect the Zaurus SL-5500 to your 2.6.6 and beyond computer via the USB docking cradle.

1.) You\'ll need to make sure that your kernel (on your computer) supports both USB and the Sharp Stock ROM image (or, if your SL-5500 has another ROM, such as OpenZaurus, then support for the ARM devices). Make sure that you enable, at a minimum, the following:

A.) Support for host-side USB (CONFIG_USB)
B.) Controller Interface Support *I compiled using modules and never loaded! That was the problem
   i.) EHCI HCD
   ii.) OHCI HCD
   iii.) UHCI HCD
C.) Multi-purpose USB Networking Framework
   i.) Sharp Zaurus (stock ROMs)

There are other things that I enabled, such as USB_DEVICEFS, but I\'m unsure if they make a difference. I don\'t think they do, but then again, I think rain is wet

2.) Now, with your shiny new kernel, under root, and assuming you compiled using modules...under your computer...

root@galadriel:~# modprobe usbnet
root@galadriel:~# modprobe modprobe [u, o, e]hci_hcd
root@galadriel:~# ifconfig usb0 192.168.3.2 up
root@galadriel:~#

Now, under your Zaurus...this might get a little tricky. If you cheated like I did and sent the terminal program over to the PDA with a Windows machine, then you should make sure that usbdcore and net_fd are enabled. If they aren\'t, then modprobe them into the PDA.

After making sure those modules are there, then do the following:

bash-2.05# ifconfig usbd0 192.168.3.1 up
bash-2.05#

If you can ping 192.168.3.1 from your computer and 192.168.3.2 from your PDA, then you\'re connected!

It should be pretty much the same way with the Network & Sync...under Services, select USB. Specify the TCP/IP info information, and set your IP as 192.168.3.1. Broadcast is 192.168.3.255. I think I put the gateway as 192.168.3.2, but someone may want to check that out.

Anyway, I got it working! Whooo!

sefthuko

  • Newbie
  • *
  • Posts: 27
    • View Profile
Connection with USB and desktop kernel 2.6
« Reply #3 on: June 06, 2004, 09:11:52 pm »
I never got the usb connection to allow me to connect to the internet via any other IP address other than 192.168.129.201.  Is it working for you?

You may also want to look into installing a program called hotplug.  All I need to do is plug in the Zaurus to my Linux box and run

ifconfig usb0 192.168.129.1

on the Linux box to get the connection made.