X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fimage%2Fgeneric.mk;h=a96c9d279a21af91f555d37e0cb99a67d22bc18d;hp=d3978629fd11f04c4428c020e4dddfb1021d64db;hb=30dcbc741d84e36ea5408d99593ccb35f900cb5e;hpb=5568c8a9fe6c4769a5b8ac6254224068601802b0 diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index d3978629fd..a96c9d279a 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -42,6 +42,12 @@ define Build/add-elecom-factory-initramfs fi endef +define Build/nec-enc + $(STAGING_DIR_HOST)/bin/nec-enc \ + -i $@ -o $@.new -k $(1) + mv $@.new $@ +endef + define Build/nec-fw ( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@ ( \ @@ -163,6 +169,23 @@ define Device/comfast_cf-e110n-v2 endef TARGET_DEVICES += comfast_cf-e110n-v2 +define Device/comfast_cf-e120a-v3 + ATH_SOC := ar9344 + DEVICE_TITLE := COMFAST CF-E120A v3 + DEVICE_PACKAGES := rssileds kmod-leds-gpio -uboot-envtools + IMAGE_SIZE := 8000k +endef +TARGET_DEVICES += comfast_cf-e120a-v3 + +define Device/comfast_cf-e5 + ATH_SOC := qca9531 + DEVICE_TITLE := COMFAST CF-E5/E7 + DEVICE_PACKAGES := rssileds kmod-leds-gpio kmod-usb-core kmod-usb2 kmod-usb-net \ + kmod-usb-net-qmi-wwan -swconfig -uboot-envtools + IMAGE_SIZE := 16192k +endef +TARGET_DEVICES += comfast_cf-e5 + define Device/devolo_dvl1200e ATH_SOC := qca9558 DEVICE_TITLE := devolo WiFi pro 1200e @@ -279,6 +302,31 @@ define Device/embeddedwireless_dorin endef TARGET_DEVICES += embeddedwireless_dorin +define Device/engenius_ecb1750 + ATH_SOC := qca9558 + DEVICE_TITLE := EnGenius ECB1750 + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct + IMAGE_SIZE := 15680k + IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \ + append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \ + senao-header -r 0x101 -p 0x6d -t 2 + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) +endef +TARGET_DEVICES += engenius_ecb1750 + +define Device/engenius_epg5000 + ATH_SOC := qca9558 + DEVICE_TITLE := EnGenius EPG5000 + DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 + IMAGE_SIZE := 14656k + IMAGES += factory.dlf + IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \ + append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | \ + senao-header -r 0x101 -p 0x71 -t 2 + SUPPORTED_DEVICES += epg5000 +endef +TARGET_DEVICES += engenius_epg5000 + define Device/engenius_ews511ap ATH_SOC := qca9531 DEVICE_TITLE := EnGenius EWS511AP @@ -305,19 +353,29 @@ define Device/glinet_gl-ar150 endef TARGET_DEVICES += glinet_gl-ar150 -define Device/glinet_gl-ar300m-nor +define Device/glinet_gl-ar300m-common-nor ATH_SOC := qca9531 - DEVICE_TITLE := GL.iNet GL-AR300M DEVICE_PACKAGES := kmod-usb-core kmod-usb2 IMAGE_SIZE := 16000k SUPPORTED_DEVICES += gl-ar300m endef + +define Device/glinet_gl-ar300m-lite + $(Device/glinet_gl-ar300m-common-nor) + DEVICE_TITLE := GL.iNet GL-AR300M-Lite +endef +TARGET_DEVICES += glinet_gl-ar300m-lite + +define Device/glinet_gl-ar300m-nor + $(Device/glinet_gl-ar300m-common-nor) + DEVICE_TITLE := GL.iNet GL-AR300M +endef TARGET_DEVICES += glinet_gl-ar300m-nor define Device/glinet_gl-ar750s ATH_SOC := qca9563 DEVICE_TITLE := GL.iNet GL-AR750S - DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct + DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct IMAGE_SIZE := 16000k SUPPORTED_DEVICES += gl-ar750s endef @@ -335,6 +393,7 @@ define Device/iodata_etg3-r ATH_SOC := ar9342 DEVICE_TITLE := I-O DATA ETG3-R IMAGE_SIZE := 7680k + DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic endef TARGET_DEVICES += iodata_etg3-r @@ -386,6 +445,44 @@ define Device/iodata_wn-ag300dgr endef TARGET_DEVICES += iodata_wn-ag300dgr +define Device/jjplus_ja76pf2 + ATH_SOC := ar7161 + DEVICE_TITLE := jjPlus JA76PF2 + DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-mini -uboot-envtools fconfig + IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE) +# IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata + KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE) + KERNEL_INITRAMFS := kernel-bin | append-dtb + IMAGE_SIZE := 16000k +endef +TARGET_DEVICES += jjplus_ja76pf2 + +define Device/librerouter_librerouter-v1 + ATH_SOC := qca9558 + DEVICE_TITLE := LibreRouter v1 + IMAGE_SIZE := 7936k + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 +endef +TARGET_DEVICES += librerouter_librerouter-v1 + +define Device/nec_wg1200cr + ATH_SOC := qca9563 + DEVICE_TITLE := NEC Aterm WG1200CR + IMAGE_SIZE := 7616k + SEAMA_MTDBLOCK := 6 + SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr + IMAGES += factory.bin + IMAGE/default := \ + append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs + IMAGE/sysupgrade.bin := \ + $$(IMAGE/default) | seama | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) + IMAGE/factory.bin := \ + $$(IMAGE/default) | pad-rootfs -x 64 | seama | seama-seal | nec-enc 9gsiy9nzep452pad | \ + check-size $$$$(IMAGE_SIZE) + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct +endef +TARGET_DEVICES += nec_wg1200cr + define Device/nec_wg800hp ATH_SOC := qca9563 DEVICE_TITLE := NEC Aterm WG800HP @@ -417,6 +514,15 @@ define Device/ocedo_raccoon endef TARGET_DEVICES += ocedo_raccoon +define Device/ocedo_ursus + ATH_SOC := qca9558 + DEVICE_TITLE := OCEDO Ursus + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct + IMAGE_SIZE := 7424k + IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) +endef +TARGET_DEVICES += ocedo_ursus + define Device/openmesh_om5p-ac-v2 ATH_SOC := qca9558 DEVICE_TITLE := OpenMesh OM5P-AC v2 @@ -453,13 +559,33 @@ TARGET_DEVICES += pcs_cr5000 define Device/netgear_wndr3x00 ATH_SOC := ar7161 - KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma - IMAGES += factory.img IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs - IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE) - IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE) DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset kmod-owl-loader + $(Device/netgear_ath79) +endef + +define Device/netgear_ex7300_ex6400 + ATH_SOC := qca9558 + NETGEAR_KERNEL_MAGIC := 0x27051956 + NETGEAR_BOARD_ID := EX7300series + NETGEAR_HW_ID := 29765104+16+0+128 + IMAGE_SIZE := 15552k + IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | netgear-rootfs | pad-rootfs + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct + $(Device/netgear_ath79) +endef + +define Device/netgear_ex6400 + $(Device/netgear_ex7300_ex6400) + DEVICE_TITLE := NETGEAR EX6400 +endef +TARGET_DEVICES += netgear_ex6400 + +define Device/netgear_ex7300 + $(Device/netgear_ex7300_ex6400) + DEVICE_TITLE := NETGEAR EX7300 endef +TARGET_DEVICES += netgear_ex7300 define Device/netgear_wndr3700 $(Device/netgear_wndr3x00) @@ -548,3 +674,11 @@ define Device/xiaomi_mi-router-4q IMAGE_SIZE := 14336k endef TARGET_DEVICES += xiaomi_mi-router-4q + +define Device/yuncore_a770 + ATH_SOC := qca9531 + DEVICE_TITLE := YunCore A770 + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct + IMAGE_SIZE := 16000k +endef +TARGET_DEVICES += yuncore_a770