> On 12 Nov 2019, at 18:41, Ian Lepore <ian at freebsd.org> wrote:
>
> On Tue, 2019-11-12 at 12:03 +0200, Daniel Braniss wrote:
>>> On 12 Nov 2019, at 11:32, Peter Jeremy <peter at
rulingia.com> wrote:
>>>
>>> On 2019-Nov-12 10:30:21 +0200, Daniel Braniss <danny at
cs.huji.ac.il>
>>> wrote:
>>>> warning: KLD '/boot/kernel/wlan.ko' is newer than the
>>>> linker.hints file
>>>> warning: KLD '/boot/kernel/rtwn.ko' is newer than the
>>>> linker.hints file
>>>
>>> ...
>>>> the link.hints is indeed very old :
>>>> neo-000# ls -ls /boot/kernel/linker.hints
>>>> 224 -rw-r--r-- 1 root wheel 228972 Jan 1 2010
>>>> /boot/kernel/linker.hints
>>>
>>> Well, that's a nonsense timestamp because FreeBSD didn't
support
>>> AllWinner
>>> in 2010. My guess is that your system clock was wrong.
>>>
>>>> how can this be fixed?
>>>
>>> Try rerunning kldxref (with the clock set correctly).
>>
>> the file is created before the date gets updated!
>> it seems that on allwinner epoch is 1st of Jan 2010! (after a power
>> cycle)
>> so ?kldxref? runs but the time stamp is wrong,
>> probably touch /boot/kernel/linker.hints after the clock is corrected
>> solves the problem
>>
>> thanks,
>> danny
>>
>
> There doesn't appear to be anything date-sensitive about creating the
> xref files. If there is no file in a given directory that contains
> modules, the file is created. It's also created if you've set
> kldxref_clobber=YES in rc.conf (it will rebuild on every boot).
> Otherwise if an xref file exists, no work is done.
>
> Since a normal installkernel renames the old directory then populates a
> clean new directory, there's no need for dates to be involved?
I?m cross building and in the arm case no file is created (I did the same for
amd64 an one was created)> the
> first boot after installing a new kernel should see no xref file and
> build one. If you do something like hand-install just the kernel or
> just an updated module, then the file won't get rebuilt.
>
> I've always wished that "service kldxref restart" would just
force-
> rebuild the files.
I have kldxref_enable=yes
so it got rebuild the first time after a power cycle it got created with an old
date,
a reboot did not help since i didn?t know about the clobber
stuff.>
> Even better, if we could make kldxref usable as a cross-tool, the xrefs
> could be generated during a crossbuild rather than on firstboot.
I thought this was too tricky, in any case it is rather fast to re-create it,
so i guess the clobber stuff should work, In any case the modules
where loaded, so the complain was just that, a warning.
danny
>
> -- Ian
>
>