add kernel image offset configuration which would be used in uboot booti command

Change-Id: I540d5cebb12889628f4efebab5f30c93c08b457b
This commit is contained in:
zhouxl 2024-03-13 19:21:33 +08:00 committed by zhangmeng
parent c90a04e85a
commit 500d91f49b
2 changed files with 9 additions and 0 deletions

View file

@ -906,6 +906,14 @@ config ARCH_SUSPEND_POSSIBLE
depends on SOC_SPACEMIT
def_bool y
config IMAGE_LOAD_OFFSET
hex "Image load offset from start of RAM when load kernel to RAM"
default 0x400000 if 32BIT
default 0x200000 if 64BIT
help
This is the RAM offset from start of ram. Bootloader would use
this offset to load kernel image to ram.
menu "Power management options"
source "kernel/power/Kconfig"

View file

@ -47,6 +47,7 @@ CONFIG_NR_CPUS=8
CONFIG_HOTPLUG_CPU=y
CONFIG_RISCV_SBI_V01=y
# CONFIG_RISCV_BOOT_SPINWAIT is not set
CONFIG_IMAGE_LOAD_OFFSET=0x1400000
CONFIG_PM=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y