* [U-Boot] U-boot doubts
@ 2009-12-17 4:18 Chandra Sekar
2009-12-17 6:38 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Chandra Sekar @ 2009-12-17 4:18 UTC (permalink / raw)
To: u-boot
Hi,
why do we have two files(env_nand.c and env_flash.c) to manipulate
environmental variables?
According to my knowledge nand is also a flash type then why we have
separate file called env_flash.c or is this file will be used for nor flash?
chandru
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] U-boot doubts
2009-12-17 4:18 [U-Boot] U-boot doubts Chandra Sekar
@ 2009-12-17 6:38 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2009-12-17 6:38 UTC (permalink / raw)
To: u-boot
Dear Chandra Sekar,
In message <67b11d980912162018j3febe826l91c6b52134123d37@mail.gmail.com> you wrote:
>
> why do we have two files(env_nand.c and env_flash.c) to manipulate
> environmental variables?
Because NAND flahrequires diofferent handling than NOR flash.
Note there is also common/env_dataflash.c, common/env_eeprom.c,
common/env_mgdisk.c, common/env_nowhere.c, common/env_nvram.c,
common/env_onenand.c, and common/env_sf.c
> According to my knowledge nand is also a flash type then why we have
> separate file called env_flash.c or is this file will be used for nor flash?
NOR flash is a memory device which is byte-addressable by the
processor. NAND flash is no memory, but a storage device instead,
which needs to be read in buffers into RAM before you can access
arbitrary bytes of it's content.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Carelessly planned projects take three times longer to complete than
expected. Carefully planned projects take four times longer to
complete than expected, mostly because the planners expect their
planning to reduce the time it takes.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] U-boot Doubts
@ 2009-12-28 9:31 Chandra Sekar
0 siblings, 0 replies; 5+ messages in thread
From: Chandra Sekar @ 2009-12-28 9:31 UTC (permalink / raw)
To: u-boot
Hi ,
I am new to u-boot, can any one explain what is the functionality of
board_init_f(), cpu_init_f()
functions ?.
thank you,
chandru
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] u-boot doubts
@ 2009-12-30 9:53 Chandra Sekar
2009-12-30 10:40 ` Dennis Semakin
0 siblings, 1 reply; 5+ messages in thread
From: Chandra Sekar @ 2009-12-30 9:53 UTC (permalink / raw)
To: u-boot
Hi ,
If i enable the CONFIG_ENV_IS_EMBEDDED macro, where the environmental
variables will be stored?
Can i use saveenv command? if yes, where it will be stored?
thanks
-chandru
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] u-boot doubts
2009-12-30 9:53 [U-Boot] u-boot doubts Chandra Sekar
@ 2009-12-30 10:40 ` Dennis Semakin
0 siblings, 0 replies; 5+ messages in thread
From: Dennis Semakin @ 2009-12-30 10:40 UTC (permalink / raw)
To: u-boot
> Hi ,
>
> If i enable the CONFIG_ENV_IS_EMBEDDED macro, where the environmental
> variables will be stored?
> Can i use saveenv command? if yes, where it will be stored?
>
> thanks
> -chandru
>
>
May be here, in common/env_embedded.c written
/*
* Generate embedded environment table
* inside U-Boot image, if needed.
*/
#if defined(ENV_IS_EMBEDDED)
/*
* Only put the environment in it's own section when we are building
* U-Boot proper. The host based program "tools/envcrc" does not need
* a seperate section. Note that ENV_CRC is only defined when building
* U-Boot itself.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-30 10:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 9:53 [U-Boot] u-boot doubts Chandra Sekar
2009-12-30 10:40 ` Dennis Semakin
-- strict thread matches above, loose matches on Subject: below --
2009-12-28 9:31 [U-Boot] U-boot Doubts Chandra Sekar
2009-12-17 4:18 [U-Boot] U-boot doubts Chandra Sekar
2009-12-17 6:38 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox