All of lore.kernel.org
 help / color / mirror / Atom feed
From: Z.N. <zoldnap@freemail.hu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] porting to custom at 91 board
Date: Sun, 21 Nov 2004 09:52:02 +0000	[thread overview]
Message-ID: <1101030722.6343.6.camel@localhost> (raw)
In-Reply-To: <20041121000608.DDD60C1430@atlas.denx.de>

Hi!
> > As some advised, instead of trying to write a boot loader for a custom
> > AT91 board, I wanted to use the loader.bin and u-boot.bin from ATMEL.
> 
> Even better just use U-Boot and forget about loader.bin ...
ok, that wlll be easy :)

> > My alternate question is, how to port u-boot, so that I can start it in
> > RAM with the above configuration (I've got a small boot loader done in
> > assembly, which is loaded from SPI on startup. So I could store u-boot
> > in the SPI flash, and load it to RAM from there on startup by my small
> > boot loader. how to do this? eg. where to load the u-boot image in RAM?
> > I guess I have to also adjust the SDRAM setup and timings which are
> > differing from the atmel DK.). have anyone ported u-boot to such a
> > configuration?
> 
> Instead of doing all  this  which  is  really  non-trivial  and  also
> ineffficient you could just boot from flash. I've just checked in the
> necessary patches for the AT91RM9200DK and CMC_PU2 boards ...

What do you mean by booting from flash? Since I've got only an SPI flash
connected, U-boot has to be taken apart, since the AT91 internal boot
loader can only load 16KB of code from the flash into the internal
processor SRAM. So what is needed is some code for the SPI flash, which
boots the processor, and reads the rest of u-boot from the SPI flash
into the initialized SDRAM.

Does booting from flash solve the SDRAM initialization problem? (I mean
the SDRAM on my board needs worst case memory timings, and I guess the
atmel DK memory setup code does not use worst case timings..)

Thank you all for your help.

Best regards:Zo

  reply	other threads:[~2004-11-21  9:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-20 23:23 [U-Boot-Users] porting to custom at 91 board Z.N.
2004-11-21  0:06 ` Wolfgang Denk
2004-11-21  9:52   ` Z.N. [this message]
2004-11-21 10:03     ` Wolfgang Denk
2004-11-22  9:56   ` Steven Scholz
2004-11-22 11:09     ` Wolfgang Denk
2004-11-22 11:12       ` Steven Scholz
2004-11-22 16:46         ` 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=1101030722.6343.6.camel@localhost \
    --to=zoldnap@freemail.hu \
    --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.