Jump to content

Step by step guide to USB Host


Recommended Posts

Posted (edited)
I like connectbot but any termnal will do. I havent installed the host mode to test, but if someone wants to try to script this then fair enough. I was really just pointing people in the general diretion

right just tried it, and it will not unmount says not found.

right i tried

umount /mnt/usb/system_usb = failed

umount /usb/system_usb = failed

Edited by r8zer
Guest emergant
Posted
right just tried it, and it will not unmount says not found.

right i tried

umount /mnt/usb/system_usb = failed

umount /usb/system_usb = failed

Did you become root by enterring

su

Into the terminal first?

Posted
Did you become root by enterring

su

Into the terminal first?

yes, i tried with and without SU

and doent not wanted to unmount just keeps saying failed.

Guest emergant
Posted
yes, i tried with and without SU

and doent not wanted to unmount just keeps saying failed.

Odd. I wonder if dmesg shows anything useful? Do you have any applications running which may block the umount. Perhaps a sync would help prior to umount? If you cant unmount it, Id power down before removing the drive.

Posted
Odd. I wonder if dmesg shows anything useful? Do you have any applications running which may block the umount. Perhaps a sync would help prior to umount? If you cant unmount it, Id power down before removing the drive.

you cannot sync with pc if thats what you mean as it will not work in host mode, and i have nothing blocking the unmount.

Posted (edited)
you cannot sync with pc if thats what you mean as it will not work in host mode, and i have nothing blocking the unmount.

in host mode holdiing the home key brings up the most recent list.

weird looks like it only does that if something is not responding.

Edited by r8zer
Guest emergant
Posted
you cannot sync with pc if thats what you mean as it will not work in host mode, and i have nothing blocking the unmount.

No sync is a shell command but I doubt it will help. Ive just tried to umount my sdcard and that failed too which is odd. My only other suggestion is to shut down before pulling the card

Posted
No sync is a shell command but I doubt it will help. Ive just tried to umount my sdcard and that failed too which is odd. My only other suggestion is to shut down before pulling the card

yer, thats what i was thinking oh well, something will come up.

Posted (edited)

Also when in software power down when USB Key it powers off then comes back with a dim light very odd, suggest doing a hardware long press shutdown.

Edited by remlap
Guest dr_nick
Posted

Finally got this bigger to work!

Typing this from saitek. Eclipse (backlit) keyboard

my only advice would be that even if get to

1200KB/s (0 bytes in 787448.000s)

and you think nothing has happened. Carry on - it probably worked!

(I was hung at this point for ages, reinstalling the drivers over and over cos i didn't think it had worked - but it had!)

Persevere!

Now on to the testing... :)

dr_nick

Guest What If
Posted
I know exactly how you feel, however . . . . . . I got the same "0 bytes in 787448.000s", but then carried on with the second command line and it's all working. All steps after worked like a dream.

Don't give up, I persevered and the people here do help.

Thanks Steve and to everyone else, I was getting to hung up on the 0 bytes thinking it hadn't worked when in fact it had so alright here now.

Tested a Freecom usb stick which worked fine.

Tested a iomega 250gig 2.5in external that works when the vega is plugged into power but not when it is just running from the battery.

Posted (edited)

Hey,

pretty awesome stuff, however i can't get it to work, I get a message telling me that AdbWinApi.dll is missing from the computer.

Edited by Drizz
Posted (edited)

OK Update and more info.

I looked in the r5 folder and found AdbWinApi.dll and copied that over to the c:\android folder.

Did the whole cd c:\android and dir thing. Listed the adb.exe and flash_image as well as the AdbWinApi.dll.

adb devices = "List of Devices attached" (is it supposed to list anything?)

I then started step 5.

and this is where I hit a problem, the "adb push flash_image /data/local/" cmd returns "error: device not found"

Edited by Drizz
Guest trevor432990
Posted (edited)
Hey,

pretty awesome stuff, however i can't get it to work, I get a message telling me that AdbWinApi.dll is missing from the computer.

Had same problem you need to copy that .DLL file to the same folder as your ADB program and retry

Oops sorry just saw you had got over that one. :)

You need to have Vega connected by USB to PC with debug set then a number should appear in your list devices response..... oh and with power lead connected to Vega

Edited by trevor432990
Guest bazzlad
Posted

Congrats everyone on getting it working - I've edited the main post to include the dll file too.

Posted

Still not working, I can only think I'm missing something or Win 7 is blocking the vega from being visible.

Heres how far I get:

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:\Users\Mark>cd c:\android


c:\android>dir

 Volume in drive C has no label.

 Volume Serial Number is F893-E14C


 Directory of c:\android


19/12/2010  00:09	<DIR>		  .

19/12/2010  00:09	<DIR>		  ..

15/12/2010  16:05		   577,335 adb.exe

15/12/2010  16:05			96,256 AdbWinApi.dll

18/12/2010  23:54		   787,448 flash_image

			   3 File(s)	  1,461,039 bytes

			   2 Dir(s)  188,427,034,624 bytes free


c:\android>adb devices

List of devices attached



c:\android>

Guest Cwmdu86
Posted (edited)

Tried this today and didn't work.

Selected the USB Host GScript and when rebooted the only thing I had on the screen was

Starting fastboot USB download protocol. and nothing else.

Plugged in USB to PC (XP) and it recognized the Vega as a device but couldn't do anything.

Managed to find some information about fastboot Here and here

Extracted the contents of the 1.06.5 image to a folder (run the exe without the vega plugged in and it will show you the path where the contents of the exe file were extracted to. e.g. c:\docume~1\Mark\locals~1\Temp)

Then managed to restore the boot image from the extracted exe and reboot using command below

fastboot flash boot boot.img

fastboot reboot

Haven't lost any applications or settings as far as I can tell.

I may/may not try running the Gscript again later after I've backed up all apps

(I have R5 custom ROM with performance pack and Clockwork mod)

UPDATE

tried running the USB Host GScript again and noticed there was an error I didn't notice last time

stderr: mtd: not writing bad block at 0x00600000

flashing boot from /mnt/sdcard/USB/host.img

error writing boot

so just ran the USB Slave script, which runs with no errors, rebooted and all OK.

Will need to run through the steps again later making sure I don't miss any.

Edited by Cwmdu86
Guest Pantaloonie
Posted
Whats usb host?

Read step 9 in the first post, and watch the video.

Guest princeotter
Posted
Read step 9 in the first post, and watch the video.

Help. Follow the guide. Ran Host script from Gscript. Restarted Vega. And nothing....it won't reboot. :) I have tried the steps in the Bricked Vega thread but no joy. Any suggestions pleeeeaaaase.

Guest trevor432990
Posted

Drizz from the readout you published it looks like your Vega is not connecting to the PC correctly. Can you confirm that you have the Vega turned on, USB debugging switched on at the Vega, and the USB and power cable both connected? If so can you go to your PC Windows control panel and check SYSTEM>HARDWARE>DEVICE and tell us what it thinks your Vega is or better still do a CTRL & Prt.Screen and paste the screenshot into you reply posting. We will get it sorted in the end I'm sure. :)

Guest trevor432990
Posted
Help. Follow the guide. Ran Host script from Gscript. Restarted Vega. And nothing....it won't reboot. :) I have tried the steps in the Bricked Vega thread but no joy. Any suggestions pleeeeaaaase.

It's better if you start a new topic for this mate else it'll get mixed up with everything else here. Cheers

Posted

OK here's a screen grab. The Vega appears in devices and printers as nVidia Harmony and in device manager as Android phone and nVidia Tegra 2 USB device.

vega_screen_grab.jpg

Guest warriorscot
Posted

Should also appear as a USB device that is where some people trip up. Easiest way to find it is to disconnect and reconnect the vega.

Also in an unrelated note how many programs can you have pinned to a taskbar before it becomes silly.

Posted

stuck on stage 7

open up gscript but nothing happes - just a blank screen

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.