Mark Cave-Ayland wrote:
On 30/06/11 19:40, Bob Breuer wrote:
Maybe the 4096 in hex is a mistake, and it was intended to be 4096 decimal. For now, this patch (probably mangled by my mailer) seems to work:
Hmmm that patch doesn't work for me as it exceeds the QEMU image size :( However it does seem to work okay if you drop the memory from 512K to 384K. Can you confirm that the patch below works for you? If so, I'll tidy it up and commit.
Yes, 384K works for me. Seems that I had used the stripped openbios, but I do see a failure with 512K and an unstripped openbios. I guess the debug symbols pushed it past some QEMU limit.
Acked-by: Bob Breuer breuerr@mc.net
diff --git a/openbios-devel/arch/sparc32/ofmem_sparc32.c b/openbios-devel/arch/sparc32/ofmem_sparc32.c index 671d11b..bd52538 100644 --- a/openbios-devel/arch/sparc32/ofmem_sparc32.c +++ b/openbios-devel/arch/sparc32/ofmem_sparc32.c @@ -21,7 +21,7 @@
#define OF_MALLOC_BASE ((char*)OFMEM + ALIGN_SIZE(sizeof(ofmem_t), 8))
-#define MEMSIZE (256 * 1024) +#define MEMSIZE (384 * 1024) static union { char memory[MEMSIZE]; ofmem_t ofmem; diff --git a/openbios-devel/arch/sparc32/openbios.c b/openbios-devel/arch/sparc32/openbios.c index 6915486..d5d453d 100644 --- a/openbios-devel/arch/sparc32/openbios.c +++ b/openbios-devel/arch/sparc32/openbios.c @@ -27,7 +27,7 @@ #include "arch/common/fw_cfg.h" #include "libopenbios/ofmem.h"
-#define MEMORY_SIZE (16*1024) /* 16K ram for hosted system */ +#define MEMORY_SIZE (128*1024) /* 128K ram for hosted system */ #define UUID_FMT "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x" #define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00)
ATB,
Mark.