[OpenBIOS] fcode rom loading

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Jul 6 18:37:19 CEST 2011


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.


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.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list