# chapter 1: freestanding companion code for [crossing the boundary, chapter 1: freestanding](https://fawn.rest/journal/crossing-the-boundary-1/) a kernel that GRUB boots over multiboot2. the boot code checks the CPU, maps the first 1 GiB both where GRUB loaded it and i nthe top 2 GiB, switches to long mode, and then jumps to the rust entry point. rust brings up the serial console, reports what GRUB handed over, and greets you! ## what's here - multiboot2 boot with GRUB 2, into a higher-half kernel. the boot information is read with the [`multiboot2`](https://crates.io/crates/multiboot2) crate - a 16550 serial console - a panic handler - an in-kernel test harness ## building see the root README for the tools needed. ```sh just run # boot in QEMU just run cmdline="hello=world" # boot with a kernel command line just debug # boot halted, waiting for GDB on :1234 just test # run the kernel test harness just check # rustfmt + clippy just # list every recipe ```