]> git.baikalelectronics.ru Git - uboot.git/commit
test: cmd: fdt: Test fdt memory
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:41 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Mar 2023 22:08:51 +0000 (16:08 -0600)
commit747f36cb93cd9c6e51fd83427558adb4829b06fc
tree6803d4b7cfed1b7e7b74fc6e8d979f697ec48c58
parent69951cf3828318fa58473755948cb006fdd4ff69
test: cmd: fdt: Test fdt memory

Add 'fdt memory' test which works as follows:
- Create custom FDT with /memory node, with select #*cells, map it to sysmem
- Perform memory fixup
- Read back the /memory node and validate its content

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 <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/cmd/fdt.c