Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2017 19:19:55 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Emmanuel Vadot <manu@bidouilliste.com>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   FYI: Pine64+ 2GB (so A64) booting and non-debug vs. debug kernel: nondebug+INVARIANTS+INVARIANT_SUPPORT sufficient to boot
Message-ID:  <1C18FF04-6772-4E9C-88C5-B8D5478C5809@dsl-only.net>

next in thread | raw e-mail | index | archive | help
I took my normal GENERIC-NODBG (that includes GENERIC)
and changed INVARIANTS and INVARIANT_SUPPORT to have
"options" status instead of "nooptions" status. The
result boots (so far no counterexamples). (This is
head -r323246 .)

So it appears that one or more INVARIANT tests are
"fixing" the Pine64+ 2GB boot problem. I've no clue
which. But other debug options are not required.

FYI. . .

# more /usr/src/sys/arm64/conf/GENERIC-NODBG                             =
                                                                         =
                                        =20
#
# GENERIC -- Custom configuration for the arm64/aarch64
#

include "GENERIC"

ident   GENERIC-NODBG

makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) =
debug symbols

options         ALT_BREAK_TO_DEBUGGER

options         KDB                     # Enable kernel debugger support

# For minimum debugger support (stable branch) use:
#options        KDB_TRACE               # Print a stack trace for a =
panic
options         DDB                     # Enable the kernel debugger

# Extra stuff:
#options        VERBOSE_SYSINIT         # Enable verbose sysinit =
messages
#options        BOOTVERBOSE=3D1
#options        BOOTHOWTO=3DRB_VERBOSE
#options        KTR
#options        KTR_MASK=3DKTR_TRAP
##options       KTR_CPUMASK=3D0xF
#options        KTR_VERBOSE

# Disable any extra checking for. . .
nooptions       DEADLKRES               # Enable the deadlock resolver
options         INVARIANTS              # Enable calls of extra sanity =
checking
options         INVARIANT_SUPPORT       # Extra sanity checks of =
internal structures, required by INVARIANTS
nooptions       WITNESS                 # Enable checks to detect =
deadlocks and cycles
nooptions       WITNESS_SKIPSPIN        # Don't run witness on spinlocks =
for speed
nooptions       DIAGNOSTIC
nooptions       MALLOC_DEBUG_MAXZONES   # Separate malloc(9) zones
nooptions       BUF_TRACKING
nooptions       FULL_BUF_TRACKING

=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1C18FF04-6772-4E9C-88C5-B8D5478C5809>