KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

KernelNewbies:
  • BootSectorAndKernelImage

This is my newbie understanding about how the relationship between the first sector of the kernel and the boot process...(thanks riel, zinx, weasel and DrNick for explanation).

The first 512 bytes (a sector) of the kernel was originally functioning as a boot sector (loader). However, in the recent version, that sector is replaced with code that displays

  • ascii "Direct booting from floppy is no longer supported.\r\n"
  • ascii "Please use a boot loader program instead.\r\n"
  • ascii "\n"
  • ascii "Remove disk and press any key to reboot . . .\r\n"

in case that sector of code is still written to a boot sector of a disk and executed during boot time. Therefore, it no longer serves the purpose of loading the kernel image from the disk but has handed that responsibility to boot loaders such as LILO or GRUB. The boot loader will find the kernel image and skip the first sector of the image. The reason behind this change that prevents the kernel from being loaded directly by the BIOS from the bootsector is that without a boot loader stage, we would not be able to pass a command line parameter like root filesystem etc. to the kernel.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01