* [U-Boot-Users] CFG_NO_FLASH configuration parameter
@ 2006-02-23 7:12 Mustafa Çayır
2006-02-23 11:08 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Mustafa Çayır @ 2006-02-23 7:12 UTC (permalink / raw)
To: u-boot
Hi,
Could you point out CFG_NO_FLASH configuration parameter? If CFG_NO_FLASH is defined, do it means that there is really no flash in system? if so, how is system able to boot from flash?
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CFG_NO_FLASH configuration parameter
2006-02-23 7:12 [U-Boot-Users] CFG_NO_FLASH configuration parameter Mustafa Çayır
@ 2006-02-23 11:08 ` Wolfgang Denk
2006-02-23 12:07 ` Mustafa Çayir
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-02-23 11:08 UTC (permalink / raw)
To: u-boot
In message <002201c63848$88dbba20$9e01120a@bilisim.local> you wrote:
>
> Could you point out CFG_NO_FLASH configuration parameter? If
> CFG_NO_FLASH is defined, do it means that there is really no flash in
Yes, CFG_NO_FLASH means that there is no flash on the board.
> system? if so, how is system able to boot from flash?
Simple: it does not boot from flash.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Don't worry about people stealing your ideas. If your ideas are any
good, you'll have to ram them down people's throats." - Howard Aiken
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CFG_NO_FLASH configuration parameter
2006-02-23 11:08 ` Wolfgang Denk
@ 2006-02-23 12:07 ` Mustafa Çayir
2006-02-23 12:21 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Mustafa Çayir @ 2006-02-23 12:07 UTC (permalink / raw)
To: u-boot
hi Denk,
Thanks for your reply.
> Yes, CFG_NO_FLASH means that there is no flash on the board.
>
>> system? if so, how is system able to boot from flash?
>
> Simple: it does not boot from flash.
if CFG_NO_FLASH is defined, as you said, means there are no flash memories, where do initial boot instructions located?
Regards.
.globl _start
_start:
li r21, BOOTFLAG_COLD /* Normal Power-On: Boot from FLASH */
b boot_cold
sync
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CFG_NO_FLASH configuration parameter
2006-02-23 12:07 ` Mustafa Çayir
@ 2006-02-23 12:21 ` Wolfgang Denk
2006-02-23 12:44 ` Jerry Van Baren
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-02-23 12:21 UTC (permalink / raw)
To: u-boot
In message <006d01c63871$b26c26d0$9e01120a@bilisim.local> you wrote:
>
> if CFG_NO_FLASH is defined, as you said, means there are no flash
> memories, where do initial boot instructions located?
For example in RAM. Think of a PCI card which is plugged in a host
system, where the host runs some software to upload some code into
the PCI card's memory which then gets executed. See the PN62 board
for such a configuration.
There are several other methods to load U-Boot into RAM - for example
by using an initial bootstrap loader as used on some system to boot
from NAND flash or dataflash.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"One planet is all you get."
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CFG_NO_FLASH configuration parameter
2006-02-23 12:21 ` Wolfgang Denk
@ 2006-02-23 12:44 ` Jerry Van Baren
0 siblings, 0 replies; 5+ messages in thread
From: Jerry Van Baren @ 2006-02-23 12:44 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <006d01c63871$b26c26d0$9e01120a@bilisim.local> you wrote:
>> if CFG_NO_FLASH is defined, as you said, means there are no flash
>> memories, where do initial boot instructions located?
>
> For example in RAM. Think of a PCI card which is plugged in a host
> system, where the host runs some software to upload some code into
> the PCI card's memory which then gets executed. See the PN62 board
> for such a configuration.
>
> There are several other methods to load U-Boot into RAM - for example
> by using an initial bootstrap loader as used on some system to boot
> from NAND flash or dataflash.
>
> Best regards,
>
> Wolfgang Denk
...and that RAM has to be connected to CS0 (typ) if it is truly "no ROM"
(no flash).
* If it is SDRAM, someone other than u-boot must initialize it so that
it is functional when reset is released.
* Someone other than u-boot must load u-boot (or other program) into the
RAM while the processor is held in reset, and then release reset.
* The processor doesn't care if it is booting out of RAM or ROM or core
memory. It fetches instructions and executes them. It always does the
same thing on release of reset - you cannot change it other than what
the chip manufacturer provided for. It is your responsibility to have
instructions in the right place and available when you release reset
(e.g. for the 603e core lowboot: 0x00000100, highboot: 0xFFFFF100).
Disclaimer: I believe there are systems out there that use CFG_NO_FLASH
but actually have a minimal boot memory (ROM/flash/eeprom) that
initialize SDRAM and then spin until the host downloads the program
(e.g. u-boot) and says "go". The above discussion doesn't apply to them.
gvb
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-02-23 12:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 7:12 [U-Boot-Users] CFG_NO_FLASH configuration parameter Mustafa Çayır
2006-02-23 11:08 ` Wolfgang Denk
2006-02-23 12:07 ` Mustafa Çayir
2006-02-23 12:21 ` Wolfgang Denk
2006-02-23 12:44 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox