I have cut and paste the relevant sections below. To send full files I would have to go over them all to ensure no proprietary content / comments in there.
Image_cfg.h:
#define IMAGE_BOOT_RAMDEV_RAM_SIZE (256*1024*1024) // 256 MB
Image_cfg.inc
IMAGE_BOOT_RAMDEV_RAM_SIZE EQU (256*1024*1024);; 256 MB
Config.bib
Set up based on your partitioning of OS region to RAM. We have 70MB reserved for our OS, it is copied from flash into this RAM area every boot:
IF IMGFLASH !
#define NK_START 80200000 ; 2MB (after reserved region)
IF IMGUUT
#define NK_SIZE 00700000 ; 7MB
ENDIF
IF IMGUUT !
#define NK_SIZE 04600000 ; 70MB
ENDIF
#define RAM_START 84800000 ; 72MB Offset
#define RAM_SIZE 0B800000 ; 184MB
ENDIF
We also need to adjust the mapping for OCRAM and NOR because we moved them in our modifications to the oem addr table:
OCRAM 90000000 00008000 RESERVED
...
; ------------------- FLASH image with/without EBOOT -------------------
; ROMSIZE = 0x04000000 (64 MB)
; ROMSTART = 0x90200000 (NOR virtual address base)
; ROMWIDTH = 32 (32-bit wide memory, entire image in one file)
; ----------------------------------------------------------------------
IF IMGFLASH
IF IMGEBOOT
ROMSIZE=03FC0000
ROMSTART=90240000
ENDIF
IF IMGEBOOT !
ROMSIZE=04000000
ROMSTART=90200000
ENDIF
ROMWIDTH=32
ENDIF
Eboot.bib - nothing to change here other than the comment at the to showing OS RAM size if you want it to reflect your 256MB.
Hope this helps. But check your DDR setup in xldr.c too. My notes just show the following changes. The ADDR_PINS one I originally missed so will still be 128MB without the additional address line.
HW_DRAM_CTL29 CS_MAP – 0xF in the original code, 0x1 from the spreadsheet. Determines which chip selects active based on bit for each available CS. If just using CS1 then 0x1 ok. 0xF enables all CS.
HW_DRAM_CTL29 ADDR_PINS – 0x1 Defines the difference between the maximum number of address pins configured (15) and the actual number of pins being used.
HW_DRAM_CTL42 TRAS_MAX – 0x36A6 (13990) in original code, 0x36B0 from spreadsheet (14000)
HW_DRAM_CTL43 TRFC – 0x1A (26) in original code, 0x27 (39) from spreadsheet. DRAM precharge time in cycles.
HW_DRAM_CTL45 TXSNR – 0x1C in original code, 0x29 in spreadsheet. As described above for tXSNR (because 2Gb not 1Gb).
Mark