Page 2 of 2
Posted: Mon Dec 03, 2007 10:05 am
by Bobalandi
Thanks to the both of you. I am trying it out now.
Posted: Mon Dec 03, 2007 10:30 am
by Bobalandi
I'm sorry, but I just can't get it to work... But I'm going to keep looking around for tutorials.
Posted: Mon Dec 03, 2007 10:45 am
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
Thanks.
Posted: Mon Dec 03, 2007 10:55 am
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?
Posted: Mon Dec 03, 2007 10:57 am
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
Posted: Mon Dec 03, 2007 11:02 am
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]
Posted: Mon Dec 03, 2007 11:05 am
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."
Posted: Mon Dec 03, 2007 11:07 am
by Bobalandi
Yah, I forgot to say, his loads, and begins working to an extent, but then it ends with an error.
Posted: Mon Dec 03, 2007 11:24 am
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
Umm...
Posted: Mon Dec 03, 2007 11:36 am
by Bobalandi
Any ideas about my error above? I can't seem to figure it out...
Posted: Mon Dec 03, 2007 12:34 pm
by JamesM
Add a slash character before the 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
Posted: Mon Dec 03, 2007 12:59 pm
by Bobalandi
Yah, lol, I figured it out after I looked at it for a sec.