LIUPENGYUN 2015-09-27 02:19 采纳率: 0%
浏览 4835

新手,学习自己动手写操作系统,卡在bochs配置,求大神救助

1.bochs版本:bochs-2.6.8
编译前配置:提取文件,打开目录,在终端中打开;

  • ./configure --enable debugger --enable-disasm
  • sudo make
  • sudo make install 安装完成,提前安装了一些需要的程序,未报错。

2.编辑bochesrc

  • sudo gedit 然后用gedit打开/ect/bochs-init/bochsrc,编辑内容如下:

###############################################################

Configuration file for Bochs

###############################################################

how much memory the emulated machine will have

megs: 32

filename of ROM images

romimage: file=/usr/share/bochs/BIOS-bochs-latest
vgaromimage: file=/usr/share/vgabios/vgabios.bin

what disk images will be used

floppya: 1_44=/home/OS/a.img, status=inserted

choose the boot disk.

boot: floppy

where do we send log messages?

log: bochsout.txt

disable the mouse

mouse: enabled=0

enable key mapping, using US layout as default.

keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map


3.运行bochs

  • sudo bochs -f /ect/bochs-init/bochsrc

    结果如下:00000000000i[ ] BXSHARE not set. using compile time default '/usr/local/share/bochs'
    00000000000i[ ] reading configuration from /etc/bochs-init/bochsrc
    00000000000p[ ] >>PANIC<< /etc/bochs-init/bochsrc:25: 'keyboard_mapping' is deprecated - use 'keyboard' option instead.

    00000000000e[SIM ] notify called, but no bxevent_callback function is registered

    Bochs is exiting with the following message:
    [ ] /etc/bochs-init/bochsrc:25: 'keyboard_mapping' is deprecated - use 'keyboard' option instead.

关闭终端,重新打开,

  • sudo bochs 结果: ======================================================================== Bochs x86 Emulator 2.6.8 Built from SVN snapshot on May 3, 2015 Compiled on Sep 27 2015 at 09:38:33 ======================================================================== 00000000000i[ ] BXSHARE not set. using compile time default '/usr/local/share/bochs' ------------------------------ Bochs Configuration: Main Menu ------------------------------

This is the Bochs Configuration Interface, where you can describe the
machine that you want to simulate. Bochs has already searched for a
configuration file (typically called bochsrc.txt) and loaded it if it
could be found. When you are satisfied with the configuration, go
ahead and start the simulation.

You can also start bochs with the -q option to skip these menus.

  1. Restore factory default configuration
  2. Read options from...
  3. Edit options
  4. Save options to...
  5. Restore the Bochs state from...
  6. Begin simulation
  7. Quit now

按6,然后按c,bochs图形界面弹出,提示No bootable device.
情况描述完毕,求大神解释

  • 写回答

1条回答

  • devmiao 2015-09-27 15:56
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 用三极管设计—个共射极放大电路
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示