Re: aarch64 pkgbase example: "devmatch: Can't read linker hints file." [operator error, sorry]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Wed, 21 Feb 2024 04:32:04 UTC
[I did not put /boot/ in the kern.module_path's .]

On Feb 20, 2024, at 20:26, Mark Millard <marklmi@yahoo.com> wrote:

> 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"

Bad path.

> # 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"

Bad path.

> also got the Can't read linker notices.
> 
> I've seen similar on armv7.

Sorry for the noise.


===
Mark Millard
marklmi at yahoo.com