File: cbcmos.rst

package info (click to toggle)
u-boot 2025.01-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 330,740 kB
  • sloc: ansic: 2,627,855; python: 60,773; sh: 41,641; asm: 21,854; makefile: 15,048; perl: 12,447; cs: 6,763; cpp: 1,868; yacc: 1,100; lex: 747; awk: 57; tcl: 32; sed: 24
file content (45 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.. SPDX-License-Identifier: GPL-2.0+

cbcmos
======

Synopis
-------

::

    cbcmos check [<dev>]
    cbcmos update [<dev>]


Description
-----------

This checks or updates the CMOS-RAM checksum value against the CMOS-RAM
contents. It is used with coreboot, which provides information about where to
find the checksum and what part of the CMOS RAM it covers.

If `<dev>` is provided then the named real-time clock (RTC) device is used.
Otherwise the default RTC is used.

Example
-------

This shows checking and updating a checksum across bytes 38 and 39 of the
CMOS RAM::

    => rtc read 38 2
    00000038: 71 00                                            q.
    => cbc check
    => rtc write 38 66
    => rtc read 38 2
    00000038: 66 00                                            f.
    => cbc check
    Checksum 7100 error: calculated 6600
    => cbc update
    Checksum 6600 written
    => cbc check
    =>

See also :ref:`cedit_cb_load` which shows an example that includes the
configuration editor.