From c01bc37628c598e337f1c41c6e7f4ea1628ee647 Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Fri, 4 Dec 2009 19:17:01 +0900 Subject: [PATCH] s5pc110: Check u-boot-onenand.bin size Signed-off-by: Kyungmin Park --- build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sh b/build.sh index a944a99..eab4ba4 100755 --- a/build.sh +++ b/build.sh @@ -39,6 +39,12 @@ check_users build_uboot $* +size=`ls -al u-boot-onenand.bin | awk -F' ' '{printf $5}'` +if [ "$size" -eq "262144" ]; then + echo "u-boot-onenand.bin execced the 256KiB -> $size" + exit +fi + if [ "$USER" = "kmpark" ]; then cp -f u-boot.bin u-boot-onenand.bin /tftpboot ls -al u-boot.bin u-boot-onenand.bin -- 2.7.4