Commit 17239976 authored by Stephen Warren's avatar Stephen Warren Committed by Wolfgang Denk
Browse files

arm: fix bootm with device tree

Commit 0a672d49

 "arm: Add Prep subcommand support to bootm" re-organized
do_bootm_linux() for ARM. During the re-organization, the code to pass
the device tree to the kernel was removed. Add it back. This restores
the ability to boot a kernel using device tree.
Signed-off-by: Stephen Warren's avatarStephen Warren <>
Acked-by: default avatarTom Rini <>
Acked-by: default avatarAllen Martin <>
Tested-by: default avatarAllen Martin <>
parent 030fca52
......@@ -317,6 +317,7 @@ static void boot_jump_linux(bootm_headers_t *images)
unsigned long machid = gd->bd->bi_arch_number;
char *s;
void (*kernel_entry)(int zero, int arch, uint params);
unsigned long r2;
kernel_entry = (void (*)(int, int, uint))images->ep;
......@@ -330,7 +331,15 @@ static void boot_jump_linux(bootm_headers_t *images)
"...\n", (ulong) kernel_entry);
kernel_entry(0, machid, gd->bd->bi_boot_params);
if (images->ft_len)
r2 = (unsigned long)images->ft_addr;
r2 = gd->bd->bi_boot_params;
kernel_entry(0, machid, r2);
/* Main Entry point for arm bootm implementation
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment