aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2016-04-15 14:43:42 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-04-18 13:33:46 -0700
commit0e47de73140c1c498a38c1f0cd32d5ae6b937c39 (patch)
tree7aa1d3d2e24122545be72a7349f4a1dfd7bf3f77 /external
parent72bf5b7ba57e81829d6a7656c63cefa1cd651e0d (diff)
downloadskiboot-0e47de73140c1c498a38c1f0cd32d5ae6b937c39.zip
skiboot-0e47de73140c1c498a38c1f0cd32d5ae6b937c39.tar.gz
skiboot-0e47de73140c1c498a38c1f0cd32d5ae6b937c39.tar.bz2
mambo: Flatten device tree at the end
Flatten device tree at the end to ensure we've configured everything first. Otherwise we may get an old dump of the device tree in skiboot. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/mambo/skiboot.tcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 7b28d6f..f0dc028 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -201,10 +201,6 @@ for { set c 0 } { $c < $mconf(cpus) } { incr c } {
mysim of addprop $cpu_node array "ibm,ppc-interrupt-server#s" irqreg
}
-# Flatten it
-
-epapr::of2dtb mysim $mconf(epapr_dt_addr)
-
# Load images
set boot_size [file size $mconf(boot_image)]
@@ -213,6 +209,9 @@ mysim memory fread $mconf(boot_load) $boot_size $mconf(boot_image)
set payload_size [file size $mconf(payload)]
mysim memory fread $mconf(payload_addr) $payload_size $mconf(payload)
+# Flatten it
+epapr::of2dtb mysim $mconf(epapr_dt_addr)
+
# Turbo mode & run
mysim mode turbo