Page 1 of 1
Grub autoboot
Posted: Mon Sep 12, 2011 5:27 am
by mohdumar
I'm using stage1 and stage2 plus my elf kernel.bin and the pad file. These combine into floppy .img and I can load it using qemu.
But i have to type on grub screen
every time. How can I avoid it?
Developing on ubuntu using fasm and tcc
Re: Grub autoboot
Posted: Mon Sep 12, 2011 5:50 am
by Combuster
Use a FAT-formatted image and install GRUB legacy on it. That way you can add a config file as well as addressing your kernel by its name and have GRUB load the right amount of sectors as an added bonus. Setting up grub in that fashion from a build script is rather tricky, especially if you're using Windows. The fastest way is to grab someone else's FAT+GRUB image, remove their kernel from it and make a backup of the result. Then the only thing at build time you need to do is duplicate the backup, use mtools to copy the config and your kernel to the formatted image, and then you can just use the image like any other.
Re: Grub autoboot
Posted: Mon Sep 12, 2011 6:43 am
by mohdumar
I found stuff about syslinux.cfg and mboot.c32 which i tried, and it booted the kernel after displaying copyrights.
Is that the solution \ alternative ?
Re: Grub autoboot
Posted: Mon Sep 12, 2011 5:18 pm
by Yargh
mohdumar wrote:I found stuff about syslinux.cfg and mboot.c32 which i tried, and it booted the kernel after displaying copyrights.
Is that the solution \ alternative ?
It's an alternative that uses Syslinux (with the multiboot module), instead of GRUB. Both are multiboot-compatible.