bochs執行早期linux0.11和linux0.98核心
阿新 • • 發佈:2021-06-20
近期在看趙炯博士的《linux核心完全註釋》一書,決定搭個環境進行測試。
一、下面是需要的資源:
1.Bochs2.6.11(操作方法:第一步載入bochs配置檔案,隨後在bochs中選擇軟盤檔案載入)
2.核心映像:http://www.oldlinux.org/Linux.old/
3.根檔案系統:http://www.oldlinux.org/Linux.old/
4.Bochs配置檔案部分節選(軟盤載入核心映像):
# FLOPPYA: # Point this to pathname of floppy image file or device # This should be of a bootable floppy(image/device) if you're # booting from 'a' (or 'floppy'). # # You can set the initial status of the media to 'ejected' or 'inserted'. # floppya: 2_88=path, status=ejected (2.88M 3.5" media) floppya: 1_44=bootimage-0.11-20040305, status=inserted //載入其他版本號的核心,修改此處即可 floppyb: 1_44=bootimage-0.11-20040305, status=inserted# floppya: 1_2=path, status=ejected (1.2M 5.25" media) # floppya: 720k=path, status=inserted (720K 3.5" media) # floppya: 360k=path, status=inserted (360K 5.25" media) # floppya: 320k=path, status=inserted (320K 5.25" media) # floppya: 180k=path, status=inserted (180K 5.25" media) # floppya: 160k=path, status=inserted (160K 5.25" media) # floppya: image=path, status=inserted (guess media type from image size) # floppya: 1_44=vvfat:path, status=inserted (use directory as VFAT media) # floppya: type=1_44 (1.44M 3.5" floppy drive, no media)
二、開啟bochs進行演示(linux0.11啟動):
三、開啟bochs進行演示(linux0.98啟動)