Does Grub need mlt boot header
- bloodhound23
- Member
- Posts: 115
- Joined: Wed Jan 23, 2008 7:13 pm
- Contact:
Does Grub need mlt boot header
Do I need my OS do have the multiboot header to have it load it? Also, Grub loads 32bit OSs, how would I use it if I need to load a 64 bit OS?
I thought I wasn't thinking, I thought wrong.
Re: Does Grub need mlt boot header
Q1. It's not really a requirement (lots of non-multiboot kernels can boot off grub, like Linux) - But using multiboot is great since its a step to using a unified boot standard which shouldn't change depending on the bootloader (though GRUB is one of the very few multiboot-compliant loaders out there).
Q2. As far as I know, GRUB can only make it into 32-bit mode. You have to get to long mode yourself.
Hope this helps,
Julian
Q2. As far as I know, GRUB can only make it into 32-bit mode. You have to get to long mode yourself.
Hope this helps,
Julian
Re: Does Grub need mlt boot header
Hi,bloodhound23 wrote:Do I need my OS do have the multiboot header to have it load it? Also, Grub loads 32bit OSs, how would I use it if I need to load a 64 bit OS?
Ya, it's a must if you want grub to load your kernel, but AFAIK grub has the ability to load the Linux kernel without multiboot header, for Windows grub just does chain-loading (loads the boot loader of windows).
AFAIK grub only boots 32-bit kernel, so you have to write a 32-bit image first which is loaded by grub and in-turn it loads your 64-bit kernel. I'm not sure if there is other ways to do so.
Good Luck
Systems and Computer Engineering Researcher
"Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?" -- Linus Torvalds
http://sce.carleton.ca/~maslan
"Do you pine for the nice days of Minix-1.1, when men were men and wrote their own device drivers?" -- Linus Torvalds
http://sce.carleton.ca/~maslan
- bloodhound23
- Member
- Posts: 115
- Joined: Wed Jan 23, 2008 7:13 pm
- Contact:
Re: Does Grub need mlt boot header
And even not that compliant anyway (no VESA information, for example).karekare0 wrote:(though GRUB is one of the very few multiboot-compliant loaders out there).
JAL
problem is .eh_frame in x86-64, it preserve it unlike x86.
objcopy --only-keep-debug seem fix it partly
http://www.x86-64.org/documentation/abi-0.99.pdf
--
AISB: lilo has no problem with 64 bit, grub2 still so far(1.96 doesn't work atm.)
objcopy --only-keep-debug seem fix it partly
http://www.x86-64.org/documentation/abi-0.99.pdf
--
AISB: lilo has no problem with 64 bit, grub2 still so far(1.96 doesn't work atm.)
Damn! Sorry Solar, I knew that, I was intending to add it to the end of my post with an "or" clause but got sidetracked, forgot and hit submit!Solar wrote:Erm... not quite correct. GRUB works just fine as a chainloader, too.JamesM wrote:GRUB does *not* load files with a non multiboot header unless they are a recognised, hardcoded OS like linux.