]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: spl: Add a test for the NOR load method
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:48:04 +0000 (16:48 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commit65efaac425e948dc56db5cf315d0497faeddb5b0
tree449fb50044d0cbe31a9d13c8ee88c8b1ede3cfb4
parent53d8bf8f9cff89dabf3c6461a1edeeddd49bccc6
test: spl: Add a test for the NOR load method

Add a test for the NOR load method. Since NOR is memory-mapped we can
substitute a buffer instead. The only major complication is testing LZMA
decompression.  It's too complex to implement LZMA compression in a test, and we
have no in-tree compressor, so we just include some pre-compressed data. This
data was generated through something like

    generate_data(plain, plain_size, "lzma")
    cat plain.dat | lzma | hexdump -C

and was cleaned up further in my editor.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/spl.h
configs/sandbox_noinst_defconfig
configs/sandbox_spl_defconfig
include/configs/sandbox.h
include/test/spl.h
test/image/Makefile
test/image/spl_load.c
test/image/spl_load_nor.c [new file with mode: 0644]