Running Debian and Android on the G1

tmobileg1

[Jay Freeman] has a rather exhaustive tutorial on how to set up a Debian environment on your T-Mobile G1. The first major issue with this is that getting root level access through telnetd is being patched. It certainly is a security issue that needs to be fixed, but a user shouldn’t have to root their own phone to begin with. While the G1 comes with some Linux tools, they’re limited. [Jay]‘s goal was to create a familiar Debian environment on the phone. It takes a few tricks, but if you’re familiar with the command line, you shouldn’t have any problems. Debian already has ARM EABI support, so creating a working image isn’t a problem. The image file is stored on the SD card and mounted using the loopback device. The G1’s kernel has module support turned on, so [Jay] created an ext2 and unionfs kernel modules. [Benno Leslie]‘s Android version of busybox is used to perform the actual mounting. Once mounted, you just need to chroot into the environment to start playing with native Linux apps. [Jay] takes this a step further by using unionfs to make the Android and Debian environments share the same root. This is really a great how-to and it’s nice to know that modules can be added to the kernel.

[photo: tnkgrl]

[via Hackszine]

Comments

  1. Sparragus says:

    This is awesome news! However, Google has already fixed the big that permitted this. Will this still be possible?

    http://blog.wired.com/gadgets/2008/11/google-fixes-an.html

  2. bull says:

    users should have root on device they own. ownership pwnership

  3. bountyx says:

    ran it on my g1, must say it is awesome. I have openssh, gcc, vim, and hg all installed. Im gonna see if i can get xorg to work just for kicks and giggles. If so, ill throw xfce on it.

  4. syed shams says:

    i have no words for this EXCELLENT

  5. ghostwalker says:

    Following on from this, I have created and easy installer and bootloader for getting Debian onto your phone in 5 minutes.

    You can download it at:

    http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=251

  6. jerrold says:

    help….i need help. cant get pass the first step ext2.ko

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 92,295 other followers