Installing Bochs

Refs:

  1. http://blog.csdn.net/jinzhuojun/article/details/8604335

  2. 《自己动手写操作系统》

Steps:

  1. Download bochs source file from sourceforge

  2. 

apt-get install libsdl1.2-dev 
apt-get build-dep bochs

  3. cd <bochs_source_dir>,  and then 

./configure --with-sdl --enable-debugger 
 --enable-disasm --enable-all-optimizations 
--enable-readline --enable-long-phy-address 
 --enable-debugger-gui --enable-long-phy-address 
--enable-smp --enable-x86-64 --enable-pci --enable-vmx --enable-logging 
--enable-fpu --enable-cdrom --enable-iodebug --enable-3dnow

  4. There is some error in my platform, "Linux lubt-vbox 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux"

  (got by "uname -a"), by the way, lubuntu renders chinese chars very great, even I installed english language edition, it's great out of the box.

  so I googled, got these two websites: http://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line

                                                        http://stackoverflow.com/questions/12898287/how-to-add-compile-flag-g-to-a-make-file

  then, i added suffix " -lz -lrt -lm -lpthread" to "LIBS = ***", then "make", it works~ 

  

bochs

  <enter> several times,  I got these

  

  "sudo make install", done

## By the way, if you run "bochs"/"bochs -f bochsrc" now, you will see nothing an empty window, it's not wrong, just type "c" in command line, and

you got what you want, (I just troubled by it ...)

原文地址:https://www.cnblogs.com/gnat-tang/p/3533744.html