]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mtd: Make mtdparts work with pre-reloc env
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 8 Apr 2013 10:32:50 +0000 (10:32 +0000)
committerTom Rini <trini@ti.com>
Thu, 11 Apr 2013 19:52:54 +0000 (15:52 -0400)
commita7eb1d66c704c884584bf00548cfdf68abfe68bb
tree30cfb70d331bbbeda6e1d13c6737e5d15951d341
parent147162dac6506d2ed96ba5869772f87fb1f49a0b
mtd: Make mtdparts work with pre-reloc env

The env in UBI needs to look up the mtd partition as part of relocation,
which happens before relocation.  Make the mtdparts code capable of
working on the default env to start with.

The code tries to set values in the env as well, but again, the env
isn't there yet, so add a check to setenv to not allow sets before the
env is relocated.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
common/cmd_mtdparts.c
common/cmd_nvedit.c