how to boot linux kernel with my own simple bootloader
Hi everyone
I want to develope my own very very simple bootloader which has only a simple jump to the kernel (don't ask the reason plz). how can I do this? How can I find the physical address of my kernel to load in the memory?? How can I load the kernel? How can I pass the initrd to the kernel? and what is it's physical address? I want to modify the MBR created by LILO and make these changes.. How can I do these?? thank you Javan |
Look at how some other bootloader does it or subscribe to LKML. Research how the kernel is loaded with or without and initrd. I might be wrong but I think a non-relocatable kernel loads at 0x100000. Also, you need to know the specifics of passing kernel command line parameters, such as root= to the kernel.
|
In short, there is no such thing as
Quote:
|
Quote:
How can I write very simple bootloader which loads a kernel?? I don't want to use other bootloaders like LILO or GRUB.. Thank you |
Somebody knows structure of the LILO map file?
|
Quote:
If your target is to simply boot up the kernel,i will suggest you to study older kernels. 0.11 is a good one.If you understand the several assembly files,you will figure out many things yourself(according to what you asked).I do believe you will understand many aspects about the kernel,not only the boot phase(it is not that simple,of course). good luck! |
All times are GMT -5. The time now is 12:46 AM. |