public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Question about U-Boot in general and the AT91RM9200 in particular
@ 2007-01-04 14:16 Sascha Erlacher
  2007-01-04 15:37 ` Andreas Schweigstill
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Erlacher @ 2007-01-04 14:16 UTC (permalink / raw)
  To: u-boot



>thus in any way you must use a small (<12Kb) initial bootloader, which
>in turn loads u-boot from dataflash or NOR flash in SDRAM.

Hello Ivan,
this is not correct. As Wolfgang points out you can boot directly from NOR
 flash.

It depends on the BootModeSelect (BMS) pin state of the AT91RM9200.
The datasheet states:

"Depending on the BMS pin state at reset and as a function of the remap
 command, the memory
mapped at address 0x0 is different. Before execution of the remap command
the on-chip ROM
(BMS = 1) or the 16-bit non-volatile memory connected to external chip
select zero (BMS = 0) is
mapped into Internal Memory Area 0."

When setting BMS=0 the AT91RM9200 internal boot rom code is not executed.
If the external (NOR) flash contains a valid U-Boot image it will be
executed directly,
and, in case it properly initializes an external SDRAM, will be able to
relocate itself to SDRAM
without going through internal SRAM.

Best regards,
Sascha

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] Question about U-Boot in general and the AT91RM9200 in particular
@ 2007-01-03 22:49 Javier Ruere
  2007-01-04  0:05 ` Wolfgang Denk
  2007-01-04 12:20 ` Marco Cavallini
  0 siblings, 2 replies; 7+ messages in thread
From: Javier Ruere @ 2007-01-03 22:49 UTC (permalink / raw)
  To: u-boot

Hello everyone,
	I have been working with an AT91RM9200-EK board for a couple of months now 
and we are about to make our own custom board. Lately I started investigating 
about U-Boot and how it works in this board and, though I have found a lot of 
bits of information, I am still quite confused.
	I would like to ask about U-Boot running from RAM. On the one hand, I have 
seen links [1] and [2] that say that it should not be done but, on the other 
hand, from the documentation from Atmel [3] I see it _is_ being run from RAM. 
I have done this myself with u-boot 1.1.6 defining CONFIG_SKIP_LOWLEVEL_INIT 
at the top of include/configs/at91rm9200dk.h, otherwise it wouldn't work. I 
found out about this define here [4]
	For what I gather from the instructions from Atmel, there is always a 
bootloader before U-Boot, loading it from the dataflash, serial port or Flash 
and this could explain why I must define CONFIG_SKIP_LOWLEVEL_INIT, so that 
the hardware is not initialized twice.
	Would it work to put an uncompressed image of U-Boot at the beginning of the 
flash memory and let it initialize the board if I don't add the define I 
mentioned before?
	Thank you all for your time and help.

Regards,
		Javier Ruere


[1] http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/25551/focus=25596
[2] 
http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM
[3] 
http://www.atmel.com/dyn/resources/prod_documents/UBootFlashProgramming.zip
[4] 
http://www.at91.com/www/phpBB2_mirror/viewtopic.php4?t=1300&highlight=at91rm9200ek+uboot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-04 16:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.218930.1167876452.30209.u-boot-users@lists.sourceforge.net>
2007-01-04 11:41 ` [U-Boot-Users] Question about U-Boot in general and the AT91RM9200 in particular Ivan Kuten
2007-01-04 14:16 Sascha Erlacher
2007-01-04 15:37 ` Andreas Schweigstill
2007-01-04 16:38   ` Ulf Samuelsson
  -- strict thread matches above, loose matches on Subject: below --
2007-01-03 22:49 Javier Ruere
2007-01-04  0:05 ` Wolfgang Denk
2007-01-04 12:20 ` Marco Cavallini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox