diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-21 13:57:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-30 14:25:42 -0700 |
commit | ff5fa7d62655ae6c1873e17057c057566c81df0d (patch) | |
tree | 978054b14910028705db0efd515b41fc42dd1267 /arch/sandbox | |
parent | 017d421828971f6adbfa6a1305b80da7d620c596 (diff) | |
download | u-boot-ff5fa7d62655ae6c1873e17057c057566c81df0d.zip u-boot-ff5fa7d62655ae6c1873e17057c057566c81df0d.tar.gz u-boot-ff5fa7d62655ae6c1873e17057c057566c81df0d.tar.bz2 |
dm: core: Update ofnode_read_fmap_entry() to read hashes
At present this function uses the old format for reading hashes. Add
support for the current format.
Add a test while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/test.dts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index f86cd0d..e95f463 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -90,6 +90,16 @@ wp-ro { image-pos = <0xf000>; size = <0x1000>; + used = <0x884>; + compress = "lz4"; + uncomp-size = <0xcf8>; + hash { + algo = "sha256"; + value = [00 01 02 03 04 05 06 07 + 08 09 0a 0b 0c 0d 0e 0f + 10 11 12 13 14 15 16 17 + 18 19 1a 1b 1c 1d 1e 1f]; + }; }; rw { image-pos = <0x10000>; |