| #
2f5c1c77 |
| 14-Apr-2023 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: Add CONFIG_EMBED_KERNEL_DTB option
We add CONFIG_EMBED_KERNEL_DTB for user to decide whether they wan't to pack kernel dtb or not, but not pack kernel dtb by default if dts/ker
rockchip: kernel dtb: Add CONFIG_EMBED_KERNEL_DTB option
We add CONFIG_EMBED_KERNEL_DTB for user to decide whether they wan't to pack kernel dtb or not, but not pack kernel dtb by default if dts/kern.dtb was found.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I18f7a625d609f4254b9a252c79f5be684f28032e
show more ...
|
| #
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 ...
|
| #
8ebfc497 |
| 06-Mar-2023 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: init resource late for embedded case
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I695c2cb94459343f226a3ad447129a582658e23c
|
| #
68f0b21b |
| 01-Aug-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel_dtb: Init resource even use embedded dtb
It aims to initial the gd->bd->bi_andr_version, otherwise the rockchip_get_boot_mode() return the error mode if this android version >= 10.
rockchip: kernel_dtb: Init resource even use embedded dtb
It aims to initial the gd->bd->bi_andr_version, otherwise the rockchip_get_boot_mode() return the error mode if this android version >= 10.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I6132b262d1d066d8b6292d88eb7cd4a371e429ef
show more ...
|
| #
7bedd730 |
| 25-Mar-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: use dm API to remove device
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Icdb5cf69c228d2d28e1b3d78b756b29c637229c1
|
| #
18b9d982 |
| 24-Mar-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel_dtb: Remove dm v2 device
- remove crypto from kernel - remove ethernet from u-boot
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ibe9cbe7af3f83e92e6154402bba2dc225b
rockchip: kernel_dtb: Remove dm v2 device
- remove crypto from kernel - remove ethernet from u-boot
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ibe9cbe7af3f83e92e6154402bba2dc225b1f134a
show more ...
|
| #
95eb462e |
| 08-Oct-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: add kernel dtb version 2 mechanism support
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I592b53616685d4f27aa471a7bd88ba5680ee5ef4
|
| #
d276a5ea |
| 13-Nov-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: init gd->of_root_f
It is used in of_find_node_by_phandle().
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Iba3e9b486f3fa13c9de1da9e260f34956b0dbf80
|
| #
84cb34e7 |
| 28-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: disable identify platform
We don't find a way to cover all cases.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I090168361721442d8378f9a71cd76f42dd8517ba
|
| #
74ec585e |
| 23-Sep-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: use "/compatible" to identify platform
"xxx-cru" node is not unique in DTB, there is a "rockchip,rk628-cru".
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ie9f
rockchip: kernel dtb: use "/compatible" to identify platform
"xxx-cru" node is not unique in DTB, there is a "rockchip,rk628-cru".
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ie9f50450addd39a9c6a343c2cb543a8c26a51cb1
show more ...
|
| #
7952efb8 |
| 28-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: don't validate current fdt depend on magic check
It's not safe to use fdt_check_header() to validate current fdt.
Because this valid "current" fdt may be the old fdt that was
rockchip: kernel dtb: don't validate current fdt depend on magic check
It's not safe to use fdt_check_header() to validate current fdt.
Because this valid "current" fdt may be the old fdt that was loaded successfully at the last power on.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Id6e2663806a23ca90122e2881b0b77533c940e4b
show more ...
|
| #
c3a89cac |
| 21-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: Avoid data-abort from corrupted DTB
If there is not embedded DTB, and the DTB in boot/recovery.img is corrupted, just exit.
Fixes: [< 00445a5c >] strnlen+0xa/0x18
rockchip: kernel dtb: Avoid data-abort from corrupted DTB
If there is not embedded DTB, and the DTB in boot/recovery.img is corrupted, just exit.
Fixes: [< 00445a5c >] strnlen+0xa/0x18 [< 0043ce21 >] fdt_get_property_namelen+0x43/0x6e [< 0043ce79 >] fdt_getprop_namelen+0xb/0x12 [< 0043cec5 >] fdt_getprop+0x1f/0x22 [< 00402705 >] init_kernel_dtb+0xe5/0x3fc [< 00401fe7 >] board_init+0x47/0xb8 [< 0043d729 >] initcall_run_list+0x55/0xdc [< 0040cf41 >] board_init_r+0x15/0x1c [< 0040cf2d >] board_init_r+0x1/0x1c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I9cd00dc1ddcf6ddbd14376d818377417f76af72e
show more ...
|
| #
a4fb9a7e |
| 21-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: Get fdt addr for critial memory board
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I3644635c97f428f0d8fad188aaa3ca860cceabb6
|
| #
3fc8bcd2 |
| 01-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
common: fdt: fix kern.dtb cleared by BSS zero operation
BSS section is right after u-boot-nodtb.bin, u-boot fdt should be relocated before BSS zero operation.
This is necessary if CONFIG_SKIP_RELOC
common: fdt: fix kern.dtb cleared by BSS zero operation
BSS section is right after u-boot-nodtb.bin, u-boot fdt should be relocated before BSS zero operation.
This is necessary if CONFIG_SKIP_RELOCATE_UBOOT=y.
- relocate the kern.dtb too. - correct ALIGN() for u-boot fdt end address but not totalsize. - set gd->fdt_blob_kern as NULL if invalid.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8766e52f50652ed578430b75d4c3da1e4a69a8cf
show more ...
|
| #
8f98eecb |
| 02-Jul-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: return success if not find cru node
kernel dtb maybe used as a kind of configure file, only a few nodes will be provided.
Example: RK3566 AMP project.
Signed-off-by: Joseph C
rockchip: kernel dtb: return success if not find cru node
kernel dtb maybe used as a kind of configure file, only a few nodes will be provided.
Example: RK3566 AMP project.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I115a603923dad14e2280532049bcff259dde684c
show more ...
|
| #
03781805 |
| 10-Mar-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: support always use embed kernel dtb
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7197c65dc315eb513f072a325cf57c2a079c0674
|
| #
a85a3b31 |
| 02-Mar-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: set kernel dtb ready flag
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0930dc6da8557655eee76a7661c46d1261d6252d
|
| #
4d85f76c |
| 25-Dec-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel dtb: fixup cru phandle of "resets" property
Mainly for wdt in U-Boot.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I80946bf85015b84d8ea4db95fc00b314160505f8
|
| #
20647277 |
| 09-Nov-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel-dtb: check mismatch of kernel dtb
Simply check cru node to verify if this kernel dtb is belong to current platform.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8
rockchip: kernel-dtb: check mismatch of kernel dtb
Simply check cru node to verify if this kernel dtb is belong to current platform.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8c0b2181a2ca3cada72a9e18788de0bfdc9ba3c5
show more ...
|
| #
2a931879 |
| 27-Jul-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: kernel_dtb: fix compile issue
A careless mistake.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5ea26a44af23bdd8cdc5eb1ba08674193a07045e
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
57be1825 |
| 15-Jan-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: clean kernel dtb code to kernel_dtb.c
Since there is a lot of code for kernel dtb feature, let's move them into a individual file to make board.c clean.
Signed-off-by: Joseph Chen <chenjh
rockchip: clean kernel dtb code to kernel_dtb.c
Since there is a lot of code for kernel dtb feature, let's move them into a individual file to make board.c clean.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I4e01627c265807b1c0e26b432f0b4fc1db0d889e
show more ...
|