From: Mike Frysinger Date: Wed, 2 Sep 2009 05:16:05 -0400 Subject: [U-Boot] [PATCH 1/8] Blackfin: use +(filesize) to make sure we are only doing what is necessary In-Reply-To: <1251882972-15942-1-git-send-email-vapier@gentoo.org> References: <1251882972-15942-1-git-send-email-vapier@gentoo.org> Message-ID: <1251882972-15942-2-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Robin Getz Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- include/configs/bfin_adi_common.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h index 1ca2e51..ceb130c 100644 --- a/include/configs/bfin_adi_common.h +++ b/include/configs/bfin_adi_common.h @@ -160,8 +160,8 @@ "nand write $(loadaddr) 0 0x40000" # else # define UBOOT_ENV_UPDATE \ - "protect off 0x20000000 0x2003FFFF;" \ - "erase 0x20000000 0x2003FFFF;" \ + "protect off 0x20000000 +$(filesize);" \ + "erase 0x20000000 +$(filesize);" \ "cp.b $(loadaddr) 0x20000000 $(filesize)" # endif # define NETWORK_ENV_SETTINGS \ -- 1.6.4.2