1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00
bztsrc--bootboot/x86_64-bios
2020-07-26 17:22:19 +02:00
..
boot.asm Support for RPi4 2020-02-26 12:54:20 +01:00
bootboot.asm Fixed issue #18 and CDROM parent dirs 2020-07-26 17:22:19 +02:00
bootboot.inc Added protocol level 2 to reference implementations 2020-06-16 03:35:19 +02:00
fs.inc mkbootimg improvements 2020-06-20 05:00:46 +02:00
Makefile Loaders moved to dist directory 2020-06-24 16:33:08 +02:00
mkboot.c Loaders moved to dist directory 2020-06-24 16:33:08 +02:00
OLVASSEL.md Docs 2020-01-30 21:50:14 +01:00
README.md Docs 2020-01-30 21:50:14 +01:00
tinf.inc Updated dates in copyright comments 2020-01-13 18:55:08 +01:00

BOOTBOOT BIOS / Multiboot / El Torito / Expansion ROM / Linux boot Implementation

See BOOTBOOT Protocol for common details.

On BIOS based systems, the same image can be loaded via Multiboot, chainload from MBR, VBR (GPT hybrid booting) or from CDROM boot record via boot.bin, run as a BIOS Expansion ROM (so not only the ramdisk can be in ROM, but the loader as well), or can be loaded as a Linux kernel (by ISOLINUX, LoadLin etc.).

Machine state

IRQs masked. GDT unspecified, but valid, IDT unset. SSE, SMP enabled. Code is running in supervisor mode in ring 0 on all cores.

Installation

  1. BIOS disk / cdrom: copy bootboot.bin to FS0:\BOOTBOOT\LOADER. You can place it inside your INITRD partition or outside of partition area as well (with dd conv=notrunc oseek=x). Finally install boot.bin in the El Torito Boot catalog with "no emulation" or in Master Boot Record (or in Volume Boot Record if you have a boot manager), saving bootboot.bin's first sector's LBA number in a dword at 0x1B0. The mkboot utility will do that for you.

  2. BIOS ROM: install bootboot.bin in a BIOS Expansion ROM.

  3. GRUB: specify bootboot.bin as a Multiboot "kernel" in grub.cfg, or you can also chainload boot.bin. You can load the initrd and the environment file as modules (in this order). If no modules given, they will be loaded from disk as usual. Example:

menuentry "MyKernel" {
    multiboot /bootboot/loader      # bootboot.bin
    module /bootboot/initrd         # first module is the initrd (optional)
    module /bootboot/config         # second module is the environment file (optional)
    boot
}

Limitations

  • As it boots in protected mode, it only maps the first 4G of RAM.
  • Compressed initrd in ROM is limited to ~96k.
  • The CMOS nvram does not store timezone, so always GMT+0 returned in bootboot.timezone.
  • Only supports SHA-XOR-CBC, no AES