X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0723f810ee8d1c24ce7720496be4cdd988f9fb3f..184510d77201ae7402301ee70a13a88b4c9ddf02:/target/linux/gemini/image/Makefile diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index 6fb775064..add004ef8 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -14,7 +14,9 @@ define Image/Prepare endef define Image/BuildKernel - cp $(KDIR)/openwrt-$(BOARD)-wbd111-zImage $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage +# workaround the bootloader's bug with extra nops + echo -en "\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" > $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage + cat $(KDIR)/openwrt-$(BOARD)-wbd111-zImage >> $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage endef define Image/Build/jffs2-64k @@ -27,6 +29,7 @@ endef define Image/Build/squashfs $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=128k conv=sync endef define Image/Build