From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] at91rm9200 linking problem (?)
Date: Mon, 20 Jun 2011 11:04:06 +0200 [thread overview]
Message-ID: <4DFF0D06.80709@gmail.com> (raw)
In-Reply-To: <80019FFF-F7DC-4B73-9D83-B9F6FADF12F7@gmail.com>
Dear Marcin G?rski,
Am 20.06.2011 10:36, schrieb Marcin G?rski:
> Hello,
>
> I'm trying to port U-Boot to ARM&EVA board (with AT92RM9200 cpu). I'm a little bit confused about usage of CONFIG_SYS_TEXT_BASE macro. As mentioned many times before U-Boot shouldn't be run from RAM, so I set CONFIG_SYS_TEXT_BASE to point a DataFlash memory. But when I do that not only .text section but also .data and .bss sections are linked to flash memory. When I run U-Boot I get "prefetch_abort" exception (which I believe is due to invalid memory location access). On the other hand, when I set CONFIG_SYS_TEXT_BASE to point to RAM location U-Boot hangs just after the start:
unfortunately I did not get at91rm9200ek working to boot from NOR flash
or dataflash correctly. I'm working on that, but only in my rare spare
time. If you get it working, please tell it to me.
> U-Boot> go 0x22000000
> ## Starting application at 0x22000000 ...
>
> U-Boot 2011.03 (Jun 20 2011 - 00:56:19)
>
> DRAM: 1 MiB
>
> To load a new image I use an old version of U-Boot (1.1.6) that was previously installed on this board. This is the very first time when I use U-Boot , any suggestion will be appreciated.
That is Ok, but you need to SKIP_LOWLEVEL_INIT (or similar) to prevent
the start.S to re-initiate the SDRAM (which was done by the first
loader, u-boot 1.1.6 here).
You need to link your new U-Boot to an address somewhere in SDRAM (e.g.
0x22000000, if your system has more than 32MiB) and then use the first
stage loader (u-boot 1.1.6 here) to transfer the new u-boot exactely to
that address! But keep in mind to _not_ touch the SDRAM configuration if
you have some data in SDRAM ;)
You can use the at91bootstarp as first stage bootloader in future. But I
recommend you to invest some time to get U-Boot as SPL working on that
architecture.
regards
Andreas Bie?mann
next prev parent reply other threads:[~2011-06-20 9:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 8:36 [U-Boot] at91rm9200 linking problem (?) Marcin Górski
2011-06-20 9:04 ` Andreas Bießmann [this message]
[not found] ` <BANLkTi==e5RwZKGRTS=bdiHZ61VT37JYOg@mail.gmail.com>
2011-06-20 9:59 ` Andreas Bießmann
2011-06-21 13:19 ` Marcin Górski
2011-06-21 14:35 ` Andreas Bießmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFF0D06.80709@gmail.com \
--to=andreas.devel@googlemail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox