[Skiboot] [PATCH 1/2] mambo: Increase memory to 4GB and change memory map

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

Increase memory in the sim to 4GB up from 1GB.  We need to turn off
the small RAM and ROM in mambo as that sits at 3.75GB currently.  We
don't use these currently.

Also change where we put the CPIO to give ourselves more space.

Signed-off-by: Michael Neuling <mikey at neuling.org>
 external/mambo/skiboot.tcl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index d3b4120..93867ba 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -10,7 +10,7 @@ proc mconfig { name env_name def } {
 mconfig threads THREADS 1
-mconfig memory MEM_SIZE 1G
+mconfig memory MEM_SIZE 4G
 # Should we stop on an illeagal instruction
 mconfig stop_on_ill MAMBO_STOP_ON_ILL false
@@ -75,6 +75,8 @@ myconf config enable_rtas_support false
 myconf config processor/cpu_frequency 512M
 myconf config processor/timebase_frequency 1/1
 myconf config enable_pseries_nvram false
+myconf config machine_option/NO_RAM TRUE
+myconf config machine_option/NO_ROM TRUE
 # We need to be DD2 or greater on p8 for the HILE HID bit.
 if { $env(SIMHOST) == "pegasus" } {
@@ -174,7 +176,7 @@ if { [info exists env(SKIBOOT_INITRD)] } {
     set cpio_file $env(SKIBOOT_INITRD)
     set chosen_node [mysim of find_device /chosen]
     set cpio_size [file size $cpio_file]
-    set cpio_start 0x10000000
+    set cpio_start 0x80000000
     set cpio_end [expr $cpio_start + $cpio_size]
     mysim of addprop $chosen_node int "linux,initrd-start" $cpio_start
     mysim of addprop $chosen_node int "linux,initrd-end"   $cpio_end

More information about the Skiboot mailing list