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 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题