diff options
author | David Ungar <david.ungar@timesys.com> | 2010-10-11 14:35:01 -0400 |
---|---|---|
committer | David Ungar <david.ungar@timesys.com> | 2010-10-11 14:39:35 -0400 |
commit | b403aefbce61b316535ab772b9eea613fea10c8f (patch) | |
tree | 1978b9669064f0f2e322f2f6a1295aacd266cf63 /lib_arm | |
parent | aa88bb00f7ebe0fe355276ffc1df08687c664057 (diff) |
Adjust environment location in flash
Diffstat (limited to 'lib_arm')
-rw-r--r-- | lib_arm/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c index e9ccb9bec2..433ac04099 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -370,6 +370,13 @@ void start_armboot (void) } else { omap_nand_switch_ecc(OMAP_ECC_HW); /* switch to HW ECC mode */ } + { + int size; + size = nand_info[0].size; + + /* Set the u-boot environment offset to be at the end of NAND */ + boot_flash_off = size - CONFIG_ENV_RANGE; + } #endif #endif |