sandbox: enable support for the unlz4 command
PATCH 1/1 sandbox: enable support for the unlz4 command
This does not work with sandbox at present. Fix it up to use map_sysmem() to convert an address to a pointer.
Signed-off-by Jonathan Liu <[email protected]>
--- cmd/unlz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
cmd/unlz4.c +2 -1
@@ -7,6 +7,7 @@#include <common.h> #include <command.h> #include <env.h> +#include <mapmem.h> #include <u-boot/lz4.h> static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,
@@ -26,7 +27,7 @@ static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,return CMD_RET_USAGE ; } - ret =ulz4fn ((void *)src, src_len, (void *)dst, &dst_len); + ret =ulz4fn (map_sysmem (src,0 ), src_len,map_sysmem (dst, dst_len), &dst_len);if (ret) {printf ("Uncompressed err :%d\n" , ret);return 1 ;
Signature · 1 line
2.44.0
Quoted 9 lines · Jonathan Liu
This does not work with sandbox at present. Fix it up to use
map_sysmem()to convert an address to a pointer.Signed-off-by Jonathan Liu <[email protected]>--- cmd/unlz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Simon Glass
Reviewed-byQuoted 9 lines · Jonathan Liu
This does not work with sandbox at present. Fix it up to use
map_sysmem()to convert an address to a pointer.Signed-off-by Jonathan Liu <[email protected]>--- cmd/unlz4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Applied to u-boot-dm, thanks!