All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] at91sam9x5: mmc: save environment as a file in FAT partition.
Date: Wed, 23 Jan 2013 17:31:51 +0800	[thread overview]
Message-ID: <50FFAE07.1060003@atmel.com> (raw)
In-Reply-To: <1358843773-22945-1-git-send-email-josh.wu@atmel.com>

Hi Josh,

On 01/22/2013 04:36 PM, Josh Wu wrote:
> This patch will save U-Boot environment as a file: uboot.env, in FAT partition
> instead of saving it in raw sector of SD card.
> Since saving environment in raw sector has risk of corrupting the SD card and
> only can use very small size.
> Save as a FAT file has no above limitation.
>
> Signed-off-by: Josh Wu<josh.wu@atmel.com>
> ---
> this patch is based on v2013.01.
>
>   include/configs/at91sam9x5ek.h |   12 +++++++-----
>   1 file changed, 7 insertions(+), 5 deletions(-)

When I test this on at91sam9g35ek board, execute "saveenv", it will 
report following information, any information for this?
----------------------------
U-Boot 2013.01-00001-g4ab0497 (Jan 23 2013 - 17:12:28)

CPU: AT91SAM9G35
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  No NAND device found!!!
atmel_nand: Fail to initialize #0 chip0 MiB
MMC:   mci: 0
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 22222222 Hz, block size 512
** Partition 1 not valid on device 0 **
Failed to register mmc0:1
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   macb0
Warning: failed to set MAC address

U-Boot> saveenv
Saving Environment to FAT...
mci: setting clock 260416 Hz, block size 512
mci: setting clock 22222222 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 260416 Hz, block size 512
mci: setting clock 22222222 Hz, block size 512
** Partition 1 not valid on device 0 **
Failed to register mmc0:1
------------------------------------------------

Best Regards,
Bo Shen

  reply	other threads:[~2013-01-23  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22  8:36 [U-Boot] [PATCH] at91sam9x5: mmc: save environment as a file in FAT partition Josh Wu
2013-01-23  9:31 ` Bo Shen [this message]
2013-02-22 10:36   ` Josh Wu
2013-03-10 15:55     ` Andreas Bießmann
2013-03-11 11:18       ` Josh Wu

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=50FFAE07.1060003@atmel.com \
    --to=voice.shen@atmel.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.