flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > chainloded from GRUB, where am I? |
Author |
|
baldr 13 Apr 2010, 11:18
Tyler,
GRUB itself expects ebx to point to struct grub_multiboot_info if at startup eax==0x2BADB002. You may consult Multiboot Specification and GRUB source as well. |
|||
13 Apr 2010, 11:18 |
|
Tyler 13 Apr 2010, 21:07
Is it that way for chainloading? I want to make my own simple bootloader and chainload it, not using grub as the actual boot loader, just a means of booting my os without having to write it to a cd(no floppy drive) or the mbr. I've set aside a ~20mb partition to install my bootloader to, to boot from.
|
|||
13 Apr 2010, 21:07 |
|
baldr 14 Apr 2010, 04:58
Tyler,
In general case you get boot drive number in dl, according to BIOS Boot Specification Version 1.01 [PDF] (it seems that leftovers from int13/02 call partially came to the spec; most BIOSes jump to loaded sector right after 0xAA55 check; dump your BIOS and look at the boot sequence to be sure). Legacy bootsectors then follow standard search sequence to find active partition which was used to read them. GRUB can load arbitrary data, thus the need for extra specs (like mentioned Multiboot). How do you suppose to boot from that partition? GRUB/NTLDR/whatever chainload? Active partition flag? It depends. |
|||
14 Apr 2010, 04:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.