From: Victor Librado <vlibrado@bioingenieria.es>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot fw_setenv does not write
Date: Mon, 02 Jul 2007 17:36:47 +0200 [thread overview]
Message-ID: <46891B8F.3020200@bioingenieria.es> (raw)
u-boot environment tool fw_setenv does not work when writing the
environment to flash. Working with at91sam9260ek running kernel 2.6.20.
These are the traces:
# ./fw_setenv bootdelay 4
Warning: Bad CRC, using default environment
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd1...
CRC write error on /dev/mtd1: Invalid argument
Error: can't write fw_env to flash
Kernel printk:
nand_write: Attempt to write not page aligned data
In /etc/fw_env.config configuration:
$ more fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
/dev/mtd1 0x80000 0x20000 0x20000
Offset and environmet size as defined in myboard.h for u-boot
compilation. I suppose flash sector size is the erase (block size).
Any help please?
Victor Librado Sancho
Departamento I+D
------------------------------------------------------------------------
next reply other threads:[~2007-07-02 15:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-02 15:36 Victor Librado [this message]
2007-07-02 19:51 ` [U-Boot-Users] u-boot fw_setenv does not write Jeff Angielski
2007-07-03 9:14 ` Victor Librado
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=46891B8F.3020200@bioingenieria.es \
--to=vlibrado@bioingenieria.es \
--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