Home
last modified time | relevance | path

Searched hist:"4 f7cc6a59495614b5a139ca92ca24f95316e54fb" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dboard.c4f7cc6a59495614b5a139ca92ca24f95316e54fb Wed Feb 08 07:42:43 UTC 2023 Joseph Chen <chenjh@rock-chips.com> rockchip: board: Fix kernel relocation error for verify-boot

When verify boot is not enabled, the all images load addr
is determined by U-Boot xxx_addr_r definitions, that's fine
without this patch.

But when verify boot is enabled and kernel load/entry addr
in signed boot.img is mismatch with U-Boot "kernel_addr_r",
the kernel relocation action will memcpy ram data from
"kernel_addr_r" to the kernel load/entry addr, because U-Boot
assumes the kernel is already in "kernel_addr_r" before now.
Thus, the kernel is corrupted and cause a jump abort.

This issue was found in rk3568: use high version U-Boot
(kernel_addr_r is 0x280000) to verify boot low version
signed boot.img(kernel load/entry is 0xa80000).
All this is due to commit:
(ee6a3c94a5 rockchip: rk3568: Update "kernel_addr_r" as 0x00280000)

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