diff options
| author | Marek Vasut <[email protected]> | 2023-03-02 04:08:34 +0100 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2023-03-09 08:50:48 -0800 |
| commit | 1b025afca4ca303772a24c2a926cf9e75a1151bb (patch) | |
| tree | 346e4ea2c8884bb88d3cdd0e6290aebb41c76f11 /doc/develop/python_cq.rst | |
| parent | 4e22e12e3f57657c01b4c4f4451670b05b803cfd (diff) | |
test: cmd: fdt: Test fdt get addr
Add 'fdt get addr' test which works as follows:
- Create fuller FDT, map it to sysmem
- Get address of various properties
- Compare addresses calculated by UT and fdt command
This test is special in that it has to go through gruesome remapping scheme
where the test calculates:
- pointer offsets of the generated FDT root and the property being tested
- map_sysmem() result of environment variable "fdtaddr" and the one set
by the test matching address of property being tested
- difference between the later and the former, to obtain offset of the
DT property from start of DT
The offsets must match in both the UT and the tested U-Boot, if they do
not, the test fails.
The test case can be triggered using:
"
./u-boot -Dc 'ut fdt'
"
To dump the full output from commands used during test, add '-v' flag.
Signed-off-by: Marek Vasut <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc/develop/python_cq.rst')
0 files changed, 0 insertions, 0 deletions
