OZ/GPE: usb storage configuration on C1000
Alessandro Pellizzari <shuriken-d98x/[email protected]> Sun, 03 Sep 2006 03:27:54 +0200
| Newsgroups | gmane.comp.handhelds.openzaurus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I just bought a SL C1000 and installed OZ/GPE on it. Now I wish to connect it via USB to my notebook, and "see" it as a mass storage device. I configured it in "USB settings" as Storage mode and CF/SD Card Reader as behaviour. Running dmesg logs: g_file_storage gadget-lun0: unable to open backing file: /dev/hda When I connect the USB cable, the notebook logs: Sep 3 03:14:55 localhost kernel: usb 3-1.3: new full speed USB device using uhci_hcd and address 4 Sep 3 03:14:56 localhost kernel: usb 3-1.3: device descriptor read/64, error -71 Sep 3 03:14:56 localhost kernel: usb 3-1.3: device descriptor read/64, error -71 Sep 3 03:14:56 localhost kernel: usb 3-1.3: new full speed USB device using uhci_hcd and address 5 Sep 3 03:14:56 localhost kernel: usb 3-1.3: device descriptor read/64, error -71 Sep 3 03:14:56 localhost kernel: usb 3-1.3: device descriptor read/64, error -71 Sep 3 03:14:56 localhost kernel: usb 3-1.3: new full speed USB device using uhci_hcd and address 6 Sep 3 03:14:57 localhost kernel: usb 3-1.3: device not accepting address 6, error -71 Sep 3 03:14:57 localhost kernel: usb 3-1.3: new full speed USB device using uhci_hcd and address 7 Sep 3 03:14:57 localhost kernel: usb 3-1.3: device not accepting address 7, error -71 I then created a file "transfile" and formatted it: dd if=/dev/zero of=transfile bs=1024k count=8 mke2fs transfile When configured in USB Settings, dmesg logs: g_file_storage gadget: File-backend Storage Gadget: version 28 november 2005 g_file_storage gadget: Number of LUNs=1 g_file_storage gadget-lun0: ro=1, file: /home/user/transfile And the notebook logs (sorry, this is long): Sep 3 03:21:12 localhost kernel: usb 3-1.3: new full speed USB device using uhci_hcd and address 8 Sep 3 03:21:12 localhost kernel: usb 3-1.3: configuration #1 chosen from 1 choice Sep 3 03:21:12 localhost NetworkManager: <debug info>^I[1157246472.730466] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_525_a4a5_3238204E6F76'). Sep 3 03:21:12 localhost kernel: SCSI subsystem initialized Sep 3 03:21:12 localhost kernel: Initializing USB Mass Storage driver... Sep 3 03:21:12 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices Sep 3 03:21:12 localhost kernel: usb-storage: device found at 8 Sep 3 03:21:12 localhost kernel: usb-storage: waiting for device to settle before scanning Sep 3 03:21:12 localhost kernel: usbcore: registered new driver usb-storage Sep 3 03:21:12 localhost kernel: USB Mass Storage support registered. Sep 3 03:21:12 localhost NetworkManager: <debug info>^I[1157246472.923105] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_525_a4a5_3238204E6F76_if0'). Sep 3 03:21:12 localhost NetworkManager: <debug info>^I[1157246472.973637] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_525_a4a5_3238204E6F76_usbraw'). Sep 3 03:21:12 localhost NetworkManager: <debug info>^I[1157246472.992963] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_525_a4a5_3238204E6F76_if0_scsi_host'). Sep 3 03:21:17 localhost kernel: Vendor: Linux Model: File-Stor Gadget Rev: 0311 Sep 3 03:21:17 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02 Sep 3 03:21:17 localhost kernel: usb-storage: device scan complete Sep 3 03:21:17 localhost NetworkManager: <debug info>^I[1157246477.928008] nm_hal_device_added (): New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_525_a4a5_3238204E6F76_if0_scsi_host_scsi_device_lun0'). Sep 3 03:21:17 localhost kernel: SCSI device sda: 16384 512-byte hdwr sectors (8 MB) Sep 3 03:21:17 localhost kernel: sda: Write Protect is on Sep 3 03:21:17 localhost kernel: sda: Mode Sense: 0f 00 80 00 Sep 3 03:21:17 localhost kernel: sda: assuming drive cache: write through Sep 3 03:21:17 localhost kernel: SCSI device sda: 16384 512-byte hdwr sectors (8 MB) Sep 3 03:21:18 localhost kernel: sda: Write Protect is on Sep 3 03:21:18 localhost kernel: sda: Mode Sense: 0f 00 80 00 Sep 3 03:21:18 localhost kernel: sda: assuming drive cache: write through Sep 3 03:21:18 localhost kernel: sda: unknown partition table Sep 3 03:21:18 localhost kernel: sd 0:0:0:0: Attached scsi disk sda Sep 3 03:21:18 localhost kernel: usb 3-1.3: reset full speed USB device using uhci_hcd and address 8 Sep 3 03:21:49 localhost last message repeated 151 times There are no partitions, the device doesn't get created (I have no /dev/sd*) I wish to know if there are some settings to use another device (and not /dev/hda) on GPE. I installed a 4 Gb SD and moved /home onto it (putting /root back on /dev/mtdblock2). I mounted /dev/mtdblock3 on /flash and cleaned it up, and I wish to use it (or a subdirectory in /home/user) as storage space. I have found no documentation on this feature. :( Thank you very much for any help. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642