I have done following steps to make the thing working for us.
You have to use Gparted to format the SD card and set the same partition table to GPT.
Now create 4GB ext2 partition and create EFI directory in root of Linux partition and you have to create boot within EFI.
After that you have copy the content of ISO to root directory of Linux Partition.
You have to mount efi.img which is located Ubuntu 10.10 ISO and copied bootx64.efi to LINUX/EFI/boot/.
You have to copied grub.cfg to LINUX/EFI/boot/
Code:
menuentry "Live USB Ubuntu 10.10"{
search --set -f /ubuntu-10.10-desktop-amd64.iso
loopback loop /ubuntu-10.10-desktop-amd64.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-10.10-desktop-amd64.iso vga=773 persistent
initrd (loop)/casper/initrd.gz
}
Now copy ubuntu-10.10-desktop-amd64.iso at the root directory of ubuntu-10.10-desktop-amd64.iso
Reboot the system and rEFIt loaded bootx64.efi from LINUX partition on SD card and Grub will be prompted on the screen.
You have to rename the stock 10.10 bootx64.efi to BOOTX64.efi.
Now add below mentioned lines into Grub
Code:
# This is the default GRUB2 configuration file, grub.cfg
# Timeout for menu
timeout=20
default=0
if it is not working then copy BOOTX64.efi from the source and relocated the same at stock BOOTX64.efi.
now done following changes into grub.cfg.
Code:
# Custom menuentry #2 added 4FEB11
menuentry "Live USB Ubuntu 10.10" {
fakebios
root=hd0,1
linux /casper/vmlinuz root=/dev/sda1 video=efifb agp=off
initrd /casper/initrd.img
}
Bookmarks