The mtd blk need mtd erase size to check bad block.x
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: If1bca0ce442599be41f3fd12638529018885f3e0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
There is not SPL for ramboot, let's init QoS for it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib6221122c44702cb4f287bad721316751478be71
The factory image doesn't know the correct emmc capacity, so it use
0xffffffff as the size, in this case:
- The primary gpt header's last_usable_lba is (0xffffffff - 34)
- The backup gpt table is missing
We need to fix these two issues.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I8a1fa65b0af1723017c87d52b4ef594353ce46ff
We handle the error at U-Boot stage instead of SPL stage in normal case,
still need to do this in SPL when there is no U-Boot proper.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I008caaa0d1f95316fc0b87cb55de35d8f8e31b36
When perform idle operation, corresponding clock can
be opened or gated automatically.
Change-Id: Ib33115024b3f85f1f8bcabf2548caf3b13b0361f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Should use debug_uart_init() which include board_debug_uart_init().
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib3479aed3e874ac11da3ebb8f8868a6f43218ef8
Add "fasboot getvar snapshot-update-status" support and
prevent erase/wipe of userdata/metadata when virtual A/B
merge status is MERGING or SNAPSHOTTED (+source slot !=
current slot).
Signed-off-by: Dayao Ji <jdy@rock-chips.com>
Change-Id: Ibb6ea5778b78b2601178f489d6efcee60d5d0a49
According to the AOSP default definition, the virtual A/B
metadata is located at the offset 32KB of the misc partition.
Signed-off-by: Dayao Ji <jdy@rock-chips.com>
Change-Id: Ib60379f25e4c72be9f5ed03934ab7dc928cdd585
It makes thunder-boot SPL only map periph device region as
dcache off but not all 4GB region to save boot time.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib0abafe1b74cde24755780261fb7fcfaa8932ea2
Android Header v3 and vendor boot partition are introduced
from Android-11(R).
Header populate:
Header v3 is no longer compatible with v0/1/2 header, we
add populate_andr_img_hdr() to merge boot and vendor_boot
partition header into struct andr_img_hdr in order to
compatible with v0/1/2 header.
resource.img:
The second_addr and second_size fields are removed in v3,
so we require resource partition to restore resource.img.
A/B system:
If not A/B system, the boot.img header version is 3 and
recovery header is version 2.
AVB load image:
- If allow verification error: the image is loaded by
ops->get_preloaded_partition() which auto populates
boot_img_hdr_v3.
- If not allow verification error: the image is full loaded
by ops->read_from_partition() which doesn't populate
boot_img_hdr_v3, we need to fix it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2afce53c43d782fc57baa01acf9c05518b580840
The name style follows other rockchip scripts is better, like:
./scripts/atf.sh
./scripts/loader.sh
./scripts/spl.sh
./scripts/tos.sh
./scripts/uboot.sh
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I249f67d0b4e385a3f05f9c754bc0a9c371b46910
error message: include/image.h:1015:1: error: unknown type
name 'bool'; did you mean '_Bool'?
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I786c04be6f389ad42685b934eb13426ea9a9e5a4