Tiny Core Base > Corepure64

UEFI bootable iso?

<< < (3/7) > >>

sebus:
It has nothing to do with "can not boot normal CD"

It is rather "Would be nice to be able to boot UEFI" category.

Hope one day all legacy BIOS will be gone for good. Virtualbox does count, as it is very easy testing tool

The whole EFI bootable HDD/USB was discussed here

sebus

Juanito:
This works  :)


--- Code: ---loadfont unicode
insmod efi_gop
set gfxmode=1366x768x32
set gfxpayload=keep
set gfxterm_font=unicode
terminal_output gfxterm

search --no-floppy --fs-uuid --set=root f8422ac1-fef4-48ce-b79e-abce5a598e8a

menuentry "corepure64_tc6_iso" {
  set isofile="/tmp/CorePure64-6.0rc1.iso"
  loopback loop $isofile
  linux (loop)/boot/vmlinuz64 iso-scan/filename=$isofile quiet noswap
  initrd (loop)/boot/corepure64.gz
}
--- End code ---

sebus:
Many thanks for this

I see it being modified grub-2 config as per this:

http://forum.tinycorelinux.net/index.php/topic,13445.msg97679.html#msg97679

But I think it is to boot existing iso (CorePure64-6.0rc1.iso)  from grub2 from (USB/HD?)

Which way to create the actual BIOS/EFI boot iso? (sorry, if that is obvious to somebody, but honestly not to me)

Thanks

sebus

Juanito:
Correct, I boot corepure64 from a gpt/uefi formatted usb stick, so I just needed to add an extra menu entry to boot from the iso.

Google comes up with results for uefi boot cd/dvd, but I didn't try any yet.

Juanito:
You could try:
--- Code: ---$ tce-load -i grub-efi dosfstools

$ cd /tmp
$ cat grub.cfg
loadfont unicode
insmod efi_gop
set gfxterm_font=unicode
terminal_output gfxterm

menuentry "corepure64" {
  linux /boot/vmlinuz64 quiet
  initrd /boot/corepure64.gz
}

$ x86_64-grub-mkimage --format=x86_64-efi --output=BOOTX64.EFI --config=/tmp/grub.cfg --prefix=/EFI/BOOT part_gpt part_msdos fat ext2 hfs hfsplus iso9660 udf ufs1 ufs2 zfs chain linux boot appleldr ahci configfile normal regexp minicmd reboot halt search search_fs_file search_fs_uuid search_label gfxterm gfxmenu efi_gop efi_uga all_video loadbios gzio echo true probe loadenv bitmap_scale font cat help ls png jpeg tga test at_keyboard usb_keyboard

$ dd if=/dev/zero of=efiboot.img bs=1K count=1440
$ mkdosfs -F 12 efiboot.img
$ mkdir /tmp/image
$ sudo mount efiboot.img /tmp/image
$ sudo mkdir -p /tmp/image/EFI/BOOT
$ sudo cp BOOTX64.EFI /tmp/image/EFI/BOOT
$ sudo umount /tmp/image

[copy existing corepure64 iso files somewhere]
$ cp efiboot.img /somewhere/boot/isolinux
$ mkisofs -pad -l -r -J -V CorePure64 -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -eltorito-alt-boot -e boot/isolinux/efiboot.img -boot-hide-rr-moved -o newCorePure64.iso somewhere

--- End code ---

Note that I haven't tried this myself...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version