public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] saveenv not working with CONFIG_ENV_IS_IN_UBI
@ 2017-02-20 21:38 Richard Cagley
  2017-02-23  6:57 ` Heiko Schocher
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Cagley @ 2017-02-20 21:38 UTC (permalink / raw)
  To: u-boot

I am unable to have my uboot environment variable persist when using saveenv.

I have these configs set
#define MTDIDS_DEFAULT "nand0=xilinx_nand"
#define MTDPARTS_DEFAULT \
        "mtdparts=xilinx_nand:" \
                "8M(boot)ro," \
                "16M(env-boot)," \
                "20M(itb)," \
                "-(root)"
#define CONFIG_ENV_IS_IN_UBI
#define CONFIG_ENV_UBI_PART "env-boot"
#define CONFIG_ENV_UBI_VOLUME "u-boot-env1"
#define CONFIG_ENV_UBI_VOLUME_REDUND "u-boot-env2"

Once in u-boot I do something along these lines:
mtdparts default
nand erase.part env-boot
ubi part env-boot
ubi create u-boot-env1 0x20000 dynamic
ubi create u-boot-env2 0x20000 dynamic
setenv foo 1
saveenv
saveenv
reset
printenv foo
## Error: "foo" not defined

thanks

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

end of thread, other threads:[~2017-02-23  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-20 21:38 [U-Boot] saveenv not working with CONFIG_ENV_IS_IN_UBI Richard Cagley
2017-02-23  6:57 ` Heiko Schocher

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