Booting kernel with grub
Posted: Mon Mar 30, 2009 4:17 am
Hello,
I'm doing the Bare Bones tutorial but the kernel doesn't boot with grub. When i type "kernel 200+15" it returns error 13 : invalid or unsupported executable format.
I'm using cygwin in which i have built a gcc cross compiler (with the tutorial).
When I do objdump -h, i get "file format pei-i386". does this mean the executable is not ELF but PE ? shouldn't it be ELF because i compiled with the cross compiler ?
In the Questions part, it says "you should specify the AOUT kludge in the multiboot header". Could you give me more info on this ? what is it for and more importantly how to do this?
Also, is it possible to set up the cross compiler output format at ELF even with cygwin on windows ?
Thank you very much for your help !!
I'm doing the Bare Bones tutorial but the kernel doesn't boot with grub. When i type "kernel 200+15" it returns error 13 : invalid or unsupported executable format.
I'm using cygwin in which i have built a gcc cross compiler (with the tutorial).
When I do objdump -h, i get "file format pei-i386". does this mean the executable is not ELF but PE ? shouldn't it be ELF because i compiled with the cross compiler ?
In the Questions part, it says "you should specify the AOUT kludge in the multiboot header". Could you give me more info on this ? what is it for and more importantly how to do this?
Also, is it possible to set up the cross compiler output format at ELF even with cygwin on windows ?
Thank you very much for your help !!