Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2021 02:31:16 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Gordon Bergling <gbe@freebsd.org>
Cc:        =?utf-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com>, freebsd-arm@freebsd.org
Subject:   Re: PR 252541: Early kernel panic on RPi4B (Too many early devmatch mappings)
Message-ID:  <7893EBCC-8431-4287-9F16-1AF28794F5CA@yahoo.com>
In-Reply-To: <E3ABC40A-92FF-45B7-BB6E-B05AF930DC33@yahoo.com>
References:  <X/y5YbRUMOyn4Hwl@lion.0xfce3.net> <7C6DC946-B7B6-42C8-A8B9-0471ED7B77AA@yahoo.com> <F0031010-EBB0-4DDE-B9D1-20A0F161E4EA@yahoo.com> <784263FD-D17C-4CA5-991E-FE93E3E584F3@yahoo.com> <7655A4A0-B74E-41B5-8E93-8F39CD462A81@yahoo.com> <4CFBA50F-0C76-48A4-8D88-58ED76D4E444@googlemail.com> <8AA272E7-DC58-4129-B376-0BB663B63BA7@yahoo.com> <X/1f/sj5LuKh//o6@lion.0xfce3.net> <E3ABC40A-92FF-45B7-BB6E-B05AF930DC33@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[I've cut the history.]

I've tried a from-scratch build via the script:

# more =
~/sys_build_scripts.amd64-host/make-aarch64-debug-clang-default_config-amd=
64-host.sh
kldload -n filemon && \
script =
~/sys_typescripts/typescript_make_aarch64_debug_clang_default_config-amd64=
-host-$(date +%Y-%m-%d:%H:%M:%S) \
env __MAKE_CONF=3D/dev/null SRCCONF=3D/dev/null SRC_ENV_CONF=3D/dev/null =
TARGET=3Darm64 TARGET_ARCH=3Daarch64 \
WITH_META_MODE=3Dyes \
=
MAKEOBJDIRPREFIX=3D"/usr/obj/aarch64dbg_default_config_clang/arm64.aarch64=
" \
make $*

on my existing source context ( 19cca0b9613d
with CommitDate 2021-01-09 16:21:33 -0800=20
based ):

# ~/fbsd-based-on-what-freebsd-main.sh mm-src
19cca0b9613d7c3058e41baf0204245119732235
CommitDate: 2021-01-09 16:21:33 -0800
5d333ee67ac3 19cca0b9613d (HEAD -> mm-src) mm-src snapshot for mm's =
patched build in git context.

So defaults but for TARGET, TARGET_ARCH, WITH_META_MODE, and
MAKEOBJDIRPREFIX . WITH_META_MODE should not matter for a
from-scratch build as far as I know.

This is still a cross-build context. I used the 3 commands:

=
~/sys_build_scripts.amd64-host/make-aarch64-debug-clang-default_config-amd=
64-host.sh -j32 kernel-toolchain

=
~/sys_build_scripts.amd64-host/make-aarch64-debug-clang-default_config-amd=
64-host.sh -j32 buildkernel

=
~/sys_build_scripts.amd64-host/make-aarch64-debug-clang-default_config-amd=
64-host.sh -j32 installkernel =
DESTDIR=3D/usr/obj/DESTDIRs/clang-aarch64-installkernel-dbg-default_config=


(I'll avoid documenting copying to the RPi4B /boot/kernel/ and such.)

It still failed to boot, with:

. . .
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...              =20
Using DTB provided by EFI at 0x7ef0000.
EFI framebuffer information:
addr, size     0x3e2fe000, 0x7e9000
dimensions     1920 x 1080
stride         1920
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
---<<BOOT>>---
panic: Too many early devmap mappings
cpuid =3D 0
time =3D 1
KDB: stack backtrace:
. . .

So my configuration files were not needed to have the failure
that I've been getting for the debug kernels.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7893EBCC-8431-4287-9F16-1AF28794F5CA>