======================================================================== bximage Disk Image Creation / Conversion / Resize and Commit Tool for Bochs $Id: bximage.cc 13481 2018-03-30 21:04:04Z vruppert $ ========================================================================
1. Create new floppy or hard disk image 2. Convert hard disk image to other format (mode) 3. Resize hard disk image 4. Commit 'undoable' redolog to base image 5. Disk image info
0. Quit
Please choose one [0] 1
Create image
Do you want to create a floppy disk image or a hard disk image? Please type hd or fd. [hd]
What kind of image should I create? Please type flat, sparse, growing, vpc or vmware4. [flat]
Choose the size of hard disk sectors. Please type 512, 1024 or 4096. [512]
Enter the hard disk size in megabytes, between 10 and 8257535 [10] 60
What should be the name of the image? [c.img] hd60M.img
Creating hard disk image 'hd60M.img' with CHS=121/16/63 (sector size = 512)
The following line should appear in your bochsrc: ata0-master: type=disk, path="hd60M.img", mode=flat
将最后一行添加到bochsrc.disk配置中,至此,第一章工作完成。
附 1:Bochs 启动问题排查
display library ‘sdl’ not available
安装 sdl:sudo apt install bochs-sdl
修改配置文件中:display: sdl为:display: sdl2
dlopen failed for module ‘ips’ (libbx_ips.so): file not found:
注释掉 ips;
‘keyboard_mapping’ is deprecated - use ‘keyboard’ option instead.