[Bug 1837443] Re: [Power9][Witherspoon dd2.3] unable to set hwclock

Patricia Domingues patricia.domingues at canonical.com
Mon Sep 2 23:11:45 UTC 2019


Ok. I was able to reproduce the error and then I've followed the instructions from comment #2
Step 1 (### With busctl on BMC), but I've got this output:
`An enumeration mapping was attempted for which no valid enumeration value exists.` which I think it didn't work.

But what I understood from openbmc (and from the command above mentioned) what was required: changing time owner to SPLIT, which means we are able to set different time for BMC and host
I managed to change it from BMC System Management Web UI, ran the hwclock command into host and was able to change it: 

`sudo /sbin/hwclock --set --verbose --date "2004/11/22 04:10:00";`
output: https://pastebin.canonical.com/p/Tc4w7573cJ/

`sudo /sbin/hwclock
2004-11-22 04:10:15.457567+00:00
```
After that, I've changed it again with: 

`ubuntu at bobone:~$ sudo /sbin/hwclock --systohc`
and then 

```
`sudo /sbin/hwclock
2019-09-02 23:04:40.480165+00:00
```

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1837443

Title:
  [Power9][Witherspoon dd2.3] unable to set hwclock

Status in The Ubuntu-power-systems project:
  In Progress
Status in util-linux package in Ubuntu:
  New

Bug description:
  On the upgraded witherspoon Power9 system we are unable to set
  hwclock.

  ubuntu at bobone:~$ uname -a 
  Linux bobone 5.0.0-20-generic #21-Ubuntu SMP Mon Jun 24 09:31:42 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux
  ubuntu at bobone:~$ cat /etc/issue
  Ubuntu 19.04 \n \l

  ubuntu at bobone:~$ date 
  Mon Jul 22 18:25:04 UTC 2019
  ubuntu at bobone:~$ sudo /sbin/hwclock --set --date "2004/11/22 04:10:00"; sleep 5s; sudo /sbin/hwclock
  2019-07-22 18:25:26.799805+00:00
  ubuntu at bobone:~$ 

  ubuntu at bobone:~$ sudo /sbin/hwclock --set --date "2004/11/22 04:10:00"; sleep 5s; sudo /sbin/hwclock --verbose
  hwclock from util-linux 2.33.1
  System Time: 1563820048.938797
  Trying to open: /dev/rtc0
  Using the rtc interface to the clock.
  Last drift adjustment done at 1101096600 seconds after 1969
  Last calibration done at 1101096600 seconds after 1969
  Hardware clock is on UTC time
  Assuming hardware clock is kept in UTC time.
  Waiting for clock tick...
  ioctl(4, RTC_UIE_ON, 0): Invalid argument
  Waiting in loop for time from /dev/rtc0 to change
  ...got clock tick
  Time read from Hardware Clock: 2019/07/22 18:27:29
  Hw clock time : 2019/07/22 18:27:29 = 1563820049 seconds since 1969
  Time since last adjustment is 462723449 seconds
  Calculated Hardware Clock drift is 0.000000 seconds
  2019-07-22 18:27:28.877732+00:00
  ubuntu at bobone:~$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1837443/+subscriptions



More information about the foundations-bugs mailing list