安装bochs问题

bochs 2.6.11

错误:

========================================================================
                       Bochs x86 Emulator 2.6.11
              Built from SVN snapshot on January 5, 2020
                Timestamp: Sun Jan  5 08:36:00 CET 2020
========================================================================
00000000000i[      ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/local/lib/bochs/plugins'
00000000000i[      ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
00000000000i[      ] lt_dlhandle is 0x55b6a49d90c0
00000000000i[PLUGIN] loaded plugin libbx_unmapped.so
00000000000i[      ] lt_dlhandle is 0x55b6a49d9a00
00000000000i[PLUGIN] loaded plugin libbx_biosdev.so
00000000000i[      ] lt_dlhandle is 0x55b6a49da370
00000000000i[PLUGIN] loaded plugin libbx_speaker.so
00000000000i[      ] lt_dlhandle is 0x55b6a49db180
00000000000i[PLUGIN] loaded plugin libbx_extfpuirq.so
00000000000i[      ] lt_dlhandle is 0x55b6a49db9f0
00000000000i[PLUGIN] loaded plugin libbx_parallel.so
00000000000i[      ] lt_dlhandle is 0x55b6a49dd680
00000000000i[PLUGIN] loaded plugin libbx_serial.so
00000000000i[      ] lt_dlhandle is 0x55b6a49e1ab0
00000000000i[PLUGIN] loaded plugin libbx_iodebug.so
00000000000i[      ] reading configuration from bochsrc
00000000000p[      ] >>PANIC<< reading from bochsrc failed
00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
00000000000e[SIM   ] notify called, but no bxevent_callback function is registered
========================================================================
Bochs is exiting with the following message:
[      ] reading from bochsrc failed
========================================================================
 

 

根据其他博主的文档安装,启动错误如上:

根据错误提示bochsrc这个文件读取失败,于是搜索此文件,发现源码目录并没有,尝试是否有其他rc文件提供,发现源码下存在一个.bochrc文件,将此文件复制并保存到当前目录,改名为bochsrc,再次编译,提示:

bochsrc:926: Bochs is not compiled with lowlevel sound support

将此行注释,重新编译,编译成功。

 

 

 

参考:

https://blog.csdn.net/qq_37637619/article/details/89784508

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是在Ubuntu上安装Bochs的步骤: 1. 打开终端,输入以下命令以安装Bochs: ``` sudo apt-get install bochs bochs-x bochs-sdl ``` 2. 安装完成后,可以通过以下命令检查Bochs是否已经成功安装: ``` bochs -help ``` 如果出现了Bochs的帮助信息,则说明Bochs已经成功安装。 3. 接下来,可以通过以下命令启动Bochs: ``` bochs ``` 这将启动Bochs模拟器,并进入Bochs的命令行界面。 4. 如果需要使用Bochs来运行操作系统,则需要为Bochs配置一个虚拟机。可以通过创建一个Bochsrc文件来配置虚拟机。以下是一个简单的Bochsrc文件示例: ``` # configuration file generated by Bochs # http://bochs.sourceforge.net/ # how much memory the emulated machine will have megabytes: 32 # filename of ROM image romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000 # boot from floppy disk image boot: floppy # filename of floppy disk image floppy: 1_44=a.img, status=inserted # enable VGA graphics card vga: extension=vbe, update_freq=5 # enable sound card sb16: enabled=1, irq=7, dma=1, hdma=5, sbtype=sb16, sbbase=0x220, midi=none # enable network card ne2k: ioaddr=0x300, irq=9, mac=fe:fd:00:00:00:01, ethmod=linux # enable serial port com1: enabled=1, mode=term # enable parallel port lpt1: enabled=1 # enable keyboard keyboard: type=mf # enable mouse mouse: enabled=1 ``` 在这个示例中,Bochs将会模拟一台拥有32MB内存、启动盘为a.img、使用VGA显卡、SB16声卡、NE2000网卡、COM1串口、LPT1并口、MF键盘和鼠标的虚拟机。 5. 将Bochsrc文件保存到任意位置,并在启动Bochs时指定该文件的路径: ``` bochs -f /path/to/bochsrc ``` 这将启动Bochs,并使用指定的Bochsrc文件来配置虚拟机。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值