1. Create a script qemu-android
#!/bin/sh
qemu-kvm -soundhw es1370 -net nic -net user -cdrom \
${@:-out/target/product/eeepc/eeepc.iso}
${@:-out/target/product/eeepc/eeepc.iso}
2.1 Run the script qemu-android
qemu-android eeepc.iso
Fig. 1 Run Android-x86 without any user data partition on a virtual machine
2.2 Run the script qemu-android
qemu-img create -f qcow2 android.img 1G
qemu-android eeepc.iso -hda android.img -boot d
Fig. 2 Run Android-x86 with a user data partition on a virtual machine
1. Install to USB or HDD
a. find a linux machine with the latest grub installed
b. partition your USB drive with fdisk or gpartd and mark the partition as bootable format that partition to ext3 (recommended) or vfat.
c. mount your usb drive to /mnt
cd /mnt
grub-install --root-directory=. --no-floppy /dev/<your usb device node name>
cd /boot/grub
d. create your menu.lst based on the next section
title Run Android
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode SRC=/android
initrd /android/initrd.img
title Run Android (VESA mode)
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android
initrd /android/initrd.img
title Run Android (Debug mode)
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android DEBUG=1
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode SRC=/android
initrd /android/initrd.img
title Run Android (VESA mode)
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android
initrd /android/initrd.img
title Run Android (Debug mode)
kernel /android/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android DEBUG=1
initrd /android/initrd.img
Fig. 3 Run Android-x86 on real hardware
No comments:
Post a Comment