Suppose the following condition :
I have compiled a kernel image file(kernel.img) successfully with GCC & AS in Linux,now I want to put kernel.img into one partition of the Hard Disk(say the 2nd primary partition:/dev/hda2).I think maybe two ways can achieve this:
1)Copy the kernel.img to the /dev/hda2 through the interface of ext2 file system in Linux system(suppose that the /dev/hda2 has been formatted into ext2).
2)Write the kernel.img to the /dev/hda2 through the BIOS int 13h.
I think the two mathods mentioned above both are feasible.But as far the boot loader according to the two mathods,which will make the implement of boot loader easyer?And how does Linux achive this?Thnks a lot!