Beginners Question about wikiarticle "Bare_bones"

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
Fencer
Posts: 9
Joined: Sun Jan 18, 2009 11:31 am

Beginners Question about wikiarticle "Bare_bones"

Post 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
CodeCat
Member
Member
Posts: 158
Joined: Tue Sep 23, 2008 1:45 pm
Location: Eindhoven, Netherlands

Re: Beginners Question about wikiarticle "Bare_bones"

Post by CodeCat »

You need a cross compiler.
Fencer
Posts: 9
Joined: Sun Jan 18, 2009 11:31 am

Re: Beginners Question about wikiarticle "Bare_bones"

Post 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
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Beginners Question about wikiarticle "Bare_bones"

Post by Solar »

GCC Cross-Compiler.

Really. Trust me.
Every good solution is obvious once you've found it.
Fencer
Posts: 9
Joined: Sun Jan 18, 2009 11:31 am

Re: Beginners Question about wikiarticle "Bare_bones"

Post by Fencer »

I will :D
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Beginners Question about wikiarticle "Bare_bones"

Post 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.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
Fencer
Posts: 9
Joined: Sun Jan 18, 2009 11:31 am

Re: Beginners Question about wikiarticle "Bare_bones"

Post 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.
Post Reply