diff options
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} |