新手,学习自己动手写操作系统,卡在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.
情况描述完毕,求大神解释

http://bbs.csdn.net/topics/390704943