Author Topic: Ratoc Cfu-1 Working!  (Read 3482 times)

g33k

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Ratoc Cfu-1 Working!
« on: February 08, 2005, 11:00:06 am »
After much fiddling around, my friend and I have gotten the Ratoc CFU-1 USB Host card working with RC8. (I assume this would work the same for RC9, but I've not tested it yet.) Here's how:

* Download and install usb-modules and cfu1-driver IPKs

Download Here

* Rebuild module dependencies

Code: [Select]
depmod -a
* Restart pcmcia subsystem

Code: [Select]
/etc/rc.d/init.d/pcmcia restart
* Add mknod entries to startup script; the way we did it is to add the lines below to the /etc/rc.d/rc.sysinit script, just before the line "# set time"

Code: [Select]
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2
mknod /dev/sda3 b 8 3
mknod /dev/sda4 b 8 4
mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17
mknod /dev/sdb2 b 8 18
mknod /dev/sdb3 b 8 19
mknod /dev/sdb4 b 8 20
mknod /dev/sdc b 8 32
mknod /dev/sdc1 b 8 33
mknod /dev/sdc2 b 8 34
mknod /dev/sdc3 b 8 35
mknod /dev/sdc4 b 8 36

* Symlink the usb script into the /etc/pcmcia directory so cardmgr can find it

Code: [Select]
ln -s /etc/rc.d/init.d/usb /etc/pcmcia/usb
At this point, you should be able to plug the CFU-1 into your Zaurus and have it recognized and all relevant drivers loaded automagically. In order to mount a USB flash drive, you'll first need to load the usb-storage module:

Code: [Select]
modprobe usb-storage
Then you can make a mount point and mount the drive; for example:

Code: [Select]
mkdir /mnt/usbflash
mount -t vfat /dev/sda1 /mnt/usbflash

Huzzah!

Edit: I've just set this up with RC10 and it works!

Edit: Instructions altered ever-so-slightly to work with RC11.

Edit: Instructions work fine with RC12.
« Last Edit: November 03, 2005, 01:26:50 pm by g33k »

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Ratoc Cfu-1 Working!
« Reply #1 on: February 08, 2005, 01:27:28 pm »
Very nice to see someone trying to solve problems themselves ;-) He he just kidding..

Nice one and Sash will try and implement as IPK for easier usag - hope its okay.
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

g33k

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Ratoc Cfu-1 Working!
« Reply #2 on: February 08, 2005, 03:58:16 pm »
Quote
Very nice to see someone trying to solve problems themselves ;-) He he just kidding..

I know you're kidding, but in all seriousness... I've spent a *lot* of time on this. In the end, it turned out to be relatively simple, but as a Linux newbie, it was all I could handle. Happily, the author of the drivers was cool enough to correspond with me and help troubleshoot the problem... otherwise, I'd still be struggling with it.

Quote
Nice one and Sash will try and implement as IPK for easier usag - hope its okay.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66145\"][{POST_SNAPBACK}][/a][/div]

Please do! If I were a little more sophisticated, I'd do so myself.

Now - the big question - how can I get my USB mouse working with pdaXrom now that the USB host is working? I modprobed hid and created the /dev/input/mice node; now if I cat /dev/input/mice, I can see data on the console when I move the mouse or click the buttons. How can I get the window manager to use the mouse? I saw in another post (from long ago) that Sash said that the window manager (or at least tslib) would need to be recompiled for this to be possible. Is this still the case?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cfu-1 Working!
« Reply #3 on: February 10, 2005, 12:42:31 pm »
The original ipk came with a conf file. What does this do? Is the data in there supposed to be added to the /etc/pcmcia/config file so that the card is automatically recognised?

Also, you talk about symlinking a usb script so that cardmgr can find it. What is this all about (what does the script do basically)?

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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cfu-1 Working!
« Reply #4 on: February 11, 2005, 07:06:12 am »
Ignore my previous post.

I have the ratoc working and in OE (built from source w. modules).

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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ratoc Cfu-1 Working!
« Reply #5 on: April 19, 2005, 07:10:08 pm »
I presume you pdaXrom guys will move to the 2.6.x kernel eventually

When you do, you'll need a new driver for this card.

I've spoken to some OE people on IRC and there's a driver in the handheld.org 2.6 kernel (I'll give a link if you don't know what I'm talking about/how to get there).

Basically it just requires some pcmcia driver glue (so I'm told - also note that the code is different from the papai code which is used in the current driver) and I don't know how to write this (though I'm quite willing to learn). Is there anyone amongst your number who does and who would be willing to help out so I can get it working (which will mean that when you do switch, there'll be code available for you too).

Thanks,


Si

Edit: Forgot all about this, anyway the ratoc works fine with the 2.6.x kernels now
« Last Edit: October 19, 2005, 10:23:26 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

g33k

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Ratoc Cfu-1 Working!
« Reply #6 on: October 19, 2005, 10:14:04 am »
I found with RC11 I had to rebuild module dependencies before the drivers would load properly. The instructions at the beginning of this thread have been updated to include this step.