X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fimage%2Fmt7621.mk;h=f13e9c8a4fe40be0e64bf524907ffc73cd2395c3;hp=d0cf51f7e97cec16bcbca8e055f2531b9cab26f5;hb=b6c80f85cb7bec6750fb0687b216e596a8db65a6;hpb=1977be8bd0753406ef5e76bede162827a9514610 diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index d0cf51f7e9..f13e9c8a4f 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -47,6 +47,19 @@ define Build/iodata-factory fi endef +# The OEM webinterface expects an kernel with initramfs which has the uImage +# header field ih_name. +# We don't wan't to set the header name field for the kernel include in the +# sysupgrade image as well, as this image shouldn't be accepted by the OEM +# webinterface. It will soft-brick the board. +define Build/wr1201-factory-header + mkimage -A $(LINUX_KARCH) \ + -O linux -T kernel \ + -C lzma -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n 'WR1201_8_128' -d $@ $@.new + mv $@.new $@ +endef + define Build/ubnt-erx-factory-image if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \ echo '21001:6' > $(1).compat; \ @@ -74,27 +87,27 @@ endef define Device/11acnas DTS := 11ACNAS IMAGE_SIZE := $(ralink_default_fw_size_16M) + UIMAGE_NAME := 11AC-NAS-Router(0.0.0) DEVICE_TITLE := WeVO 11AC NAS Router - DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef TARGET_DEVICES += 11acnas +define Device/asus_rt-ac57u + DTS := RT-AC57U + DEVICE_TITLE := ASUS RT-AC57U + IMAGE_SIZE := 16064k + DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += asus_rt-ac57u + define Device/dir-860l-b1 + $(Device/seama) DTS := DIR-860L-B1 BLOCKSIZE := 64k - IMAGES += factory.bin + SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma IMAGE_SIZE := $(ralink_default_fw_size_16M) - IMAGE/sysupgrade.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.bin := \ - append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \ - append-rootfs | pad-rootfs -x 64 | \ - seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \ - seama-seal -m "signature=wrgac13_dlink.2013gui_dir860lb" | \ - check-size $$$$(IMAGE_SIZE) DEVICE_TITLE := D-Link DIR-860L B1 DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef @@ -108,6 +121,16 @@ define Device/mediatek_ap-mt7621a-v60 endef TARGET_DEVICES += mediatek_ap-mt7621a-v60 +define Device/xzwifi_creativebox-v1 + DTS := CreativeBox-v1 + IMAGE_SIZE := $(ralink_default_fw_size_32M) + DEVICE_TITLE := CreativeBox v1 + DEVICE_PACKAGES := \ + kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \ + kmod-usb3 +endef +TARGET_DEVICES += xzwifi_creativebox-v1 + define Device/elecom_wrc-1167ghbk2-s DTS := WRC-1167GHBK2-S IMAGE_SIZE := 15488k @@ -156,6 +179,15 @@ define Device/firewrt endef TARGET_DEVICES += firewrt +define Device/gehua_ghl-r-001 + DTS := GHL-R-001 + IMAGE_SIZE := $(ralink_default_fw_size_32M) + DEVICE_TITLE := GeHua GHL-R-001 + DEVICE_PACKAGES := \ + kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += gehua_ghl-r-001 + define Device/gnubee_gb-pc1 DTS := GB-PC1 DEVICE_TITLE := GnuBee Personal Cloud One @@ -212,7 +244,23 @@ define Device/k2p endef TARGET_DEVICES += k2p -define Device/mir3g +define Device/xiaomi_mir3p + DTS := MIR3P + BLOCKSIZE := 128k + PAGESIZE := 2048 + KERNEL_SIZE:= 4096k + UBINIZE_OPTS := -E 5 + IMAGE_SIZE := $(ralink_default_fw_size_32M) + DEVICE_TITLE := Xiaomi Mi Router 3 Pro + IMAGES += factory.bin + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) + DEVICE_PACKAGES := \ + kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic uboot-envtools +endef +TARGET_DEVICES += xiaomi_mir3p + +define Device/xiaomi_mir3g DTS := MIR3G BLOCKSIZE := 128k PAGESIZE := 2048 @@ -225,11 +273,12 @@ define Device/mir3g IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_TITLE := Xiaomi Mi Router 3G SUPPORTED_DEVICES += R3G + SUPPORTED_DEVICES += mir3g DEVICE_PACKAGES := \ kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic \ uboot-envtools endef -TARGET_DEVICES += mir3g +TARGET_DEVICES += xiaomi_mir3g define Device/mt7621 DTS := MT7621 @@ -274,7 +323,12 @@ define Device/r6220 KERNEL_SIZE := 4096k IMAGE_SIZE := 28672k UBINIZE_OPTS := -E 5 - IMAGES += kernel.bin rootfs.bin + SERCOMM_HWID := AYA + SERCOMM_HWVER := A001 + SERCOMM_SWVER := 0x0086 + IMAGES += factory.img kernel.bin rootfs.bin + IMAGE/factory.img := pad-extra 2048k | append-kernel | pad-to 6144k | append-ubi | \ + pad-to $$$$(BLOCKSIZE) | sercom-footer | pad-to 128 | zip R6220.bin | sercom-seal IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/kernel.bin := append-kernel IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE) @@ -284,13 +338,33 @@ define Device/r6220 endef TARGET_DEVICES += r6220 -define Device/rb750gr3 - DTS := RB750Gr3 - IMAGE_SIZE := $(ralink_default_fw_size_16M) - DEVICE_TITLE := MikroTik RB750Gr3 - DEVICE_PACKAGES := kmod-usb3 uboot-envtools +define Device/netgear_ex6150 + DTS := EX6150 + DEVICE_TITLE := Netgear EX6150 + DEVICE_PACKAGES := kmod-mt76x2 wpad-basic + NETGEAR_BOARD_ID := U12H318T00_NETGEAR + IMAGE_SIZE := 14848k + IMAGES += factory.chk + IMAGE/factory.chk := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk +endef +TARGET_DEVICES += netgear_ex6150 + +define Device/netgear_r6350 + DTS := R6350 + BLOCKSIZE := 128k + PAGESIZE := 2048 + KERNEL_SIZE := 4096k + IMAGE_SIZE := 40960k + UBINIZE_OPTS := -E 5 + IMAGES += kernel.bin rootfs.bin + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + IMAGE/kernel.bin := append-kernel + IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE) + DEVICE_TITLE := Netgear R6350 + DEVICE_PACKAGES := \ + kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef -TARGET_DEVICES += rb750gr3 +TARGET_DEVICES += netgear_r6350 define Device/MikroTik BLOCKSIZE := 64k @@ -303,6 +377,14 @@ define Device/MikroTik append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef +define Device/mikrotik_rb750gr3 + $(Device/MikroTik) + DTS := RB750Gr3 + DEVICE_TITLE := MikroTik RouterBOARD RB750Gr3 + DEVICE_PACKAGES += kmod-gpio-beeper +endef +TARGET_DEVICES += mikrotik_rb750gr3 + define Device/mikrotik_rbm33g $(Device/MikroTik) DTS := RBM33G @@ -317,6 +399,16 @@ define Device/mikrotik_rbm11g endef TARGET_DEVICES += mikrotik_rbm11g +define Device/mtc_wr1201 + DTS := WR1201 + IMAGE_SIZE := 16000k + DEVICE_TITLE := MTC Wireless Router WR1201 + KERNEL_INITRAMFS := $(KERNEL_DTB) | wr1201-factory-header + DEVICE_PACKAGES := kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \ + kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += mtc_wr1201 + define Device/re350-v1 DTS := RE350 DEVICE_TITLE := TP-LINK RE350 v1 @@ -357,6 +449,14 @@ define Device/sk-wb8 endef TARGET_DEVICES += sk-wb8 +define Device/telco-electronics_x1 + DTS := Telco-Electronics-X1 + IMAGE_SIZE := 16064k + DEVICE_TITLE := Telco Electronics X1 + DEVICE_PACKAGES := kmod-usb3 kmod-mt76 wpad-basic +endef +TARGET_DEVICES += telco-electronics_x1 + define Device/timecloud DTS := Timecloud DEVICE_TITLE := Thunder Timecloud @@ -410,6 +510,7 @@ TARGET_DEVICES += vr500 define Device/w2914nsv2 DTS := W2914NSV2 IMAGE_SIZE := $(ralink_default_fw_size_16M) + UIMAGE_NAME := W2914NS-V2(0.0.0) DEVICE_TITLE := WeVO W2914NS v2 DEVICE_PACKAGES := \ kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic @@ -453,9 +554,19 @@ TARGET_DEVICES += mqmaker_witi-512m define Device/wndr3700v5 DTS := WNDR3700V5 - IMAGE_SIZE := $(ralink_default_fw_size_16M) + BLOCKSIZE := 64k + IMAGE_SIZE := 15232k + SERCOMM_HWID := AYB + SERCOMM_HWVER := A001 + SERCOMM_SWVER := 0x1054 + IMAGES += factory.img + IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs + IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.img := pad-extra 320k | $$(IMAGE/default) | pad-to $$$$(BLOCKSIZE) | \ + sercom-footer | pad-to 128 | zip WNDR3700v5.bin | sercom-seal DEVICE_TITLE := Netgear WNDR3700v5 - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-basic + DEVICE_PACKAGES := \ + kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef TARGET_DEVICES += wndr3700v5 @@ -468,6 +579,15 @@ define Device/youhua_wr1200js endef TARGET_DEVICES += youhua_wr1200js +define Device/youku_yk-l2 + DTS := YOUKU-YK2 + IMAGE_SIZE := $(ralink_default_fw_size_16M) + DEVICE_TITLE := Youku YK-L2 + DEVICE_PACKAGES := \ + kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic +endef +TARGET_DEVICES += youku_yk-l2 + define Device/wsr-1166 DTS := WSR-1166 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata @@ -535,12 +655,3 @@ define Device/zbt-wg3526-32M kmod-usb3 kmod-usb-ledtrig-usbport wpad-basic endef TARGET_DEVICES += zbt-wg3526-32M - -# FIXME: is this still needed? -define Image/Prepare -#define Build/Compile - rm -rf $(KDIR)/relocate - $(CP) ../../generic/image/relocate $(KDIR) - $(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS) - $(CP) $(KDIR)/relocate/loader.bin $(KDIR)/loader.bin -endef