From: Chris W. <whi...@gm...> - 2011-02-18 16:56:34
|
I'm tryinig to get the overo water on a chestnut carrier to work as a mass storage device. I'm using 2.6.36 kernel from the gumstix repo. I've added MUSB_MODE = "peripheral" to my local.conf and rebuilt the kernel and then the image. I can boot the system, and load the module, and everything seems ok: root@overo:~# modprobe g_file_storage file=/dev/mmcblk0p1 stall=0 removable=1 g_file_storage gadget: Userspace failed to provide serial number; Failing back to default g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008 g_file_storage gadget: Number of LUNs=1 g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/mmcblk0p1 When I connect a windows machine, I get the new drive and can see the files, but if I try to actually use the drive, I get errors from XP reporting things like "The volume for a file has been exernally altered". I also tried it with a backing file that I created following the instructions below, but had the same results: http://wh1t3s.com/2009/05/11/beagleboard-as-usb-mass-storage-device-via-usb-otg/ No real errors in the overo log, but there are messages like this: g_file_storage gadget: high speed config #1 musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 g_file_storage gadget: high speed config #1 musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 g_file_storage gadget: high speed config #1 musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 g_file_storage gadget: high speed config #1 Anyone have this working, or have a clue to what the problem might be? Thanks, Chris |
From: Chris W. <whi...@gm...> - 2011-02-18 20:25:23
|
If I load the ethernet gadget module, it works fine with the same hardware-- so I think I can eliminate that. -chris On Fri, Feb 18, 2011 at 10:55 AM, Chris Whittenburg <whi...@gm...> wrote: > I'm tryinig to get the overo water on a chestnut carrier to work as a > mass storage device. > > I'm using 2.6.36 kernel from the gumstix repo. > > I've added MUSB_MODE = "peripheral" to my local.conf and rebuilt the > kernel and then the image. > > I can boot the system, and load the module, and everything seems ok: > > root@overo:~# modprobe g_file_storage file=/dev/mmcblk0p1 stall=0 removable=1 > g_file_storage gadget: Userspace failed to provide serial number; > Failing back to default > g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008 > g_file_storage gadget: Number of LUNs=1 > g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/mmcblk0p1 > > When I connect a windows machine, I get the new drive and can see the > files, but if I try to actually use the drive, I get errors from XP > reporting things like "The volume for a file has been exernally > altered". > > I also tried it with a backing file that I created following the > instructions below, but had the same results: > > http://wh1t3s.com/2009/05/11/beagleboard-as-usb-mass-storage-device-via-usb-otg/ > > No real errors in the overo log, but there are messages like this: > > g_file_storage gadget: high speed config #1 > musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 > musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 > g_file_storage gadget: high speed config #1 > musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 > musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 > g_file_storage gadget: high speed config #1 > musb_hdrc periph: enabled ep1in for bulk IN, dma, maxpacket 512 > musb_hdrc periph: enabled ep1out for bulk OUT, dma, maxpacket 512 > g_file_storage gadget: high speed config #1 > > Anyone have this working, or have a clue to what the problem might be? > > Thanks, > Chris > |