rv1126-uboot/lib
Jason Zhu 926664c9a0 lib: avb: reduce write rollback index operations
The optee is used to storage security data in U-Boot, and a file
which occupy 16KB is created when write a rollback index. But the
security space is only 512KB, the sapce is not enough when write
too many items.

And here we write rollback index 32 times, but the avb only use
rollback_index_location 0 to verify the rollback index with vbmeta.
So just get the rollback_index_location 0 in this process.

Test:
	fastboot getvar at-vboot-state

Error log:
	TEEC: reference out of data: -1
	TEEC: Not enough space available in secure storage!

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Id69b852553a4ef9111dabe6f23e25038b0928bb3
2021-02-05 10:34:15 +08:00
..
avb lib: avb: reduce write rollback index operations 2021-02-05 10:34:15 +08:00
bzip2 bzlib: Try another way to fix an unused variable 2016-02-06 13:59:48 +01:00
dhry cmd_dhry.c: Use lldiv for vax_mips calculation as well 2016-03-17 10:14:25 -04:00
efi spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN 2017-07-27 14:59:03 +02:00
efi_loader lib: efi: fix compile error 2020-04-09 18:26:22 +08:00
libfdt UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
lzma
lzo UPSTREAM: lzo: add a function to check the validity of the header 2018-01-17 15:27:28 +08:00
optee_clientApi lib: optee_client: add README 2020-08-19 17:51:06 +08:00
rsa lib: rsa-verify: calculate the hash depended on operator size 2020-12-28 12:05:12 +08:00
tizen exynos: Allow tizen to be built without an LCD 2016-05-25 13:25:18 +09:00
zlib Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
Kconfig lib: add sha512 support 2019-08-02 10:34:33 +08:00
Makefile lib: avb: separate the ab from the avb lib 2020-11-03 18:20:02 +08:00
addr_map.c Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
aes.c Rename aes.h to uboot_aes.h 2017-04-12 13:28:27 -04:00
asm-offsets.c ARMv8: get new GD address from gd->new_gd directly 2018-01-17 15:27:28 +08:00
bch.c bch: don't use __BSD_VISIBLE to test for fls 2017-09-03 15:30:31 -04:00
bidram.c bidram: rename "dump_bidram" to "bidram_dump" 2020-02-28 11:37:13 +08:00
bitrev.c
charset.c UPSTREAM: lib: add some utf16 handling helpers 2018-01-16 18:13:59 +08:00
circbuf.c lib: circbuf: avoid possible null pointer dereference 2017-05-05 16:45:57 -04:00
crc7.c
crc8.c lib/crc8: Add crc start value 2016-04-11 20:48:26 -04:00
crc16.c lib/crc16.c: Rename cyg_crc16() to crc16_ccitt() and add crc start value 2016-03-14 19:18:42 -04:00
crc32.c
crc32c.c UPSTREAM: lib: Add CRC32-C 2018-01-17 15:27:28 +08:00
ctype.c
display_options.c display_options: Refactor to allow obtaining the banner 2017-07-11 10:08:19 -06:00
div64.c lib: div64: sync with Linux 2017-04-13 09:41:10 -04:00
errno.c
errno_str.c
fdtdec.c drivers: pci: separate SPL & U-Boot proper build 2020-12-29 16:35:35 +08:00
fdtdec_common.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
fdtdec_test.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
gunzip.c lib: gunzip: add hw gunzip support 2020-07-24 18:02:27 +08:00
gzip.c Move malloc_cache_aligned() to its own header 2015-09-11 17:15:16 -04:00
hang.c lib: hang: reset the device if hang in spl 2020-04-21 20:04:22 +08:00
hashtable.c spl: saveenv: adding saveenv support in SPL 2016-10-08 09:33:36 -04:00
hexdump.c UPSTREAM: lib: Add hexdump 2019-07-05 19:33:39 +08:00
initcall.c lib: initcall: add system total boot time debug 2019-02-25 09:59:46 +08:00
ldiv.c
linux_compat.c linux_compat: handle __GFP_ZERO in kmalloc() 2015-07-22 07:30:44 -06:00
linux_string.c
list_sort.c
lmb.c
lz4.c Add support for LZ4 decompression algorithm 2015-10-11 17:12:10 -04:00
lz4_wrapper.c lib: lz4_wrapper: fix data-abort due to odd address access 2020-07-24 18:02:27 +08:00
md5.c
membuff.c Add a circular memory buffer implementation 2015-11-19 20:27:50 -07:00
net_utils.c lib: net_utils: enforce '.' as octet separator in string_to_ip 2017-01-14 16:47:11 -05:00
of_live.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
panic.c lib: Split panic functions out of vsprintf.c 2015-12-13 17:07:30 -07:00
physmem.c lib/physmem.c: Switch to __weak for arch_phys_memset 2016-04-01 17:17:43 -04:00
qsort.c
rand.c
rbtree.c
rc4.c Add rivest cipher 4 (rc4) implementation 2015-07-21 17:39:28 -06:00
sha1.c rsa: Verify RSA padding programatically 2016-11-21 14:07:30 -05:00
sha256.c lib: sha256: add sha256_csum() 2019-11-05 12:24:10 +08:00
sha512.c lib: add sha512 support 2019-08-02 10:34:33 +08:00
slre.c lib/slre: remove superfluous assignment 2017-05-12 08:37:18 -04:00
smbios.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
stdlib.c lib: add stdlib.c 2019-07-01 19:17:50 +08:00
string.c string: Add strcspn() 2017-06-01 07:03:12 -06:00
strmhz.c
strto.c UPSTREAM: lib: strto: fix incorrect handling of specified base 2018-01-16 18:14:09 +08:00
sysmem.c lib: sysmem: update help of "sysmem_search" command 2020-11-12 13:12:09 +00:00
tables_csum.c x86: Move table csum into separate file 2016-10-19 09:01:50 +02:00
time.c bootstage: Provide a default timer function 2017-06-05 14:13:03 -04:00
tiny-printf.c tiny-printf: Add support for %p format 2017-04-13 09:41:09 -04:00
tpm.c UPSTREAM: tpm: fix reading of permanent flags 2018-01-17 15:27:28 +08:00
trace.c
uuid.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
vsprintf.c UPSTREAM: lib: Add hexdump 2019-07-05 19:33:39 +08:00