From e6f2ca9135ef7da8f8b5925957532734c06e55cc Mon Sep 17 00:00:00 2001 From: Adrian Freihofer Date: Mon, 10 Mar 2025 10:35:45 +0100 Subject: [PATCH] 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 --- meta/classes-recipe/kernel.bbclass | 2 +- meta/classes-recipe/uboot-config.bbclass | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3