Re: NetBSD-10.0_BETA: clock: unknown CMOS layout

2022-12-24 Thread Robert Elz
Date:Fri, 23 Dec 2022 10:20:27 - (UTC)
From:mlel...@serpens.de (Michael van Elst)
Message-ID:  

  | The message says that no century information is found in the CMOS RAM,
  | the hardware clock itself seems to keep only 2 year digits. The century
  | is then deduced as 1900 if the year number is less than 70 and 2000
  | otherwise.

I would hope that it is the other way around, if >=70, assume 1900,
and if < 70, assume 2000 (which is why 22 now will produce 2022).

  | This heuristic will fail 2030.

2070 would be more likely.But given how very unlikely it is now
that anyone is ever going to (legitimately - people doing weird things
can deal with the issues) boot a system in the 20th century, ever again,
then perhaps we should be altering the heuristic to assume all years
are 21st century for now, and then in another 50 years or so, if systems
still exist with this issue, and we are still measuring civil time the same
way, change the heuristic again so that 22nd century years will work
with a similar boundary to what was used for 20th/21st century years,
until sometime into the 22nd century, where it can start assuming all
boots occur in that period (and so on, for as long as this is needed).

kre



Re: NetBSD-10.0_BETA: clock: unknown CMOS layout

2022-12-23 Thread Michael van Elst
dposto...@yandex.ru (Dmitrii Postolov) writes:

>"clock: unknown CMOS layout"

The message says that no century information is found in the CMOS RAM,
the hardware clock itself seems to keep only 2 year digits. The century
is then deduced as 1900 if the year number is less than 70 and 2000
otherwise.

This heuristic will fail 2030. Then the clock will start with a
date 100 years in the past and gets corrected later during the
boot process. Ugly, but probably not fatal.



Re: NetBSD-10.0_BETA: clock: unknown CMOS layout

2022-12-23 Thread Michael van Elst
dposto...@yandex.ru (Dmitrii Postolov) writes:

>On boot of NetBSD-10.0_BETA the message "clock: unknown CMOS layout" is 
>printed. There is no this message at boot on NetBSD-9.x.

It's a DIAGNOSTIC message, if you run NetBSD-9.x release, the kernel
is built without DIAGNOSTIC checks and messages, but NetBSD-10.0-BETA
still is.




Re: NetBSD-10.0_BETA: clock: unknown CMOS layout

2022-12-23 Thread Martin Husemann
On Fri, Dec 23, 2022 at 02:48:25PM +0500, Dmitrii Postolov wrote:
> Hi to All! Sorry for my bad English...
> 
> $ uname -a
> NetBSD aspire9.localnet 10.0_BETA NetBSD-10.0_BETA (GENERIC) #0: Fri Dec 23
> 12:41:20 +05 2022 
> root@aspire9.localnet:/root/sysbuild/amd64/obj/usr/src/sys/arch/amd64/compile/GENERIC
> amd64
> 
> On boot of NetBSD-10.0_BETA the message "clock: unknown CMOS layout" is
> printed. There is no this message at boot on NetBSD-9.x.
> 
> Photo of screen: https://disk.yandex.ru/i/ashqmg563zGemQ
> 
> The hardware: PC Acer Aspire XC-895 Intel Core i5-10400

Modern machines not always have the "pc compatible" parts like the cmos/clock
or keyboard/mouse connector, but replace them with (typically) i2c connected
devices. Windows stopped requiring that level of hardware compatibility some
time ago and manufactures (naturally) use the new options.

Parts of the "fallout" is hidden by ACPI glue.

We are lacking a few drivers in that area, I see the same when booting
NetBSD on my wife's notebook. Older NetBSD versions just did not print the
message (but the CMOS/clock did not work any better with them).

Martin


NetBSD-10.0_BETA: clock: unknown CMOS layout

2022-12-23 Thread Dmitrii Postolov

Hi to All! Sorry for my bad English...

$ uname -a
NetBSD aspire9.localnet 10.0_BETA NetBSD-10.0_BETA (GENERIC) #0: Fri Dec 
23 12:41:20 +05 2022 
root@aspire9.localnet:/root/sysbuild/amd64/obj/usr/src/sys/arch/amd64/compile/GENERIC 
amd64


On boot of NetBSD-10.0_BETA the message "clock: unknown CMOS layout" is 
printed. There is no this message at boot on NetBSD-9.x.


Photo of screen: https://disk.yandex.ru/i/ashqmg563zGemQ

The hardware: PC Acer Aspire XC-895 Intel Core i5-10400

The full dmesg: https://disk.yandex.ru/d/OktdpeJ3UuwuHA