Skip to contentSkip to conversation

USB storage device

DISCUSSION Nathan Ladd 1 participant 1 message Jan 26, 2006

lore
Share & tools
lore
#0 lore raw

I'm having a problem with using a mass storage device with the OMAP. I've encountered the same problem with both the newest 2.6.15-omap2 kernel, as well as a slightly older 2.6.14 which I've been using. I have indeed had to set that CONFIG_OMAP_RESET_CLOCKS to undefined.

I'm not using any of the DSP gateway devices, and haven't modified the kernel at all. I've used an arm-linux-* toolchain (3.4.4) I've downloaded from the net (it's referred to in the OSK Newbie Guide), as well as a root filesystem from the net.

The problem is that I can't *reliably* transfer files to and from the USB storage device. With 2-3 MB files, I can usually transfer at least 20-30 files in a row (usually more), and then the whole system just hangs (no backtrace, no "kernel badness," it simply stops doing anything). With 5-6 MB files, I'm lucky if I can get 3 transfers in.

The procedure is simply to mount the device, copy a file into /tmp (tmpfs; I have verified that I can create 5 MB files and delete them over and over without hanging), copy the file back to the usb device, and then unmount it. Then I repeat the procedure over and over. If the hang happens during the file copy, the activity led of the storage device will keep blinking.

I've also reproduced this with DSP gateway and some simple DSP code running a main loop, which simply sets some GPIO pins high and low. After the mass storage transfers cause hanging, I notice the GPIO pins stop changing state, indicating that the DSP is also hung.

I've tried swapping the OSK board, as well as the mass storage device.
No change. Has anyone here had success with getting mass storage to
work? If so, could you tell me your exact kernel/toolchain versions?