diff options
| author | Jamin Lin <jamin_lin@aspeedtech.com> | 2023-04-13 18:31:09 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-04 12:46:14 +0100 |
| commit | b68a24bed5c2aa7a77a5f6891b489b3177597ff7 (patch) | |
| tree | 603e3436b4b6fc36a6e91a438809ee240cb3df69 | |
| parent | b6c9cc306af4e4ee401cc5f4ff1a534b067b3b20 (diff) | |
| download | poky-b68a24bed5c2aa7a77a5f6891b489b3177597ff7.tar.gz | |
uboot-sign: support 64bits address
The default value of address-cells is "1", so the generated "its" file
only support 32bits address for uboot FIT image.
However, some platforms may want to support 64bits address of
UBOOT_LOADADDRESS and UBOOT_ENTRYPOINT.
Therefore, add variables to support both 64bits and 32bits address.
By default, the address-cell is 1 which is used for 32bits load address.
If users would like to use 64bits load address,
users are able to set as following for "0x400000000" 64bits load address.
1. FIT_ADDRESS_CELLS = "2"
2. UBOOT_LOADADDRESS= "0x04 0x00000000"
(From OE-Core rev: b4e46cdbd0727d97d13c2b8e9e4ce19c5c693f51)
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/uboot-sign.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index 3065c54577..ad04c82378 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass | |||
| @@ -81,6 +81,10 @@ UBOOT_FIT_KEY_REQ_ARGS ?= "-batch -new" | |||
| 81 | # Standard format for public key certificate | 81 | # Standard format for public key certificate |
| 82 | UBOOT_FIT_KEY_SIGN_PKCS ?= "-x509" | 82 | UBOOT_FIT_KEY_SIGN_PKCS ?= "-x509" |
| 83 | 83 | ||
| 84 | # length of address in number of <u32> cells | ||
| 85 | # ex: 1 32bits address, 2 64bits address | ||
| 86 | UBOOT_FIT_ADDRESS_CELLS ?= "1" | ||
| 87 | |||
| 84 | # This is only necessary for determining the signing configuration | 88 | # This is only necessary for determining the signing configuration |
| 85 | KERNEL_PN = "${PREFERRED_PROVIDER_virtual/kernel}" | 89 | KERNEL_PN = "${PREFERRED_PROVIDER_virtual/kernel}" |
| 86 | 90 | ||
| @@ -234,7 +238,7 @@ uboot_fitimage_assemble() { | |||
| 234 | 238 | ||
| 235 | / { | 239 | / { |
| 236 | description = "${UBOOT_FIT_DESC}"; | 240 | description = "${UBOOT_FIT_DESC}"; |
| 237 | #address-cells = <1>; | 241 | #address-cells = <${UBOOT_FIT_ADDRESS_CELLS}>; |
| 238 | 242 | ||
| 239 | images { | 243 | images { |
| 240 | uboot { | 244 | uboot { |
