Booting Kernel From CD (with GRUB)

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
sdfkjsdfkj
Posts: 15
Joined: Thu Jan 20, 2011 4:19 pm

Booting Kernel From CD (with GRUB)

Post by sdfkjsdfkj »

I've come across an issue recently where when I generate a bootable iso file GRUB doesn't appear to actually boot my kernel, previously everything worked fine, and I've tried using my old scripts but to no avail. Booting my kernel with "qemu -kernel kernel" works fine, but when I try booting from iso and select my kernel it leaves me with a screen that says
"Booting 'GLaDOS sqrt(-1)'
kernel /boot/kernel
[Multiboot-elf, <0x1000000:0x4000:0x1868>, shtab=0x106168, entry=0x100020]" and nothing else appears to happen.

My menu.lst:

Code: Select all

default 0
#timeout 30

#title Boot from hard disk
#chainloader (hd0)+1

title GLaDOS sqrt(-1)
kernel /boot/kernel
User avatar
zhiayang
Member
Member
Posts: 368
Joined: Tue Dec 27, 2011 7:57 am
Libera.chat IRC: zhiayang

Re: Booting Kernel From CD (with GRUB)

Post by zhiayang »

ajtgarber wrote:I've come across an issue recently where when I generate a bootable iso file GRUB doesn't appear to actually boot my kernel, previously everything worked fine, and I've tried using my old scripts but to no avail. Booting my kernel with "qemu -kernel kernel" works fine, but when I try booting from iso and select my kernel it leaves me with a screen that says
"Booting 'GLaDOS sqrt(-1)'
kernel /boot/kernel
[Multiboot-elf, <0x1000000:0x4000:0x1868>, shtab=0x106168, entry=0x100020]" and nothing else appears to happen.
No point giving us the menu.lst.

What host OS are you using? What's your build script? What happens in your main()?
Insufficient information to provide a meaningful response.


EDIT: Chances are, something went wrong in creating your ISO, if you say that qemu boots with the -kernel flag. Check your directory structure for missing links. If you are using CD, i suppose you are using El-Torito no-emul cdboot. Check your stuff, provide more information.
Post Reply