diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2025-03-10 10:35:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-11 11:20:34 +0000 |
commit | 66ba0ddcc4a0676cf1913113bc84f7aea9b16b12 (patch) | |
tree | 3f1e7398680d1bf66cda5462dbe5c45ee4ba4a48 /meta/classes-recipe | |
parent | dabd582240ce51604621d8fd72ac2b5ded942974 (diff) | |
download | poky-66ba0ddcc4a0676cf1913113bc84f7aea9b16b12.tar.gz |
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.
(From OE-Core rev: e6f2ca9135ef7da8f8b5925957532734c06e55cc)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 2 | ||||
-rw-r--r-- | 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 64a685a964..36ce659762 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
@@ -233,7 +233,7 @@ KERNEL_VERSION = "${@get_kernelversion_headers('${B}')}" | |||
233 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 233 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
234 | 234 | ||
235 | # U-Boot support | 235 | # U-Boot support |
236 | UBOOT_ENTRYPOINT ?= "20008000" | 236 | UBOOT_ENTRYPOINT ?= "0x20008000" |
237 | UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" | 237 | UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" |
238 | 238 | ||
239 | # Some Linux kernel configurations need additional parameters on the command line | 239 | # 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 74992182c3..f44605cb6a 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass | |||
@@ -19,7 +19,7 @@ def removesuffix(s, suffix): | |||
19 | return s[:-len(suffix)] | 19 | return s[:-len(suffix)] |
20 | return s | 20 | return s |
21 | 21 | ||
22 | UBOOT_ENTRYPOINT ?= "20008000" | 22 | UBOOT_ENTRYPOINT ?= "0x20008000" |
23 | UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" | 23 | UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" |
24 | 24 | ||
25 | # Some versions of u-boot use .bin and others use .img. By default use .bin | 25 | # Some versions of u-boot use .bin and others use .img. By default use .bin |