mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
image: android: use ulong for kernel address
When booting with platforms having > 4GiB of memory, the kernel physical address can be more than 32bits. Use ulong like all the other addresses, and fix the print to show the > 32bits address numbers. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Guillaume La Roque <glaroque@baylibre.com> Link: https://lore.kernel.org/r/20241017-topic-fastboot-fixes-mkbootimg-v2-1-c3927102d931@linaro.org Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
55c876c6f9
commit
8f8e646d79
2 changed files with 3 additions and 3 deletions
|
@ -256,7 +256,7 @@ int android_image_get_kernel(const void *hdr,
|
|||
ulong *os_data, ulong *os_len)
|
||||
{
|
||||
struct andr_image_data img_data = {0};
|
||||
u32 kernel_addr;
|
||||
ulong kernel_addr;
|
||||
const struct legacy_img_hdr *ihdr;
|
||||
|
||||
if (!android_image_get_data(hdr, vendor_boot_img, &img_data))
|
||||
|
@ -275,7 +275,7 @@ int android_image_get_kernel(const void *hdr,
|
|||
if (strlen(andr_tmp_str))
|
||||
printf("Android's image name: %s\n", andr_tmp_str);
|
||||
|
||||
printf("Kernel load addr 0x%08x size %u KiB\n",
|
||||
printf("Kernel load addr 0x%08lx size %u KiB\n",
|
||||
kernel_addr, DIV_ROUND_UP(img_data.kernel_size, 1024));
|
||||
|
||||
int len = 0;
|
||||
|
|
|
@ -348,7 +348,7 @@ struct andr_image_data {
|
|||
ulong bootconfig_addr; /* bootconfig image address */
|
||||
ulong bootconfig_size; /* bootconfig image size */
|
||||
|
||||
u32 kernel_addr; /* physical load addr */
|
||||
ulong kernel_addr; /* physical load addr */
|
||||
ulong ramdisk_addr; /* physical load addr */
|
||||
ulong ramdisk_ptr; /* ramdisk address */
|
||||
ulong dtb_load_addr; /* physical load address for DTB image */
|
||||
|
|
Loading…
Add table
Reference in a new issue