From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-2?Q?Andreas_Bie=DFmann?= Date: Mon, 20 Jun 2011 11:59:13 +0200 Subject: [U-Boot] at91rm9200 linking problem (?) In-Reply-To: References: <80019FFF-F7DC-4B73-9D83-B9F6FADF12F7@gmail.com> <4DFF0D06.80709@gmail.com> Message-ID: <4DFF19F1.1080300@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marcin G?rski, please no TOFU, use inline quoting (and send also to the list). Am 20.06.2011 11:39, schrieb Marcin G?rski: > Hello, > > I already use CONFIG_SKIP_LOWLEVEL_INIT to prevent U-Boot from reinitilizing > hardware. My board has 128MB RAM, so 0x22000000 address is not a problem. Ok so far. > Have you got any ideas why U-Boot cannot correctly detect RAM size (it shows > "DRAM: 1 MiB") and crashes after that? How do you setup your gd_t? Have you written a correct 'int dram_init()' in your board code (see board/atmel/at91rm9200ek/at91rm9200ek.c for example)? > To compile it I also had to add 3 macros to the configuration file: > CONFIG_SYS_INIT_RAM_ADDR, Why this? I guess you mean CONFIG_SYS_SDRAM_BASE here. > CONFIG_SYS_INIT_RAM_SIZE and > CONFIG_SYS_INIT_SP_ADDR. Can this cause this problem? SYS_INIT_SP_ADDR is required, if you see 'DRAM: ...' output it is likely to be a correct value for you. I guess your gd_t parameters for SDRAM size are not correct which leads to a wrong relocation address and therefore relocate_code() fails. regards Andreas Bie?mann