another bootloader

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
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

another bootloader

Post by mcheung63 »

hi all, if u are not using grub, can u tell me what bootloader you use? i tried some other bootloader, but are to compile them in linux
thanks
from Peter ([email protected])
Antti
Member
Member
Posts: 923
Joined: Thu Jul 05, 2012 5:12 am
Location: Finland

Re: another bootloader

Post by Antti »

I use my own boot loaders:

- "Legacy Hardware", booting from USB drive or CD
- UEFI, booting from USB drive or CD

These are not general purpose bootloaders. I thought it would be easier to have custom-made boot loaders than try to "hack" GRUB (or similar) to do what I wanted. Also, now I am the only one to be blamed if the system does not work.
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: another bootloader

Post by bluemoon »

I wrote my custom boot loader. Like all software, depends on your requirements a boot loader can be quite simple or extremely difficult.

So you should list out your requirement, and see if there is already something on the market you would use, or decide write one yourself.
MollenOS
Member
Member
Posts: 202
Joined: Wed Oct 26, 2011 12:00 pm

Re: another bootloader

Post by MollenOS »

I wrote my own custom FAT32 bootloader. I'd rather have full control of the boot sequence than let GRUB do it. =]
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: another bootloader

Post by egos »

I use my own boot loaders and GRUB:
  • MBR (stage 0): Alter, Jumbo;
  • stage 1: FAT12 (for floppies), FAT12/16, FAT32, CDFS, foreign NTFS boot loader from OS Boot Tools (kernel, ramfs driver and ramfs image are packed into kernel.sys; while I have no NTFS support);
  • stage 2: Boot, modified GRUB, GRUB/GRUB2 (usually they are used only for "Multiple versions on single volume" configurations).
If you have seen bad English in my words, tell me what's wrong, please.
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: another bootloader

Post by qw »

I also wrote my own boot loader. It is not very sophisticated: it runs from FAT12 formatted volumes only, loads some file at a fixed address and jumps there. It is however smart enough to search the entire root directory and load the file through the FAT, not from some fixed cluster number.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: another bootloader

Post by mcheung63 »

you guys are genius, thanks for introducing me OSBootTool :D
User avatar
mariaw
Posts: 5
Joined: Fri Oct 05, 2012 4:41 am

Re: another bootloader

Post by mariaw »

I'm using a custom written pxe loader, I only discovered there were freely available loaders with source after i'd already gotten it booting up satisfactorily. The boot process on the x86 seems like a right pain, though the only things I have to compare it to at this level is MC68030 and ARM where my code was in EEPROM, which hardly counts.

netbooting over pxe is good for now since it's just hit ctrl+alt+delete to test a new compile, but when I come to booting from a local disk I'll most likely use the syslinux source code as a starting point and make the needed changes to load what I need to, the source code seems very well organized so i'd suggest you try that if you have specialized needs which I figure you do since most people seem to use just grub otherwise.
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: another bootloader

Post by egos »

Yes, PXE boot loader is convenient for testing system on real hardware during development. But I can't run full function system through net booting because it doesn't support net connection. I'm compelled to use a limited configuration with ramfs driver and small built-in ramfs image as on NTFS volumes (see above).

Syslinux is not better than GRUB. It uses same booting technology as GRUB (stage 1 boots first sector of stage 2 then booted code boots resting extents of stage 2). I even would tell that in GRUB this technology is implemented better. But I prefer when stage 1 boots stage 2 (or kernel) as a file. Because of it I usually use modified GRUB (where GRUB's stage2 is booted as a file).
If you have seen bad English in my words, tell me what's wrong, please.
Post Reply