OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: g33k 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 (http://paipai.org/~humorum/english/zaurus/cfu1-driver.html)
* Rebuild module dependencies
depmod -a
* Restart pcmcia subsystem
/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"
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
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:
modprobe usb-storage
Then you can make a mount point and mount the drive; for example:
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.
-
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.
-
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.
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?
-
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
-
Ignore my previous post.
I have the ratoc working and in OE (built from source w. modules).
Cheers,
Si
-
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
-
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.