Wrong output who -b command

Hello team,
I have a Pi 400 with Rocky Linux 9.0 (Blue Onyx) running aarch64.
System is fully updated, kernel version: 5.15.55-v8.1.el9.altarch
The command who -b always returns system boot 2022-09-22 01:59
Uptime command shows 12:34:32 up 17 min, 2 users, load average: 0.00, 0.15, 0.23

Even after a reboot, the who -b command keeps showing
system boot 2022-09-22 01:59

I would like to report this problem.
Kind regards,
-gw

On x86_64 the kernel version is usually 5.14, not 5.15?

Gerry,
As I explained in the case, this is an Raspberry Pi 400 (aarch64) platform, not x86_64. So, kernel versioning is different.

The “who -b” command simply does not work OK. I just started my system 3 minutes ago.

$ who -b
         system boot  2022-09-22 01:59
[gertw@raspgw3 ~]$ date
Tue Nov  8 10:39:16 AM CET 2022

rgds,
-gw

Does the “last” command report the reboot times correctly?

$ last reboot

Hi,

Good question, here’s this morning’s output

# last reboot

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 still running

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:26 (46+16:26)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 12:16 (46+11:16)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 10:53 (45+09:53)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 10:00 (44+09:00)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:26 (43+16:26)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:23 (43+16:23)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:20 (43+16:20)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 16:57 (43+15:57)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 16:41 (43+15:41)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 16:30 (43+15:30)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 16:17 (43+15:17)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:33 (42+16:33)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:22 (41+16:22)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 14:58 (41+13:58)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 09:41 (41+08:41)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 21:33 (40+20:33)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 20:33 (40+19:33)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:35 (40+16:35)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 15:50 (40+14:50)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 09:21 (40+08:21)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 21:56 (39+20:56)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 21:02 (39+20:02)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:36 (39+16:36)

reboot system boot 5.15.55-v8.1.el9 Thu Sep 22 01:59 - 17:14 (39+16:14)

reboot system boot 5.15.55-v8.1.el9 Thu Apr 7 01:59 - 15:49 (207+14:49)

wtmp begins Thu Apr 7 01:59:59 2022

rgds,

-gw

Looks like there is a problem with the wtmp file?

I took a look on another RockyLinux 9.0 (x86_64) system.

# last reboot

reboot system boot 5.14.0-70.30.1.e Tue Nov 8 11:03 still running

reboot system boot 5.14.0-70.26.1.e Tue Nov 8 10:42 - 11:03 (00:20)

reboot system boot 5.14.0-70.26.1.e Mon Nov 7 14:00 - 11:03 (21:02)

reboot system boot 5.14.0-70.26.1.e Mon Nov 7 12:01 - 11:03 (23:01)

reboot system boot 5.14.0-70.26.1.e Thu Nov 3 14:47 - 11:03 (4+20:15)

The difference is the ‘offset’. On the Pi (aarch64) it is the same (wrong!), while at the x86_64 system it works OK.

That might be important for the developers.

rgds,

-gw

Who are the developers of the Pi (aarch64 version)?
Interesting about the kernel version difference.

Hi Gerry,

I downloaded the image from https://download.rockylinux.org/pub/sig/9/altarch/aarch64/images/RockyLinuxRpi_9.0.img.xz, so I guess that the Rocky Linux developers put it there :wink:

The README file contains information how to write it onto an SD-card.

Somewhere I read - I forgot where - that it still is not officially supported at this moment.

rgds,

-gw