[PATCH v2 24/29] test: spl: Add functions to create filesystems
Simon Glass
sjg at chromium.org
Sun Oct 15 01:35:06 CEST 2023
On Sat, 14 Oct 2023 at 14:48, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Add some functions for creating fat/ext2 filesystems with a single file and
> a test for them. Filesystems require block devices, and it is easiest to
> just use MMC for this. To get an MMC, we must also pull in the test device
> tree. SPL_TIMER is necessary for SPL_MMC, perhaps because it uses a timeout.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v2:
> - Explicitly invalidate FAT block device cache before testing
> - Remove unused dm.h include in spl_load.c
> - Add note about why we enable SPL_TIMER
> - Split off ext/-T changes into their own commits
>
> configs/sandbox_noinst_defconfig | 7 +
> include/test/spl.h | 3 +
> test/image/Kconfig | 11 ++
> test/image/Makefile | 1 +
> test/image/spl_load_fs.c | 306 +++++++++++++++++++++++++++++++
> 5 files changed, 328 insertions(+)
> create mode 100644 test/image/spl_load_fs.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list