Difference between revisions of "Real-Time Clock"

From RCS Wiki
Jump to navigation Jump to search
(Add Ownership section)
(→‎Setting the hardware real-time clock has no effect: Fix code formatting (Pseudo Tor Browser doesn't like grave accents))
Line 5: Line 5:
 
== Setting the hardware real-time clock has no effect ==
 
== Setting the hardware real-time clock has no effect ==
  
If `hwclock --systohtc` has no effect (i.e. `hwclock --get` is unchanged), then:
+
If <code>hwclock --systohtc</code> has no effect (i.e. <code>hwclock --get</code> is unchanged), then:
  
 
1. From the BMC console, power off the host
 
1. From the BMC console, power off the host
  
2. Type `busctl set-property xyz.openbmc_project.Settings    /xyz/openbmc_project/time/owner xyz.openbmc_project.Time.Owner    TimeOwner s xyz.openbmc_project.Time.Owner.Owners.Host` (note the capitalization: `Host`, not `HOST` as the openbmc github issues tell you!)
+
2. Type <code>busctl set-property xyz.openbmc_project.Settings    /xyz/openbmc_project/time/owner xyz.openbmc_project.Time.Owner    TimeOwner s xyz.openbmc_project.Time.Owner.Owners.Host</code> (note the capitalization: <code>Host</code>, not <code>HOST</code> as the openbmc github issues tell you!)
  
 
3. Reboot the BMC
 
3. Reboot the BMC
  
 
4. Power on the host
 
4. Power on the host

Revision as of 04:14, 15 April 2025

Ownership

For security reasons, by default, the BMC owns the RTC; the host has read-only access to the RTC via IPMI.

Setting the hardware real-time clock has no effect

If hwclock --systohtc has no effect (i.e. hwclock --get is unchanged), then:

1. From the BMC console, power off the host

2. Type busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/time/owner xyz.openbmc_project.Time.Owner TimeOwner s xyz.openbmc_project.Time.Owner.Owners.Host (note the capitalization: Host, not HOST as the openbmc github issues tell you!)

3. Reboot the BMC

4. Power on the host