BareBones/Grub Problem
Posted: Mon Feb 23, 2009 4:30 pm
Hello,
I have managed to create a floppy.img on Windows using the command:
my Stage1 file is 512 bytes.
my Stage2 file is 101,138 bytes.
my pad file is 750 bytes (I put 750 A on an empty file).
my kernel.bin file is 2,426 bytes.
I have edited the bochsrc.txt file as stated in the Bare Bones Wiki Tutorial, when I run BOCHS, I enter the number 6 (Begin Simulation)... It shows the "monitor", and ends up in a Grub command prompt. I followed the Bare Bones tutorial, and in the command prompt, I entered
^^I entered kernel 200+5 because the 5 is my kernel.bin size (2,426) divided by 512 = 4.73828125, which when rounded as in the tutorial equals 5.
When I enter the command kernel 200+5, I receive the following error:
Please tell me what I'm dong wrong and how to solve it. This is my first try at building an "OS", I think I followed all the steps in the tutorial correctly.
Thank You
I have managed to create a floppy.img on Windows using the command:
Code: Select all
copy /b stage1+stage2+pad+kernel.bin floppy.img
my Stage2 file is 101,138 bytes.
my pad file is 750 bytes (I put 750 A on an empty file).
my kernel.bin file is 2,426 bytes.
I have edited the bochsrc.txt file as stated in the Bare Bones Wiki Tutorial, when I run BOCHS, I enter the number 6 (Begin Simulation)... It shows the "monitor", and ends up in a Grub command prompt. I followed the Bare Bones tutorial, and in the command prompt, I entered
Code: Select all
kernel 200+5
^^I entered kernel 200+5 because the 5 is my kernel.bin size (2,426) divided by 512 = 4.73828125, which when rounded as in the tutorial equals 5.
When I enter the command kernel 200+5, I receive the following error:
Code: Select all
Error 13: Invalid or unsupported executable format
Thank You