Reply
Thread Tools
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#371
go into xterm and type "dmesg" after plugging it in and getting the unrecognized messages. It may be a partitioning problem. dmesg will show what the USB is trying to do and what it finds (and probably why it won't mount)
 
Posts: 37 | Thanked: 0 times | Joined on Feb 2008
#372
Originally Posted by tz1 View Post
go into xterm and type "dmesg" after plugging it in and getting the unrecognized messages. It may be a partitioning problem. dmesg will show what the USB is trying to do and what it finds (and probably why it won't mount)
First, Thank you for your reply.I did what your advised and here is the results: I will wait for your help,Thanks.
10ms
[ 18.281250] hub 1-0:1.0: 200mA bus power budget for each child
[ 18.281250] hub 1-0:1.0: local power source is good
[ 18.281250] hub 1-0:1.0: enabling power on all ports
[ 18.281250] drivers/usb/musb/tusb6010.c musb_platform_enable: dma not reactivated
[ 18.398437] drivers/usb/core/inode.c: creating file '001'
[ 18.398437] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 19.179687] EAC mode: play disabled, rec disabled
[ 20.398437] hub 1-0:1.0: hub_suspend
[ 20.398437] usb usb1: usb auto-suspend
[ 24.835937] EAC mode: play enabled, rec enabled
[ 32.437500] EAC mode: play disabled, rec disabled
[ 36.859375] cx3110x: loading 3826.arm firmware.
[ 37.101562] (c)opyright 2004 Conexant
[ 37.101562]
[ 37.101562] build info: PRISM SoftMAC
[ 37.101562] creator: [kvalo]
[ 37.101562] date: [07/10/05-11:45]
[ 37.101562]
[ 37.109375] cx3110x: MAC address 00:19:4f:d5:ac:3d.
[ 37.117187] cx3110x: libumac version 2.12.0.0.a.9.15-5
[ 37.117187] cx3110x: lmac version 2.13.0.0.a.22.8
[ 37.117187] cx3110x: PSM disabled.
[ 37.781250] menelaus 1-0072: Setting voltage 'VMMC' to 3000 mV (reg 0x0a, val 0xb8)
[ 38.828125] cx3110x: scanned 11 channels.
[ 40.546875] cx3110x: scanned 11 channels.
[ 42.078125] Adding 98296k swap on /media/mmc2/.swap. Priority:-1 extents:1 across:98296k
[ 43.062500] cx3110x: associated to 00:1b:2b:69:0b:00 (bcn 100 msec, DTIM 2).
[ 43.351562] cx3110x: deauthenticated from 00:1b:2b:69:0b:00.
[ 43.351562] cx3110x: active scanning on 'GUVEN-INTERNET'.
[ 43.765625] menelaus 1-0072: Setting voltage 'VDCDC3' to 2800 mV (reg 0x07, val 0x29)
[ 45.062500] cx3110x: scanned 11 channels.
[ 45.484375] cx3110x: associated to 00:1b:2b:69:0b:00 (bcn 100 msec, DTIM 2).
[ 46.382812] cx3110x: PSM dynamic with 200 ms CAM timeout.
[ 47.085937] menelaus 1-0072: Setting voltage 'VMMC' to 3000 mV (reg 0x0a, val 0xb8)
[ 50.039062] JFFS2 warning: (1221) jffs2_sum_write_sumnode: Not enough space for summary, padsize = -453
[ 50.554687] JFFS2 warning: (1221) jffs2_sum_write_sumnode: Not enough space for summary, padsize = -642
[ 52.242187] JFFS2 warning: (1221) jffs2_sum_write_sumnode: Not enough space for summary, padsize = -624
[ 52.734375] JFFS2 warning: (1221) jffs2_sum_write_sumnode: Not enough space for summary, padsize = -426
[ 53.125000] EAC mode: play enabled, rec enabled
[ 54.171875] menelaus 1-0072: Setting voltage 'VDCDC3' to 2800 mV (reg 0x07, val 0x29)
[ 59.750000] tusb_source_power 629: VBUS a_wait_vrise, devctl 81 otg 184 conf c0010001 prcm 00a80500
[ 61.804687] EAC mode: play disabled, rec disabled
[ 80.625000] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 80.625000] hub 1-0:1.0: state 8 ports 1 chg 0000 evt 0000
[ 80.625000] usb usb1: usb auto-resume
[ 80.625000] usb usb1: finish resume
[ 80.625000] hub 1-0:1.0: hub_resume
[ 80.648437] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 80.804687] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 80.914062] DSP Pausing failed, skipping OP change!
[ 80.929687] usb 1-1: new high speed USB device using musb_hdrc and address 2
[ 81.062500] usb 1-1: default language 0x0409
[ 81.062500] usb 1-1: new device strings: Mfr=0, Product=1, SerialNumber=0
[ 81.062500] usb 1-1: Product: USB2.0 Hub
[ 81.062500] usb 1-1: hub v05e3 p0608 is not supported[ 81.062500] usb 1-1: uevent
[ 81.062500] usb 1-1: usb_probe_device
[ 81.062500] usb 1-1: configuration #1 chosen from 1 choice
[ 81.070312] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 81.070312] usb 1-1:1.0: uevent
[ 81.070312] hub 1-1:1.0: usb_probe_interface
[ 81.070312] hub 1-1:1.0: usb_probe_interface - got id[ 81.070312] hub 1-1:1.0: USB hub found
[ 81.070312] hub 1-1:1.0: 4 ports detected
[ 81.070312] hub 1-1:1.0: standalone hub
[ 81.070312] hub 1-1:1.0: ganged power switching
[ 81.070312] hub 1-1:1.0: global over-current protection
[ 81.070312] hub 1-1:1.0: Single TT
[ 81.070312] hub 1-1:1.0: TT requires at most 32 FS bit times (2664 ns)
[ 81.070312] hub 1-1:1.0: Port indicators are supported
[ 81.070312] hub 1-1:1.0: power on to power good time: 100ms
[ 81.070312] hub 1-1:1.0: local power source is good
[ 81.070312] hub 1-1:1.0: no over-current condition exists
[ 81.070312] hub 1-1:1.0: enabling power on all ports
[ 81.179687] drivers/usb/core/inode.c: creating file '002'
[ 81.179687] hub 1-0:1.0: 100mA power budget left
[ 81.179687] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 81.179687] hub 1-0:1.0: port 1 enable change, status 00000503
[ 81.179687] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000
[ 83.179687] hub 1-1:1.0: hub_suspend
[ 83.179687] usb 1-1: usb auto-suspend
[ 85.203125] hub 1-0:1.0: hub_suspend
[ 85.203125] usb usb1: usb auto-suspend
[ 90.539062] hub 1-0:1.0: state 8 ports 1 chg 0000 evt 0000
[ 90.539062] usb usb1: usb auto-resume
[ 90.539062] usb usb1: finish resume
[ 90.539062] hub 1-0:1.0: hub_resume
[ 90.562500] usb 1-1: usb wakeup-resume
[ 90.585937] usb 1-1: finish resume
[ 90.585937] hub 1-1:1.0: hub_resume
[ 90.585937] hub 1-0:1.0: resume on port 1, status 0
[ 90.585937] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 90.585937] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000
[ 90.585937] hub 1-1:1.0: port 4, status 0101, change 0001, 12 Mb/s
[ 90.742187] hub 1-1:1.0: debounce: port 4: total 100ms stable 100ms status 0x101
[ 90.828125] usb 1-1.4: new high speed USB device using musb_hdrc and address 3
[ 91.828125] usb 1-1.4: khubd timed out on ep0in len=18/64
[ 91.828125] musb_h_ep0_irq 1100: no URB for end 0
[ 96.687500] EAC mode: play enabled, rec enabled
[ 96.937500] usb 1-1.4: khubd timed out on ep0in len=18/18
[ 96.937500] usb 1-1.4: device descriptor read/all, error -110
[ 97.023437] usb 1-1.4: new high speed USB device using musb_hdrc and address 4
[ 98.023437] usb 1-1.4: khubd timed out on ep0in len=18/64
[ 98.023437] hub 1-1:1.0: cannot reset port 4 (err = -71)
[ 98.023437] hub 1-1:1.0: port 4 not enabled, trying reset again...
[ 100.296875] EAC mode: play disabled, rec disabled
[ 103.320312] usb 1-1.4: khubd timed out on ep0in len=18/18
[ 103.320312] usb 1-1.4: device descriptor read/all, error -110
[ 103.320312] musb_h_ep0_irq 1100: no URB for end 0
[ 103.406250] usb 1-1.4: new high speed USB device using musb_hdrc and address 5
[ 104.882812] EAC mode: play enabled, rec enabled
[ 108.429687] usb 1-1.4: khubd timed out on ep0in len=8/8
[ 108.429687] usb 1-1.4: device descriptor read/8, error -110
[ 110.507812] EAC mode: play disabled, rec disabled
[ 111.757812] EAC mode: play enabled, rec enabled
[ 113.562500] usb 1-1.4: khubd timed out on ep0in len=8/8
[ 113.562500] usb 1-1.4: device descriptor read/8, error -110
[ 113.671875] hub 1-1:1.0: cannot disable port 4 (err = -71)
[ 113.757812] usb 1-1.4: new high speed USB device using musb_hdrc and address 6
[ 118.781250] usb 1-1.4: khubd timed out on ep0in len=8/8
[ 118.781250] usb 1-1.4: device descriptor read/8, error -110
[ 118.914062] EAC mode: play disabled, rec disabled
[ 119.460937] EAC mode: play enabled, rec enabled
[ 123.914062] usb 1-1.4: khubd timed out on ep0in len=8/8
[ 123.914062] usb 1-1.4: device descriptor read/8, error -110
[ 124.023437] hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0010
[ 126.023437] hub 1-1:1.0: hub_suspend
[ 126.023437] usb 1-1: usb auto-suspend
[ 126.828125] EAC mode: play disabled, rec disabled
[ 128.046875] hub 1-0:1.0: hub_suspend
[ 128.046875] usb usb1: usb auto-suspend
[ 130.007812] EAC mode: play enabled, rec enabled
[ 136.250000] EAC mode: play disabled, rec disabled
[ 137.250000] EAC mode: play enabled, rec enabled
~ $ dmesg
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#373
Can you try the drive without the hub? Is bigboy the brand name?

Can you plug it into a Linux system and get the USB ID information?

(I noticed there are a few extra USB mass storage drivers which aren't normally necessary, but this could be one of those cases).
 
Posts: 37 | Thanked: 0 times | Joined on Feb 2008
#374
@tz1,
I already tried without hub and nothings happened. I don't have linux on my pc but may be I can try with the bootable linux cd version. After this How can I download these extra usb mass storage drivers? Yes, Bigboy is the brand name. By the way, I gave the digitus hub back to the store and I bought Sandisk Cruzer Micro 2gb flash memory. As I guess it worked very good without hub.
Thanks
 
speedmartini's Avatar
Posts: 23 | Thanked: 6 times | Joined on Feb 2008
#375
Everything works with a powered hub now. Just an update on my previous post where I was having trouble getting the N800 to recognize a powered external HDD and Flip video device. Got an i-rocks 4100 hub from newegg for 10.99 US shipped, and everything now is recognized just fine using the SW host mode switching. Can't play movies directly from the HDD on the go as I need to plug in, but easy enough to use a 2gb flash drive as a go-between.
 
Posts: 118 | Thanked: 18 times | Joined on Dec 2007 @ Mississauga, ON Canada
#376
I just came accross a USB IRDA adapter. Has anyone had any luck with these?

This is what I get when I plug it in:

[ 5364.335937] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5364.546875] hub 1-0:1.0: port_wait_reset: err = -22
[ 5364.546875] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5364.546875] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5364.742187] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5364.757812] hub 1-0:1.0: port_wait_reset: err = -22
[ 5364.757812] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5364.968750] hub 1-0:1.0: port_wait_reset: err = -22
[ 5364.968750] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5364.968750] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 5364.968750] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 5364.968750] hub 1-0:1.0: reset change on port 1
[ 5364.968750] hub 1-0:1.0: port 1, status 0101, change 0013, 12 Mb/s
[ 5365.125000] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 5365.179687] EAC mode: play disabled, rec disabled
[ 5365.187500] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00120103
[ 5365.250000] usb 1-1: new full speed USB device using musb_hdrc and address 18
[ 5365.351562] EAC mode: play enabled, rec enabled
[ 5365.382812] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5366.250000] usb 1-1: khubd timed out on ep0in len=0/64
[ 5367.250000] usb 1-1: khubd timed out on ep0in len=0/64
[ 5367.851562] EAC mode: play disabled, rec disabled
[ 5368.250000] usb 1-1: khubd timed out on ep0in len=0/64
[ 5368.359375] usb 1-1: device descriptor read/64, error -110
[ 5372.375000] EAC mode: play enabled, rec enabled
[ 5373.468750] usb 1-1: khubd timed out on ep0in len=0/64
[ 5378.468750] usb 1-1: khubd timed out on ep0in len=0/64
[ 5383.468750] usb 1-1: khubd timed out on ep0in len=0/64
[ 5383.578125] usb 1-1: device descriptor read/64, error -110
[ 5383.750000] hub 1-0:1.0: port_wait_reset: err = -22
[ 5383.750000] musb_h_ep0_irq 1100: no URB for end 0
[ 5383.750000] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5383.960937] hub 1-0:1.0: port_wait_reset: err = -22
[ 5383.960937] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5383.960937] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5384.156250] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5384.171875] hub 1-0:1.0: port_wait_reset: err = -22
[ 5384.171875] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5384.382812] hub 1-0:1.0: port_wait_reset: err = -22
[ 5384.382812] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5384.382812] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5384.578125] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5384.593750] hub 1-0:1.0: port_wait_reset: err = -22
[ 5384.593750] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5384.593750] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 5384.656250] hub 1-0:1.0: port_wait_reset: err = -22
[ 5384.656250] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5384.656250] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5384.851562] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5384.867187] hub 1-0:1.0: port_wait_reset: err = -22
[ 5384.867187] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.078125] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.078125] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5385.078125] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.273437] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5385.289062] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.289062] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.500000] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.500000] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.500000] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 5385.562500] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.562500] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5385.562500] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.757812] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5385.773437] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.773437] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5385.984375] hub 1-0:1.0: port_wait_reset: err = -22
[ 5385.984375] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5386.015625] EAC mode: play disabled, rec disabled
[ 5386.195312] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130103
[ 5386.195312] hub 1-0:1.0: port_wait_reset: err = -22
[ 5386.195312] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5386.390625] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5386.406250] hub 1-0:1.0: port_wait_reset: err = -22
[ 5386.406250] hub 1-0:1.0: port 1 not enabled, trying reset again...
[ 5386.406250] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[ 5386.406250] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 5386.406250] hub 1-0:1.0: reset change on port 1
[ 5386.406250] hub 1-0:1.0: port 1, status 0101, change 0013, 12 Mb/s
[ 5386.562500] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 5386.687500] usb 1-1: new full speed USB device using musb_hdrc and address 22
[ 5386.820312] usb 1-1: ep0 maxpacket = 8
[ 5386.820312] usb 1-1: new device strings: Mfr=0, Product=0, SerialNumber=0
[ 5386.820312] usb 1-1: hub v0e55 p110a is not supported[ 5386.820312] usb 1-1: uevent
[ 5386.820312] usb 1-1: usb_probe_device
[ 5386.820312] usb 1-1: rejected 1 configuration due to insufficient available bus power
[ 5386.820312] usb 1-1: no configuration chosen from 1 choice
[ 5386.820312] drivers/usb/core/inode.c: creating file '022'
[ 5386.820312] hub 1-0:1.0: 192mA power budget left
[ 5386.820312] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 5386.820312] hub 1-0:1.0: port 1 enable change, status 00000103
[ 5391.679687] EAC mode: play enabled, rec enabled
[ 5414.507812] EAC mode: play disabled, rec disabled
[ 5416.281250] EAC mode: play enabled, rec enabled
[ 5418.882812] EAC mode: play disabled, rec disabled
[ 5423.843750] EAC mode: play enabled, rec enabled
[ 5424.781250] tusb_source_power 629: VBUS b_idle, devctl 98 otg 179 conf c0000003 prcm 00a80500
[ 5425.023437] tusb_otg_ints 743: Forcing disconnect (no interrupt)
[ 5427.039062] EAC mode: play disabled, rec disabled
[ 5429.882812] EAC mode: play enabled, rec enabled
[ 5438.437500] tusb_source_power 629: VBUS a_wait_vrise, devctl 81 otg 184 conf c0010001 prcm 00a80500
[ 5438.609375] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5438.609375] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 5438.609375] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 5438.609375] usb 1-1: USB disconnect, address 22
[ 5438.609375] usb 1-1: unregistering device
[ 5438.609375] usb 1-1: usb_disable_device nuking all URBs
[ 5438.617187] usbdev1.22_ep00: ep_device_release called for usbdev1.22_ep00
[ 5438.617187] usb 1-1: uevent
[ 5438.773437] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 5438.835937] musb_stage0_irq 570: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00120103
[ 5438.898437] usb 1-1: new full speed USB device using musb_hdrc and address 23
[ 5439.031250] musb_stage0_irq 646: CONNECT (a_host) devctl 5d
[ 5439.898437] usb 1-1: khubd timed out on ep0in len=0/64
[ 5440.742187] EAC mode: play disabled, rec disabled
[ 5440.898437] usb 1-1: khubd timed out on ep0in len=0/64
[ 5441.898437] usb 1-1: khubd timed out on ep0in len=0/64
[ 5442.007812] usb 1-1: device descriptor read/64, error -110
[ 5445.109375] EAC mode: play enabled, rec enabled
[ 5447.117187] usb 1-1: khubd timed out on ep0in len=0/64
 
Posts: 11 | Thanked: 3 times | Joined on Jan 2008
#377
News to all that care ( and even those who dont ) I have the 4port power-injected hub all done. working and happy. As I am moving 87.12 miles away the next 2 weeks of my life are going to be booked. But then I will make another more streamlined version (this one has bits of melted plastic and just look like *** But it works.) so Along with that I will do step by step photos along with a cost sheet. And then I can either build you one (5 bucks over cost +s/h cuz face it it is a pain in the rear to make) or you can build your own, I am pretty happy with mine Cant wait to try it out on some really fun stuff!!! woooo! lata. Feel free to E-mail me if you find you can not wait 2 weeks for this...
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#378
can you post photos of the current one?
 
Posts: 234 | Thanked: 40 times | Joined on Nov 2007 @ Cincinnati, Ohio USA
#379
I'm going to update the wiki due to an error in mara's code that qwerty12 found. I think this is as easy as unziping and moving files around. See if you have any comments to add. I also created icons to reboot and sfdisk the SD cards, I'll add those to a future wiki on how to create application menu items.

To Install vi (or other editor)
1.a. If you have the right repository (anyone know which one?), a vi editor shows up as in Application manager - Tools -vim version 70 5.79 MB
1.b. If not, try http://www.cs.cornell.edu/zlt/maemo/vim_6.4-1_arm.deb (wouldn't install for me after uninstalling vim)

Before we begin, you must have vi [link] installed and be able to gain root [already covered above]

1. Launch x-term
2. vi /home/user/MyDocs/Otg.sh
2.a. press i to edit
2.b. paste code
Code:
#!/bin/sh
# usb otg mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
# if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo otg > /sys/devices/platform/musb_hdrc/mode
2.c. press Esc (hardware key below d-pad, or on vi screen)
2.d. save by entering :w (: is next to capital L in shifted menu)
2.e. exit by entering :q
3. chmod +x Otg.sh

repeat for Host.sh with this code:
Code:
#!/bin/sh
# usb host mode script
# use gainroot to become root and relaunch itself
if [ `id -u` != 0 ] ; then
#if not already root, call itself as root
sudo gainroot <<EOF
$0 $*
EOF
exit
fi
echo host > /sys/devices/platform/musb_hdrc/mode
From this point you can use Status Bar mentioned below, personal toolbar and/or continue to make an Icon.

1. Launch x-term
2. sudo gainroot
3. vi /usr/share/applications/hildon/otg.desktop
3.a. press i to edit and paste the following code
Code:
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Otg
Type=Application
Comment=USB On the go mode
Exec=/home/user/MyDocs/Otg.sh
X-Osso-Type=application/x-executable
3.c. press Esc (hardware key below d-pad, or on vi screen)
3.d. save by entering :w (: is next to capital L in shifted menu)
3.e. exit by entering :q

again, repeat for host.desktop
Code:
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=USB Host
Type=Application
Comment=USB host mode
Exec=/home/user/MyDocs/Host.sh
X-Osso-Type=application/x-executable
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#380
The tablets start with vi. You can install vim, but it's not needed or helpful for this.

However, if the goal is just to paste text into files, cat is even easier:
  • Code:
    cat >targetfile
  • Paste stuff into xterm.
  • Tap Ctrl.
  • Enter 'd' in the editbox and click OK. (Or just tap d on the keyboard, if you're using any xterm build other than stock Chinook...)

Or, if control chars are considered a problem, use a here file:
  • Code:
    cat <<E.O.F >targetfile
  • Paste stuff into xterm.
  • Type E.O.F<enter> on the last line, by itself.
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:52.