ubuntu noob needs help with nasm and qemu

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
aliceinchains
Posts: 14
Joined: Wed Aug 13, 2014 11:04 am

ubuntu noob needs help with nasm and qemu

Post 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.
User avatar
Arto
Member
Member
Posts: 44
Joined: Wed May 15, 2013 5:49 pm
Location: Berlin
Contact:

Re: ubuntu noob needs help with nasm and qemu

Post by Arto »

You haven't provided sufficient information for anyone to help you. Please read how to ask questions.
Developer of libc11
aliceinchains
Posts: 14
Joined: Wed Aug 13, 2014 11:04 am

Re: ubuntu noob needs help with nasm and qemu

Post 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.
seuti
Member
Member
Posts: 74
Joined: Tue Aug 19, 2014 1:20 pm

Re: ubuntu noob needs help with nasm and qemu

Post 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
aliceinchains
Posts: 14
Joined: Wed Aug 13, 2014 11:04 am

Re: ubuntu noob needs help with nasm and qemu

Post by aliceinchains »

I thought bochs was windows only... problem solved.
User avatar
iansjack
Member
Member
Posts: 4707
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: ubuntu noob needs help with nasm and qemu

Post 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.
Post Reply