Page 1 of 1

ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 11:02 am
by aliceinchains
So I have 2 harddrives and one has bochs and windows and the other has ubuntu and qemu installed. Now my problem is when I run my image in qemu it doesnt work and I'm not sure why... All the image does is get into 64bit with vbe mode 411b, interrupts still disabled and draw some dots. I also compiled and made a qemu image and that one doesnt work either.

Re: ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 11:13 am
by Arto
You haven't provided sufficient information for anyone to help you. Please read how to ask questions.

Re: ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 11:15 am
by aliceinchains
Well ok, how would i run qemu like bochs does by default.

Edit:
Is that even possible with switches, I read the documentation and tried to make it the same and have failed for atleast 2 hours.

Re: ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 11:36 am
by seuti
You need to make a bochsrc file, then you pass that in as a parameter when you start bochs.

http://bochs.sourceforge.net/doc/docboo ... chsrc.html - Bochs Documentation on the bochsrc file
http://www.emulators.com/docs/bochsrc.txt - An example bochsrc file

After creating your bochsrc file, start bochs with

Code: Select all

bochs -f yourbochsrc.txt

Re: ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 11:42 am
by aliceinchains
I thought bochs was windows only... problem solved.

Re: ubuntu noob needs help with nasm and qemu

Posted: Sat Dec 06, 2014 12:10 pm
by iansjack
Except, if your image runs in Bochs but not in qemu then there is a bug in your code. Best to sort that out now whilst things are simple rather than just ignoring it.

So, problem not really solved.