All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-Boot for AT91RM9200DK
Date: Fri, 24 Oct 2003 11:01:52 +0200	[thread overview]
Message-ID: <3F98EA80.9040302@imc-berlin.de> (raw)
In-Reply-To: <E1AAsEW-0000fj-00@c-67-164-61-95.client.comcast.net>

Hi Rick et al.,

as I mentioned before U-Boot is running on our AT91RM9200 based board. I went 
down the path ATMEL was suggesting. They use this memory map on their eval board 
AT91RM9200DK:

24k	Boot Image
32KB	free
8KB	Environment
64KB	gzipped U-Boot image

The "Boot image" is a small (11k) piece of code which initialises clocks, flash, 
SDRAM and serial port. Then it decompresses the "gzipped U-Boot image" into 
SDRAM and jumps to it. The reason for that seems to be:

 > We chose, to put a compressed boot due to memory mapping constraints.
 > We need to keep a sector for environment variables the 8Kbyte-size sector is
 > enough.

They probably overlooked that you could embedded the environment into U-Boot. By 
using a correct u-boot.lds linker file one can reserve an 8Kbyte-size sector in 
the middle of U-Boot. So instead one could use this memory map:

56KB	U-Boot
8KB	Environment
64KB	U-Boot

using the same 128KB of flash.

Since the CPU was setup by the bootloader there's no init and relocation code 
for the AT91RM9200 in U-Boot (yet).

So I spend a day, "wrote" some init and relocation code and now U-Boot is 
starting directly from flash and relocates itself to RAM. No Preboot needed. Nor 
gzipped image of U-Boot.

I would like to change the official U-Boot code for the AT91RM9200 and 
AT91RM9200DK so that it can be used without the need of another bootloader.
This way it would be a lot easier for people to port U-Boot to their hardware.

What do you think?
Anyone interessted?

I'd love to hear suggestion, where to put specific parts of the init code. Other 
ARM cpus use a board specific memsetup.S file.
For an AT91RM9200 we have to setup more than just the SDRAM.
Should we put all the init code into cpu/at91rm9200/{start.S} and use CONFIG_ 
and CFG_?
Or should every AT91 based board copy the same code again and again into thier 
own subdirectory?

Looking forward to your ideas!

Thanks. And sorry for the long mail!

-- 
Steven Scholz

imc Measurement & Control               imc Me?systeme GmbH
Voltastr. 5                             Voltastr. 5
13355 Berlin                            13355 Berlin
Germany                                 Deutschland
fon: +49 30 467090-0                    Tel: 030 / 467090-0
fax: +49 30 4631576                     fax: 030 / 4631576

  parent reply	other threads:[~2003-10-24  9:01 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-18 13:12 [U-Boot-Users] Maintainer of AT91RM9200DK??? Steven Scholz
2003-10-18 13:45 ` [U-Boot-Users] " Rick Bronson
     [not found]   ` <3F914731.1000207@imc-berlin.de>
     [not found]     ` <E1AAs6Y-0000eT-00@c-67-164-61-95.client.comcast.net>
     [not found]       ` <3F914F82.3060502@imc-berlin.de>
     [not found]         ` <E1AAsEW-0000fj-00@c-67-164-61-95.client.comcast.net>
2003-10-24  9:01           ` Steven Scholz [this message]
2003-10-24 14:05             ` [U-Boot-Users] Re: U-Boot for AT91RM9200DK Rick Bronson
2003-10-24 14:18               ` Steven Scholz
2003-10-24 14:30                 ` Rick Bronson
2003-10-24 14:41                   ` Steven Scholz
2003-10-24 15:40                     ` Rick Bronson
2003-10-25 18:45                       ` Wolfgang Denk
2003-10-25 18:52                     ` Wolfgang Denk
2003-10-26 10:56                       ` Steven Scholz
2003-10-26 12:17                         ` Wolfgang Denk
2003-10-25 18:41                   ` Wolfgang Denk
2003-10-27  7:15               ` Steven Scholz
2003-10-27  8:02                 ` Wolfgang Denk
2003-10-27  8:25                   ` Steven Scholz
2003-10-27 10:16                     ` Wolfgang Denk
2003-10-27 11:23                       ` Steven Scholz
2003-10-27 11:53                         ` Wolfgang Denk
2003-10-27 14:58                           ` Steven Scholz
2003-10-27 15:38                 ` Rick Bronson
2003-10-27 16:21                   ` Wolfgang Denk
2003-10-25 18:32             ` [U-Boot-Users] " Wolfgang Denk
2003-10-18 20:39 ` [U-Boot-Users] Maintainer of AT91RM9200DK??? Wolfgang Denk
2003-10-20 13:49   ` [U-Boot-Users] about arm7tdmi Joe
2003-10-20 15:10     ` Wolfgang Denk
2003-10-21  4:58       ` [U-Boot-Users] one by one problem " Joe
2003-10-21  9:25         ` Wolfgang Denk

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=3F98EA80.9040302@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.