Olimex CS-9302 USB Support ?

Has anyone succeeded in getting a USB storage device to work on this board?

The following is my procedure:

  • Insert Thumbdrive - it is properly detected

  • fdisk this device and write out partition table

  • reboot to ensure partition table is written

  • mount this partition

  • error message is “No such device or address unknown”

The fdisk command used is:

fdisk /dev/sda

I delete any existing partitions, create a new primary partition and make it bootable, then write it out.

if I type “mount” after the reboot, I see the usbdevfs:

~ # mount

/dev/root on / type ext2 (rw)

proc on /proc type proc (rw,nodiratime)

usbdevfs on /proc/bus/usb type usbdevfs (rw)

devpts on /dev/pts type devpts (rw)

My mount command:

~ # mount /dev/sda1 /mnt

mount: Mounting /dev/sda1 on /mnt failed: No such device or address

I am not sure what the “usbdevfs” is or if that is something I have to use to get this to work.

Any help on this would be greatly appreciated !

Thanks in advance.

As explained in the documentation thread I can’t comment on the original images shipped with the board. Using current upstream linux and my ptxdist userland, this is what I get:

[plug in USB stick]

[kernel detects USB stick, prints out various information on detected discs]

root@cs-e9301:~ mount /dev/sda /mnt/

[mounts without complaints]

root@cs-e9301:~ mount

/dev/sda on /mnt type vfat (rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)

root@cs-e9301:~ umount /mnt/

[unmounts without complaints]

/proc/filesystems shows:

nodev devpts

ext3

ext2

nodev ramfs

vfat

nodev nfs

nodev jffs2

nodev rpc_pipefs

Regarding usbdevfs:

This is a pseudo-filesystem available under /proc/bus/usb. It gives a filesystem representation of the USB system, i.e. the hierarchy of USB controllers, hubs and devices. It’s also possible for userland programs to communicate with USB devices using the usbdevfs, without the need for a driver (of course this depends on the particular device). It’s neither necessary nor does it harm the use of USB mass storage devices.

Regards,

Dominic

Again, thanks for this response!

I found the ptxdist here:

http://www.pengutronix.de/software/ptxd … ex_en.html

WOW this is really close to a project called PeeWee Linux I worked on about 5 years ago. It was also our goal to be able to generate the kernel for various environment - using a tool to make sure all the details were taken care of. After a couple thousand lines of shell script, we finally got shifted to another project (although, I suspect this should now be done through a web server to keep up with the latest technology :slight_smile:

Anyhow, I will start with that and see if I can get a new kernel going.

Thanks!

Ralph