mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[uboot-xburst] fix erase error when erasing redundant env nand
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#define CONFIG_SKIP_LOWLEVEL_INIT 1
|
#define CONFIG_SKIP_LOWLEVEL_INIT 1
|
||||||
#define CONFIG_BOARD_EARLY_INIT_F 1
|
#define CONFIG_BOARD_EARLY_INIT_F 1
|
||||||
#define CONFIG_SYS_NO_FLASH 1
|
#define CONFIG_SYS_NO_FLASH 1
|
||||||
|
#define CONFIG_SYS_FLASH_BASE 0 /* init flash_base as 0 */
|
||||||
#define CONFIG_ENV_OVERWRITE 1
|
#define CONFIG_ENV_OVERWRITE 1
|
||||||
|
|
||||||
#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAUL)
|
#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAUL)
|
||||||
@@ -153,9 +154,8 @@
|
|||||||
#define CONFIG_SYS_NAND_U_BOOT_SIZE (512 << 10) /* Size of RAM U-Boot image */
|
#define CONFIG_SYS_NAND_U_BOOT_SIZE (512 << 10) /* Size of RAM U-Boot image */
|
||||||
|
|
||||||
#define CONFIG_ENV_SIZE (4 << 10)
|
#define CONFIG_ENV_SIZE (4 << 10)
|
||||||
#define CONFIG_ENV_OFFSET (CONFIG_SYS_NAND_BLOCK_SIZE + CONFIG_SYS_NAND_U_BOOT_SIZE + CONFIG_SYS_NAND_BLOCK_SIZE)
|
#define CONFIG_ENV_OFFSET (CONFIG_SYS_NAND_BLOCK_SIZE + CONFIG_SYS_NAND_U_BOOT_SIZE)
|
||||||
/* environment starts here */
|
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_SYS_NAND_BLOCK_SIZE)
|
||||||
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
|
|
||||||
|
|
||||||
/* in board/nanonote/config.mk TEXT_BAS = 0x88000000 */
|
/* in board/nanonote/config.mk TEXT_BAS = 0x88000000 */
|
||||||
#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
|
#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
|
||||||
|
|||||||
Reference in New Issue
Block a user