boardname="${board##*,}"
case "$board" in
-tplink,c2600)
- ucidef_set_led_usbport "usb1" "USB 1" "${boardname}:white:usb_2" "usb1-port1" "usb2-port1"
- ucidef_set_led_usbport "usb2" "USB 2" "${boardname}:white:usb_4" "usb3-port1" "usb4-port1"
- ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20"
- ucidef_set_led_switch "lan" "lan" "${boardname}:white:lan" "switch0" "0x1e"
+avm,fritzbox-4040)
+ ucidef_set_led_wlan "wlan" "WLAN" "fritz4040:green:wlan" "phy0tpt" "phy1tpt"
+ ucidef_set_led_netdev "wan" "WAN" "fritz4040:green:wan" "eth1"
+ ucidef_set_led_switch "lan" "LAN" "fritz4040:green:lan" "switch0" "0x1e"
;;
netgear,d7800 |\
netgear,r7500 |\
ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:wan" "eth0"
ucidef_set_led_ide "esata" "eSATA" "${boardname}:white:esata"
;;
-avm,fritzbox-4040)
- ucidef_set_led_wlan "wlan" "WLAN" "fritz4040:green:wlan" "phy0tpt" "phy1tpt"
- ucidef_set_led_netdev "wan" "WAN" "fritz4040:green:wan" "eth1"
- ucidef_set_led_switch "lan" "LAN" "fritz4040:green:lan" "switch0" "0x1e"
- ;;
-zyxel,nbg6817)
- ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:amber:wifi2g" "phy1tpt"
- ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:amber:wifi5g" "phy0tpt"
- ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:internet" "eth1"
+tplink,c2600)
+ ucidef_set_led_usbport "usb1" "USB 1" "${boardname}:white:usb_2" "usb1-port1" "usb2-port1"
+ ucidef_set_led_usbport "usb2" "USB 2" "${boardname}:white:usb_4" "usb3-port1" "usb4-port1"
+ ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20"
+ ucidef_set_led_switch "lan" "lan" "${boardname}:white:lan" "switch0" "0x1e"
;;
tplink,vr2600v)
ucidef_set_led_usbport "usb" "USB" "${boardname}:white:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1"
ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:white:wlan5g" "phy1tpt"
ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20"
;;
+zyxel,nbg6817)
+ ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:amber:wifi2g" "phy1tpt"
+ ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:amber:wifi5g" "phy0tpt"
+ ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:internet" "eth1"
+ ;;
*)
;;
esac
case "$FIRMWARE" in
"ath10k/pre-cal-ahb-a000000.wifi.bin")
case "$board" in
- qcom,ap-dk01.1-c1)
- ath10kcal_extract "ART" 4096 12064
- ;;
avm,fritzbox-4040)
/usr/bin/fritz_cal_extract -i 1 -s 0x400 -e 0x207 -l 12064 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader_config")
;;
+ qcom,ap-dk01.1-c1)
+ ath10kcal_extract "ART" 4096 12064
+ ;;
esac
;;
"ath10k/pre-cal-ahb-a800000.wifi.bin")
case "$board" in
- qcom,ap-dk01.1-c1)
- ath10kcal_extract "ART" 20480 12064
- ;;
avm,fritzbox-4040)
/usr/bin/fritz_cal_extract -i 1 -s 0x400 -e 0x208 -l 12064 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader_config")
;;
+ qcom,ap-dk01.1-c1)
+ ath10kcal_extract "ART" 20480 12064
+ ;;
esac
;;
"ath10k/pre-cal-pci-0000:01:00.0.bin")
case $board in
- tplink,c2600)
- ath10kcal_extract "radio" 4096 12064
-# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)
+ linksys,ea8500)
+ hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
+ ath10kcal_extract "art" 4096 12064
;;
netgear,d7800 |\
netgear,r7500v2 |\
netgear,r7800)
ath10kcal_extract "art" 4096 12064
;;
- linksys,ea8500)
- hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
- ath10kcal_extract "art" 4096 12064
- ;;
- zyxel,nbg6817)
- ath10kcal_extract "0:ART" 4096 12064
+ tplink,c2600)
+ ath10kcal_extract "radio" 4096 12064
+# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)
;;
tplink,vr2600v)
ath10kcal_extract "ART" 4096 12064
;;
+ zyxel,nbg6817)
+ ath10kcal_extract "0:ART" 4096 12064
+ ;;
esac
;;
"ath10k/pre-cal-pci-0001:01:00.0.bin")
case $board in
- tplink,c2600)
- ath10kcal_extract "radio" 20480 12064
-# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -2)
+ linksys,ea8500)
+ hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
+ ath10kcal_extract "art" 20480 12064
;;
netgear,d7800 |\
netgear,r7500v2 |\
netgear,r7800)
ath10kcal_extract "art" 20480 12064
;;
- linksys,ea8500)
- hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
- ath10kcal_extract "art" 20480 12064
- ;;
- zyxel,nbg6817)
- ath10kcal_extract "0:ART" 20480 12064
+ tplink,c2600)
+ ath10kcal_extract "radio" 20480 12064
+# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -2)
;;
tplink,vr2600v)
ath10kcal_extract "ART" 20480 12064
;;
+ zyxel,nbg6817)
+ ath10kcal_extract "0:ART" 20480 12064
+ ;;
esac
;;
*)
IMAGE/mmcblk0p4-kernel.bin := append-kernel
endef
-define Device/qcom_ipq8064-ap148
- $(call Device/FitImage)
- $(call Device/UbiFit)
- DEVICE_DTS := qcom-ipq8064-ap148
- KERNEL_INSTALL := 1
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- BOARD_NAME := ap148
- SUPPORTED_DEVICES += ap148
- DEVICE_TITLE := Qualcomm AP148
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
-endef
-TARGET_DEVICES += qcom_ipq8064-ap148
-
-define Device/qcom_ipq8064-ap148-legacy
- $(call Device/LegacyImage)
- $(call Device/UbiFit)
- DEVICE_DTS := qcom-ipq8064-ap148
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- BOARD_NAME := ap148
- SUPPORTED_DEVICES := qcom,ipq8064-ap148 ap148
- DEVICE_TITLE := Qualcomm AP148 (legacy)
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
-endef
-TARGET_DEVICES += qcom_ipq8064-ap148-legacy
-
-define Device/tplink_c2600
- $(call Device/TpSafeImage)
- DEVICE_DTS := qcom-ipq8064-c2600
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- BOARD_NAME := c2600
- SUPPORTED_DEVICES += c2600
- TPLINK_BOARD_ID := C2600
- DEVICE_TITLE := TP-Link Archer C2600
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
-endef
-TARGET_DEVICES += tplink_c2600
-
-define Device/netgear_d7800
- $(call Device/DniImage)
- DEVICE_DTS := qcom-ipq8064-d7800
- KERNEL_SIZE := 2097152
- NETGEAR_BOARD_ID := D7800
- NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- BOARD_NAME := d7800
- SUPPORTED_DEVICES += d7800
- DEVICE_TITLE := Netgear Nighthawk X4 D7800
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
-endef
-TARGET_DEVICES += netgear_d7800
-
-define Device/qcom_ipq8064-db149
- $(call Device/FitImage)
- DEVICE_DTS := qcom-ipq8064-db149
- KERNEL_INSTALL := 1
- BOARD_NAME := db149
- DEVICE_TITLE := Qualcomm DB149
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
+define Device/avm_fritzbox-4040
+ $(call Device/FitImageLzma)
+ DEVICE_DTS := qcom-ipq4019-fritz4040
+ KERNEL_LOADADDR := 0x80208000
+ BLOCKSIZE := 4k
+ PAGESIZE := 256
+ BOARD_NAME := fritz4040
+ DEVICE_TITLE := AVM Fritz!Box 4040
+ IMAGE_SIZE := 29753344
+ IMAGES = sysupgrade.bin
+ IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
+ DEVICE_PACKAGES := kmod-usb-phy-qcom-ipq4019 ipq-wifi-fritz4040 fritz-tffs fritz-caldata u-boot-fritz4040
endef
-TARGET_DEVICES += qcom_ipq8064-db149
+TARGET_DEVICES += avm_fritzbox-4040
define Device/linksys_ea8500
$(call Device/LegacyImage)
endef
TARGET_DEVICES += linksys_ea8500
-define Device/avm_fritzbox-4040
- $(call Device/FitImageLzma)
- DEVICE_DTS := qcom-ipq4019-fritz4040
- KERNEL_LOADADDR := 0x80208000
- BLOCKSIZE := 4k
- PAGESIZE := 256
- BOARD_NAME := fritz4040
- DEVICE_TITLE := AVM Fritz!Box 4040
- IMAGE_SIZE := 29753344
- IMAGES = sysupgrade.bin
- IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
- DEVICE_PACKAGES := kmod-usb-phy-qcom-ipq4019 ipq-wifi-fritz4040 fritz-tffs fritz-caldata u-boot-fritz4040
+define Device/netgear_d7800
+ $(call Device/DniImage)
+ DEVICE_DTS := qcom-ipq8064-d7800
+ KERNEL_SIZE := 2097152
+ NETGEAR_BOARD_ID := D7800
+ NETGEAR_HW_ID := 29764958+0+128+512+4x4+4x4
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ BOARD_NAME := d7800
+ SUPPORTED_DEVICES += d7800
+ DEVICE_TITLE := Netgear Nighthawk X4 D7800
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
endef
-TARGET_DEVICES += avm_fritzbox-4040
+TARGET_DEVICES += netgear_d7800
define Device/netgear_r7500
$(call Device/DniImage)
endef
TARGET_DEVICES += netgear_r7800
-define Device/zyxel_nbg6817
- DEVICE_DTS := qcom-ipq8065-nbg6817
- KERNEL_SIZE := 4096k
- BLOCKSIZE := 64k
- BOARD_NAME := nbg6817
- SUPPORTED_DEVICES += nbg6817
- DEVICE_TITLE := ZyXEL NBG6817
- DEVICE_PACKAGES := ath10k-firmware-qca9984 e2fsprogs kmod-fs-ext4 losetup
- $(call Device/ZyXELImage)
-endef
-TARGET_DEVICES += zyxel_nbg6817
-
-define Device/tplink_vr2600v
- PROFILES += $$(DEVICE_NAME)
- FILESYSTEMS := squashfs
- KERNEL_SUFFIX := -uImage
- KERNEL = kernel-bin | append-dtb | uImage none
- KERNEL_NAME := zImage
- KERNEL_SIZE := 2097152
- DEVICE_DTS := qcom-ipq8064-vr2600v
- BLOCKSIZE := 128k
- PAGESIZE := 2048
- BOARD_NAME := vr2600v
- SUPPORTED_DEVICES += vr2600v
- DEVICE_TITLE := TP-Link Archer VR2600v
- DEVICE_PACKAGES := ath10k-firmware-qca99x0
- IMAGES := sysupgrade.bin
- IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
-endef
-TARGET_DEVICES += tplink_vr2600v
-
define Device/qcom_ap-dk01.1-c1
PROFILES += $$(DEVICE_NAME)
DEVICE_TITLE := QCA AP-DK01.1-C1
endef
TARGET_DEVICES += qcom_ap-dk04.1-c1
+define Device/qcom_ipq8064-ap148
+ $(call Device/FitImage)
+ $(call Device/UbiFit)
+ DEVICE_DTS := qcom-ipq8064-ap148
+ KERNEL_INSTALL := 1
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ BOARD_NAME := ap148
+ SUPPORTED_DEVICES += ap148
+ DEVICE_TITLE := Qualcomm AP148
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
+endef
+TARGET_DEVICES += qcom_ipq8064-ap148
+
+define Device/qcom_ipq8064-ap148-legacy
+ $(call Device/LegacyImage)
+ $(call Device/UbiFit)
+ DEVICE_DTS := qcom-ipq8064-ap148
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ BOARD_NAME := ap148
+ SUPPORTED_DEVICES := qcom,ipq8064-ap148 ap148
+ DEVICE_TITLE := Qualcomm AP148 (legacy)
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
+endef
+TARGET_DEVICES += qcom_ipq8064-ap148-legacy
+
+define Device/qcom_ipq8064-db149
+ $(call Device/FitImage)
+ DEVICE_DTS := qcom-ipq8064-db149
+ KERNEL_INSTALL := 1
+ BOARD_NAME := db149
+ DEVICE_TITLE := Qualcomm DB149
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
+endef
+TARGET_DEVICES += qcom_ipq8064-db149
+
+define Device/tplink_c2600
+ $(call Device/TpSafeImage)
+ DEVICE_DTS := qcom-ipq8064-c2600
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ BOARD_NAME := c2600
+ SUPPORTED_DEVICES += c2600
+ TPLINK_BOARD_ID := C2600
+ DEVICE_TITLE := TP-Link Archer C2600
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
+endef
+TARGET_DEVICES += tplink_c2600
+
+define Device/tplink_vr2600v
+ PROFILES += $$(DEVICE_NAME)
+ FILESYSTEMS := squashfs
+ KERNEL_SUFFIX := -uImage
+ KERNEL = kernel-bin | append-dtb | uImage none
+ KERNEL_NAME := zImage
+ KERNEL_SIZE := 2097152
+ DEVICE_DTS := qcom-ipq8064-vr2600v
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+ BOARD_NAME := vr2600v
+ SUPPORTED_DEVICES += vr2600v
+ DEVICE_TITLE := TP-Link Archer VR2600v
+ DEVICE_PACKAGES := ath10k-firmware-qca99x0
+ IMAGES := sysupgrade.bin
+ IMAGE/sysupgrade.bin := pad-extra 512 | append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
+endef
+TARGET_DEVICES += tplink_vr2600v
+
+define Device/zyxel_nbg6817
+ DEVICE_DTS := qcom-ipq8065-nbg6817
+ KERNEL_SIZE := 4096k
+ BLOCKSIZE := 64k
+ BOARD_NAME := nbg6817
+ SUPPORTED_DEVICES += nbg6817
+ DEVICE_TITLE := ZyXEL NBG6817
+ DEVICE_PACKAGES := ath10k-firmware-qca9984 e2fsprogs kmod-fs-ext4 losetup
+ $(call Device/ZyXELImage)
+endef
+TARGET_DEVICES += zyxel_nbg6817
+
$(eval $(call BuildImage))