WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Make old TC CLI script work with UEFI  (Read 1224 times)

Offline TC_Noob

  • Newbie
  • *
  • Posts: 8
Make old TC CLI script work with UEFI
« on: April 18, 2020, 11:03:11 PM »
Hi,

I have an old small script made years ago, that has worked well with Legacy booting, that I'd like to make work with UEFI. The ISO is just 5 files:

/boot
core.gz
vmlinuz

/boot/isolinux
boot.cat
isolinux.bin
isolinux.cfg

Contents of isolinux.cfg:
default microcore
label microcore
   kernel /boot/vmlinuz
   initrd /boot/core.gz
   append loglevel=3

Is there some way I can use these files with a BootX64.efi file such that it would work?

Thanks.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Make old TC CLI script work with UEFI
« Reply #1 on: April 19, 2020, 08:29:58 AM »
isolinux (as the name says) is for ISO-images (CDROM) booting from BIOS (not UEFI).
syslinux is for booting from FAT, so it can (but not recomended) technically boot form ESP-partition (FAT32 type, it is a must for booting from UEFI_64, which ask for your BOOTx64.EFI)
summary to boot from UEFI firmware, with your files, you need:
-  original tinycore.iso, real burnt on CD/DVD

- or USB installed TC bootable; so tinycore.iso -> extracted as kernel (vmlinuz) + initram (core.gz) AND boot-loader grub 2.x for UEFI installed into USB. so BOOTX64.EFI is basicaly "grub.efi". And of course isolunx.cfg is useless, grub configutation is grub.conf etc.

FYI: only syslinux 6.04 can boot from UEFI, if kernel and initram are on the same ESP patition as sylinux.EFI. (no chain-loading further other EFI progam; grub.efi  can do chainloader other EFI like windows10, or it can boot TC from other ext2 partition on other disk)
« Last Edit: April 19, 2020, 08:39:53 AM by nick65go »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Make old TC CLI script work with UEFI
« Reply #2 on: April 20, 2020, 02:36:14 AM »
If you already have a TC installation running on bare metal, you should check out this tutorial.

How to make a legacy bios/uefi dual boot usb stick with syslinux

You can ignore the first partition (NTFS) as it is optional.