Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2024 21:36:42 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD-pkgbase@freebsd.org
Subject:   Re: aarch64 pkgbase example: "devmatch: Can't read linker hints file."
Message-ID:  <6CCE6246-3998-406E-9B9D-BD1A2BD64692@yahoo.com>
In-Reply-To: <CANCZdfopEn1E3cgPTx80HPfdRJQ6HS%2BOW6AxnTbGXDZTjyr2dw@mail.gmail.com>
References:  <493D295E-2888-41AA-BABC-37D66B193BAE@yahoo.com> <0F88EF0A-E32F-4D46-84BA-798C9D6406E0@yahoo.com> <CANCZdfopEn1E3cgPTx80HPfdRJQ6HS%2BOW6AxnTbGXDZTjyr2dw@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On Feb 20, 2024, at 20:37, Warner Losh <imp@bsdimp.com> wrote:

>> On Tue, Feb 20, 2024, 9:26 PM 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"
>> 
>> # 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.
>> 
> Native or cross built?

Operator error: missing /boot/ in the kern.module_path .

FYI: pkgbase, however it is built.

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

Also operator error: missing /boot/ in the kern.module_path .
Also pkgbase, however it is built.


===
Mark Millard
marklmi at yahoo.com



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6CCE6246-3998-406E-9B9D-BD1A2BD64692>