From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/9] smi driver support for SPEAr SoCs
Date: Sat, 19 Dec 2009 22:37:51 +0100 [thread overview]
Message-ID: <20091219213751.9AD69E85072@gemini.denx.de> (raw)
In-Reply-To: <83d1d72b0912182356u6b140b24g8ee1e97becc6285b@mail.gmail.com>
Dear Vipin Kumar,
In message <83d1d72b0912182356u6b140b24g8ee1e97becc6285b@mail.gmail.com> you wrote:
>
> >> >> + /* Assume that all sectors are unprotected by default */
> >> >> + for (i = 0; i < CONFIG_SYS_MAX_FLASH_SECT; i++)
> >> >> + info->protect[i] = 0;
> >> >
> >> > Um... is this assumption correct?
> >>
> >> It is intentional
> >
> > Why don;t you protect sectors where the U-Bootimage and environment
> > are stored?
>
> Since the code is being developed for a development board, erasing and
> flashing the uboot is frequent. This is done only to save unprotect every
> time before erasing/flashing uboot
That's what I expected. Please do add proper protection, so that
everybody who copies the code for a real production board has a sane
implementation.
If you are worried about having to type too many commands for update,
please consider pre-defining useful macros like we do in so many other
boards; for example:
"include/configs/aria.h":
"u-boot=aria/u-boot.bin\0"
...
"load=tftp ${u-boot_addr_r} ${u-boot}\0"
...
"update=protect off ${u-boot_addr} +${filesize};" \
"era ${u-boot_addr} +${filesize};" \
"cp.b ${u-boot_addr_r} ${u-boot_addr} ${filesize}\0"
so you only have to type "run load update".
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
"Unix is simple, but it takes a genius to understand the simplicity."
- Dennis Ritchie
next prev parent reply other threads:[~2009-12-19 21:37 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 9:18 [U-Boot] [PATCH 0/9] Support for SPEAr SoCs Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 1/9] i2c driver support " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 2/9] smi " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 3/9] nand " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 4/9] usbd driver and usb boot firmware " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 5/9] SPEAr600 SoC support added Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 6/9] SPEAr300 " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 7/9] SPEAr310 " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 8/9] SPEAr320 " Vipin KUMAR
2009-12-16 9:18 ` [U-Boot] [PATCH 9/9] SPEAr600 build " Vipin KUMAR
2009-12-17 20:14 ` Wolfgang Denk
2009-12-19 7:26 ` Vipin Kumar
2009-12-17 20:14 ` [U-Boot] [PATCH 8/9] SPEAr320 SoC " Wolfgang Denk
2009-12-19 7:21 ` Vipin Kumar
2009-12-17 20:13 ` [U-Boot] [PATCH 7/9] SPEAr310 " Wolfgang Denk
2009-12-19 7:19 ` Vipin Kumar
2009-12-17 20:09 ` [U-Boot] [PATCH 6/9] SPEAr300 " Wolfgang Denk
2009-12-19 7:10 ` Vipin Kumar
2009-12-19 7:25 ` Wolfgang Denk
2009-12-19 7:58 ` Vipin Kumar
2009-12-16 17:30 ` [U-Boot] [PATCH 5/9] SPEAr600 " Peter Tyser
2009-12-16 18:00 ` Armando VISCONTI
2009-12-16 18:28 ` Peter Tyser
2009-12-17 22:44 ` Wolfgang Denk
2009-12-17 22:54 ` Peter Tyser
2009-12-17 23:13 ` Wolfgang Denk
2009-12-19 7:31 ` Vipin Kumar
2009-12-16 23:09 ` Wolfgang Denk
2009-12-19 8:56 ` Vipin Kumar
2009-12-16 22:56 ` [U-Boot] [PATCH 4/9] usbd driver and usb boot firmware support for SPEAr SoCs Wolfgang Denk
2009-12-19 7:02 ` Vipin Kumar
2009-12-19 7:24 ` Wolfgang Denk
2009-12-19 8:46 ` Vipin Kumar
2010-01-04 23:06 ` [U-Boot] [PATCH 3/9] nand driver " Scott Wood
2010-01-05 3:53 ` Vipin KUMAR
2009-12-16 22:44 ` [U-Boot] [PATCH 2/9] smi " Wolfgang Denk
2009-12-19 6:44 ` Vipin Kumar
2009-12-19 7:20 ` Wolfgang Denk
2009-12-19 7:56 ` Vipin Kumar
2009-12-19 7:59 ` Albert ARIBAUD
2009-12-19 8:28 ` Vipin Kumar
2009-12-19 21:37 ` Wolfgang Denk [this message]
2009-12-16 22:31 ` [U-Boot] [PATCH 1/9] i2c " Wolfgang Denk
2009-12-16 16:49 ` [U-Boot] [PATCH 0/9] Support " Armando VISCONTI
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=20091219213751.9AD69E85072@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