Page 2 of 2

Re: x86_64: Booting kernel

Posted: Thu Mar 26, 2009 10:20 pm
by ThymeCypher
Well, this is odd. Probably because I am using a x64 compiler without loading long mode? Not sure, but I got it to work; Index starts at 1, not 0. I made a function to output text, and it's not working at all, and I must link the kernel second to the boot loader. Perhaps I just need to setup memory or something? Not sure, I'm still new at this and all ;P

Re: x86_64: Booting kernel

Posted: Thu Mar 26, 2009 11:35 pm
by ThymeCypher
I used the code from XOmB as I was suggested to do, and I'm getting the following issue when trying to boot the kernel:

grub> kernel 200+18
[Multiboot-kludge, loadaddr=0x200000, text-and-data=0x80019000

Error 13: Invalid or unsupported executable format

What next?

Re: x86_64: Booting kernel

Posted: Fri Mar 27, 2009 7:36 pm
by whowhatwhere
use a multiboot-32bit elf64 loader. everything else fails.