From e268ce3ada4d6a15d48d1065a6e5a2ab80b43cb5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 10 Jan 2010 15:19:38 +0100 Subject: implement update for foxboard --- target/foxboard/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'target/foxboard/Makefile') diff --git a/target/foxboard/Makefile b/target/foxboard/Makefile index a21647355..dd6e167c2 100644 --- a/target/foxboard/Makefile +++ b/target/foxboard/Makefile @@ -24,10 +24,13 @@ ifeq ($(FS),squashfs) imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS) dd if=${BUILD_DIR}/${ROOTFSSQUASHFS} of=${BIN_DIR}/${ROOTFSSQUASHFS} \ bs=4063232 conv=sync $(MAKE_TRACE) - @echo - @echo Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash - @echo Do not forget to set network boot jumper, before you start the foxboard - @echo 'Login as user root with password linux123 via ssh or console' + @if [ $$(stat --format=%s ${BIN_DIR}/${ROOTFSSQUASHFS}) -gt 4063232 ];then \ + echo 'Image is too big!'; \ + else \ + echo 'Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash'; \ + echo 'Do not forget to set the network boot jumper, before you start the foxboard'; \ + echo 'Login as user root with password linux123 via ssh or console'; \ + fi endif ifeq ($(FS),nfsroot) imageinstall: ${BIN_DIR}/${ROOTFSTARBALL} -- cgit v1.2.3