Author Topic: Ratoc Cf Host Card Working With Oz  (Read 3364 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« on: February 11, 2005, 07:17:19 am »
Just in case anyone was wondering, the card works fine.

cfu1-driver is in OE now, still need to officially add a new defconfig and patch to allow usbcore.o to build.

Anyone else out there with one of these? Perferably with a different machine (I have a shepherd - C750 and a Collie - 5500) for testing?


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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« Reply #1 on: April 19, 2005, 06:50:13 pm »
Ok, I've just (finally - it's taken me long enough!) tested the driver with the 5500 (OZ 3.5.2 I'm afraid, but the kernel's the same still).

I think it works, but I've not got the drivers available to actually do anything with it. Here's the output of dmesg & lsmod so you can make up your own minds:

After boot (with card inserted)

root@collie:~# lsmod
Module                  Size  Used by    Tainted: P
sl811_cs                3096   0  (unused)
hc_sl811               13432   0  [sl811_cs]
rfcomm                 33524   0  (autoclean)
l2cap                  17320   2  (autoclean) [rfcomm]
bluez                  32644   0  (autoclean) [rfcomm l2cap]
usbcore                51920   1  [hc_sl811]
sharp_mmcsd_m          25796   1
sa1100_bi              22932   0  (unused)
net_fd                 16652   1
usbdcore               22512   0  [sa1100_bi net_fd]
ipv6                  152348  -1
ipsec                 280016   0  (unused)


After boot (with card inserted)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
cf_usb0: index 0x04: Vcc 3.3, irq 35, io 0xc4850000-0xc4850007
usb.c: new USB bus registered, assigned bus number 1
hc_sl811.c: USB SL811 at c4850000,c4850001, IRQ 35
hub.c: USB hub found
hub.c: 1 port detected

Then attached a USB mass storage device
cf_usb0: index 0x04: Vcc 3.3, irq 35, io 0xc4850000-0xc4850007
usb.c: new USB bus registered, assigned bus number 1
hc_sl811.c: USB SL811 at c4850000,c4850001, IRQ 35
hub.c: USB hub found
hub.c: 1 port detected
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0xc76/0x5) is not claimed by any active driver.
root@collie:~#

Then removed said USB mass storage device
usb.c: new USB bus registered, assigned bus number 1
hc_sl811.c: USB SL811 at c4850000,c4850001, IRQ 35
hub.c: USB hub found
hub.c: 1 port detected
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0xc76/0x5) is not claimed by any active driver.
usb.c: USB disconnect on device 2
root@collie:~#

Looks okay to me.


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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« Reply #2 on: April 19, 2005, 06:54:06 pm »
Note that I patched the kernel build to produce usbcore (which is required).

There aren't that many cfu1 users out there, so I can just provide the ipk to you (and the kernel patch if you're interested - it enables the build of usbcore & as many USB modules as I could see in the kernel).

Actually, I don't think my cfu1-driver and kernel patch were noticed on the OE mailing list, so if you want the cfu1-driver.ipk (and .bb file) then I can attach them too.


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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« Reply #3 on: April 19, 2005, 07:01:12 pm »
3 posts in a row - I really ought to have better things to do hey!

Okay, the above drivers work for the (old - wrt the C7x0 machines) 2.4.18 kernels. I'd like to get the card working on the current 2.6.x kernels.

I understand that there is a driver (or part thereof) in the handhelds.org 2.6 kernel; it is different to the papai source which I used (I think it has been written from scratch by someone else basically). From a few chats on IRC, I understand that the driver should work, but it still requires some pcmcia glue.

I'm not all that au fait with writing pcmcia glue, so if there is anyone out there who is, or just anyone who fancies helping out, or even just anyone with a few pointers for my pcmcia-glue-writing-quest then please leave a note.

Cheers,


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

Vito

  • Newbie
  • *
  • Posts: 1
    • View Profile
Ratoc Cf Host Card Working With Oz
« Reply #4 on: April 19, 2005, 09:19:33 pm »
Quote
Okay, the above drivers work for the (old - wrt the C7x0 machines) 2.4.18 kernels. I'd like to get the card working on the current 2.6.x kernels.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76016\"][{POST_SNAPBACK}][/a][/div]

My Zauruses and I have been offline for a while, but I have three Collies with a Ratoc CFU-1 USB host adapter I'm looking forward to getting running again.  I'm fine with using a 2.4 kernel right now; I just need it to work with USB HID right now.  Mass storage and ethernet later.  

Is there a problem with just compiling those modules to test things out?  It's been six months or more since I looked into this.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« Reply #5 on: April 20, 2005, 07:59:04 am »
No, there's no problem, but you (will probably) need to use OE to create the kernel.

You'll then need to patch the kernel to enable the build of usbcore.

Here are the bb files for the driver, and the enable-usbcore patch (for Shepherd, so you'll probably need to make a few minor adjustments for collie).


Si

P.S. Hmm, can't add patch files...
« Last Edit: April 20, 2005, 08:00:14 am by lardman »
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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cf Host Card Working With Oz
« Reply #6 on: April 20, 2005, 07:59:47 am »
--- linux/drivers/usb/Makefile~   2005-02-10 15:31:26.000000000 +0000
+++ linux/drivers/usb/Makefile   2005-02-11 15:04:35.991393736 +0000
@@ -42,9 +42,9 @@
 
 # Each configuration option enables a list of files.
 
-ifneq ($(CONFIG_ARCH_SHARP_SL),y)
+
 obj-$(CONFIG_USB)      += usbcore.o
-endif
+
 obj-$(CONFIG_USB_UHCI)      += usb-uhci.o
 obj-$(CONFIG_USB_UHCI_ALT)   += uhci.o
 obj-$(CONFIG_USB_OHCI)      += usb-ohci.o usb-ohci-pci.o
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