Chinaunix首页 | 论坛 | 博客
  • 博客访问: 741129
  • 博文数量: 251
  • 博客积分: 10367
  • 博客等级: 上将
  • 技术积分: 2750
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-10 14:43
文章分类

全部博文(251)

文章存档

2009年(2)

2008年(86)

2007年(163)

分类:

2007-08-31 21:34:43

    呵呵,经过半天的摸索,终于我也能在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
========================================================================



教训是一定要看readme之类!!

阅读(1372) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~