View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#899
Compiled a kernel that works (finally! - thanks to joerg_rw for pointing out how to stop any power limits - my flash apparently needs more power).
I'll post a patch shortly.

I also got an HDD working, using the laptop as a power source, and without any "real" hub in between (using a Y cable though).

The echo host > ... part is redundant and doesn't do anything, so it can be left out.
Not sure about the patches, but it seems they only add messages to the kernel messages. Also I had to edit the .config file directly not the one in arch/arm/configs, since that didn't change anything (thanks to javispedro for that one)

Code:
[ 1617.796691] g_nokia gadget: high speed config #1: nokia1
[ 1617.796783] musb_hdrc periph: enabled ep5in for int IN, maxpacket 10
[ 1617.796783] musb_hdrc periph: enabled ep4in for bulk IN, maxpacket 512
[ 1617.796813] musb_hdrc periph: enabled ep4out for bulk OUT, maxpacket 512
[ 1617.796905] musb_hdrc periph: enabled ep7in for int IN, maxpacket 16
[ 1617.824737] musb_hdrc periph: enabled ep6in for bulk IN, maxpacket 512
[ 1617.824768] musb_hdrc periph: enabled ep5out for bulk OUT, maxpacket 512
[ 1619.233032] hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[ 1619.233093] hub 1-0:1.0: unable to enumerate USB device on port 1
# Was experimenting with something, ignore the 2 errors above ^
[ 1645.303344] usb 1-1: new high speed USB device using musb_hdrc and address 12
[ 1645.453826] usb 1-1: configuration #1 chosen from 1 choice
[ 1645.551605] scsi2 : SCSI emulation for USB Mass Storage devices
[ 1645.590362] usb-storage: device found at 12
[ 1645.590393] usb-storage: waiting for device to settle before scanning
[ 1645.838378] input: Western Digital  External HDD     as /class/input/input4
# No idea what this ^ is for, SpeedEvil suggested it could be for the LEDs on the drive.
[ 1645.892456] generic-usb 0003:1058:0705.0001: input: USB HID v1.10 Device [Western Digital  External HDD    ] on usb-musb_hdrc-1/input1
[ 1645.893554] usbcore: registered new interface driver usbhid
[ 1645.893615] usbhid: v2.6:USB HID core driver
[ 1650.585540] usb-storage: device scan complete
[ 1650.586639] scsi 2:0:0:0: Direct-Access     WD       3200BEV External 1.75 PQ: 0 ANSI: 0
[ 1650.619903] sd 2:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
[ 1650.620391] sd 2:0:0:0: [sda] Write Protect is off
[ 1650.620422] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1650.620422] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 1650.621154] sd 2:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
[ 1650.621551] sd 2:0:0:0: [sda] Write Protect is off
[ 1650.621582] sd 2:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1650.621582] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 1650.621612]  sda: sda1
[ 1650.672180] sd 2:0:0:0: [sda] Attached SCSI disk
[ 2936.905181] usb 1-1: USB disconnect, address 12
[ 2937.256347] usb 1-1: new high speed USB device using musb_hdrc and address 13
[ 2937.405853] usb 1-1: configuration #1 chosen from 1 choice
[ 2937.405883] usb 1-1: new config #1 exceeds power limit by 100mA
[ 2937.435028] scsi3 : SCSI emulation for USB Mass Storage devices
[ 2937.473449] usb 1-1: 200mA is over 100mA budget for port 1!
[ 2937.473480] hub 1-0:1.0: 100mA over power budget!
[ 2937.476623] usb-storage: device found at 13
[ 2937.476623] usb-storage: waiting for device to settle before scanning
[ 2942.476196] usb-storage: device scan complete
[ 2942.477081] scsi 3:0:0:0: Direct-Access     SanDisk  U3 Contour       4.04 PQ: 0 ANSI: 2
[ 2942.477539] scsi 3:0:0:1: CD-ROM            SanDisk  U3 Contour       4.04 PQ: 0 ANSI: 2
# U3 enabled flash drive, the CD-ROM is emulated by the flash drive, it's not an actual CD-ROM, mind you a CD drive might be used with a self powered hub.
[ 2942.510925] sd 3:0:0:0: [sda] 16041617 512-byte hardware sectors: (8.21 GB/7.64 GiB)
[ 2942.511383] sd 3:0:0:0: [sda] Write Protect is off
[ 2942.511413] sd 3:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 2942.511413] sd 3:0:0:0: [sda] Assuming drive cache: write through
[ 2942.516235] sd 3:0:0:0: [sda] 16041617 512-byte hardware sectors: (8.21 GB/7.64 GiB)
[ 2942.516540] sd 3:0:0:0: [sda] Write Protect is off
[ 2942.516540] sd 3:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 2942.516571] sd 3:0:0:0: [sda] Assuming drive cache: write through
[ 2942.516601]  sda: sda1
[ 2942.530303] sd 3:0:0:0: [sda] Attached SCSI removable disk
Making the drive appear in file manager is **** easy, just create a directory in /media and mount the drive/flash to it.






Last edited by MohammadAG; 2010-05-20 at 10:55. Reason: Added my comments to the message kernels
 

The Following 26 Users Say Thank You to MohammadAG For This Useful Post: