在bochs2.8.6下运行linux0.11(notify called, but no bxevent_callback function is registered)

之前已经搞过2.2版本的运行,但是2.2版本好像没有dbg的功能,所以安装了一个带调试功能的2.6.8的版本,安装参考之前的文章。

主要是就是编写配置文件,折腾了我一下午。。。

 

2.2原先的配置如下

romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000

megs: 16

vgaromimage:file=/usr/share/bochs/VGABIOS-lgpl-latest

floppya: 1_44="bootimage-0.11-fd", status=inserted

floppyb: 1_44="rootimage-0.11", status=inserted

boot: a

log: bochsout.txt

parport1: enable=0

vga_update_interval: 300000

keyboard_paste_delay: 100000

floppy_command_delay: 50000

ips: 4000000

mouse: enabled=0

private_colormap: enabled=0

fullscreen: enabled=0

screenmode: name="sample"

i440fxsupport: enabled=0

 

因为版本差异,有些已经过时,会报错,修改如下,注意两个image的路径和安装软件路径有关,自己去相应路径看看有无这个文件。

romimage: file=/usr/local/share/bochs/BIOS-bochs-latest

megs: 16

vgaromimage: file=/usr/local/share/bochs/VGABIOS-lgpl-latest

floppya: 1_44="bootimage-0.11-fd", status=inserted

floppyb: 1_44="rootimage-0.11", status=inserted

boot: a

log: bochsout.txt

parport1: enabled=0

vga: extension=vbe,update_freq=5, realtime=1

 

#floppy_command_delay: 50000

cpu: count=1, ips=4000000

mouse: enabled=0

private_colormap: enabled=0

fullscreen: enabled=0

screenmode: name="sample"

 

 

碰到的最蛋疼的两个报错:

1、notify called, but no bxevent_callback function is registered

2、optional plugin 'ips' not found

 

第一个百度Google都会说是路径没加file=,实际上只要你配置有问题,大概率都有这个提示。所以先不要管,把其他报错先解决。第二个其实没啥,但我困扰了很长时间。我以为是要设置ips所有参照设置文档的说明设置了ips,实际上是因为我是在老版本的文件上改,没把ips=400000给删掉,新版本识别不了这个旧的命令。

 

之后运行黑屏,输入c退出调试模式,回车,一直Reset-floppy called 

这个我也还没办法,百度了下好像是源码上的问题,需要修改源码重新编译,那至少bochs没问题了,后面再说。

你可能感兴趣的:(Linux)