Hi,
Let me be a bit more specific, sorry for the lack of details.
I am attempting to create a bootable floppy image as a payload for coreboot /SeaBIOS. To that end, I need (1) a custom-sized floppy image to hold TinyCore and (2) a way to make it bootable.
It doesn't REALLY matter what bootloader I use, but since I started with GRUB2 based floppy images I stuck with those for the time being. I used this script / guide here:
https://magiksys.blogspot.com/2013/03/create-vfat-grub2-boot-floppy.htmland I'm testing it on qemu with the "-fda" switch. Grub was installed in the image using a VM with an old version of Ubuntu that includes Grub 1.98 (which the guide was written for, so I figure I should follow it since Grub2 keywords take different options depending on the versions).
The image is formatted as FAT(16) and Grub reports the drive as (fd0).
Interestingly, even though there is a mountable FAT partition in this image, Grub does not see it. If I "ls (fd0)", the return value is :
"Device fd0: Filesystem type fat, UUID [something]"The drive root has two directories:
-boot/grub/ (where the grub.cfg lives along with all the other Grub-related files)
-tce/boot/ (where I've put core.gz and vmlinuz from the TC image).
Grub successfully boots to my cfg file:
menuentry "Tiny Core Linux" {
set root="(fd0)"
linux /tce/boot/vmlinuz
initrd /tce/boot/core.gz
}
However, selecting this menu option fails and drops me into a Grub shell.
I'm open to moving to other bootloaders, but if possible I'd like to learn how to make this work with my current setup.
Cheers,
R