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

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
chrissacchi
Posts: 15
Joined: Sat Sep 15, 2012 5:02 pm
Libera.chat IRC: csacchi

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

Post 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?
https://github.com/christophersacchi/RazorOS
"... you notice that this scanner will... woah!"
"Moving right along!"
"That must be, uh. That must be why we're not shipping Windows 98 yet..."
"Absolutely. Absolutely."
singerng
Posts: 21
Joined: Sun Jan 20, 2013 6:27 pm

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

Post 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...
chrissacchi
Posts: 15
Joined: Sat Sep 15, 2012 5:02 pm
Libera.chat IRC: csacchi

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

Post 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.
https://github.com/christophersacchi/RazorOS
"... you notice that this scanner will... woah!"
"Moving right along!"
"That must be, uh. That must be why we're not shipping Windows 98 yet..."
"Absolutely. Absolutely."
singerng
Posts: 21
Joined: Sun Jan 20, 2013 6:27 pm

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

Post 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...
chrissacchi
Posts: 15
Joined: Sat Sep 15, 2012 5:02 pm
Libera.chat IRC: csacchi

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

Post 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!
https://github.com/christophersacchi/RazorOS
"... you notice that this scanner will... woah!"
"Moving right along!"
"That must be, uh. That must be why we're not shipping Windows 98 yet..."
"Absolutely. Absolutely."
Post Reply