unbuntu installation bochs

reference

https://www.cnblogs.com/HonkerYblogs/p/10285619.html

https://blog.csdn.net/time4/article/details/25079417

https://www.cnblogs.com/longintchar/p/5224418.html

https://blog.csdn.net/Zllvincent/article/details/84842949

https://www.cnblogs.com/thougr/p/9716192.html

A. Install the necessary environment

 

sudo apt-get update

 

1.g ++, previously sudo apt-get install g ++ installed

2.sudo apt-get install build-essential

3. The following are sudo

apt-get install libgtk2.0-dev

apt-get install bison

II. Installation procedure

 

$ tar vxzf bochs-2.4.5. tar .gz
 
$ cd bochs-2.4.5
 
$. /configure -- enable -debugger -- enable -disasm
 
$ make
 
$ sudo make  install

 

 

 

 

 

 

 An error

fatal error: X11/Xlib.h: No such file or directory

 

 

 

sudo apt-get install libx11-dev

sudo apt-get install xorg-dev, configure the environment forgot .....

An error

 

 

 Consider adding parameters when performing configureLIBS='-lX11'

./configure --enable-debugger --enable-disasm --enable-readline LIBS='-lX11'

 

 

之后make ,make install

 

And error make: *** [Makefile: 429: install_bin] Error 1

Coupled with sudo privileges to solve

 

 

 

 Successful installation

 

 

 

 

 

 

 

III. Configuration

 Note the installation directory

 

 

// create a virtual hard disk

 

 

 

Bochsrc create a configuration file in the installation directory

 

 

 

# First step, provided Bochs memory during operation can be used, the present embodiment is 32MB 
megs: 32 # The second step, is provided corresponding to a real machine BIOS and BIOS VGA 
ROMIMAGE: File = / usr / Share / Bochs / BIOS -bochs- Latest 
vgaromimage: File = / usr / report this content share / Bochs / vgabios-lgpl- Latest # the third step is to set the disk Bochs used, floppy keywords for floppy. 
# If only one floppy disk, floppya can use, if more than one, for the floppya, floppyb ... 
# floppya: 1_44 = a.img, Status = inserted The # fourth step, select Start letter 
# the Boot: # default CFTD boot from a floppy disk, to comment 
the boot: Disk # read from the hard disk. Any of our code will be written directly on the hard disk, so there will be no floppy disk read and write operation # fifth step, set the log file output log: bochsout.txt # The sixth step, to enable or disable certain features 
# below the mouse is off, and open the keyboard












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

# 硬盘设置 
ata0-master: type=disk, path="c.img", mode=flat, cylinders=121, heads=16, spt=63

 

after that

bochs -f bochsrc

Then directly bochs

 

 

Then enter 6, then enter c to continue

 

 

 

There are some problems between this, I do not know if it was just a configuration file really played a role .... then slowly and see

 

IV. Probably

su root to get root privileges

sudo root User Rights

V. issue sudo apt-get install build-essential encountered

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

 

 

solve

Reference https://blog.csdn.net/Spada_k/article/details/80798088

sudo rm -f /var/lib/dpkg/info/initramfs-tools.post*

sudo rm -f /var/lib/dpkg/info/initramfs-tools.pre*

sudo rm -f /var/lib/dpkg/info/bcmwl-kernel-source.post*
sudo rm -f /var/lib/dpkg/info/bcmwl-kernel-source.pre*

sudo dpkg --configure -a

 

Guess you like

Origin www.cnblogs.com/lqerio/p/11654617.html