Problem Description
Hi. I want to use grub chainloader to load my minios (an os I developed myself, not linux or windows).
Before using grub chainloader, minios boot process was BIOS->MBR->os boot(stored in sector 0 of the primary partition)->loader.bin->os kernel.elf
. I think after using grub chainloader, the boot process should be BIOS->grub->os boot->loader.bin->os kernel.elf
. I know that after executing
set root=(hd0,1)
chainloader +1
boot
os boot (stored in sector 0 of the primary partition) will be loaded into memory and start executing it. I don't know where the os boot will be loaded in memory?
What I want to know
Please tell me where in memory grub chainloader will load os boot. So I can modify the pseudo instruction org 0x????
in my os boot code (assembly code) to ensure the normal execution of os boot.
And I also wonder if there is a way for grub to pass the start sector information of the primary partition to os boot?
Thank you very much.