View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#221
if both drives are showing up, but not accessible, it's very strange. Looks like both modules are loaded properly and 2 LUNS are exported to USB host, but no partitions are exported as LUNS targets.

Could you, after connecting device to desktop (and ensuring that two drives show up), try to run this piece of code in N900 (as root), line by line? In case of errors after any line, write it here.

Code:
modprobe -r g_nokia
modprobe -r g_file_storage
modprobe g_file_storage stall=0 luns=1 ro=1 removable
echo /dev/mmcblk0 > /sys/devices/platform/musb_hdrc/gadget/gadget-lun0/file
After both modprobe -r, drives will disappear from desktop - it is normal. One will re-appear after modprobing again, but still inaccessible. Final command (echo'ing) should make MyDocs accessible. Remember, /dev/mmcblk0 is *not* a typo, in this case, it should be like that, *not* mmcblk0p1.

Use auto-completion for path in final command, to avoid typos - I've written it by hand, so could do some typos, too (although checked it and wasn't able to spot any).

If all commands return no errors, but mydocs is still not accessible, it is really broken hardware'ishly, in some strange way (unless state of system on that device is total fubar)..

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post: