problems of using GRUB as bootloader
Posted: Sun Jul 08, 2007 7:59 pm
I want to use GRUB as the bootloader for my kernel as suggested from BareBone Wiki page on http://www.osdev.org/wiki/Bare_bones.
My question is how I can acess the harware resources detected at the booting stage. For example, how much physical memory is available and what ata disks are available.
Another question is that I'm quite confused of which is the right way to use grub as the bootlaoder. Some examples use some multiboot macros (showb below). But the Barebone wiki page example doesn't use these macros. Can I get a berief explanation of why to use and how to use these macros??
Thanks in advance!
My question is how I can acess the harware resources detected at the booting stage. For example, how much physical memory is available and what ata disks are available.
Another question is that I'm quite confused of which is the right way to use grub as the bootlaoder. Some examples use some multiboot macros (showb below). But the Barebone wiki page example doesn't use these macros. Can I get a berief explanation of why to use and how to use these macros??
Thanks in advance!
Code: Select all
; Multiboot constants
MULTIBOOT_PAGE_ALIGN equ 1<<0
MULTIBOOT_MEMORY_INFO equ 1<<1
MULTIBOOT_HEADER_MAGIC equ 0x1BADB002
MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)