呵呵,经过半天的摸索,终于我也能在bochs上输出01010101010101010。。。。。了,看着这些不停变幻的数字,激动的心情就别说了。从此可以入门了,可以开始操作系统之旅了.Go on!
现把其中遇到的困难记下来,如下:
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest,address=0xe0000
注意其中的address=0xe0000 !!!因为不同的版本会有不同的值
bochsrc_sample.txt说明如下:
#=======================================================================
# ROMIMAGE:
# The ROM BIOS controls what the PC does when it first powers on.
# Normally, you can use a precompiled BIOS in the source or binary
# distribution called BIOS-bochs-latest. The ROM BIOS is usually loaded
# starting at address 0xf0000, and it is exactly 64k long. Another option
# is 128k BIOS which is loaded at address 0xe0000.
# You can also use the environment variable $BXSHARE to specify the
# location of the BIOS.
# The usage of external large BIOS images (up to 512k) at memory top is
# now supported, but we still recommend to use the BIOS distributed with
# Bochs. Now the start address can be calculated from image size.
#=======================================================================
romimage: file=/usr/local/share/bochs/BIOS-bochs-latest
所以最好的方法是去掉address=0xe0000
否则可能出错:
========================================================================
Bochs is exiting with the following message:
[MEM0 ] ROM: System BIOS must end at 0xfffff
========================================================================
阅读(1372) | 评论(0) | 转发(0) |