Boot Sequence: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
→See Also: Add link to 'he Kernel Boot Process'. |
mNo edit summary |
||
Line 65: | Line 65: | ||
| 0x08 |
| 0x08 |
||
| 4 |
| 4 |
||
| Starting Sector (relative to |
| Starting Sector (relative to beginning of disk) |
||
|- |
|- |
||
| 0x0C |
| 0x0C |
||
Line 72: | Line 72: | ||
|} |
|} |
||
More detailed information about MBR structure and partition types can be found on [http://www.nondot.org/sabre/os/articles/TheBootProcess/ OSRC]. The MBR is usually written by disk |
More detailed information about MBR structure and partition types can be found on [http://www.nondot.org/sabre/os/articles/TheBootProcess/ OSRC]. The MBR is usually written by disk partitioning programs such as FDisk, Disk Druid, [http://www.ranish.com/part/ Ranish Partition Manager] etc. |
||
==Early Environment== |
==Early Environment== |
||
Line 122: | Line 122: | ||
* '''Geek loading''': Squeeze everything from the above list into the boot record. This is next to impossible, and does not leave room for any special-case handling or useful error messages. |
* '''Geek loading''': Squeeze everything from the above list into the boot record. This is next to impossible, and does not leave room for any special-case handling or useful error messages. |
||
* '''One-stage loading''': Write a stub program for making the switch, and link that in front of your kernel image. Boot record loads kernel image (below the 1mb memory mark, because in real mode that's the upper memory limit!), jumps into the stub, stub makes the switch to |
* '''One-stage loading''': Write a stub program for making the switch, and link that in front of your kernel image. Boot record loads kernel image (below the 1mb memory mark, because in real mode that's the upper memory limit!), jumps into the stub, stub makes the switch to Protected Mode and runtime preparations, jumps into kernel proper. |
||
* '''Two-stage loading''': Write a ''separate'' stub program which is loaded below the 1mb memory mark, and does everything from the above list. |
* '''Two-stage loading''': Write a ''separate'' stub program which is loaded below the 1mb memory mark, and does everything from the above list. |
||