最近在研究linux-0.11內核源碼,嘗試在bochs中運行linux-0.11系統,並對其進行研究。本文先探討環境的搭建。
1.宿主機win10-64位系統
2.bochs2.6.11
3.linux-0.11的引導鏡像bootimage-0.11-20040305和根文件系統rootimage-0.11-20040305。資源位置:http://www.oldlinux.org/Linux.old/images/ 感謝同濟大學的趙炯博士!
4.在bochs安裝目錄下新建linux-0.11文件夾,並添加如下文件。
5.bochsrc.bxrc文件
主要修改以下條目:
megs:32
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
floppya: 1_44=bootimage-0.11-20040305, status=inserted
floppyb: 1_44=bootimage-0.11-20040305, status=inserted
boot: a
log: bochsout.txt
vga: extension=vbe
mouse: enabled=0
6.打開bochs軟件如圖:
7. 成功運行:
8.linux-0.11內核調試:
編輯run.bat文件
cd "C:\Program Files\Bochs-2.6.11\linux-0.11"
..\bochsdbg -q -f bochsrc_fd.bxrc
9.管理員權限運行
https://www.cnblogs.com/hongzg1982/articles/2111254.html