Date: Tue, 20 Feb 2024 20:26:38 -0800 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD-pkgbase@freebsd.org Cc: Warner Losh <imp@bsdimp.com> Subject: aarch64 pkgbase example: "devmatch: Can't read linker hints file." Message-ID: <0F88EF0A-E32F-4D46-84BA-798C9D6406E0@yahoo.com> In-Reply-To: <493D295E-2888-41AA-BABC-37D66B193BAE@yahoo.com> References: <493D295E-2888-41AA-BABC-37D66B193BAE@yahoo.com>
index | next in thread | previous in thread | raw e-mail
devd's devmatch has issues. Here the example is aarch64 (for which pkgbase has /boot/dtb/ split out and, so, allows multiple kernels to be installed at once). # grep '^kern.*="kernel' /boot/loader.conf kernel="kernel.GENERIC-NODEBUG" kern.module_path="kernel.GENERIC-NODEBUG" # uname -apKU FreeBSD aarch64-main-pkgs 15.0-CURRENT FreeBSD 15.0-CURRENT main-n268410-445d3d227e68 GENERIC-NODEBUG arm64 aarch64 1500014 1500014 # ls -Tlodt /boot/kernel*/*.hints /boot/kernel*/kernel | head -rw-r--r-- 1 root wheel - 270704 Feb 21 03:52:25 2024 /boot/kernel.GENERIC-MMCCAM/linker.hints -rw-r--r-- 1 root wheel - 270732 Feb 21 03:48:56 2024 /boot/kernel.GENERIC-DEBUG.good/linker.hints -rw-r--r-- 1 root wheel - 270732 Feb 21 03:48:35 2024 /boot/kernel/linker.hints -rw-r--r-- 1 root wheel - 270732 Feb 21 03:48:21 2024 /boot/kernel.GENERIC-NODEBUG.good/linker.hints -rw-r--r-- 1 root wheel - 270732 Feb 21 03:48:15 2024 /boot/kernel.GENERIC-NODEBUG/linker.hints -r--r--r-- 1 root wheel - 17932640 Feb 20 12:40:53 2024 /boot/kernel.GENERIC-MMCCAM/kernel -r--r--r-- 1 root wheel - 18401344 Feb 20 12:40:53 2024 /boot/kernel.GENERIC-NODEBUG/kernel -r--r--r-- 1 root wheel - 17934504 Feb 20 12:40:53 2024 /boot/kernel/kernel -r--r--r-- 1 root wheel - 17934400 Feb 16 22:44:28 2024 /boot/kernel.GENERIC-DEBUG.good/kernel -r--r--r-- 1 root wheel - 18405496 Feb 16 22:44:28 2024 /boot/kernel.GENERIC-NODEBUG.good/kernel (I used kldxref on each of the various directories to produce the lihniker.hints files.) But booting after that got: Mounting local filesystems:. devmatch: Can't read linker hints file. . . . Starting devd. devmatch: Can't read linker hints file. devmatch: Can't read linker hints file. devmatch: Can't read linker hints file. . . . Rebooting based on: # grep '^kern.*="kernel' /boot/loader.conf kernel="kernel" kern.module_path="kernel" also got the Can't read linker notices. I've seen similar on armv7. === Mark Millard marklmi at yahoo.comhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F88EF0A-E32F-4D46-84BA-798C9D6406E0>
