Questions tagged [multiboot]

GNU Multiboot is a specification of the interactions between bootloaders and kernels. It is designed to ease the writing of kernels and to create a richer interface for a just booted kernel than the raw BIOS interfaces.

GNU Multiboot is a specification of the interactions between bootloaders and kernels. it is designed to ease the writing of kernels and to create a richer interface for a just booted kernel then the raw BIOS interfaces. It is used by a number of kernels, including:

  • L4
  • Xen
  • GNU Hurd
  • ESXi
  • Linux
  • BSD

The main bootloader that implements it is GNU GRUB, which is also the reference implementation.

66 questions
0
votes
1 answer

XEN and Windows 7 + Windows XP + Linux

Do you suggest to install Windows 7 + Windows XP + Linux as multi-boot or via XEN? What are the advantages and disadvantages of each choice?
Ponty
  • 645
  • 1
  • 7
  • 25
0
votes
0 answers

How to create EMMC partition using u-boot mmc commands?

I'm using Raspberry PI Compute Module 4 for development. My RPI-cm4 has onboard EMMC 8GB memory. We are following below layout For bootloader, we are using u-boot. U-Boot> mmc list mmcnr@7e300000: 1 mmc@7e340000: 0 (eMMC) U-Boot> mmc…
0
votes
0 answers

GAS (gcc/as) automatically generates .text, .data and .bss sections, even if these are not on the file

I am trying to port an OS development tutorial from NASM Intel syntax, to GAS (gcc/as). There is one file that only has one section (.multiboot_header) that's suposed to only contain data for the bootloader. I have that file both on Intel and AT&T…
SamFF
  • 203
  • 1
  • 7
0
votes
1 answer

What do the mmaps provided in multiboot information mean?

From the multiboot 1 documentation: If bit 6 in the ‘flags’ word is set, then the ‘mmap_*’ fields are valid, and indicate the address and length of a buffer containing a memory map of the machine provided by the BIOS. ‘mmap_addr’ is the address,…
BrockLee
  • 931
  • 2
  • 9
  • 24
0
votes
1 answer

Why does grub-file say that NASM raw binary is not multiboot2 compliant?

I am trying to make a minimal kernel. My goal is to make this not-yet-existing kernel to be multiboot2 compliant. So I started out by creating a minimal multiboot2-header in NASM-Assembly. I am using grub-file to test whether my binary is…
Alexander
  • 3
  • 1
0
votes
1 answer

Why is 1MB of data sent to Bootloader in the start?

I'm trying to make my first Kernel and I found a tutorial on it but cannot understand why this 1MB of data is initially sent to the bootloader in Linker.ld file. I've searched the internet but cannot find the answer. If you can, please help me…
user13552895
0
votes
1 answer

GRUB2 produces "multiboot header cannot be found" error when loading my kernel

I read GRUB Multiboot header not found but I cannot still load my kernel I tries to write the multiboot2 header directly in the .s file then link it. It is supposed to appear before all other segment: [kheader.s] .section .mbt2std tag_start: .long…
AlanCui
  • 137
  • 9
0
votes
0 answers

Change the bitness of a multiboot bootloader and C++ kernel from 32 to 64?

I'm writing an operating system. My experience allows me only to make that for 32 bit, but I want to convert it to 64 bit. What do I do to make it 64-bit? I wanted to just know the general information without linking code but contemplated it is not…
LeopardL GD
  • 139
  • 13
0
votes
1 answer

Hot to get the ELF symbols from GRUB2

I'm using the multiboot2 for my kernel, and I'm trying to get the ELF symbols from GRUB2, but I do not know how to do that. I have set .long MULTIBOOT_TAG_TYPE_ELF_SECTIONS in boot.s, also I got elf type, size, num, entsize and shndx from…
Zone233
  • 23
  • 1
  • 7
0
votes
1 answer

Linking with GCC doesn't detect -fPIC flag

I am trying to link some files. Here is my command: gcc -T linker.ld -o Stack\ Berry.bin -ffreestanding -O2 -nostlib kernel.o boot.o -fPIC -lgcc How ever, I get this error: /usr/bin/ld: boot.o: relocation R_X86_64_32 against `.multiboot' can not be…
0
votes
1 answer

Mint Linux can't find allocated ssd disk sapce

My laptop DELL PRECISION 3530 has 1 TB SSD. First I installed Windows 10 in 300 GB. and left the rest unallocated. I planned to install Mint Linux for the rest of the space. When I boot Mint Linux by a bootable USB and try to install it, it doesn't…
masiboo
  • 4,537
  • 9
  • 75
  • 136
0
votes
1 answer

Can someone expain how I use this C data structure that comes from grub? I don't understand hi mem and lo mem

Grub is a multiboot compliant boot loader. When it boots an operating system it creates a structure defining the available memory and leaves a pointer to that structure in memory. I got that information…
Philluminati
  • 2,649
  • 2
  • 25
  • 32
0
votes
1 answer

Stack structure during protected mode initialization

I'm working on a simple kernel that follows the multiboot specification. This is for a class project, so I can't post my code directly, but for my question, it's sufficient to say that we're using a modified version of the multiboot sample code.…
ecapstone
  • 269
  • 5
  • 14
0
votes
0 answers

Understanding linker script values in the context of a simple kernel

I'm following this book with regards to developing a little kernel: https://littleosbook.github.io I've gotten to the point where the binary has to be linked and I want to be sure that I understand the linker script before proceeding: ENTRY(loader) …
Paul
  • 20,883
  • 7
  • 57
  • 74
0
votes
2 answers

What is meant by multiboot header?

What is meant by multiboot header ? While going through the tutorials on how to make an OS. I came across this term.
saplingPro
  • 20,769
  • 53
  • 137
  • 195