From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Matthias_Wei=DFer?= Date: Mon, 11 Oct 2010 11:50:32 +0200 Subject: [U-Boot] [PATCH] [NEXT]arm: Make jadecpu use relocation In-Reply-To: <20101005184116.EF502153A7E@gemini.denx.de> References: <1285076264-13219-1-git-send-email-weisserm@arcor.de> <20101005184116.EF502153A7E@gemini.denx.de> Message-ID: <4CB2DDE8.6040908@arcor.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wolfgang Am 05.10.2010 20:41, schrieb Wolfgang Denk: > Dear Matthias Weisser, >> - gd->bd->bi_dram[0].start = PHYS_SDRAM; >> - gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE; >> + /* dram_init must store complete ramsize in gd->ram_size */ >> + gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM, >> + PHYS_SDRAM_SIZE); > > Unfortunately this breaks building for this board: > > jadecpu.c: In function 'dram_init': > jadecpu.c:158: error: 'gd_t' has no member named 'ram_size' > jadecpu.c: In function 'dram_init_banksize': > jadecpu.c:167: error: 'gd_t' has no member named 'ram_size' > > Can you please provide a fix? Thanks. I am not sure how to fix this. gd_t contains a member ram_size if CONFIG_SYS_ARM_WITHOUT_RELOC is not defined. This is the case for our jadecpu board. Also the patch is in current master branch and builds cleanly here. Matthias