[PATCH v3 1/3] fs: dispatch null_dev_desc_ok filesystems before lookup
Simon Glass
sjg at chromium.org
Fri Jun 12 20:18:08 CEST 2026
Hi Vincent,
On 2026-06-01T13:12:01, Vincent Jardin <vjardin at free.fr> wrote:
> fs: dispatch null_dev_desc_ok filesystems before lookup
>
> Filesystems that are null_dev_desc_ok (semihosting, ubifs) have
> no UCLASS_BLK device under their ifname, so on real hardware
> fs_set_blk_dev() always fails at the partition lookup.
> The workaround was to add a per-filesystem
> command (example cmd/ubifs.c), which duplicates the plumbing of
> fstype_info.
>
> Probe such entries with block_desc=NULL up front, so
> load semihosting <addr> <file>
> works without a new command.
>
> Sandbox boards that exercise the existing fallback through "host
> bind" stay unchanged.
>
> Signed-off-by: Vincent Jardin <vjardin at free.fr>
>
> fs/fs.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
The example in the commit body needs the <dev[:part]> placeholder - it
should read 'load semihosting - <addr> <file>' to match the actual
command syntax.
Reviewed-by: Simon Glass <sjg at chromium.org>
Regards,
Simon
More information about the U-Boot
mailing list