If using Lilo/GRUB...where to start?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Shawn

If using Lilo/GRUB...where to start?

Post by Shawn »

I have a quick question. If one is using a bootloader such as Grub or Lilo, what does the kernel need to start from?

Thanks
mansonbound

Re: If using Lilo/GRUB...where to start?

Post by mansonbound »

you can make grub to load a number of sectors with
the chainloader +x command where x is the number of sectors to ,load. So you can load just the bootsector. It is loaded like by bios that means there are no differences between grub and bios booting. You can also load more sectors eg.
chainloader +50 to load the 50 first sectors from a disk.
You can create an image and dont need to care to get the other sectors loaded.
In both ways the pc is still in realmode, starting adress of 1st sector is 0x7C00
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: If using Lilo/GRUB...where to start?

Post by df »

i wouldnt worry about chainloading sectors. use a basic FS like dos FAT12 (standard for floppies), and use a kernel that is a recognised file format (eg: ELF, AOUT). and grub will load it automatically.
-- Stu --
Post Reply