Page 1 of 1

"Error: Can't get mode info" in GRUB2

Posted: Sat Jun 29, 2013 6:53 am
by chrissacchi
Whenever I load my kernel with grub, it loads fine. Except, when I type "boot" and hit enter a message appears that says: "Error: Can't get mode info" and automatically reboots. I don't think it's a problem with my code, because I tested it on QEMU and it worked fine without error messages, but with real hardware and GRUB2, the message has no error number, and automatically reboots afterwards. Could you guys help?

Re: "Error: Can't get mode info" in GRUB2

Posted: Sat Jun 29, 2013 8:36 am
by singerng
Can you please post all the commands you use to load your kernel in GRUB2? "Mode info" sounds like something to do with VESA -- have you tried googling that error? Does your kernel use VESA? It doesn't sound like a Multiboot problem...

Re: "Error: Can't get mode info" in GRUB2

Posted: Sat Jun 29, 2013 8:46 am
by chrissacchi
I use: "root=(hd0,msdos1)", "multiboot /ChrisOS.BIN", and "boot" to load my kernel in GRUB2. I've tried googling "Error: can't get mode info" and can't find an already-answered question about the same topic. I'm not sure if my kernel uses VESA, I only output to 0xB8000, so I'm not sure if that's VGA or VESA.

Re: "Error: Can't get mode info" in GRUB2

Posted: Sat Jun 29, 2013 8:48 am
by singerng
That's very odd -- when I google your error, the few results that come up all talk about VESA. Could you please post your Makefile, linker script, and the file that contains your Multiboot information? I'm drawing up blank here -- GRUB shouldn't complain about VESA if you're not using VESA...

Re: "Error: Can't get mode info" in GRUB2

Posted: Thu Jul 04, 2013 7:54 am
by chrissacchi
I fixed it, I changed it to a kernel that runs off a floppy disk instead of a multiboot-compliant kernel that runs in GRUB. Thanks for all the help!