From: Adrian Freihofer Date: Mon, 10 Mar 2025 09:35:45 +0000 (+0100) Subject: uboot, kernel: use hex address for UBOOT_ENTRYPOINT X-Git-Tag: yocto-5.2~285 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6f2ca9135ef7da8f8b5925957532734c06e55cc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git uboot, kernel: use hex address for UBOOT_ENTRYPOINT Compiling a FIT image with this default values and dump it with dumpimage shows decimal converted values. For example the default value 20008000 looks like this: Image 0 (kernel-1) ... Load Address: 0x01314c40 Entry Point: 0x01314c40 With this change the expected value is printed by dumpimage. Signed-off-by: Adrian Freihofer Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 64a685a964d..36ce659762e 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass @@ -233,7 +233,7 @@ KERNEL_VERSION = "${@get_kernelversion_headers('${B}')}" PACKAGE_ARCH = "${MACHINE_ARCH}" # U-Boot support -UBOOT_ENTRYPOINT ?= "20008000" +UBOOT_ENTRYPOINT ?= "0x20008000" UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" # Some Linux kernel configurations need additional parameters on the command line diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass index 74992182c36..f44605cb6ae 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass @@ -19,7 +19,7 @@ def removesuffix(s, suffix): return s[:-len(suffix)] return s -UBOOT_ENTRYPOINT ?= "20008000" +UBOOT_ENTRYPOINT ?= "0x20008000" UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" # Some versions of u-boot use .bin and others use .img. By default use .bin