diff options
author | John Crispin <blogic@openwrt.org> | 2014-11-03 08:00:13 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-03 08:00:13 +0000 |
commit | 305ac83fa35623c8b7b90fbc31ecd5b255bbe9d5 (patch) | |
tree | a00b0c48f0ae530b70ae0241fb0fba0bfb576b3e /target/linux/ramips/image | |
parent | b89672586c6f8f3edf193619a838536c9b49292b (diff) | |
download | upstream-305ac83fa35623c8b7b90fbc31ecd5b255bbe9d5.tar.gz upstream-305ac83fa35623c8b7b90fbc31ecd5b255bbe9d5.tar.bz2 upstream-305ac83fa35623c8b7b90fbc31ecd5b255bbe9d5.zip |
ramips: add support for Airlink101 AR670W
This is a RT2880-based board, 32MB RAM, 4MB flash. The bootloader
is a hacked u-Boot that reads an LZMA image directly, so we skip
generating the uImage header and enable the lzma mtdsplit parser.
Signed-off-by: Claudio Leite <leitec@staticky.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43153 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/image')
-rw-r--r-- | target/linux/ramips/image/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 759de53020..1f03386c4f 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -295,10 +295,36 @@ define BuildFirmware/Gemtek/squashfs endef BuildFirmware/Gemtek/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3)) +# Airlink101 AR670W -- LZMA without uImage header +define BuildFirmware/AR670W/squashfs + $(call PatchKernelLzmaDtb,$(2),$(3),$(5)) + + $(eval output_name=$(IMG_PREFIX)-$(2)-$(1)-$(if $(4),$(4),sysupgrade).bin) + $(eval factory_name=$(IMG_PREFIX)-$(2)-$(1)-factory.bin) + + ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=65536 \ + conv=sync; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/$(output_name) + + $(call prepare_generic_squashfs,$(KDIR)/$(output_name)) + + if [ `stat -c%s "$(KDIR)/$(output_name)"` \ + -gt $(ralink_default_fw_size_4M) ]; then \ + echo "Warning: $(KDIR)/$(output_name) is too big" >&2; \ + else \ + mkwrgimg -i $(KDIR)/$(output_name) \ + -d "/dev/mtdblock/2" \ + -s "wrgn16a_airlink_ar670w" \ + -o $(BIN_DIR)/$(factory_name); \ + $(CP) $(KDIR)/$(output_name) $(BIN_DIR)/$(output_name); \ + fi +endef + # # RT288X Profiles # +Image/Build/Profile/AR670W=$(call BuildFirmware/AR670W/$(1),$(1),ar670w,AR670W) + Image/Build/Profile/AR725W=$(call BuildFirmware/Gemtek/$(1),$(1),ar725w,AR725W) # 0x790000 @@ -313,6 +339,7 @@ Image/Build/Profile/WLITX4AG300N=$(call BuildFirmware/Default4M/$(1),$(1),wli-tx ifeq ($(SUBTARGET),rt288x) define Image/Build/Profile/Default + $(call Image/Build/Profile/AR670W,$(1)) $(call Image/Build/Profile/AR725W,$(1)) $(call Image/Build/Profile/F5D8235V1,$(1)) $(call Image/Build/Profile/RTN15,$(1)) |