OSDev.org https://forum.osdev.org/ |
|
use GRUB to boot https://forum.osdev.org/viewtopic.php?f=1&t=35607 |
Page 1 of 1 |
Author: | nlg [ Sun Oct 20, 2019 11:20 am ] |
Post subject: | use GRUB to boot |
i want to test my hobby os with Grub. to boot , i have to copy a file at a specific adress and jump to it in real mode but i dont find the right way to do it with grub. is it possible? and how can i do? for now i use the nework booting (PXE) and it work fine |
Author: | Octocontrabass [ Sun Oct 20, 2019 11:51 am ] |
Post subject: | Re: use GRUB to boot |
nlg wrote: is it possible? No. GRUB can only boot your OS in protected mode, not real mode. If you would like to modify your OS so GRUB can load it, you'll need to look at the multiboot specification. |
Author: | nlg [ Sun Oct 20, 2019 12:57 pm ] |
Post subject: | Re: use GRUB to boot |
i found the command "chainloader" to load file, i dont found any information where the file is exacly loaded but it seem to be used in Dos or Windows booting so i think the file is loaded in the adress 7C00h and the command "boot" jump to it if the command work like i this, it was perfect function for me, now i have to install grub on a usb key to test it |
Author: | iansjack [ Sun Oct 20, 2019 1:37 pm ] |
Post subject: | Re: use GRUB to boot |
You can use chainloader to boot DOS from grub, but it chains to another boot loader. Unless you want to boot multiple operating systems, that rather defeats the purpose of using grub. https://www.gnu.org/software/grub/manua ... 02dloading |
Author: | nlg [ Sun Oct 20, 2019 4:26 pm ] |
Post subject: | Re: use GRUB to boot |
alas for me, chainloader only loads the 512 first byte of the file (i test it) my home bootloader loads an image from a partition and I hope to replace it with grub. at least I can multiboot with my OS even if I still have to sacrifice a MBR partition for that (or I can try to make my kernel multiboot compatible) thank you all for your indication, it helped me a lot |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |