Skip to content

Commit

Permalink
elfloader: check for dtb on arm binary images
Browse files Browse the repository at this point in the history
For arm builds, check if the bootloader has passed the dtb image
address also for binary image builds, similarly to uimages.

The Raspberry Pi bootloader for example, is able to both load
binary images directly and passes the dtb address to the loaded
image as expected.

Signed-off-by: Viktor Sannum <[email protected]>
  • Loading branch information
sannum committed Jun 28, 2021
1 parent 5805695 commit b9a96e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfloader-tool/src/arch-arm/sys_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void main(UNUSED void *arg)
print_cpuid();
printf(" paddr=[%p..%p]\n", _text, _end - 1);

#if defined(CONFIG_IMAGE_UIMAGE)
#if defined(CONFIG_IMAGE_UIMAGE) || defined(CONFIG_IMAGE_BINARY)

/* U-Boot passes a DTB. Ancient bootloaders may pass atags. When booting via
* bootelf argc is NULL.
Expand Down

0 comments on commit b9a96e9

Please sign in to comment.