diff options
author | Russell Currey <ruscur@russell.cc> | 2019-03-25 15:29:28 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-28 15:24:12 +1100 |
commit | 8d8a9ca30453bc92977409966e6006f8c18f4be5 (patch) | |
tree | df24e006fc9f4900c1578336ae31a0ec65650836 /external | |
parent | cccf5d79de07844cf095b8f45146b92944d15c2e (diff) | |
download | skiboot-8d8a9ca30453bc92977409966e6006f8c18f4be5.zip skiboot-8d8a9ca30453bc92977409966e6006f8c18f4be5.tar.gz skiboot-8d8a9ca30453bc92977409966e6006f8c18f4be5.tar.bz2 |
external/mambo: Populate kernel-base-address in the DT
skiboot.tcl defines PAYLOAD_ADDR as 0x20000000, which is the default in
skiboot. This is also the default in skiboot unless kernel-base-address
is set in the device tree.
If you change PAYLOAD_ADDR to something else for mambo, skiboot won't
see it because it doesn't set that DT property, so fix it so that it does.
Signed-off-by: Russell Currey <ruscur@russell.cc>
Acked-by: Michael Neuling <mikey@neuling.org>
[stewart: fix up mambo hacks for STB]
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/mambo/skiboot.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl index 545a7cc..096f1c3 100644 --- a/external/mambo/skiboot.tcl +++ b/external/mambo/skiboot.tcl @@ -221,6 +221,10 @@ lappend compat "ibm,power8-xscom" set compat [of::encode_compat $compat] mysim of addprop $xscom_node byte_array "compatible" $compat +set chosen_node [mysim of find_device /chosen] +set base_addr [list $mconf(payload_addr)] +mysim of addprop $chosen_node array64 "kernel-base-address" base_addr + # Load any initramfs set cpio_start 0x80000000 set cpio_end $cpio_start @@ -236,7 +240,6 @@ if { [info exists env(SKIBOOT_INITRD)] } { set cpio_end [expr $cpio_end + $cpio_size] } - set chosen_node [mysim of find_device /chosen] mysim of addprop $chosen_node int "linux,initrd-start" $cpio_start mysim of addprop $chosen_node int "linux,initrd-end" $cpio_end } |