how to link self loader and kernel if no grub used.

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
asmboozer

how to link self loader and kernel if no grub used.

Post by asmboozer »

hi all,

i want to use link.ld script file to combine the self loader and the kernel. but i don't know how to write a proper linker script file.

i don't know what's the difference between the linker script (grub supported) and (without grub support).

I found almost no binary kernel without grub support exist in the world.

would anyone give an example? thanks.
asmboozer

Re:how to link self loader and kernel if no grub used.

Post by asmboozer »

i have read the faq2,

Kernel Image
I have successfully loaded my kernel. It works as long as it doesn't exceed XXX bytes. My Kernel got bigger, and now I keep getting exceptions and faults. Why?
Especially in early stages and with a self-built boot loader, the reason frequently is that too few sectors are fetched from disk. Either adjust the amount of sectors you fetch from disk, or have the boot loader / second stage loader parse the file system.


BUt i don't know how to yet.
Post Reply