Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: batya on March 05, 2015, 06:20:57 AM

Title: Boot from Syslinux in EFI mode
Post by: batya on March 05, 2015, 06:20:57 AM
Hi, I'm new to Tiny Core, I'm trying to install it locally on my desktop since I have a spare partition there.

On my system I first boot Gummiboot loader, then I boot Syslinux from Gummiboot and then trying to boot Tiny Core.
Gummiboot can't boot Tiny Core directly since vmlinuz there is not an EFI binary (CONFIG_EFI_STUB is not set in kernel config).

syslinux.cfg which sits on my ESP partition looks simple:
DEFAULT tinycore
LINUX /tinycore/vmlinuz
INITRD /tinycore/core.gz
APPEND loglevel=3 tce=sda2

vmlinuz and core.gz sit on the ESP partition.
tce directory is on next partition (sda2).

After the boot is initiated from Syslinux, I only see a flash of text probably saying "Loading vmlinuz" and "Loading core.gz" (it's too fast, I can't read).
Then my system reboots in a couple of seconds.

If I replace "LINUX /tinycore/vmlinuz" with a different kernel and remove "INITRD", that kernel boots fine.

I did not take syslinux from tinycore (there's no EFI version) but from official Syslinux builds.

Any ideas what could be wrong?
Title: Re: Boot from Syslinux in EFI mode
Post by: pq5190362 on March 05, 2015, 07:01:12 AM
I did not take syslinux from tinycore (there's no EFI version)

http://forum.tinycorelinux.net/index.php/topic,17887.msg110035.html#msg110035
Title: Re: Boot from Syslinux in EFI mode
Post by: Juanito on March 05, 2015, 07:23:45 AM
tc will uefi boot using grub2, but I never tried with syslinux.

Note that you need to check if your machine uses 32-bit or 64-bit uefi and use the appropriate version of tc - core for 32-bit and corepure64 for 64-bit.

Almost all (if not all) pc use 64-bit uefi, whereas some (older) mac use 32-bit efi and the rest use 64-bit efi.

Edit: Note also that the display will be blank if you don't load an efi-fb or the graphics-KERNEL and Xorg-7.7/Xfbdev extensions
Title: Re: Boot from Syslinux in EFI mode
Post by: curaga on March 05, 2015, 08:52:04 AM
FYI, EFI_STUB is enabled in both 5.x and 6.x kernels.
Title: Re: Boot from Syslinux in EFI mode
Post by: batya on March 06, 2015, 04:13:49 AM
Ok, I see, Gummiboot was printing the error message "Unsupported" with TC kernel, so it was because of its 32-bittness, not because of not having the stub.