History log of /rk3399_rockchip-uboot/lib/lz4_wrapper.c (Results 1 – 11 of 11)
Revision Date Author Comments
# 8b42c3da 10-May-2024 Joseph Chen <chenjh@rock-chips.com>

lib: lz4: Don't bail fail message when no hw decomp device

Maybe hw decomp do not support lz4 feature.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2dce8bb16985ee3704b2829fb1f19e6

lib: lz4: Don't bail fail message when no hw decomp device

Maybe hw decomp do not support lz4 feature.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2dce8bb16985ee3704b2829fb1f19e63bfe90adc

show more ...


# 943eccd1 24-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

lib: lz4: add hw lz4 decompress support

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib2d23ef703a2af800b9081fb7866e46a36136946


# b3df74d0 25-Nov-2021 Joseph Chen <chenjh@rock-chips.com>

common: Add lz4.h

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6a4a19847f666f5ccb57013614bbbd65bd44801d


# b87ef1c1 17-Mar-2021 Karl Beldan <karl.beldan+oss@gmail.com>

UPSTREAM: lz4: Fix unaligned accesses

Signed-off-by: Karl Beldan <karl.beldan+oss@gmail.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If0c957ae41a4735335701dbde9924061280b9b4f


# afe62dc9 17-Jul-2020 Joseph Chen <chenjh@rock-chips.com>

Revert "lib: lz4_wrapper: fix data-abort due to odd address access"

This reverts commit 7c3a07ede8f02e0e154589bb55f06aebde897f6f.

Change-Id: I32fb22965a8a365034cecc72cf3f305af4c23111
Signed-off-by:

Revert "lib: lz4_wrapper: fix data-abort due to odd address access"

This reverts commit 7c3a07ede8f02e0e154589bb55f06aebde897f6f.

Change-Id: I32fb22965a8a365034cecc72cf3f305af4c23111
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 7c3a07ed 17-Jul-2020 Joseph Chen <chenjh@rock-chips.com>

lib: lz4_wrapper: fix data-abort due to odd address access

We don't clearly know why there is odd address, maybe the
compression itself does.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Chan

lib: lz4_wrapper: fix data-abort due to odd address access

We don't clearly know why there is odd address, maybe the
compression itself does.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iabf2c09839485a0b12301ea003f945e1de414d83

show more ...


# 008aee87 12-Jun-2018 Andy Yan <andy.yan@rock-chips.com>

boot_android: add runtime compatible for un/compressed kernel image

This patch add auto parse the compress format of kernel image.
Then decompress the compressed kernel image for arm64, as for
arm32

boot_android: add runtime compatible for un/compressed kernel image

This patch add auto parse the compress format of kernel image.
Then decompress the compressed kernel image for arm64, as for
arm32 zImage, we only need to load it to a higher memory, then
the kernel will handle the decompress itself.

Test on RK3308 AARCH64 mode (Cortex A35 816 MHZ) boot with eMMC:

------------------------------------------------------------------
Format | Size(Byte) | Ratio | Decomp time(ms) | Boot time(ms) |
-------------------------------------------------------------------
Image | 7720968 | | | 488 |
-------------------------------------------------------------------
Image.lz4 | 4119448 | 53% | 59 | 455 |
-------------------------------------------------------------------
Image.lzo | 3858322 | 49% | 141 | 536 |
-------------------------------------------------------------------
Image.gz | 3529108 | 45% | 222 | 609 |
-------------------------------------------------------------------
Image.bz2 | 3295914 | 42% | 2940 | |
-------------------------------------------------------------------
Image.lzma| 2683750 | 34% | | |
-------------------------------------------------------------------

Note: the boot time is counted from first ddr init log to first Kernel log.

Change-Id: I73b12ec944fbc8238b0e061a37e2f31aa3093231
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>

show more ...


# 60f989a9 15-Nov-2015 Stephen Warren <swarren@wwwdotorg.org>

Fix sandbox build on Ubuntu 10.04

gcc 4.4.3 (which is the default native compiler on x86-64 Ubuntu 10.04)
doesn't seem to like initializers for sub-fields of anonymous unions.
Solve this by replacin

Fix sandbox build on Ubuntu 10.04

gcc 4.4.3 (which is the default native compiler on x86-64 Ubuntu 10.04)
doesn't seem to like initializers for sub-fields of anonymous unions.
Solve this by replacing the initialization with an assignment. This
fixes:

lib/lz4_wrapper.c: In function ‘ulz4fn’:
lib/lz4_wrapper.c:97: error: unknown field ‘raw’ specified in initializer

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...


# f74dc51b 15-Oct-2015 Stefano Babic <sbabic@denx.de>

Merge branch 'master' of git://git.denx.de/u-boot


# 13a39725 14-Oct-2015 Albert ARIBAUD <albert.u.boot@aribaud.net>

Merge remote-tracking branch 'u-boot/master'


# 027b728d 07-Oct-2015 Julius Werner <jwerner@chromium.org>

Add support for LZ4 decompression algorithm

This patch adds support for LZ4-compressed FIT image contents. This
algorithm has a slightly worse compression ration than LZO while being
nearly twice as

Add support for LZ4 decompression algorithm

This patch adds support for LZ4-compressed FIT image contents. This
algorithm has a slightly worse compression ration than LZO while being
nearly twice as fast to decompress. When loading images from a fast
storage medium this usually results in a boot time win.

Sandbox-tested only since I don't have a U-Boot development system set
up right now. The code was imported unchanged from coreboot where it's
proven to work, though. I'm mostly interested in getting this recognized
by mkImage for use in a downstream project.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>

show more ...