Page 1 of 1
Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 11:48 am
by Fencer
Hi, I followed the article "Bare Bones" from the wiki. It all works well until it comes to boot the kernel: Grub starts up but after inserting "kernel 200+18" it sais "Error 13 invalid or unsupported executeable format"
I'm thankful for any help
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 12:15 pm
by CodeCat
You need a cross compiler.
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 12:30 pm
by Fencer
thank for your fast reply.
are there any prebuilt for Windows or at least linux (I think MinGW doesn't provide any does it?)
greetings alex
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 12:43 pm
by Solar
GCC Cross-Compiler.
Really. Trust me.
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 12:47 pm
by Fencer
I will
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 1:31 pm
by Creature
You should also try to (if it isn't already) put your ASM file with the multi-boot header to be linked first. If it isn't, GRUB can also generate this error.
Re: Beginners Question about wikiarticle "Bare_bones"
Posted: Sun Jan 18, 2009 2:36 pm
by Fencer
Ok, I compiled the cross gcc but when compiling the kernel with the new i586-elf-gcc and linking with the new ld even grub doesn't load (Error on the virtual machine). When linking with my system ld, grub doesn't recognize the kernel as before.
Could this be a misscompiled gcc?
btw: I linked exactly as in the article.