jdiercks
10-09-2003, 07:23 PM
The Sharp Zaurus SL-C760 can talk TCP/IP to Knoppix via USB. This means I can go to anyone's PC, boot from a Knoppix LiveCD, insmod one file from a floppy (or the network) and then set up TCP/IP via USB to the Zaurus, all without having to mess with the host PC's drivers or even touch its hard drive.
Here's what I did:
0) Boot Knoppix, open a root shell. (I used Knoppix 3.3 2003-09-24, but most recent versions should work)
1) Download and unpack http://home.earthlink.net/~cocoadev/usbnet-standalone.tar.gz
2) Apply this diff to usbnet.c:
1428a1429,1438
> static const struct driver_info zaurus_slc760_info = {
> /* Japanese C760 ~= US SL-C760 */
> .description = "Sharp Zaurus SL-C760",
> .flags = FLAG_FRAMING_Z,
> .check_connect = always_connected,
> .tx_fixup = zaurus_tx_fixup,
> .in = 1, .out = 2,
> .epsize = 64,
> };
2404a2415,2423
> }, {
> .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
> | USB_DEVICE_ID_MATCH_DEVICE,
> .idVendor = 0x04DD,
> .idProduct = 0x9031,
> .bInterfaceClass = 0x02,
> .bInterfaceSubClass = 0x0a,
> .bInterfaceProtocol = 0x00,
> .driver_info = (unsigned long) &zaurus_slc760_info,
3) make (might need to adjust LINUX_DIR in Makefile first)
4) insmod ./usbnet.o
5) ifconfig usb0 192.168.129.1
6) ping 192.168.129.201
7) mount //192.168.129.201/home /mnt/test
... and now Knoppix should be able to browse the Z's filesystem at /mnt/test, or telnet into the Z at 192.168.129.201, whatever. If you want the Z to have full internet access using the Knoppix PC as a gateway, then you'll have to set up routing and NAT.
I saved usbnet.o to a floppy so I can skip steps 1-3 in the future. Should probably put a script on the floppy to automate the insmod/ifconfig/mount steps too. If I was really ambitious I'd remaster the Knoppix CD so it would just boot with the custom usbnet.o already loaded. But I would expect this to make it into the mainstream soon enough anyway, there will probably be a future Knoppix release that supports usbnet to the C760 right out of the box.
Here's what I did:
0) Boot Knoppix, open a root shell. (I used Knoppix 3.3 2003-09-24, but most recent versions should work)
1) Download and unpack http://home.earthlink.net/~cocoadev/usbnet-standalone.tar.gz
2) Apply this diff to usbnet.c:
1428a1429,1438
> static const struct driver_info zaurus_slc760_info = {
> /* Japanese C760 ~= US SL-C760 */
> .description = "Sharp Zaurus SL-C760",
> .flags = FLAG_FRAMING_Z,
> .check_connect = always_connected,
> .tx_fixup = zaurus_tx_fixup,
> .in = 1, .out = 2,
> .epsize = 64,
> };
2404a2415,2423
> }, {
> .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
> | USB_DEVICE_ID_MATCH_DEVICE,
> .idVendor = 0x04DD,
> .idProduct = 0x9031,
> .bInterfaceClass = 0x02,
> .bInterfaceSubClass = 0x0a,
> .bInterfaceProtocol = 0x00,
> .driver_info = (unsigned long) &zaurus_slc760_info,
3) make (might need to adjust LINUX_DIR in Makefile first)
4) insmod ./usbnet.o
5) ifconfig usb0 192.168.129.1
6) ping 192.168.129.201
7) mount //192.168.129.201/home /mnt/test
... and now Knoppix should be able to browse the Z's filesystem at /mnt/test, or telnet into the Z at 192.168.129.201, whatever. If you want the Z to have full internet access using the Knoppix PC as a gateway, then you'll have to set up routing and NAT.
I saved usbnet.o to a floppy so I can skip steps 1-3 in the future. Should probably put a script on the floppy to automate the insmod/ifconfig/mount steps too. If I was really ambitious I'd remaster the Knoppix CD so it would just boot with the custom usbnet.o already loaded. But I would expect this to make it into the mainstream soon enough anyway, there will probably be a future Knoppix release that supports usbnet to the C760 right out of the box.