Achievement Unlocked: USB Host (OTG) for Android on Nexus One Hacked

This is innovation!  USB Host or USB OTG (On-The-Go) is a way for your device to read other USB devices such as keyboards, web cams or small EXTERNAL HARD DRIVES.  Sven Killig decided to work out some driver tweaks to get this running on his Nexus One. The Nokia N8 also has USB OTG built in so it  may be able to power the external device, but any devices the Nexus One hosts must be connected to a powered USB hub first in order for them to retrieve the power needed to operate.

Now if all Android devices could do this and had better video codec support I would be even more smiley.

Check out Sven’s instructions HERE on how to do this yourself.

You will need:

  • Hardware
    • Nexus One
    • Micro USB OTG cable (e.g.)
    • USB Dual Power Cable (e.g.) to provide power to the hub chip through the uplink port, since the Nexus One doesn’t provide bus power (yet)
    • Powered USB 2.0 hub (will charge the Nexus One) (e.g.) and optionally a battery pack for mobile use (e.g.) (some power calculations)
  • Software
    • Android 2.2 Froyo (2.1 may work, too)
    • ConnectBot
    • Download binaries…
    • …or build a Nexus One kernel from source
    • Install kernel
      • # Boot from RAM (till next reset)…
        fastboot boot arch/arm/boot/zImage
      • # …or write to flash (boot.img from a nandroid backup)
        /getramdisk.py boot.img
        /mydroid/out/host/linux-x86/bin/mkbootimg --kernel arch/arm/boot/zImage --ramdisk ramdisk.img --base 0x20000000 -o boot_usb-host.img
        fastboot flash boot boot_usb-host.img
    • Start ConnectBot and connect to Local
      • su
        insmod drivers/usb/core/usbcore.ko
        insmod drivers/usb/host/ehci-hcd.ko
        insmod drivers/hid/usbhid/usbhid.ko
        insmod drivers/usb/storage/usb-storage.ko

        # Wait for usb-storage to enumerate partitions
        mount /dev/block/sda1 /sdcard/usbstick
    • To use adb over WLAN
      • adb connect IPAddress:5555

Filed Under: AndroidGoogleInnovation

Tags: , , ,

No results
DJ Brady

About the Author

DJ Brady has been in the industry for over 15 years. Due to being rather OCD about research into every nook and cranny of the latest tech, DJ is full of bizarre knowledge that may or may not be relevant to, well, anything. He has attended CES, E3 and GDC (upcoming) trade shows for years. Once upon a time he managed a local overseas importing video game shop, eventually a Gamestop, and at another time wrote for an insider trade magazine called "The VideoGame Advisor". You can contact him at Djbrady@mobilelocalsocial.com and on Twitter @ZenInsight (he comments here under this name too)
  • http://www.androidworld.nl/forum/algemene-vragen-over-android/7886-kan-ik-een-externe-harde-schijf-aansluiten-op-mijn-desire.html#post45417 Kan ik een externe harde schijf aansluiten op mijn desire

    [...] AB (kan je overigens met wat zoekwerk vast ook wel kant en klaar kopen). Mooi voorbeeldje (N1): Achievement Unlocked: USB Host (OTG) for Android on Nexus One Hacked : Mobile It's got to be perfect! HTC Hero, nu met FroydVillain 1.5.0 Met citaat [...]