[Resolved] Somewhat Easy Question (Bochs)

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.
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

Thanks to the both of you. I am trying it out now. :D
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

I'm sorry, but I just can't get it to work... But I'm going to keep looking around for tutorials.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Ok - lets have one more try. If still no luck, I strongly suggest you read the GRUB and Bochs documentation.

Although there are a few errors that come up with Bran's tutorial, most people seem to be able to get the kernel up and running.

This link is one of my kernels - in fact, something I asked others to test a while back. It will only work if you have VBE 2.0+ installed, but if not will at least give you an error message to show you that it is possible to get the kernel working.

This link is my current version of bochsrc.bxrc. If you fire up VFD and load the zipped floppy disk image (above) in to virtual drive b:, and then double-click on the downloaded bochsrc.bxrc, it should work. If so, you can play with the disk and see what works. If not, somthing else is seriously wrong.

You'll need bochs 2.3.5 for this - if not, you just need to edit bochsrc.bxrc, changing the path to bochs in lines 3 and 4.

Cheers,
Adam
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Thanks.

Post by Bobalandi »

Thanks a lot. It worked wonderfully I think problem is just in my menu.cfg file. How to you set that up? Is there some documentation for it?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Yes - at http://www.gnu.org/software/grub/ . The one you want is 'GRUB Legacy' - have a look at the documentation link.

Glad to see my disk image works :) - hopefully you are just a stone's throw from getting your own OS booting now!

Cheers,
Adam
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

Hmmm... I got it somewhat working, to the point that it lets me decide the os from grub, but then I get this error.

Code: Select all

  Booting 'OS'

root    (fd0)
 Filesystem type is fat, using whole disk
kernel  kernel.bin

Error 1: Filename must be either an absolute pathname or blocklist

Press any key to continue...
[/code]
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

How on earth could mine not work?! Many people have tested it so far without troubles. Hmm.

Ah well. Btw AJ your kernel image you posted fails in qEmu with "Privileged Instruction 0x00CD, prefix 0x0000 is not supported by the x86 mode monitor."

:D
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

Yah, I forgot to say, his loads, and begins working to an extent, but then it ends with an error.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Yes - that seems to happen whenever VME is not present - it should work on Bochs and real machines where they have VME and VESA. I was lazy in that (old) version and relied on VME playing nicely.

It's from an abandoned kernel now I'm going 64 bit, anyway :) . I'm currently working on a much better version of my Second Stage boot loader (complete with CLI debugging) before starting on the 64 bit kernel.

Cheers,
Adam
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Umm...

Post by Bobalandi »

Any ideas about my error above? I can't seem to figure it out...
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Add a slash character before the kernel.bin:

Code: Select all

kernel  /kernel.bin
So you're using an absolute pathname from the root filesystem instead of a relative pathname.

Geez, that's not too hard... :S
Bobalandi
Member
Member
Posts: 107
Joined: Mon Dec 03, 2007 7:26 am
Location: Near Boston, MA
Contact:

Post by Bobalandi »

Yah, lol, I figured it out after I looked at it for a sec.
Post Reply