系统相关
首页 > 系统相关> > bochs运行早期linux0.11和linux0.98内核

bochs运行早期linux0.11和linux0.98内核

作者:互联网

近期在看赵炯博士的《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启动)

 

标签:status,bochs,media,floppya,5.25,linux0.98,linux0.11,path,inserted
来源: https://www.cnblogs.com/codeprojects/p/14906400.html