Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to skip the Bochs debug command line?

I have the debug-enabled version of bochs. Although I occasionally need debug mode, most of the time, I want to launch bochs right from the terminal without stopping to press "c" on the debug command line. Is there a setting that will do this (that doesn't require me to install two different versions of bochs)?

like image 253
Zack Avatar asked Nov 02 '25 10:11

Zack


1 Answers

Do the following

  • Start bochs
  • Go through the menu setup until you get a booting system
  • Stop bochs
  • Start bochs again
  • there should be a menu option to "Dump options to file"
  • dump the options to file
  • remember the filename, for example say we use bochs9.cfg
  • exit bochs

Now create a file with the letter c followed by a newline, name it something like silly.txt

Now run bochs like this:

 bochs -qf ./bochs9.cfg -rc ./silly.txt
  • -qf will force bochs to skip the menus and use your options file

  • -rc will force bochs to fake typing the contents of silly.txt, which in this case is 'c' + newline, to make it run

This will allow you to boot Bochs into an OS directly from the commandline. Tested with Svardos bootdisk.

See also this Sourceforge Discussion

like image 139
don bright Avatar answered Nov 04 '25 02:11

don bright