diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-10 15:19:38 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-10 15:19:38 +0100 |
commit | e268ce3ada4d6a15d48d1065a6e5a2ab80b43cb5 (patch) | |
tree | f0f91fca0b87b6beabbf0797ca0efe16aca00408 /target/foxboard/Makefile | |
parent | 84b655b833b38f83d5908560914efc6b9d29cbac (diff) |
implement update for foxboard
Diffstat (limited to 'target/foxboard/Makefile')
-rw-r--r-- | target/foxboard/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
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} |