GRUB

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
jamescox3k

GRUB

Post by jamescox3k »

I'm new to OS dev. I'm using GRUB to boot my kernel but grub says it's to big to load. My system has 256MB of RAM and the kernel is only 12.1KB.

I should mention that when I first started coding it, it worked fine, but now GRUB refuses to load my kernel.

What could I have done to make this happen other than adding extra code to my kernel.
Mastermind

Re:GRUB

Post by Mastermind »

Adding code shouldn't be the problem... Unless you added some "bad" code...
jamescox3k

Re:GRUB

Post by jamescox3k »

I think it's cause I modified my make file. I now pass the -N flag to ld, becuase ld say's they isn't enough room for some kinda header other wize.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:GRUB

Post by Pype.Clicker »

maybe some code has been generated *before* the multiboot header ...
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:GRUB

Post by distantvoices »

Or maybe he's missed to tell the linker to reserve some rodata section or something similar wth the *.ld script.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Whatever5k

Re:GRUB

Post by Whatever5k »

How do you link the files together? Make sure the file containing the multiboot header gets linked first!
Post Reply