History log of /rk3399_rockchip-uboot/lib/avb/libavb/avb_slot_verify.c (Results 1 – 12 of 12)
Revision Date Author Comments
# 17d5ed3e 15-May-2023 Jeffy Chen <jeffy.chen@rock-chips.com>

lib: avb: Fix maybe-uninitialized

lib/avb/libavb/avb_slot_verify.c:477:40: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized]
| 477 | loaded_partition->partition

lib: avb: Fix maybe-uninitialized

lib/avb/libavb/avb_slot_verify.c:477:40: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized]
| 477 | loaded_partition->partition_name = avb_strdup(found);
| | ^~~~~~~~~~~~~~~~~

Change-Id: Ic3edcc1527ff5e75009f0e4000dac74cb41c569e
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>

show more ...


# 28317110 21-Oct-2022 Joseph Chen <chenjh@rock-chips.com>

android: avb: Add init_boot support

== init-boot:
This new init_boot partition contains the ramdisk the used to live in
the boot partition. The boot partition will no longer contain that
ramdisk.

i

android: avb: Add init_boot support

== init-boot:
This new init_boot partition contains the ramdisk the used to live in
the boot partition. The boot partition will no longer contain that
ramdisk.

init_boot use android v4 header and is mandory from Android-13.

== avb with unlock:
Don't process hash verify.
Go pre-loaded path: Loading vendor_boot and init_boot
directly to where they should be, while loading the
boot/recovery. The boot message tells like:
···
preloaded: distribute image from 'boot_a'
preloaded: distribute image from 'init_boot_a'
preloaded: distribute image from 'vendor_boot_a'
···

== avb with lock:
Process hash verify.
Go pre-loaded path: Loading full vendor_boot, init_boot and
boot/recovery one by one to verify, and distributing them to
where they should be by memcpy at last.

The three images share a large memory buffer that allocated
by sysmem_alloc(), it locate at high memory address that
just lower than SP bottom. The boot message tells like:
···
preloaded: full image from 'boot_a' at 0xe47f90c0 - 0xe7a4b0c0
preloaded: full image from 'init_boot_a' at 0xeaff90c0 - 0xeb2950c0
preloaded: full image from 'vendor_boot_a' at 0xe87f90c0 - 0xe9f6e0c0
···

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

show more ...


# 1e9494b5 22-Apr-2021 Joseph Chen <chenjh@rock-chips.com>

lib: avb: skip descriptor hash check if unlock

What ever there is descriptor hash or not, let's skip
descriptor hash match check if device is unlock.

We rely on ops->get_preloaded_partition() to lo

lib: avb: skip descriptor hash check if unlock

What ever there is descriptor hash or not, let's skip
descriptor hash match check if device is unlock.

We rely on ops->get_preloaded_partition() to load image
and verify hash, which is more efficient than full load.

By the way, correct the function return code.

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

show more ...


# 5b0bc491 08-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

lib: avb: support crypto sha256/512

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


# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# c01d4489 07-Feb-2020 Joseph Chen <chenjh@rock-chips.com>

sysmem: simplify the memblk name

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


# 27e62cd7 17-Dec-2019 Joseph Chen <chenjh@rock-chips.com>

lib: avb: implement get_preloaded_partition callback

It works only when verification error is allowed, it avoids
AVB workflow to load the full partition which wastes time.

Signed-off-by: Joseph Che

lib: avb: implement get_preloaded_partition callback

It works only when verification error is allowed, it avoids
AVB workflow to load the full partition which wastes time.

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

show more ...


# 69fdc596 11-Sep-2019 Jason Zhu <jason.zhu@rock-chips.com>

lib: avb: update and modify the avb library

The commit point is updated to google external/avb/
which commit point is 868db2a514bbb02e166fb55b1592b27de8c9680c.

Change-Id: I10f7c0ac356a7666b518b62e5

lib: avb: update and modify the avb library

The commit point is updated to google external/avb/
which commit point is 868db2a514bbb02e166fb55b1592b27de8c9680c.

Change-Id: I10f7c0ac356a7666b518b62e59ccb62277668578
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 89151b4a 14-May-2019 Joseph Chen <chenjh@rock-chips.com>

lib: avb: use sysmem alloc to load image

Using malloc buffer to load image makes CONFIG_SYS_MALLOC_LEN must be
large enough, sysmem alloc is a better way.

Change-Id: I24e2b86c53b8d3307c0d155fc37cb4

lib: avb: use sysmem alloc to load image

Using malloc buffer to load image makes CONFIG_SYS_MALLOC_LEN must be
large enough, sysmem alloc is a better way.

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

show more ...


# 4f2523c3 28-Apr-2019 Jason Zhu <jason.zhu@rock-chips.com>

lib: avb: load full partition if allow verification error

Change-Id: I506676512a46ec09d6c617f555f735a24fc4a594
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# ab608f80 11-Jun-2018 Jason Zhu <jason.zhu@rock-chips.com>

lib: avb: update avb source code

according to google lib avb
commit id: 44e07124afb1f46af0d745d83481f49c482900b1

Change-Id: Ie59a7265699e3e6b1673bb64da6d1c7a1e7b6201
Signed-off-by: Jason Zhu <jason

lib: avb: update avb source code

according to google lib avb
commit id: 44e07124afb1f46af0d745d83481f49c482900b1

Change-Id: Ie59a7265699e3e6b1673bb64da6d1c7a1e7b6201
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 37a7bc39 26-Jan-2018 Jason Zhu <jason.zhu@rock-chips.com>

lib: avb: update and modify the avb library

The commit point is updated to google external/avb/
which commit point is cf8c56208d2d9643804a7f123b196c7ebc9af276.

Change-Id: I5a10a8a45d3e9e2c9d20d9b3d

lib: avb: update and modify the avb library

The commit point is updated to google external/avb/
which commit point is cf8c56208d2d9643804a7f123b196c7ebc9af276.

Change-Id: I5a10a8a45d3e9e2c9d20d9b3d44946073c9a49ff
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...