From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] cfi_flash.c patches
Date: Wed, 24 Aug 2005 16:52:01 -0500 [thread overview]
Message-ID: <430CEC01.1070800@orkun.us> (raw)
In-Reply-To: <m2irxvmike.fsf@sowhat.denx.de>
Hi Detlev,
I am almost banished for causing this discussion and I will probably be
subjected to "tar and feathers" after this :)
Detlev Zundel wrote:
> Hello all,
>
> sorry for jumping in so late in this discussion but I just want to
> make my opinion heard.
>
> For what its worth, I consider "unlocking everything besides u-boot
> relevant code (or add something to the opposite in your board code)"
> as policy. I think U-Boot should provide the mechanisms, i.e. commands
> to protect and unprotect sectors and by correctly indicating protected
> sectors in the fli display.
Yes, I consider this as a "policy" as well.
> I think Wolfgang votes against this as he expects u-boot to provide
> him with a common view over many boards - thus seeing the hardware
> protection by default rather as a design decision to be abstracted by
> u-boot.
But, he is making an assumption on the usage of portions of flash which
is not defined by U-Boot.
A bootloader is only one part of the total software solution. There is
typically an application loaded following the U-Boot portion that
defines the usage of portion of hardware that might be shared with
U-Boot. Even if you might have common hardware you could end up uncommon
usage since it is more appropriate to the application. This is typically
the case for off-the-shelf boards that gets embedded in many different
applications.
> Therefore I guess one question that should drive the design of u-boot
> code is
>
> Q: Is hardware protection in flash chips a deliberate measure by the
> board designer not to be abstracted by the bootloader?
> If the answer is "no" then the current design is presenting this
>
> u-boot abstraction on every board.
>
> If on the other hand the answer is "yes" then I think u-boot should
> not make all flash writable by default.
The answer is "No" in some cases and in others it is a "Yes". However,
once the choice of chip is made, there are implications of the choice.
When the answer is "No", convenience, availability, cost are probably
factors that resulted in the current hardware design. In this case, the
designer generally does not have a preference. Other factors have had
higher importance with that choice.
When the answer is "Yes", the designer really desires to use that
feature as presented by the hardware.
So, should U-Boot be making the abstraction suitable for this lowest
common denomiator, denying the capabilities of more featured chips? I
think U-Boot should not match the common denominator but rather reflect
the capabilities of actual hardware and provide necessary and sufficient
tools to deal with it. I would like to see the common view in the tools
presented but any further abstraction is abstraction gone too far, too
rigid.
I think it is wrong for U-Boot to make any abstraction on any portion of
flash that it does not know anything about it's use. The tools available
today within U-Boot provides all the necessary and sufficient facilities
to deal with any usage model.
Best regards,
Tolunay Orkun
next prev parent reply other threads:[~2005-08-24 21:52 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-19 4:27 [U-Boot-Users] [PATCH] cfi_flash.c patches Sangmoon Kim
2005-08-19 18:36 ` Tolunay Orkun
2005-08-22 5:37 ` Sangmoon Kim
2005-08-22 6:31 ` Tolunay Orkun
2005-08-22 7:13 ` Sangmoon Kim
2005-08-22 15:37 ` Tolunay Orkun
2005-08-22 16:17 ` Wolfgang Denk
2005-08-22 16:49 ` Tolunay Orkun
2005-08-22 20:49 ` Wolfgang Denk
2005-08-22 16:41 ` Scott McNutt
2005-08-23 1:53 ` Sangmoon Kim
2005-08-22 7:58 ` Wolfgang Denk
2005-08-22 17:02 ` Tolunay Orkun
2005-08-22 20:53 ` Wolfgang Denk
2005-08-22 22:05 ` Tolunay Orkun
2005-08-22 22:46 ` Wolfgang Denk
2005-08-23 7:14 ` Yuli Barcohen
2005-08-23 8:39 ` Sangmoon Kim
2005-08-23 14:47 ` Brian Waite
2005-08-23 20:24 ` Wolfgang Denk
2005-08-24 5:58 ` Yuli Barcohen
2005-08-24 16:00 ` Detlev Zundel
2005-08-24 21:52 ` Tolunay Orkun [this message]
2005-08-24 23:12 ` Wolfgang Denk
2005-08-25 14:37 ` Brian Waite
2005-08-25 16:37 ` Tolunay Orkun
2005-08-26 14:12 ` U-Boot policy on flash protection (was [U-Boot-Users] [PATCH] cfi_flash.c patches) Detlev Zundel
2005-08-26 14:45 ` Wolfgang Denk
2006-02-28 16:34 ` [U-Boot-Users] [PATCH] cfi_flash.c patches Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2005-08-19 18:47 Woodruff, Richard
2005-08-19 20:16 ` Tolunay Orkun
2005-08-19 20:22 Woodruff, Richard
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=430CEC01.1070800@orkun.us \
--to=listmember@orkun.us \
--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