[Skiboot] [PATCH 2/2] mambo: Flatten device tree at the end

Michael Neuling mikey at neuling.org
Fri Apr 15 14:43:42 AEST 2016


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 at neuling.org>
---
 external/mambo/skiboot.tcl | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 93867ba..3df7046 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -183,10 +183,6 @@ if { [info exists env(SKIBOOT_INITRD)] } {
     mysim mcm 0 memory fread $cpio_start $cpio_size $cpio_file
 }
 
-# Flatten it
-
-epapr::of2dtb mysim $mconf(epapr_dt_addr) 
-
 # Load images
 
 set boot_size [file size $mconf(boot_image)]
@@ -203,6 +199,9 @@ for { set i 0 } { $i < $mconf(threads) } { incr i } {
     mysim mcm 0 cpu 0 thread $i config_on    
 }
 
+# Flatten it
+epapr::of2dtb mysim $mconf(epapr_dt_addr)
+
 # Turbo mode & run
 mysim mode turbo
 
-- 
2.5.0



More information about the Skiboot mailing list