Disable CONFIG_BUG

It may be causing a loop on WARN_ON_ONCE() and page fults trying to
write to the console.
This commit is contained in:
Rodrigo Arias 2024-07-08 18:27:29 +02:00
parent 5f90528b51
commit bef5a6eac5
2 changed files with 24 additions and 0 deletions

View File

@ -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.

View File

@ -66,6 +66,7 @@
TRACING y
BOOTTIME_TRACING y
STRICT_DEVMEM n
BUG n
''
# Disable SMP so we don't have IPI
+ ''