I found a way to add android to the grub2 menu from debian on my eeepc laptop and on my debian/ubuntu workstations
Thanks for this page http://www.ceh-photo.de/blog/?p=357 I have downloaded the latest nightly for
eeepc http://android-x86.moonman.dk/Thanks for this page http://www.ceh-photo.de/blog/?p=357 I have downloaded the latest nightly for
downloaded and created a usb disk
http://android-x86.moonman.dk/files/eeepc/eeepc-20110505_usb.img
dd if=eeepc-20110505_usb.img of=/dev/sdb
or if you use generic
dd if=eeepc-20110505_usb.img of=/dev/sdb
booted installed (without the grub installation option)
added android to the grub2 menu (debian sid, it should work on natty
too) and all worked without issues after that
for me the system dir was /android-2011-02-xx and the
androidboot_hardware=eeepc
or if you run a genric pc
androidboot_hardware=generic_x86
please verify your dirs and mount your android partition to check the
dir name before running update-grub
mount /dev/sdb4 /mnt ls /mnt/ android-2011-02-20 lost+foundHere is the full custom grub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
#menuentry "Haiku" { | |
# set root=(hd0,3) | |
# chainloader +1 | |
#} | |
menuentry "Android-x86 2.2 (MDPI)" { | |
set root=(hd0,4) | |
linux /android-2011-02-20/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-02-20 DATA= DPI=160 | |
initrd /android-2011-02-20/initrd.img | |
} | |
menuentry "Android-x86 2.2 (HDPI)" { | |
set root=(hd0,4) | |
linux /android-2011-02-20/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-02-20 DATA= DPI=240 | |
initrd /android-2011-02-20/initrd.img | |
} | |
menuentry "Android-x86 2.2 (VESA)" { | |
set root=(hd0,4) | |
linux /android-2011-02-20/kernel quiet root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-2011-02-20 DATA= vga=788 | |
initrd /android-2011-02-20/initrd.img | |
} | |
menuentry "Android-x86 2.2 (Debug mode)" { | |
set root=(hd0,4) | |
linux /android-2011-02-20/kernel root=/dev/ram0 androidboot_hardware=generic_x86 acpi_sleep=s3_bios,s3_mode DEBUG=1 vga=788 SRC=/android-2011-02-20 DATA= | |
initrd /android-2011-02-20/initrd.img | |
} |
And don't forget to update the grub2 config
update-grub
ps: now i should create a fake sdcard so applications can be installed
3 comments:
Is the Grub entries in case of iso files same replacing the *.img with *.iso or is it different.
GREAT! Thank you for sorting out the grub2 config, just changed the dirs/partitions as you suggested and it worked fine on my HP Mini, alongside Ubuntu and Windows 7. Thanks!
take note that androidboot_hardware should be changed to androidboot.hardware
Post a Comment