什么是内核、引导加载程序?

发布于 2024-09-12 11:41:56 字数 103 浏览 10 评论 0原文

我需要从基础上深入了解引导加载程序和内核。 我搜索谷歌并得到了很多链接......但我需要找到好的链接。如果你的朋友有任何文档或视频或 html 与我分享......

提前致谢

i need to know about boot loader and kernel in deep from its basic.
i search the google and got a lot of links... but i need to find the good ones. if you pals have any docs or video or htmls share with me.....

thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

攒一口袋星星 2024-09-19 11:41:56

内核是操作系统的核心代码组件。它用于与硬件交互,并为应用软件提供接口。请阅读维基百科此处了解详细信息。

详细信息因平台而异,但一般有以下步骤
代表启动过程。

  • 当计算机启动时,BIOS
    执行开机自检 (POST)
    和初始设备发现和
    自操作系统启动以来初始化
    进程可能依赖于对磁盘的访问,
    屏幕、键盘等。
  • 接下来是引导的第一个扇区
    磁盘,MBR(主引导记录)是
    读入固定的内存位置并
    被执行。该部门包含一个
    小(512字节)程序加载
    称为 boot from 的独立程序
    启动设备,通常是 IDE 或
    SCSI 磁盘。
  • 引导程序首先复制自身
    到固定的高内存地址
    释放低内存以供操作
    系统。一旦移动,引导就会读取根目录
    启动设备的目录。
  • 为此,它必须了解
    文件系统和目录格式,
    有些人就是这种情况
    引导加载程序,例如 GRUB
    BootloaderGRandUnified
    .

  • 其他流行的引导加载程序,例如
    Intel的LILO,不依赖任何
    特定的文件系统。相反,他们
    需要一个块图和低级
    地址,描述物理
    扇区、磁头和柱面,以
    找到相关部门
    已加载。

  • 然后读入操作系统
    内核并跳转到它。在此
    点,引导已经完成了它的工作并且
    内核正在运行。

Kernel is the core code component of the operating system. It is used to interact with the hardware and provides an interface for application software. Read wikipedia here for detailed info.

Details vary from platform to platform, but in general the following steps
represent the boot process.

  • When the computer starts, the BIOS
    performs Power-On-Self-Test (POST)
    and initial device discovery and
    initialization, since the OS’ boot
    process may rely on access to disks,
    screens, keyboards, etc.
  • Next, the first sector of the boot
    disk, the MBR (Master Boot Record) is
    read into a fixed memory location and
    executed. This sector contains a
    small (512-byte) program that loads a
    standalone program called boot from
    the boot device, usually an IDE or
    SCSI disk.
  • The boot program first copies itself
    to a fixed high memory address to
    free up low memory for the operating
    system. Once moved, boot reads the root
    directory of the boot device.
  • To do this, it must understand the
    file system and directory format,
    which is the case with some
    bootloaders such as GRUB
    BootloaderGRandUnified
    .

  • Other popular bootloaders, such as
    Intel’s LILO, do not rely on any
    specific filesystem. Instead, they
    need a block map, and low-level
    addresses, which describe physical
    sectors, heads, and cylinders, to
    find the relevant sectors to be
    loaded.

  • Then it reads in the operating system
    kernel and jumps to it. At this
    point, boot has finished its job and
    the kernel is running.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文