From: Minkyu Kang Date: Thu, 8 Apr 2010 11:39:00 +0000 (+0900) Subject: s5pc1xx: universal: fix env offset X-Git-Tag: JD06_20100409~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36e49a4c7b014a38a10a3828aa2427605422b6d2;p=kernel%2Fu-boot.git s5pc1xx: universal: fix env offset Signed-off-by: Minkyu Kang --- diff --git a/common/cmd_usbd.c b/common/cmd_usbd.c index 3dfe312..6f7dc7b 100644 --- a/common/cmd_usbd.c +++ b/common/cmd_usbd.c @@ -845,7 +845,7 @@ static int process_data(struct usbd_ops *usbd) param_id = get_part_id("params"); if (param_id == -1) { - sprintf(offset, "%x", CONFIG_ENV_OFFSET); + sprintf(offset, "%x", CONFIG_ENV_ADDR); sprintf(length, "%x", CONFIG_ENV_SIZE); } else { sprintf(offset, "%x", parts[param_id]->offset); diff --git a/include/configs/s5pc1xx_universal.h b/include/configs/s5pc1xx_universal.h index 05d43ef..ef0b6e6 100644 --- a/include/configs/s5pc1xx_universal.h +++ b/include/configs/s5pc1xx_universal.h @@ -338,8 +338,7 @@ #define CONFIG_ENV_IS_IN_ONENAND 1 #define CONFIG_ENV_SIZE (256 << 10) /* 256 KiB, 0x40000 */ -#define CONFIG_ENV_ADDR (256 << 10) /* 256 KiB, 0x40000 */ -#define CONFIG_ENV_OFFSET (256 << 10) /* 256 KiB, 0x40000 */ +#define CONFIG_ENV_ADDR (1 << 20) /* 1 MB, 0x100000 */ #define CONFIG_USE_ONENAND_BOARD_INIT #define CONFIG_SAMSUNG_ONENAND 1