X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fimage%2Fmt7620.mk;h=0098613c27a18554fc680736355261614fc40426;hb=5c112582974218fd4e4624b36dbdeb8edeff55b7;hp=e487f529d6daf417434f73192213652f9bb1a918;hpb=7c1332d95fbaea2e0a5029947a2b8d3d43c171b4;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index e487f529d6..0098613c27 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -16,6 +16,25 @@ define Build/elecom-header -f $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5 endef +define Build/elx-header + $(eval hw_id=$(word 1,$(1))) + $(eval xor_pattern=$(word 2,$(1))) + ( \ + echo -ne "\x00\x00\x00\x00\x00\x00\x00\x03" | \ + dd bs=42 count=1 conv=sync; \ + hw_id="$(hw_id)"; \ + echo -ne "\x$${hw_id:0:2}\x$${hw_id:2:2}\x$${hw_id:4:2}\x$${hw_id:6:2}" | \ + dd bs=20 count=1 conv=sync; \ + echo -ne "$$(printf '%08x' $$(stat -c%s $@) | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \ + dd bs=8 count=1 conv=sync; \ + echo -ne "$$($(STAGING_DIR_HOST)/bin/mkhash md5 $@ | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \ + dd bs=58 count=1 conv=sync; \ + ) > $(KDIR)/tmp/$(DEVICE_NAME).header + $(call Build/xor-image,-p $(xor_pattern) -x) + cat $(KDIR)/tmp/$(DEVICE_NAME).header $@ > $@.new + mv $@.new $@ +endef + define Device/ai-br100 DTS := AI-BR100 IMAGE_SIZE := 7936k @@ -32,6 +51,15 @@ define Device/alfa-network_ac1200rm endef TARGET_DEVICES += alfa-network_ac1200rm +define Device/alfa-network_tube-e4g + DTS := TUBE-E4G + IMAGE_SIZE := 16064k + DEVICE_TITLE := ALFA Network Tube-E4G + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools uqmi \ + -iwinfo -kmod-rt2800-pci -kmod-rt2800-soc -wpad-basic +endef +TARGET_DEVICES += alfa-network_tube-e4g + define Device/Archer TPLINK_HWREVADD := 0 TPLINK_HVERSION := 3 @@ -327,6 +355,30 @@ define Device/hc5861 endef TARGET_DEVICES += hc5861 +define Device/iodata_wn-ac1167gr + DTS := WN-AC1167GR + DEVICE_TITLE := I-O DATA WN-AC1167GR + IMAGE_SIZE := 6864k + IMAGES += factory.bin + IMAGE/factory.bin := \ + $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 01040016 8844A2D168B45A2D + DEVICE_PACKAGES := kmod-mt76x2 +endef +TARGET_DEVICES += iodata_wn-ac1167gr + +define Device/iodata_wn-ac733gr3 + DTS := WN-AC733GR3 + DEVICE_TITLE := I-O DATA WN-AC733GR3 + IMAGE_SIZE := 6992k + IMAGES += factory.bin + IMAGE/factory.bin := \ + $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \ + elx-header 01040006 8844A2D168B45A2D + DEVICE_PACKAGES := kmod-mt76x0e kmod-switch-rtl8367b +endef +TARGET_DEVICES += iodata_wn-ac733gr3 + define Device/kimax_u35wf DTS := U35WF IMAGE_SIZE := 16064k @@ -431,6 +483,7 @@ TARGET_DEVICES += mt7620a_mt7530 define Device/mt7620a_mt7610e DTS := MT7620a_MT7610e DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB + DEVICE_PACKAGES := kmod-mt76x0e SUPPORTED_DEVICES := mt7620a_mt7610e endef TARGET_DEVICES += mt7620a_mt7610e