u-boot/boot
Jérôme Carretero 408e2d5a22 boot: image: fixup zstd decompression buffer initialization typo
The code was mistakenly initializing the input buffer twice.

Tested to be working on BeagleBone by adjusting CONFIG_SYS_BOOTM_LEN to
64MiB (probably works with less) and preparing uImage with:

 cat arch/arm/boot/Image \
  | zstd --ultra -22 --zstd=windowLog=22 \
  > linux.bin.zst

 mkimage -A arm -T kernel uImage -C zstd -d linux.bin.zst \
  -a 0x80008000 -e 0x80008000

Without the windowLog restriction, bootm fails with a zstd decompression
error 7 (window too large), which I haven't troubleshooted.

There should be a bit more documentation on the feature...

Reviewed-by: Simon Glass <sjg@chromium.org>
Fixes: 458b30af66 image: Update image_decomp() to avoid ifdefs
2022-03-28 08:22:17 -04:00
..
android_ab.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
boot_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootm_os.c bootm: Tidy up use of autostart env var 2021-11-16 14:35:09 -05:00
bootm.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
bootretry.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android-dt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-android.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-board.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
image-fit-sig.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-fit.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c boot: image: fixup zstd decompression buffer initialization typo 2022-03-28 08:22:17 -04:00
Kconfig configs: sunxi: Add support for Lichee Pi Nano 2022-02-04 00:09:57 +00:00
Makefile pxe: Move pxe_utils files 2021-11-11 19:02:21 -05:00
pxe_utils.c cmd: pxe_utils: sysboot: add kaslr-seed generation support 2022-02-11 09:00:47 -05:00