From bef5a6eac59259c5437676a06f966a083b73ef2d Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 8 Jul 2024 18:27:29 +0200 Subject: [PATCH] Disable CONFIG_BUG It may be causing a loop on WARN_ON_ONCE() and page fults trying to write to the console. --- JOURNAL.md | 23 +++++++++++++++++++++++ lagarto-ox.nix | 1 + 2 files changed, 24 insertions(+) diff --git a/JOURNAL.md b/JOURNAL.md index eeb79f3..351dd6c 100644 --- a/JOURNAL.md +++ b/JOURNAL.md @@ -862,3 +862,26 @@ I added it to the bitstream repository, as it is a binary blob too. Now I need to update the load addresses: https://gitlab.bsc.es/hwdesign/fpga/integration-lab/fpga-tools/-/blob/6a63bcea6d1d59df3c7d62311aa4935efd54d3a3/boot_riscv/boot_sa.sh#L36-40 + +Continues to hang just after those perl messages: + + + mount --move /proc /mnt-root/proc + + mount --move /sys /mnt-root/sys + + mount --move /dev /mnt-root/dev + + mount --move /run /mnt-root/run + + type -P switch_root + + exec env -i /nix/store/988axh0bq3wqp90gms4b4a0hkfwvkd3i-extra-utils/bin/switch_root /mnt-root /nix/store/0za1vqh5alk7mxqs59qxx8izmwmf21w6-nixos-system-nixos-riscv-24.11pre-git/init + + <<< NixOS Stage 2 >>> + + [ 541.559320] EXT4-fs (pmem0p2): re-mounted 44444444-4444-4444-8888-888888888888 r/w. Quota mode: none. + [ 541.641280] booting system configuration /nix/store/0za1vqh5alk7mxqs59qxx8izmwmf21w6-nixos-system-nixos-riscv-24.11pre-git + running activation script... + [ 545.569700] stage-2-init: running activation script... + [ 549.019380] random: perl: uninitialized urandom read (4 bytes read) + [ 549.274940] random: perl: uninitialized urandom read (4 bytes read) + +### QUESTION: What happens if we disable `CONFIG_BUG` + +May be a long shot, but if we are experiencing the same page fault loop as in +cincoranch we may as well try. diff --git a/lagarto-ox.nix b/lagarto-ox.nix index f222110..9cc4aa6 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -66,6 +66,7 @@ TRACING y BOOTTIME_TRACING y STRICT_DEVMEM n + BUG n '' # Disable SMP so we don't have IPI + ''