[U-Boot] AT91SAM9260 and AT91SAMG20 dataflash saveenv problem

David Pristovnik davidp at evo-teh.com
Sun Sep 25 21:22:41 CEST 2011


Hi again,

after a bit more debugging I came to the conclusion that there was no problem with the saving of environment variables to dataflash,
but the problem is with reading them when the board 'env_init' is called and dataflash isn't initialized jet.
After a bit of research I stumbled upon a patch posted by Hong Xu http://patchwork.ozlabs.org/patch/108025/ still under review which solves the problem.
I understand that the solution isn't the most elegant one, but it enables the atmel based boards with dataflash to function normally which isn't the case with the default tree.

Regards, David

----- Original Message -----
From: "David Pristovnik" <davidp at evo-teh.com>
To: u-boot at lists.denx.de
Sent: Thursday, 22 September, 2011 1:29:03 PM
Subject: [U-Boot] AT91SAM9260 and AT91SAMG20 dataflash saveenv problem

Hi,

has anyone noticed the problem with dataflash write support on these two platforms. 
I'm using at91sam9g20ek_dataflash_cs1 and at91sam9260ek_dataflash_cs1 config on my test EK platforms.
When I try to add or modify environment variables and then save them with "saveenv" everything seems OK but nothing actually gets written.

U-Boot 2011.09-rc1-00020-g56fa45d-dirty (Sep 22 2011 - 12:58:48)

CPU: AT91SAM9G20
Crystal frequency:   18.432 MHz
CPU clock        :  396.288 MHz
Master clock     :  132.096 MHz
DRAM:  64 MiB
WARNING: Caches not enabled
NAND:  512 MiB
DataFlash:AT45DB161
Nb pages:   4096
Page Size:    528
Size= 2162688 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D00041FF      Bootstrap
Area 1: D0004200 to D00083FF      Environment
Area 2: D0008400 to D0041FFF      U-Boot
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   macb0Warning: failed to set MAC address

Regards, David
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list