History log of /rk3399_rockchip-uboot/arch/arm/mach-rockchip/resource_img.c (Results 1 – 25 of 79)
Revision Date Author Comments
# 06a21341 07-Sep-2024 Joseph Chen <chenjh@rock-chips.com>

rockchip: udisk boot: Reload kernel dtb in late bootflow

If current kernel dtb is not from embedded dtb:
Use 'gd->fdt_blob_kern' to reload the kernel dtb
from current bootdev(udisk) in the late boot

rockchip: udisk boot: Reload kernel dtb in late bootflow

If current kernel dtb is not from embedded dtb:
Use 'gd->fdt_blob_kern' to reload the kernel dtb
from current bootdev(udisk) in the late bootflow.

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

show more ...


# 1cc374d6 31-Oct-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

rockchip: resource: Fix u64 type to ulong for compability

Solve compile error:
cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

Fixes: (9274b15f20a rockchip: reso

rockchip: resource: Fix u64 type to ulong for compability

Solve compile error:
cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

Fixes: (9274b15f20a rockchip: resource: Change variable type from 32-bit to 64-bit)

Change-Id: I219e4ccc48c45fca79e442cf15dfbfa67d52f068
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>

show more ...


# 9274b15f 28-Oct-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

rockchip: resource: Change variable type from 32-bit to 64-bit

(1) For mos, secondary U-Boot use dram addr exceed 4G
(need 64-bit variable type).
(2) If avb lock, boot.img will be preloaded in d

rockchip: resource: Change variable type from 32-bit to 64-bit

(1) For mos, secondary U-Boot use dram addr exceed 4G
(need 64-bit variable type).
(2) If avb lock, boot.img will be preloaded in dram first to
get dtb from resource.

Change-Id: I2c4b9caba4bbfe4f9ece55e1066e2f6057e78f32
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>

show more ...


# de479f92 17-Jul-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

rockchip: rk_hwid: Separate HW-ID dtb from resource

Now, HW-ID dtb isn't only used in resource.img

Change-Id: I74e40a306183c5d7d4ca07b41a03277aa1c9b78d
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chip

rockchip: rk_hwid: Separate HW-ID dtb from resource

Now, HW-ID dtb isn't only used in resource.img

Change-Id: I74e40a306183c5d7d4ca07b41a03277aa1c9b78d
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>

show more ...


# 07dca981 10-Jul-2024 Xuhui Lin <xuhui.lin@rock-chips.com>

rockchip: resource: Add logo partition support when device is LOCKED

Change-Id: If9e4e85c6c87fee785d9adceaab23a362eff91fa
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>


# 63f38f9d 31-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

rockchip: Optimise fit and uimage load resource

fit and uimage are not allowed to try resource partition,
always load and verify full resource file, and then setup ram list.

Signed-off-by: Joseph C

rockchip: Optimise fit and uimage load resource

fit and uimage are not allowed to try resource partition,
always load and verify full resource file, and then setup ram list.

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

show more ...


# 77cf005e 27-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Add avb verify

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


# 6ea28a6c 27-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Clean up and simplify

- merge resource_logo.c into resource_img.c
- remove android os init, it was moved to android_version_init()
- fit/uimage/android only pass resource blk to

rockchip: resource: Clean up and simplify

- merge resource_logo.c into resource_img.c
- remove android os init, it was moved to android_version_init()
- fit/uimage/android only pass resource blk to resource_img.c
- clean up resource_img.c

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

show more ...


# deffb93b 10-Jan-2023 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Remove accpted dtbs mechanism

It's unused and make code complex that making hw-id dtbs
mechanism can't get default dtb 'rk-kernel.dtb'.

Signed-off-by: Joseph Chen <chenjh@rock-c

rockchip: resource: Remove accpted dtbs mechanism

It's unused and make code complex that making hw-id dtbs
mechanism can't get default dtb 'rk-kernel.dtb'.

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

show more ...


# af9939c3 30-Mar-2022 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: fix panic when parse the pictures from logo partition

Panic at: list_del(&file->dtbs).

Fixes:
(a8db0a45a4 rockchip: resource: delete node from dtbs list)

Signed-off-by: Joseph

rockchip: resource: fix panic when parse the pictures from logo partition

Panic at: list_del(&file->dtbs).

Fixes:
(a8db0a45a4 rockchip: resource: delete node from dtbs list)

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

show more ...


# 25a706d2 12-Jan-2022 Joseph Chen <chenjh@rock-chips.com>

rockchip: fit: make resource code can be disabled

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


# a8db0a45 23-Dec-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: delete node from dtbs list

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


# 1761a533 08-Sep-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: board: Add android header v4 support

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


# 5f63fd7a 06-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Add "dump_resource" command

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


# 6a03cdba 06-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Get dtb from accepted dtbs list

The accepted dtbs list can be a subset of resource list, it
only contains the dtb file entries that accepted by the
board_resource_dtb_accepted().

rockchip: resource: Get dtb from accepted dtbs list

The accepted dtbs list can be a subset of resource list, it
only contains the dtb file entries that accepted by the
board_resource_dtb_accepted().

The board_resource_dtb_accepted() provides board-specific
pre-filtration before resource_read_hwid_dtb().

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

show more ...


# dca57e1c 07-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: rename DTB_FILE to DEFAULT_DTB_FILE

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


# 7bcb4b0d 02-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: board: support reload kernel dtb for bootm

- use resource_populate_dtb() to reload kernel dtb.
- use resource_traverse_init_list() to init resource
list from storage if it's empty.
- not

rockchip: board: support reload kernel dtb for bootm

- use resource_populate_dtb() to reload kernel dtb.
- use resource_traverse_init_list() to init resource
list from storage if it's empty.
- not ready to support uImage.

In short: we separate resource list init and kernel
dtb read.

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

show more ...


# ea513bf6 02-Jul-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: refactor code

Move hw-id and logo reading from resource_img.c to individual file.

resource_populate_dtb(): update resource list by given bootm image,
and then read the kernel dt

rockchip: resource: refactor code

Move hw-id and logo reading from resource_img.c to individual file.

resource_populate_dtb(): update resource list by given bootm image,
and then read the kernel dtb from it.

resource_traverse_init_list(): setup resource list from storage if
the list is empty.

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

show more ...


# fc04460b 08-Feb-2021 Jason Zhu <jason.zhu@rock-chips.com>

common: android: support boot recovery system

In android A/B system, there is no recovery partition, but in the linux
system, we need the recovery to update system.

Signed-off-by: Jason Zhu <jason.

common: android: support boot recovery system

In android A/B system, there is no recovery partition, but in the linux
system, we need the recovery to update system.

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

show more ...


# 5e0c6129 11-Jan-2021 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: add gpio-v2 support for hw-id dtb

It's for rv1126/rk356x.

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


# 745aeb1a 09-Sep-2020 Joseph Chen <chenjh@rock-chips.com>

common: android: add boot_img_hdr_v3 and vendor boot support

Android Header v3 and vendor boot partition are introduced
from Android-11(R).

Header populate:
Header v3 is no longer compatible with

common: android: add boot_img_hdr_v3 and vendor boot support

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

show more ...


# f870210e 07-Sep-2020 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: add comments

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


# 20313718 27-Jul-2020 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: initial hash_size as 0

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


# 2d3e1fe4 06-May-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# c495a36e 06-May-2020 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: fix reading hw-id dtbs failed

- search order: hw-id dtbs => rk-kernel.dtb.
- initial resource list if empty.

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

rockchip: resource: fix reading hw-id dtbs failed

- search order: hw-id dtbs => rk-kernel.dtb.
- initial resource list if empty.

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

show more ...


1234