Author Topic: Multi-booting Ubuntu and Android 4.3  (Read 15484 times)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3473
  • Developer
    • View Profile
    • PaulsCode.Com
Multi-booting Ubuntu and Android 4.3
« on: October 19, 2013, 03:45:31 PM »
This is an overview of how to multi-boot Ubuntu and Android 4.3 on the Eee PC 1015PEM netbook.  I am mainly writing this for my own reference, since I am likely to be changing the Android installation often.

1) Download the iso from android-x86.org.  I grabbed version 4.3-20130725.

2) Burn the iso to disk or USB stick (I went with USB stick, and installed UNetbootin for the task... was having issues with Startup Disk Creator)

3) If you do not have a free partition on your computer, run gparted to resize one.  I made mine a couple GB large.  Format it as NTFS.  Take note of its designation (mine was /dev/sda4)

4) Plug in the USB stick or insert the disk, and reboot.  If using USB stick, press ESC during bootup and select the USB stick to boot from it.  If using CD, press F2 during bootup and verify the CD drive is listed before your hard drive.

5) Choose to install Android.  Select the device (e.g. sda4).  When asked if you wish to format it, select No.  When asked if you want to install GRUB, choose yes.  If you want a virtual SD card, choose to create one when asked (or you can alternately use a physical SD card if you have one).

6) When done, remove the USB stick or CD and reboot to verify Android is working.

7) Reboot, and in the GRUB menu, press 'e' to see the GRUB commands.  Write them down carefully.

8) Insert your Ubuntu Live CD or USB stick and reboot.  Select "Try Ubuntu without installing".

9) Open terminal, and enter:
Code: [Select]
    cd /
    sudo mount dev/sda1 /mnt
    sudo grub-install --recheck --root-directory=/mnt /dev/sda
(replace sda1 and sda with the device designation for where your main Ubuntu partition resides and which device you booting from -- in my case, Ubuntu is on /dev/sda1, and I boot from disk /dev/sda)

10) Reboot your computer, and go into Ubuntu.  Edit /etc/grub.d/40_custom and add an entry like:
Code: [Select]
menuentry "Android 4.3" {
    set root='(hd0,4)'
    linux /android-4.3-test/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 video=-16 SRC=/android-4.3-test SDCARD=/data/sdcard.img
    initrd /android-4.3-test/initrd.img
}
Be sure to use the correct device identifier for the 'set root=' line to point to the partition where Android is installed.  In my case, /dev/sda4 translates to '(hd0,4)'.  The other two lines are the commands you wrote down in step 7.  Only change is to use the command "linux" instead of "kernel" for the first one (difference between GRUB1 vs GRUB2).

11) From terminal, run:
Code: [Select]
sudo update-grub
12) Reboot and verify you can boot into Android.

One more note, if you get stuck with "Detecting Android-x86 .........." continuously printing dots, check the 'SRC=' parameter in the linux command from step 10 (I had a small typo in mine that took forever to figure out it was the problem)
« Last Edit: October 19, 2013, 03:47:49 PM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Developer
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Multi-booting Ubuntu and Android 4.3
« Reply #1 on: October 19, 2013, 06:09:50 PM »
Awesome, I may try this.  Just curious, why did you use NTFS for Android?  I would have expected ext3 or ext4.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3473
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Multi-booting Ubuntu and Android 4.3
« Reply #2 on: October 19, 2013, 06:31:40 PM »
I wanted to be able to share files across the other OS's (I'm multi-booting Ubuntu, Win 7 and Snow Leopard on this netbook).  If you don't need that, I think ext3 is normally used.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Developer
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Multi-booting Ubuntu and Android 4.3
« Reply #3 on: October 19, 2013, 06:34:08 PM »
Cool.  That's a good idea.  I didn't realize mac sold just its operating system until I just googled it.  Might have to try that...
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3473
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Multi-booting Ubuntu and Android 4.3
« Reply #4 on: October 19, 2013, 06:54:13 PM »
Mac is not easy (or intended) to get set up on non-Apple hardware.  It's actually a very fun project to try and set up these so-called "Hackentosh" partitions.  I have one on my netbook, main PC, and several in Virtual Box.  I started with Virtual Box just so I could test my web pages on Safari, but had so much fun with it I kept on doing them :)
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline archangeles

  • byte
  • *
  • Posts: 11
    • View Profile
Re: Multi-booting Ubuntu and Android 4.3
« Reply #5 on: October 25, 2013, 09:57:35 AM »
Would there be any wisdom you could share for a simple man wanting to dualboot android and Ubuntu touch on a metro PCs gs3, or a note 2?

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3473
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Multi-booting Ubuntu and Android 4.3
« Reply #6 on: October 25, 2013, 12:23:25 PM »
I don't have any experience dual-booting on an actual phone/ tablet, sorry.  I've seen videos of a hack to dual-boot Android and Ubuntu on the Nexus 7, but nothing for the GS3 or Note2.  You probably will be able to get better information on the xda-developers forum.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline av777

  • bit
  • Posts: 6
    • View Profile
Re: Multi-booting Ubuntu and Android 4.3
« Reply #7 on: April 03, 2016, 11:56:41 PM »
Is that eee pc using an atom set to sixty four bit? Have You looked into the source code for android-x86?