Skip to content

Instantly share code, notes, and snippets.

@caigen
Last active December 24, 2015 23:19
Show Gist options
  • Select an option

  • Save caigen/6879124 to your computer and use it in GitHub Desktop.

Select an option

Save caigen/6879124 to your computer and use it in GitHub Desktop.
linux内核影像怎么从外存载入内存
问题:
在启动引导试,linux映像是怎么从外存被载入内存的?
细细思考,这里面涉及一些小问题。就目前理解解答如下:
0,当没有驱动时,BIOS用于读外存/外设;
1,从BIOS到引导程序,引导程序在一个固定位置,所以BIOS能找到并加载其到内存中执行;
2,同样的,内核映像也必须在一个引导程序知道的位置处,引导程序将其从外存加载到内存;
3,不使用文件系统的bootsect.s,直接CALL BIOS来加载紧随其后的setup,及紧随setup之后的vmlinux;
4,试用文件系统的其他引导程序,通过其文件系统的vmlinux文件位置,将vmlinux从外存载入内存。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment