chaos4ever / chaos

The chaos Operating System
https://chaos4ever.github.io/
16 stars 6 forks source link

Upgrade to GRUB2 #120

Closed perlun closed 5 years ago

perlun commented 5 years ago

Let's face it: grub-legacy is, after all, legacy. GRUB 2 was released 6 years ago at the time of writing (June 2012). We should adopt these new changes.

There are a few steps involved:

image

perlun commented 5 years ago

More info on startup exception: fired up qemu -s and attached a gdb, placed a breakpoint on the failing line (the error was reproducible in QEMU also). Managed to see the kernel output before the crash:

                  Starting (null)
                   (process ID 0).
                  storm 0.5.1+ booting...
                  Compiled by per@ceres-debian on Sep 28 2018 22:32:36 (revision 4931669).
                  Machine: Celeron (Mendocino) at 950373170 Hz (~950 MHz).
                  Memory: Total 511 MB, kernel 23672 KB, reserved 384 KB, free 500104 KB.
                  VM subsystem initialized.
                  Global memory initialized.
                  ISA-based I/O initialized.
                  DMA initialized.
                  IPC initialized.
                  Thread subsystem initialized.
                  Process subsystem initialized.
                  Started  (process ID 1).
                  Started  (process ID 2).
                  Started  (process ID 3).
                  Started  (process ID 4).
                  Started  (process ID 5).
                  Started  (process ID 6).
                  Started  (process ID 7).
                  Started  (process ID 8).
                  Started  (process ID 9).
                  Started  (process ID 10).
                  Started  (process ID 11).

The missing process names is an indication that some of the Multiboot info is not being passed from the GRUB 2 bootloader to the kernel as expected.