DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 4 of 4

Thread: Run Linux on your Droid X/2

  1. Junior Droid
    problematic's Avatar
    Member #
    174645
    Join Date
    Feb 2011
    Posts
    9
    Liked
    1 times
    Phone
    Droid 2
    #1

    Thumbs up Run Linux on your Droid X/2

    Skrulladams figured out a way to get Linux onto the Droid X, Droid 2 / Global, Droid Pro, and DEFY (Really any modern motoblur phone with a locked bootloader.) Supposedly the Atrix has it as well? Technically, according to wikipedia, motoblurexists on the CLIQ/DEXT, Backflip, Devour, Flipout, Charm, and Flipside as well. I can't tell you whether or not this method works for those phones, maybe somebody could verify. While I was researching methods to get this all to work I found different methods for the original Droid, I am assuming that the version of blur on any phone from the OG droid/milestone is different, because the installation method seems somewhat less locked-down.

    First you will need a Linux image. I suggest getting yours from Ruan over at androidclone.com
    Ubuntu Laika-Beta1.2a.rar

    The commands have to be issued from Linux or a virtual machine of Linux as far as I know. I downloaded VirtualBox and used a copy of Ubuntu 10.10 that I had laying around. You could use the image you downloaded above with VirtualBox. PuTTYcyg seems like a better alternative, but I haven't used it.

    When setting up your linux virtual machine you might want to make your username "noob" like I did, it will allow you to copy and paste my commands.

    The first thing you will need is the android sdk.
    Click here to get it
    Using and installing it is a little confusing. I just extracted it to my desktop.
    You will have to run /tools/android, I did this by dragging and dropping the icon into a terminal window and hitting enter. You have to install the platform-tools. ADB will be downloaded to the platform-tools folder inside the SDK folder.

    VirtualBox allows you to capture a USB device inside your virtual machine inside the menu. Devices -> Motorola ####

    Inside your virtual machine you will need to copy ubuntu.img from the Laika-Beta1.2a.rar you donloaded earlier to your home directory. While still in the home directory create a new folder simply called "ubuntu."

    Next, open up a terminal emulator on your phone and execute some commands:
    Code:
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    mkdir /data/local/mnt
    Back on your virtual machine in a terminal:
    Code:
    sudo losetup /dev/loop0 /home/noob/ubuntu.img
    sudo mount -t ext2 /dev/loop0 /home/noob/ubuntu
    Dirty_Jerz has an alternate method, Click here for his thread. so it is now up to you whether you'd have everything on your internal storage or SD card. My method uses the internal storage, his uses the SD card. If you'd rather use his, stop here.

    Here you will want to remove a symbolic link in /home/noob/ubuntu/usr/bin that screws this method. You can do this by:
    Code:
    sudo rm /home/noob/ubuntu/usr/bin/X11
    Then I remove security stuff:
    Code:
    sudo chmod 777 /home/noob/ubuntu
    sudo '/home/noob/Desktop/android-sdk-linux_x86/platform-tools/adb' shell
    chmod 777 /data/local/mnt
    exit
    sudo '/home/noob/Desktop/android-sdk-linux_x86/platform-tools/adb' push /home/noob/ubuntu /data/local/mnt
    This is going to take about 2 and a half hours so I suggest you find something else to do while it copies over.

    When it's all done you will need to copy a script over in order to chroot (boot from inside android) into Ubuntu.

    Download this script! (specific for this install method!)
    Username: androidclone.com
    Password: androidclone.com
    This script belongs in /system/bin so you will have to put it there. The easiest way to do that would be to copy it to your sdcard and then use your terminal emulator to move it.

    Code:
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
    cd /sdcard
    cp bootubuntu /system/bin
    cd /system/bin
    chmod 777 bootubuntu
    Once inside there are some commands that need to be run in order to get a functional UI.
    I got these from this site He seems to have a lot of extra configuration instructions which may or may not help you.

    Code:
    mount -t devpts devpts /dev/pts
    mount -t proc proc /proc
    mount -t sysfs sysfs /sys
    -Xvnc commands-
    Code:
    export DISPLAY=localhost:0.0
    Xvnc :0 -localhost -geometry 854x480 -depth 24 -deferupdates 0
    -start your gui-
    Code:
    startlxde
    I prefer xfce though, personally.

    --------problems----------

    *DRIVERS*

    Touch screen support/UI enhancements for touch screen.

    androidVNC
    Might not be an ideal solution. I still noticed what seemed to be some graphical lag. There could be a setting that can get it running better, but an app optimized for high speed localhost operation

    Chrooting a prebuild image causes all kinds of problems because the proper post-installation scripts are not run. Some programs ignore these errors, and for others they error out. I have yet to find a good solution for this but I have found hints:

    Check out this page
    Seems a little outdated, but maybe somebody will find a way to make a method like this work.

    What we really seem to need is a custom kernel/ROM/distro team that can work on these issues.

    -----other alternatives?-------
    First I tried kubuntu mobile. It was very buggy so I gave up on it.

    Ubuntu netbook edition has been slammed by some for being bloated, but it's ARM port should be lightweight. From screenshots it looks like it has a great UI. The problem is getting gnome to start, it encounters some error and doesn't load.

    fedora has a mobile edition that looked good, I think they are somehow involved with Meego which now seems doomed. I'm not sure how similar to android it is or
    Check this out

    Many of you may already know about the QEMU for android app, but we should be able to cross-compile it to use within our chroot.

    I looked into wine, it should be a dead-end since we aren't on x86 architecture and it doesn't do any emulation.

    VMware will be releasing a version for android.

    Also while playing around I thought about porting iOS on to an android phone. It should be possible.

    Pics!

  2. Senior Droid
    tdawg2008's Avatar
    Member #
    157775
    Join Date
    Jan 2011
    Posts
    109
    Phone
    Motorola Droid 1
    #2
    No chance on og Droid?

    Sent from my Droid using DroidForums App
    OG Droid
    Running Winner's Cyanogenmod 7 Nightlies with Raidzero's LV 250-1250 Kernel and Raidzero's awesome recovery
  3. Super Moderator
    furbearingmammal's Avatar
    Member #
    78594
    Join Date
    Jun 2010
    Location
    So far north in NY I smell maple syrup when the wind blows out of the west.
    Posts
    10,371
    Liked
    32 times
    Twitter
    @FurryVarmint
    Premium Member
    #3
    No supposedly about it. Atrix is locked down tighter than the X is at the moment, and the Bionic is going to be just as bad.

    Have you contacted Project Bootloader Freedom?

    Project Bootloader Freedom - Droid Forum - Verizon Droid & the Motorola Droid Forum
  4. Junior Droid
    problematic's Avatar
    Member #
    174645
    Join Date
    Feb 2011
    Posts
    9
    Liked
    1 times
    Phone
    Droid 2
    #4
    I saw guides detailing a different install method for the OG droid on google when doing research for myself. I have no idea if my method would work because I don't have and have never used the OG.

    Sorry to hear about the atrix having it worse. I figured it would be better since moto backed down on their stance around the time it was released. The XOOM has an unlockable bootloader as well. No, I'm familiar with project bootloader freedom but I haven't contacted them. I'm not sure this method would be of any use to them, but thanks for the link, because their driver research is of use to me now.

    Here's a thought though: maybe the droid x/2 bootstrap can be modified to fastboot into the linux install on internal storage?

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Linux on droid 1
    By BlackMarket in forum Droid Rooted Help
    Replies: 1
    Last Post: 10-05-2010, 02:41 AM
  2. linux on droid
    By joeybarclay in forum Android Hacks and Help
    Replies: 0
    Last Post: 07-24-2010, 07:13 PM
  3. droid and linux
    By inmate369 in forum Rescue Squad Help
    Replies: 0
    Last Post: 07-15-2010, 08:09 PM
  4. Linux on droid
    By Ack in forum Android Hacks and Help
    Replies: 14
    Last Post: 01-29-2010, 10:50 AM
  5. Linux On Droid?
    By Melon Bread in forum Android Hacks and Help
    Replies: 13
    Last Post: 01-09-2010, 05:31 PM

Search tags for this page

droid 2 linux

,
droid x2 linux
,
how to run linux on droid x
,

install linux on droid x

,

install linux on droid x2

,

install ubuntu on droid x2

,

linux droid x2

,

linux on droid x2

,

run linux on droid x

,

ubuntu on droid x2

Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+