I have been using a bootloader I made myself for most of the development of my OS, but now I need to use grub to load my kernel. I am getting a problem trying to create no-emulation boot cd. To make sure it wasn't a problem with my kernel, I downloaded a kernel from a sample tutorial on the internet and a grub floppy image from it. It works fine on the floppy image, but using the same kernel with my boot cd produces the same lack of function.
I am using mkisofs
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o bootcd.iso ISODIR
this is the directory structure of ISODIR:
ISODIR
->kernel.bin
->boot
->->grub
->->->stage2_eltorito
->->->menu.lst
this is menu.lst:
title KOS test
root (fd0)
kernel /kernel.bin
and this is all that happens when I boot it:
GNU GRUB version 0.95 (639K lower / 64448K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions. Anywhere else TAB lists the possible completions of a device/filename. ]
grub> _
what am I doing wrong?
El-Torito Boot CD Not Functioning
-
- Posts: 7
- Joined: Tue Jan 05, 2010 7:37 pm
- Contact:
Re: El-Torito Boot CD Not Functioning
this should be
Code: Select all
root (fd0)
Code: Select all
root (cd)
Re: El-Torito Boot CD Not Functioning
IIRC, if Grub encounters an error in the config file it doesn't drop into the console (and if it does, it puts an error message for you).dak91 wrote:thisshould beCode: Select all
root (fd0)
Code: Select all
root (cd)
On the other hand, at least the GRUB image linked to from the wiki doesn't seem to work (CD image generated following the command line on that page). "root (cd)" gives a disk read error (tested on bochs and vbox), and causes Bochs to give this error:
Code: Select all
00017962317e[HD ] ata0-0: atapi_cmd_error: key=05 asc=21
00017965690i[BIOS ] int13_cdrom: function 42, status 03 !
-
- Posts: 7
- Joined: Tue Jan 05, 2010 7:37 pm
- Contact:
Re: El-Torito Boot CD Not Functioning
Thank you for your help, but correcting that didn't fix it. I followed the guide in the wiki for this and I've checked and double checked to make sure I did it right. It isn't giving me any errors so I don't even have anything that I can look up.