I think it's similar to nilsonmorales' usb case. As the mbr is written to the usb/sdcard and is the device being booted from, it sees itself as the first hence set root='(hd0,1)', first drive, first partition.edoc wrote:How might this look different if one is booting from a sd card?
I really wondered how I was going to answer this question, but thankful Android is Linux at heart, it still looks basically the same, (at least to me) load the kernel with Linux, initrd.img with initrdedoc wrote:How might one write the boot code for Android?
Here's a template of what I think would work for you for the Android entry:
Code: Select all
#Android Example#
menuentry 'Android' --class andoid --class gnu-linux --class gnu --class os --group group_main {
set root='(hd0,1)'
linux androidx86/kernel
androidboot.hardware=generic_x86 SRC=/androidx86
initrd androidx86/initrd.img
}
What are you most familiar with? That's what I'd go with as you'll be doing most the hands on work, any online help will really only be us shouting directions from the distance I don't think any of them should have any trouble booting Android provided the boot parameters are correct.edoc wrote: Burg, Grub (legacy), Grub2, or grub4dos
Me personally, I have no experience with grub4dos, so I won't be much help there. There's quite a lot of information out there though so I think you're free to take your pick which way you want to go regardless of my limitations.