I am making a simple operating system kernel and want to emulate it using bochs. Currently, I am using qemu as my emulator but want to switch over to bochs. I have downloaded and installed bochs in ubuntu but couldn't figure out a way to use it? Can anybody help me with that ? Any links or some way to get me started would be really helpful.
Asked
Active
Viewed 2,499 times
2
-
2Question seems to be off-topic because it is too broad. – Igor Pejic Sep 22 '14 at 18:52
-
How is it too broad? I am just asking for some information to get me started. I am not telling you to list each and every feature of bochs and explain it to me – Pratik Singhal Sep 22 '14 at 18:53
-
1I think [Boschs has a manual](http://bochs.sourceforge.net/doc/docbook/user/bochsrc.html), did you read it? – m0skit0 Sep 22 '14 at 20:06
-
1@m0skit0 Ofcourse, I tried reading it, but couldn't figure out much that's why asked it here. – Pratik Singhal Sep 22 '14 at 20:37
-
So what exactly you didn't understand or you're having problems with? Loading the OS image? – m0skit0 Sep 22 '14 at 20:58
-
Yes, I want to load my kernel image onto the emulator. I know that in bochs i have to make a config file first and then only it will work, but in the manual there are tonnes of options available, so I want a very simple minimal example on how to load it onto bochs – Pratik Singhal Sep 22 '14 at 21:20
-
Example configuration file for running open source `MenuetOS` under `Bochs` is available at http://www.goosee.com/menuetos/ – xmojmr Sep 23 '14 at 17:18
-
1possible duplicate of [How can I use Bochs to run Assembly code?](http://stackoverflow.com/questions/6142925/how-can-i-use-bochs-to-run-assembly-code) – xmojmr Sep 23 '14 at 17:19
1 Answers
0
I needed the following .bochsrc
run a minimal boot sector:
ata0-master: type=disk, path="main.img", mode=flat,
cylinders=1, heads=1, spt=1
boot: disk
display_library: sdl
megs: 128
More details at: https://stackoverflow.com/a/32871939/895245

Community
- 1
- 1

Ciro Santilli OurBigBook.com
- 347,512
- 102
- 1,199
- 985