blob: 9395cf1cbd71d659972fdc5170d6259253a395af [file] [log] [blame]
Simon Glass47f36522024-10-14 16:32:10 -06001.. SPDX-License-Identifier: GPL-2.0+
2
3cbcmos
4======
5
6Synopis
7-------
8
9::
10
11 cbcmos check [<dev>]
12 cbcmos update [<dev>]
13
14
15Description
16-----------
17
18This checks or updates the CMOS-RAM checksum value against the CMOS-RAM
19contents. It is used with coreboot, which provides information about where to
20find the checksum and what part of the CMOS RAM it covers.
21
22If `<dev>` is provided then the named real-time clock (RTC) device is used.
23Otherwise the default RTC is used.
24
25Example
26-------
27
28This shows checking and updating a checksum across bytes 38 and 39 of the
29CMOS RAM::
30
31 => rtc read 38 2
32 00000038: 71 00 q.
33 => cbc check
34 => rtc write 38 66
35 => rtc read 38 2
36 00000038: 66 00 f.
37 => cbc check
38 Checksum 7100 error: calculated 6600
39 => cbc update
40 Checksum 6600 written
41 => cbc check
42 =>
Simon Glass34344202024-10-14 16:32:11 -060043
44See also :ref:`cedit_cb_load` which shows an example that includes the
45configuration editor.