public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Question about fw_printenv settings
@ 2010-03-10  5:50 Joe Culler
  2010-03-10  6:30 ` Wolfgang Denk
  2010-03-10 10:22 ` Detlev Zundel
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Culler @ 2010-03-10  5:50 UTC (permalink / raw)
  To: u-boot

Hi,

I have problems with fw_env.config in NOR flash.
Would anyone please help me solve it? Thanks.

In my board config:

ifdef CONFIG_NAND
#define CFG_NO_FLASH
#define CONFIG_ENV_IS_IN_NAND           1
#define CONFIG_ENV_OFFSET               0x400000         /* add for 2008.10 */
#define CONFIG_ENV_OFFSET_REDUND        0x404000
#define CONFIG_ENV_SIZE                 0x4000
#else
#define CONFIG_ENV_IS_IN_FLASH          1
#define CONFIG_ENV_ADDR                 (CFG_FLASH_BASE + 0x000c0000)
#define PHYS_FLASH_SIZE                 0x1000000        /* 16 MB */
#define CONFIG_ENV_SIZE                 0x20000
#define CONFIG_ENV_SECT_SIZE            0x20000
#define CONFIG_ENV_ADDR_REDUND          (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
#endif

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00dc0000 00020000 "Linux"
mtd1: 00100000 00020000 "User"
mtd2: 00100000 00020000 "Boot"

My fw_env.config setting:
/dev/mtd2              0x400000        0x20000         0x20000

but it doesn't work :(
#fw_printenv
Read error on /dev/mtd2: Success

Best regards,
Joe.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-10 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10  5:50 [U-Boot] Question about fw_printenv settings Joe Culler
2010-03-10  6:30 ` Wolfgang Denk
2010-03-10  8:53   ` Joe Culler
2010-03-10  9:59     ` Wolfgang Denk
2010-03-10 10:22 ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox