From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] fw_setenv on protected flash
Date: Fri, 22 Feb 2013 09:34:24 +0100 [thread overview]
Message-ID: <51272D90.9000201@denx.de> (raw)
In-Reply-To: <48D3D52125C49B43AE880038E2E5314BB5C0DD@SRV101.gdsys.de>
Hi Dirk,
On 22.02.2013 09:18, Eibach, Dirk wrote:
> Some of your recent cfi flash driver enhancements have made flash
> protect/unprotect work on our NOR based platforms (S29GL512). Good news
> so far, but as a consequence fw_setenv is woking no more:
> MTD erase error on /dev/mtd5: Input/output error
> Error: can't write fw_env to flash
>
> Also flash_unlock from mtd_utils is not doing the trick:
> Could not unlock MTD device: /dev/mtd5
>
> Unprotecting flash in u-boot before booting linux makes this work, but
> this is probably no good idea.
>
> So what is the recommended workflow for fw_setenv on protected flash?
Linux support for this enhanced sector protection (PPB) has just been
accepted into mainline Linux. You need include this patch if you are
working with an older kernel version:
http://patchwork.ozlabs.org/patch/213602/
And you also need to enable this feature in your dts file as described
in the patch description.
Thanks,
Stefan
next prev parent reply other threads:[~2013-02-22 8:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-22 8:18 [U-Boot] fw_setenv on protected flash Eibach, Dirk
2013-02-22 8:34 ` Stefan Roese [this message]
2013-02-22 9:15 ` Eibach, Dirk
2013-02-22 9:19 ` Stefan Roese
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=51272D90.9000201@denx.de \
--to=sr@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