public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-boot doubts
Date: Thu, 17 Dec 2009 07:38:28 +0100	[thread overview]
Message-ID: <20091217063828.6554FD43F21@gemini.denx.de> (raw)
In-Reply-To: <67b11d980912162018j3febe826l91c6b52134123d37@mail.gmail.com>

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.

  reply	other threads:[~2009-12-17  6:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-17  4:18 [U-Boot] U-boot doubts Chandra Sekar
2009-12-17  6:38 ` Wolfgang Denk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-12-28  9:31 [U-Boot] U-boot Doubts Chandra Sekar
2009-12-30  9:53 [U-Boot] u-boot doubts Chandra Sekar
2009-12-30 10:40 ` Dennis Semakin

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=20091217063828.6554FD43F21@gemini.denx.de \
    --to=wd@denx.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