From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: U-Boot for AT91RM9200DK
Date: Mon, 27 Oct 2003 08:15:12 +0100 [thread overview]
Message-ID: <3F9CC600.2080209@imc-berlin.de> (raw)
In-Reply-To: <E1AD2ZT-0000ZU-00@c-67-164-61-95.client.comcast.net>
Rick,
>>Should we put all the init code into cpu/at91rm9200/{start.S} and use CONFIG_
>>and CFG_?
>
> I'd put it all in start.S and not define any CONFIG for it. But one
> thing you might check is if it will start up when the clocks are
> already configured. In other words, make sure your new u-boot can be
> started from an already running u-boot. This is necessary because the
> AT91RM9200 can be started from SPI DataFlash (or EEPROM) which
> requires a preloader. The preloader sets up clocks for SDRAM, etc and
> then launches u-boot.
>
> I have a sperate entry in a Makefile for compiling u-boot up to run
> in ram so that I can fire a new u-boot while inside u-boot:
>
> ram:
> cd u-boot-0.4.0; \
> echo TEXT_BASE = 0x21fa0000 > board/at91rm9200dk/config.mk; \
> make at91rm9200dk_config; \
> make; \
> cp -f u-boot.bin /tftpboot
>
> And then from u-boot I do:
>
> tftp 21fa0000 u-boot.bin # load u-boot
> go 21fa0000 # run u-boot
Ok. I see. So you're building a special version of U-Boot for this anyway (using
make ram). Right?
I've seen:
/*
* we do sys-critical inits only at reboot,
* not when booting from ram!
*/
#ifdef CONFIG_INIT_CRITICAL
bl cpu_init_crit
#endif
in cpu/arm920t/start.S and
#define CONFIG_INIT_CRITICAL /* undef for developing */
in some board specific header file.
So. Would you agree on a mechanism like that?
You could still do something like that in your Makefile:
> ram:
> cd u-boot-0.4.0; \
> echo TEXT_BASE = 0x21fa0000 > board/at91rm9200dk/config.mk; \
> make at91rm9200dk_config; \
echo "#undef CONFIG_INIT_CRITICAL" >> include/config.h; \
> make; \
> cp -f u-boot.bin /tftpboot
I think this would better better than trying to autodetect if the system was
already configured. Ok?
Steven
next prev parent reply other threads:[~2003-10-27 7:15 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 ` [U-Boot-Users] U-Boot for AT91RM9200DK Steven Scholz
2003-10-24 14:05 ` [U-Boot-Users] " 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 [this message]
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=3F9CC600.2080209@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox