Friday, February 18, 2011

The power of open source i can build my own android-x86

I have a spare partition so i will build from source and install android-x86 on it just to test it how it works on a real desktop

The only problems to build on my 64bit stattion were to add
some 32bit libs and headers
sudo apt-get install ia32-libs  g++-multilib gcc-multilib 
lib32z1-dev lib32ncurses5-dev 

checked my partition with fdisk -l
sudo fdisk -l /dev/sda

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         243     1951866   82  Linux swap 
/dev/sda2            7781        9729    15655342+  83  Linux
/dev/sda3             244        3890    29294527+  83  Linux
/dev/sda4            3891        5111     9807682+  83  Linux

my android partition is sda4
sudo mkfs.ext3 /dev/sda4
sudo mount /dev/sda4 /mnt/

from
android-x86/out/target/product/generic_x86/usb_boot
i copied all the android-system folder
sudo cp -rp * /mnt/

added these lines in
/etc/grub.d/40_custom

menuentry "Android_x86" {
set root=(hd0,3)
linux /android-system/kernel root=/dev/ram0 ro  acpi_sleep=s3_bios,s3_mode SCR=/android-system
initrd /android-system/initrd.img
}

hd0,3 is first hdd (sda) and fourth partition (if you do partition numbering from 0..3)

sudo su 
cd /boot/grub
grub-mkconfig > grub.cfg

hmm grub doesn't find my kernel
i will try to dd to the usb stick

No comments: