2019-01-03 19:29:28 +08:00
|
|
|
include ./common-buffalo.mk
|
|
|
|
|
include ./common-netgear.mk
|
2021-02-13 02:24:32 +08:00
|
|
|
include ./common-senao.mk
|
2019-12-02 21:55:49 +08:00
|
|
|
include ./common-tp-link.mk
|
|
|
|
|
include ./common-yuncore.mk
|
2019-01-03 19:29:28 +08:00
|
|
|
|
|
|
|
|
DEVICE_VARS += ADDPATTERN_ID ADDPATTERN_VERSION
|
|
|
|
|
DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
|
2021-01-02 05:48:52 +08:00
|
|
|
DEVICE_VARS += KERNEL_INITRAMFS_PREFIX DAP_SIGNATURE
|
2020-11-28 19:04:00 +08:00
|
|
|
DEVICE_VARS += EDIMAX_HEADER_MAGIC EDIMAX_HEADER_MODEL
|
2021-01-30 12:20:16 +08:00
|
|
|
DEVICE_VARS += OPENMESH_CE_TYPE
|
2019-01-03 19:29:28 +08:00
|
|
|
|
|
|
|
|
define Build/add-elecom-factory-initramfs
|
|
|
|
|
$(eval edimax_model=$(word 1,$(1)))
|
|
|
|
|
$(eval product=$(word 2,$(1)))
|
|
|
|
|
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkedimaximg \
|
|
|
|
|
-b -s CSYS -m $(edimax_model) \
|
|
|
|
|
-f 0x70000 -S 0x01100000 \
|
|
|
|
|
-i $@ -o $@.factory
|
|
|
|
|
|
2020-12-11 22:14:03 +08:00
|
|
|
$(call Build/elecom-product-header,$(product) $@.factory)
|
|
|
|
|
|
|
|
|
|
if [ "$$(stat -c%s $@.factory)" -le $$(($(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE))))) ]; then \
|
|
|
|
|
mv $@.factory $(BIN_DIR)/$(KERNEL_INITRAMFS_PREFIX)-factory.bin; \
|
2019-01-03 19:29:28 +08:00
|
|
|
else \
|
|
|
|
|
echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
|
|
|
|
|
fi
|
|
|
|
|
endef
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Build/addpattern
|
|
|
|
|
-$(STAGING_DIR_HOST)/bin/addpattern -B $(ADDPATTERN_ID) \
|
|
|
|
|
-v v$(ADDPATTERN_VERSION) -i $@ -o $@.new
|
|
|
|
|
-mv "$@.new" "$@"
|
|
|
|
|
endef
|
|
|
|
|
|
2020-02-29 01:23:18 +08:00
|
|
|
define Build/append-md5sum-bin
|
2021-05-10 04:28:15 +08:00
|
|
|
$(MKHASH) md5 $@ | sed 's/../\\\\x&/g' |\
|
2020-02-29 01:23:18 +08:00
|
|
|
xargs echo -ne >> $@
|
|
|
|
|
endef
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Build/cybertan-trx
|
|
|
|
|
@echo -n '' > $@-empty.bin
|
|
|
|
|
-$(STAGING_DIR_HOST)/bin/trx -o $@.new \
|
|
|
|
|
-f $(IMAGE_KERNEL) -F $@-empty.bin \
|
|
|
|
|
-x 32 -a 0x10000 -x -32 -f $@
|
|
|
|
|
-mv "$@.new" "$@"
|
|
|
|
|
-rm $@-empty.bin
|
|
|
|
|
endef
|
|
|
|
|
|
2020-12-07 10:01:38 +08:00
|
|
|
define Build/edimax-headers
|
|
|
|
|
$(eval edimax_magic=$(word 1,$(1)))
|
|
|
|
|
$(eval edimax_model=$(word 2,$(1)))
|
|
|
|
|
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/edimax_fw_header -M $(edimax_magic) -m $(edimax_model)\
|
2022-04-25 08:01:43 +08:00
|
|
|
-v Emortal$(firstword $(subst +, , $(firstword $(subst -, ,$(REVISION))))) \
|
2020-12-07 10:01:38 +08:00
|
|
|
-n "uImage" \
|
|
|
|
|
-i $(KDIR)/loader-$(DEVICE_NAME).uImage \
|
|
|
|
|
-o $@.uImage
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/edimax_fw_header -M $(edimax_magic) -m $(edimax_model)\
|
2022-04-25 08:01:43 +08:00
|
|
|
-v Emortal$(firstword $(subst +, , $(firstword $(subst -, ,$(REVISION))))) \
|
2020-12-07 10:01:38 +08:00
|
|
|
-n "rootfs" \
|
|
|
|
|
-i $@ \
|
|
|
|
|
-o $@.rootfs
|
|
|
|
|
cat $@.uImage $@.rootfs > $@
|
|
|
|
|
rm -rf $@.uImage $@.rootfs
|
|
|
|
|
endef
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Build/mkdapimg2
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkdapimg2 \
|
|
|
|
|
-i $@ -o $@.new \
|
|
|
|
|
-s $(DAP_SIGNATURE) \
|
2022-04-25 08:01:43 +08:00
|
|
|
-v Emortal-$(firstword $(subst +, , \
|
2020-09-06 18:27:54 +08:00
|
|
|
$(firstword $(subst -, ,$(REVISION))))) \
|
|
|
|
|
-r Default \
|
|
|
|
|
$(if $(1),-k $(1))
|
|
|
|
|
mv $@.new $@
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/mkmylofw_16m
|
|
|
|
|
$(eval device_id=$(word 1,$(1)))
|
|
|
|
|
$(eval revision=$(word 2,$(1)))
|
|
|
|
|
|
|
|
|
|
# On WPJ344, WPJ531, and WPJ563, the default boot command tries 0x9f680000
|
|
|
|
|
# first and fails if the remains of the stock image are sill there
|
|
|
|
|
# - resulting in an infinite boot loop.
|
|
|
|
|
# The size parameter is grown to have that block deleted if the firmware
|
|
|
|
|
# isn't big enough by itself.
|
|
|
|
|
|
|
|
|
|
let \
|
|
|
|
|
size="$$(stat -c%s $@)" \
|
|
|
|
|
pad="$(subst k,* 1024,$(BLOCKSIZE))" \
|
|
|
|
|
pad="(pad - (size % pad)) % pad" \
|
|
|
|
|
newsize='size + pad' ; \
|
|
|
|
|
[ $$newsize -lt $$((0x660000)) ] && newsize=0x660000 ; \
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkmylofw \
|
|
|
|
|
-B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
|
|
|
|
|
-s 0x1000000 -p0x30000:$$newsize:al:0x80060000:"OpenWRT":$@ \
|
|
|
|
|
$@.new
|
|
|
|
|
@mv $@.new $@
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Build/mkwrggimg
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkwrggimg -b \
|
|
|
|
|
-i $@ -o $@.imghdr -d /dev/mtdblock/1 \
|
|
|
|
|
-m $(DEVICE_MODEL)-$(DEVICE_VARIANT) -s $(DAP_SIGNATURE) \
|
|
|
|
|
-v $(VERSION_DIST) -B $(REVISION)
|
|
|
|
|
mv $@.imghdr $@
|
|
|
|
|
endef
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Build/nec-enc
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/nec-enc \
|
|
|
|
|
-i $@ -o $@.new -k $(1)
|
|
|
|
|
mv $@.new $@
|
|
|
|
|
endef
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Build/nec-fw
|
|
|
|
|
( stat -c%s $@ | tr -d "\n" | dd bs=16 count=1 conv=sync; ) >> $@
|
|
|
|
|
( \
|
|
|
|
|
echo -n -e "$(1)" | dd bs=16 count=1 conv=sync; \
|
|
|
|
|
echo -n "0.0.00" | dd bs=16 count=1 conv=sync; \
|
|
|
|
|
dd if=$@; \
|
|
|
|
|
) > $@.new
|
|
|
|
|
mv $@.new $@
|
|
|
|
|
endef
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Build/pisen_wmb001n-factory
|
|
|
|
|
-[ -f "$@" ] && \
|
|
|
|
|
mkdir -p "$@.tmp" && \
|
|
|
|
|
cp "$(KDIR)/loader-$(word 1,$(1)).uImage" "$@.tmp/uImage" && \
|
|
|
|
|
mv "$@" "$@.tmp/rootfs" && \
|
|
|
|
|
cp "bin/pisen_wmb001n_factory-header.bin" "$@" && \
|
|
|
|
|
$(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \
|
|
|
|
|
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
|
|
|
|
|
-C "$@.tmp" . | gzip -9n >> "$@" && \
|
|
|
|
|
rm -rf "$@.tmp"
|
|
|
|
|
endef
|
|
|
|
|
|
2020-02-29 01:23:18 +08:00
|
|
|
define Build/teltonika-fw-fake-checksum
|
|
|
|
|
# Teltonika U-Boot web based firmware upgrade/recovery routine compares
|
|
|
|
|
# 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
|
|
|
|
|
# from begin of the firmware file) with 16 bytes stored just before
|
|
|
|
|
# 0xdeadc0de marker. Values are only compared, MD5 sum is not verified.
|
|
|
|
|
let \
|
2021-06-22 05:27:56 +08:00
|
|
|
offs="$$(stat -c%s $@) - $(1)"; \
|
2020-02-29 01:23:18 +08:00
|
|
|
dd if=$@ bs=1 count=16 skip=76 |\
|
|
|
|
|
dd of=$@ bs=1 count=16 seek=$$offs conv=notrunc
|
|
|
|
|
endef
|
|
|
|
|
|
2021-06-22 05:27:56 +08:00
|
|
|
define Build/teltonika-v1-header
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
|
|
|
|
-c -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -L $(KERNEL_LOADADDR) \
|
|
|
|
|
-E $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
|
|
|
|
|
-m $(TPLINK_HEADER_VERSION) -N "$(VERSION_DIST)" -V "RUT2xx " \
|
|
|
|
|
-k $@ -o $@.new $(1)
|
|
|
|
|
@mv $@.new $@
|
|
|
|
|
endef
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Build/wrgg-pad-rootfs
|
|
|
|
|
$(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS) -c 64 >>$@
|
|
|
|
|
endef
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/seama
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | seama
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
SEAMA_MTDBLOCK := 1
|
|
|
|
|
|
|
|
|
|
# 64 bytes offset:
|
|
|
|
|
# - 28 bytes seama_header
|
|
|
|
|
# - 36 bytes of META data (4-bytes aligned)
|
|
|
|
|
IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
|
2020-03-10 21:58:27 +08:00
|
|
|
seama-seal | check-size
|
2019-01-03 19:29:28 +08:00
|
|
|
SEAMA_SIGNATURE :=
|
|
|
|
|
endef
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
|
|
|
|
|
define Device/8dev_carambola2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := 8devices
|
|
|
|
|
DEVICE_MODEL := Carambola2
|
2020-09-18 19:56:53 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += carambola2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += 8dev_carambola2
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/8dev_lima
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := 8devices
|
|
|
|
|
DEVICE_MODEL := Lima
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 15616k
|
|
|
|
|
SUPPORTED_DEVICES += lima
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += 8dev_lima
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/adtran_bsap1880
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Adtran/Bluesocket
|
|
|
|
|
DEVICE_PACKAGES += -swconfig -uboot-envtools fconfig
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb
|
|
|
|
|
IMAGE_SIZE := 11200k
|
|
|
|
|
IMAGES += kernel.bin rootfs.bin
|
|
|
|
|
IMAGE/kernel.bin := append-kernel
|
|
|
|
|
IMAGE/rootfs.bin := append-rootfs | pad-rootfs
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
|
2020-03-10 21:58:27 +08:00
|
|
|
check-size | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/adtran_bsap1800-v2
|
|
|
|
|
$(Device/adtran_bsap1880)
|
|
|
|
|
DEVICE_MODEL := BSAP-1800
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += adtran_bsap1800-v2
|
|
|
|
|
|
|
|
|
|
define Device/adtran_bsap1840
|
|
|
|
|
$(Device/adtran_bsap1880)
|
|
|
|
|
DEVICE_MODEL := BSAP-1840
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += adtran_bsap1840
|
|
|
|
|
|
ath79: add support for AirTight C-75
AirTight Networks (later renamed to Mojo Networks) C-75 is a dual-band
access point, also sold by WatchGuard under name AP320.
Specification
SoC: Qualcomm Atheros QCA9550
RAM: 128 MiB DDR2
Flash: 2x 16 MiB SPI NOR
WIFI: 2.4 GHz 3T3R integrated
5 GHz 3T3R QCA9890 oversized Mini PCIe card
Ethernet: 2x 10/100/1000 Mbps QCA8334
port labeled LAN1 is PoE capable (802.3at)
USB: 1x 2.0
LEDs: 7x which two are GPIO controlled, four switch controlled, one
controlled by wireless driver
Buttons: 1x GPIO controlled
Serial: RJ-45 port, Cisco pinout
baud: 115200, parity: none, flow control: none
JTAG: Yes, pins marked J1 on PCB
Installation
1. Prepare TFTP server with OpenWrt initramfs-kernel image.
2. Connect to one of LAN ports.
3. Connect to serial port.
4. Power on the device and when prompted to stop autoboot, hit any key.
5. Adjust "ipaddr" and "serverip" addresses in U-Boot environment, use
'setenv' to do that, then run following commands:
tftpboot 0x81000000 <openwrt_initramfs-kernel_image_name>
bootm 0x81000000
6. Wait about 1 minute for OpenWrt to boot.
7. Transfer OpenWrt sysupgrade image to /tmp directory and flash it
with:
sysupgrade -n /tmp/<openwrt_sysupgrade_image_name>
8. After flashing, the access point will reboot to OpenWrt. Wait few
minutes, until the Power LED stops blinking, then it's ready for
configuration.
Known issues
Green power LED does not work.
Additional information
The U-Boot fails to initialise ethernet ports correctly when a UART
adapter is attached to UART pins (marked J3 on PCB).
Cc: Vladimir Georgievsky <vladimir.georgievsky@yahoo.com>
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
2020-12-18 00:24:26 +08:00
|
|
|
define Device/airtight_c-75
|
|
|
|
|
SOC := qca9550
|
|
|
|
|
DEVICE_VENDOR := AirTight Networks
|
|
|
|
|
DEVICE_MODEL := C-75
|
|
|
|
|
DEVICE_ALT0_VENDOR := Mojo Networks
|
|
|
|
|
DEVICE_ALT0_MODEL := C-75
|
|
|
|
|
DEVICE_ALT1_VENDOR := WatchGuard
|
|
|
|
|
DEVICE_ALT1_MODEL := AP320
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2
|
2020-12-18 00:24:27 +08:00
|
|
|
IMAGE_SIZE := 32320k
|
|
|
|
|
KERNEL_SIZE := 15936k
|
ath79: add support for AirTight C-75
AirTight Networks (later renamed to Mojo Networks) C-75 is a dual-band
access point, also sold by WatchGuard under name AP320.
Specification
SoC: Qualcomm Atheros QCA9550
RAM: 128 MiB DDR2
Flash: 2x 16 MiB SPI NOR
WIFI: 2.4 GHz 3T3R integrated
5 GHz 3T3R QCA9890 oversized Mini PCIe card
Ethernet: 2x 10/100/1000 Mbps QCA8334
port labeled LAN1 is PoE capable (802.3at)
USB: 1x 2.0
LEDs: 7x which two are GPIO controlled, four switch controlled, one
controlled by wireless driver
Buttons: 1x GPIO controlled
Serial: RJ-45 port, Cisco pinout
baud: 115200, parity: none, flow control: none
JTAG: Yes, pins marked J1 on PCB
Installation
1. Prepare TFTP server with OpenWrt initramfs-kernel image.
2. Connect to one of LAN ports.
3. Connect to serial port.
4. Power on the device and when prompted to stop autoboot, hit any key.
5. Adjust "ipaddr" and "serverip" addresses in U-Boot environment, use
'setenv' to do that, then run following commands:
tftpboot 0x81000000 <openwrt_initramfs-kernel_image_name>
bootm 0x81000000
6. Wait about 1 minute for OpenWrt to boot.
7. Transfer OpenWrt sysupgrade image to /tmp directory and flash it
with:
sysupgrade -n /tmp/<openwrt_sysupgrade_image_name>
8. After flashing, the access point will reboot to OpenWrt. Wait few
minutes, until the Power LED stops blinking, then it's ready for
configuration.
Known issues
Green power LED does not work.
Additional information
The U-Boot fails to initialise ethernet ports correctly when a UART
adapter is attached to UART pins (marked J3 on PCB).
Cc: Vladimir Georgievsky <vladimir.georgievsky@yahoo.com>
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
2020-12-18 00:24:26 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += airtight_c-75
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/alfa-network_ap121f
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := AP121F
|
2020-09-18 19:56:53 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-storage -swconfig
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE_SIZE := 16064k
|
|
|
|
|
SUPPORTED_DEVICES += ap121f
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_ap121f
|
|
|
|
|
|
ath79: add support for ALFA Network AP121FE
The AP121FE is a slightly modified version of already supported AP121F
model (added to ar71xx in 0c6165d21a and to ath79 in 334bbc5198).
The differences in compare to AP121F:
- no micro SD card reader
- USB data lines are included in Type-A plug
- USB bus switched to device/peripheral mode (permanently, in bootstrap)
Other than that, specifications are the same:
- Atheros AR9331
- 400/400/200 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR1)
- 16 MB of flash (SPI NOR)
- 1x 10/100 Mbps Ethernet
- 1T1R 2.4 GHz Wi-Fi, up to 15 dBm
- 1x IPEX/U.FL connector, internal PCB antenna
- 3x LED, 1x button, 1x switch
- 4-pin UART header on PCB (2 mm pitch)
- USB 2.0 Type-A plug (power and data)
Flash instruction (under U-Boot web recovery mode):
1. Configure PC with static IP 192.168.1.2/24.
2. Connect PC with RJ45 port, press the reset button, power up device,
wait for first blink of all LEDs (indicates network setup), then keep
button for 3 following blinks and release it.
3. Open 192.168.1.1 address in your browser and upload sysupgrade image.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-03-22 06:20:31 +08:00
|
|
|
define Device/alfa-network_ap121fe
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := AP121FE
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-gadget-eth -swconfig
|
|
|
|
|
IMAGE_SIZE := 16064k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_ap121fe
|
|
|
|
|
|
2020-09-19 00:55:23 +08:00
|
|
|
define Device/alfa-network_n2q
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := N2Q
|
|
|
|
|
DEVICE_PACKAGES := kmod-i2c-gpio kmod-gpio-pcf857x kmod-usb2 \
|
|
|
|
|
kmod-usb-ledtrig-usbport rssileds
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_n2q
|
|
|
|
|
|
ath79: add support for ALFA Network N5Q
ALFA Network N5Q is a successor of previous model, the N5 (outdoor
CPE/AP, based on Atheros AR7240 + AR9280). New version is based on
Atheros AR9344.
Support for this device was first introduced in 4b0eebe9df (ar71xx
target) but users are advised to migrate from ar71xx target without
preserving settings as ath79 support includes some changes in network
and LED default configuration. They were aligned with vendor firmware
and recently added N2Q model (both Ethernet ports as LAN, labelled as
LAN1 and LAN2).
Specifications:
- Atheros AR9344
- 550/400/200 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 16 MB of flash (SPI NOR)
- 2x 10/100 Mbps Ethernet, with passive PoE support (24 V)
- 2T2R 5 GHz Wi-Fi, with ext. PA (RFPA5542) and LNA, up to 27 dBm
- 2x IPEX/U.FL or MMCX antenna connectors (for PCBA version)
- 8x LED (7 are driven by GPIO)
- 1x button (reset)
- external h/w watchdog (EM6324QYSP5B, enabled by default)
- header for optional 802.3at/af PoE module
- DC jack for main power input (optional, not installed by default)
- UART (4-pin, 2.54 mm pitch) header on PCB
- LEDs (2x 5-pin, 2.54 mm pitch) header on PCB
Flash instruction:
You can use sysupgrade image directly in vendor firmware which is based
on OpenWrt/LEDE. Alternatively, you can use web recovery mode in U-Boot:
1. Configure PC with static IP 192.168.1.2/24.
2. Connect PC with one of RJ45 ports, press the reset button, power up
device, wait for first blink of all LEDs (indicates network setup),
then keep button for 3 following blinks and release it.
3. Open 192.168.1.1 address in your browser and upload sysupgrade image.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-05-13 05:44:10 +08:00
|
|
|
define Device/alfa-network_n5q
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := N5Q
|
|
|
|
|
DEVICE_PACKAGES := rssileds
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += n5q
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_n5q
|
|
|
|
|
|
ath79: add support for ALFA Network Pi-WiFi4
ALFA Network Pi-WiFi4 is a Qualcomm QCA9531 v2 based, high-power 802.11n
WiFi board in Raspberry Pi 3B shape, equipped with 1x FE and 4x USB 2.0.
Specifications:
- Qualcomm/Atheros QCA9531 v2
- 650/400/200 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16+ MB of flash (SPI NOR)
- 1x 10/100 Mbps Ethernet
- 2T2R 2.4 GHz Wi-Fi with Qorvo RFFM8228P FEM
- 2x IPEX/U.FL connectors on PCB
- 4x USB 2.0 Type-A
- Genesys Logic GL850G 4-port USB HUB
- USB power is controlled by GPIO
- 5x LED (3x on PCB, 2x in RJ45, 4x driven by GPIO)
- 1x button (reset)
- external h/w watchdog (EM6324QYSP5B, enabled by default)
- 1x micro USB Type-B for power and system console (Holtek HT42B534)
- UART and GPIO (8-pin, 1.27 mm pitch) header on PCB
Flash instruction:
You can use sysupgrade image directly in vendor firmware which is based
on LEDE/OpenWrt. Alternatively, you can use web recovery mode in U-Boot:
1. Configure PC with static IP 192.168.1.2/24.
2. Connect PC with one of RJ45 ports, press the reset button, power up
device, wait for first blink of all LEDs (indicates network setup),
then keep button for 3 following blinks and release it.
3. Open 192.168.1.1 address in your browser and upload sysupgrade image.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-10-09 13:30:24 +08:00
|
|
|
define Device/alfa-network_pi-wifi4
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := Pi-WiFi4
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport -swconfig
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_pi-wifi4
|
|
|
|
|
|
ath79: add support for ALFA Network R36A
ALFA Network R36A is a successor of the previous model, the R36 (Ralink
RT3050F based). New version is based on Qualcomm/Atheros QCA9531 v2, FCC
ID: 2AB879531.
Support for this device was first introduced in af8f0629df (ar71xx
target). When updating from previous release (and/or ar71xx target),
user should only adjust the WAN LED trigger type (netdev in ar71xx,
switch port in ath79).
Specifications:
- Qualcomm/Atheros QCA9531 v2
- 650/400/200 MHz (CPU/DDR/AHB)
- 128 MB (R36AH/-U2) or 64 MB (R36A) of RAM (DDR2)
- 16 MB of flash (SPI NOR)
- 2x 10/100 Mbps Ethernet
- Passive PoE input support (12~36 V) in RJ45 near DC jack
- 2T2R 2.4 GHz Wi-Fi with Qorvo RFFM8228P FEM
- 2x IPEX/U.FL connectors on PCB
- 1x USB 2.0 Type-A
- 1x USB 2.0 mini Type-B in R36AH-U2 version
- USB power is controlled by GPIO
- 6/7x LED (5/6 of them are driven by GPIO)
- 2x button (reset, wifi/wps)
- external h/w watchdog (EM6324QYSP5B, enabled by default)
- DC jack with lock, for main power input (12 V)
- UART (4-pin, 2.54 mm pitch) header on PCB
Optional/additional features in R36A series (R36A was the first model):
- for R36AH: USB 2.0 hub*
- for R36AH-U2: USB 2.0 hub*, 1x USB 2.0 mini Type-B, one more LED
*) there are at least three different USB 2.0 hub in R36AH/-U2 variants:
- Terminus-Tech FE 1.1
- Genesys Logic GL852G
- Genesys Logic GL850G (used in latests revision)
Flash instruction:
You can use sysupgrade image directly in vendor firmware which is based
on LEDE/OpenWrt. Alternatively, you can use web recovery mode in U-Boot:
1. Configure PC with static IP 192.168.1.2/24.
2. Connect PC with one of RJ45 ports, press the reset button, power up
device, wait for first blink of all LEDs (indicates network setup),
then keep button for 3 following blinks and release it.
3. Open 192.168.1.1 address in your browser and upload sysupgrade image.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-07-02 13:03:33 +08:00
|
|
|
define Device/alfa-network_r36a
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := ALFA Network
|
|
|
|
|
DEVICE_MODEL := R36A
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += r36a
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += alfa-network_r36a
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/allnet_all-wap02860ac
|
2021-02-13 07:58:00 +08:00
|
|
|
$(Device/senao_loader_okli)
|
2020-09-06 18:27:54 +08:00
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := ALLNET
|
|
|
|
|
DEVICE_MODEL := ALL-WAP02860AC
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
2021-02-13 07:58:00 +08:00
|
|
|
IMAGE_SIZE := 11584k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
|
|
|
|
SENAO_IMGNAME := senao-allwap02860ac
|
2020-09-06 18:27:54 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += allnet_all-wap02860ac
|
|
|
|
|
|
|
|
|
|
define Device/arduino_yun
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Arduino
|
|
|
|
|
DEVICE_MODEL := Yun
|
2020-09-18 19:56:53 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport \
|
2020-09-06 18:27:54 +08:00
|
|
|
kmod-usb-storage block-mount -swconfig
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
SUPPORTED_DEVICES += arduino-yun
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += arduino_yun
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/aruba_ap-105
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Aruba
|
|
|
|
|
DEVICE_MODEL := AP-105
|
|
|
|
|
IMAGE_SIZE := 16000k
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_PACKAGES := kmod-i2c-gpio kmod-tpm-i2c-atmel
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += aruba_ap-105
|
|
|
|
|
|
2021-12-28 01:04:51 +08:00
|
|
|
define Device/asus_rp-ac66
|
|
|
|
|
SOC := qca9563
|
|
|
|
|
DEVICE_VENDOR := ASUS
|
|
|
|
|
DEVICE_MODEL := RP-AC66
|
2022-01-25 21:16:37 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
2021-12-28 01:04:51 +08:00
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct \
|
|
|
|
|
rssileds -swconfig
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += asus_rp-ac66
|
|
|
|
|
|
ath79: add support for Atheros DB120 reference board
Atheros DB120 reference board.
Specifications:
SoC: QCA9344
DRAM: 128Mb DDR2
Flash: 8Mb SPI-NOR, 128Mb NAND flash
Switch: 5x 10/100Mbps via AR8229 switch (integrated into SoC),
5x 10/100/1000Mbps via QCA8237 via RGMII
WLAN: AR9300 (SoC, 2.4G+5G) + AR9340 (PCIe, 5G-only)
USB: 1x 2.0
UART: standard QCA UART header
JTAG: yes
Button: 1x reset
LEDs: a lot
Slots: 2x mPCIe + 1x mini-PCI, but using them requires
additional undocumented changes.
Misc: The board allows to boot off NAND, and there is
I2S audio support as well - also requiring
additional undocumented changes.
Installation:
1. Original bootloader
Connect the board to ethernet
Set up a server with an IP address of 192.168.1.10
Make the openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
available via TFTP
tftpboot 0x80060000 openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
erase 0x9f050000 +$filesize
cp.b $fileaddr 0x9f050000 $filesize
2. pepe2k's u-boot_mod
Connect the board to ethernet
Set up a server with an IP address of 192.168.1.10
Make the openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
available via TFTP, as "firmware.bin"
run fw_upg
Reboot the board.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
[explicit factory recipe in generic.mk, sorting in 10-ath9k-eeprom,
convert to nvmem, use fwconcat* names in DTS, remove unneeded DT
labels, remove redundant uart node]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-09-08 00:52:31 +08:00
|
|
|
define Device/atheros_db120
|
2021-09-26 22:07:44 +08:00
|
|
|
$(Device/loader-okli-uimage)
|
ath79: add support for Atheros DB120 reference board
Atheros DB120 reference board.
Specifications:
SoC: QCA9344
DRAM: 128Mb DDR2
Flash: 8Mb SPI-NOR, 128Mb NAND flash
Switch: 5x 10/100Mbps via AR8229 switch (integrated into SoC),
5x 10/100/1000Mbps via QCA8237 via RGMII
WLAN: AR9300 (SoC, 2.4G+5G) + AR9340 (PCIe, 5G-only)
USB: 1x 2.0
UART: standard QCA UART header
JTAG: yes
Button: 1x reset
LEDs: a lot
Slots: 2x mPCIe + 1x mini-PCI, but using them requires
additional undocumented changes.
Misc: The board allows to boot off NAND, and there is
I2S audio support as well - also requiring
additional undocumented changes.
Installation:
1. Original bootloader
Connect the board to ethernet
Set up a server with an IP address of 192.168.1.10
Make the openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
available via TFTP
tftpboot 0x80060000 openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
erase 0x9f050000 +$filesize
cp.b $fileaddr 0x9f050000 $filesize
2. pepe2k's u-boot_mod
Connect the board to ethernet
Set up a server with an IP address of 192.168.1.10
Make the openwrt-ath79-generic-atheros_db120-squashfs-factory.bin
available via TFTP, as "firmware.bin"
run fw_upg
Reboot the board.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
[explicit factory recipe in generic.mk, sorting in 10-ath9k-eeprom,
convert to nvmem, use fwconcat* names in DTS, remove unneeded DT
labels, remove redundant uart node]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-09-08 00:52:31 +08:00
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Atheros
|
|
|
|
|
DEVICE_MODEL := DB120
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
SUPPORTED_DEVICES += db120
|
|
|
|
|
LOADER_FLASH_OFFS := 0x50000
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | pad-to 6336k | \
|
|
|
|
|
append-loader-okli-uimage $(1) | pad-to 64k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += atheros_db120
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/avm
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := AVM
|
2019-01-03 19:29:28 +08:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | eva-image
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL)
|
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
|
2020-02-03 23:45:16 +08:00
|
|
|
append-squashfs-fakeroot-be | pad-to 256 | append-rootfs | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_PACKAGES := fritz-tffs
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/avm_fritz1750e
|
|
|
|
|
$(Device/avm)
|
|
|
|
|
SOC := qca9556
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DEVICE_MODEL := FRITZ!WLAN Repeater 1750E
|
|
|
|
|
DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
|
|
|
|
|
ath10k-firmware-qca988x-ct -swconfig
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += avm_fritz1750e
|
|
|
|
|
|
|
|
|
|
define Device/avm_fritz300e
|
|
|
|
|
$(Device/avm)
|
|
|
|
|
SOC := ar7242
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DEVICE_MODEL := FRITZ!WLAN Repeater 300E
|
|
|
|
|
DEVICE_PACKAGES += rssileds -swconfig
|
2020-02-29 01:23:18 +08:00
|
|
|
SUPPORTED_DEVICES += fritz300e
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += avm_fritz300e
|
|
|
|
|
|
|
|
|
|
define Device/avm_fritz4020
|
2020-04-23 12:00:03 +08:00
|
|
|
$(Device/avm)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9561
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15232k
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_MODEL := FRITZ!Box 4020
|
2019-04-12 11:39:40 +08:00
|
|
|
SUPPORTED_DEVICES += fritz4020
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += avm_fritz4020
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/avm_fritz450e
|
|
|
|
|
$(Device/avm)
|
|
|
|
|
SOC := qca9556
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DEVICE_MODEL := FRITZ!WLAN Repeater 450E
|
|
|
|
|
SUPPORTED_DEVICES += fritz450e
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += avm_fritz450e
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/avm_fritzdvbc
|
|
|
|
|
$(Device/avm)
|
|
|
|
|
SOC := qca9556
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DEVICE_MODEL := FRITZ!WLAN Repeater DVB-C
|
|
|
|
|
DEVICE_PACKAGES += rssileds kmod-ath10k-ct-smallbuffers \
|
|
|
|
|
ath10k-firmware-qca988x-ct -swconfig
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += avm_fritzdvbc
|
|
|
|
|
|
2020-11-28 19:04:00 +08:00
|
|
|
define Device/belkin_f9x-v2
|
2021-09-26 22:07:44 +08:00
|
|
|
$(Device/loader-okli-uimage)
|
2020-12-07 10:01:38 +08:00
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := Belkin
|
|
|
|
|
IMAGE_SIZE := 14464k
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2 \
|
|
|
|
|
kmod-usb3 kmod-usb-ledtrig-usbport
|
|
|
|
|
LOADER_FLASH_OFFS := 0x50000
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-11-28 19:04:00 +08:00
|
|
|
edimax-headers $$$$(EDIMAX_HEADER_MAGIC) $$$$(EDIMAX_HEADER_MODEL) | \
|
|
|
|
|
pad-to $$$$(BLOCKSIZE)
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/belkin_f9j1108-v2
|
|
|
|
|
$(Device/belkin_f9x-v2)
|
|
|
|
|
DEVICE_MODEL := F9J1108 v2 (AC1750 DB Wi-Fi)
|
|
|
|
|
EDIMAX_HEADER_MAGIC := F9J1108v1
|
|
|
|
|
EDIMAX_HEADER_MODEL := BR-6679BAC
|
2020-12-07 10:01:38 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += belkin_f9j1108-v2
|
|
|
|
|
|
2020-11-28 19:08:42 +08:00
|
|
|
define Device/belkin_f9k1115-v2
|
|
|
|
|
$(Device/belkin_f9x-v2)
|
|
|
|
|
DEVICE_MODEL := F9K1115 v2 (AC1750 DB Wi-Fi)
|
|
|
|
|
EDIMAX_HEADER_MAGIC := eDiMaX
|
|
|
|
|
EDIMAX_HEADER_MODEL := F9K1115V2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += belkin_f9k1115-v2
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/buffalo_bhr-4grv
|
2020-09-13 20:48:26 +08:00
|
|
|
$(Device/buffalo_common)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7242
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := BHR-4GRV
|
2020-09-13 20:48:26 +08:00
|
|
|
BUFFALO_PRODUCT := BHR-4GRV
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 32256k
|
|
|
|
|
SUPPORTED_DEVICES += wzr-hp-g450h
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_bhr-4grv
|
|
|
|
|
|
|
|
|
|
define Device/buffalo_bhr-4grv2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9557
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Buffalo
|
|
|
|
|
DEVICE_MODEL := BHR-4GRV2
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_bhr-4grv2
|
|
|
|
|
|
2020-09-13 21:27:49 +08:00
|
|
|
define Device/buffalo_wzr_ar7161
|
2020-09-13 20:48:26 +08:00
|
|
|
$(Device/buffalo_common)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
2020-09-13 20:48:26 +08:00
|
|
|
BUFFALO_PRODUCT := WZR-HP-AG300H
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
|
|
|
|
|
kmod-leds-reset kmod-owl-loader
|
2020-09-13 20:48:26 +08:00
|
|
|
IMAGE_SIZE := 32320k
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += wzr-hp-ag300h
|
|
|
|
|
endef
|
2020-09-13 21:27:49 +08:00
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-600dhp
|
|
|
|
|
$(Device/buffalo_wzr_ar7161)
|
|
|
|
|
DEVICE_MODEL := WZR-600DHP
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_wzr-600dhp
|
|
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-hp-ag300h
|
|
|
|
|
$(Device/buffalo_wzr_ar7161)
|
|
|
|
|
DEVICE_MODEL := WZR-HP-AG300H
|
|
|
|
|
endef
|
2019-01-03 19:29:28 +08:00
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-ag300h
|
|
|
|
|
|
2020-09-08 03:04:26 +08:00
|
|
|
define Device/buffalo_wzr-hp-g300nh
|
|
|
|
|
$(Device/buffalo_common)
|
|
|
|
|
SOC := ar9132
|
|
|
|
|
BUFFALO_PRODUCT := WZR-HP-G300NH
|
|
|
|
|
BUFFALO_HWVER := 1
|
2022-02-06 07:07:10 +08:00
|
|
|
DEVICE_PACKAGES := kmod-gpio-cascade kmod-mux-gpio kmod-usb2 kmod-usb-ledtrig-usbport
|
2020-09-08 03:04:26 +08:00
|
|
|
BLOCKSIZE := 128k
|
|
|
|
|
IMAGE_SIZE := 32128k
|
|
|
|
|
SUPPORTED_DEVICES += wzr-hp-g300nh
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-hp-g300nh-rb
|
|
|
|
|
$(Device/buffalo_wzr-hp-g300nh)
|
|
|
|
|
DEVICE_MODEL := WZR-HP-G300NH (RTL8366RB switch)
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-g300nh-rb
|
|
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-hp-g300nh-s
|
|
|
|
|
$(Device/buffalo_wzr-hp-g300nh)
|
|
|
|
|
DEVICE_MODEL := WZR-HP-G300NH (RTL8366S switch)
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-g300nh-s
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/buffalo_wzr-hp-g302h-a1a0
|
2020-09-13 20:48:26 +08:00
|
|
|
$(Device/buffalo_common)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7242
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := WZR-HP-G302H
|
|
|
|
|
DEVICE_VARIANT := A1A0
|
2020-09-13 20:48:26 +08:00
|
|
|
BUFFALO_PRODUCT := WZR-HP-G302H
|
|
|
|
|
BUFFALO_HWVER := 4
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 32128k
|
|
|
|
|
SUPPORTED_DEVICES += wzr-hp-g300nh2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-g302h-a1a0
|
|
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-hp-g450h
|
2020-09-13 20:48:26 +08:00
|
|
|
$(Device/buffalo_common)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7242
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := WZR-HP-G450H/WZR-450HP
|
2020-09-13 20:48:26 +08:00
|
|
|
BUFFALO_PRODUCT := WZR-HP-G450H
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 32256k
|
|
|
|
|
SUPPORTED_DEVICES += wzr-hp-g450h
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-g450h
|
|
|
|
|
|
|
|
|
|
define Device/comfast_cf-e110n-v2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9533
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E110N
|
|
|
|
|
DEVICE_VARIANT := v2
|
2020-08-05 18:05:24 +08:00
|
|
|
DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e110n-v2
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/comfast_cf-e120a-v3
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E120A
|
|
|
|
|
DEVICE_VARIANT := v3
|
2020-08-05 18:05:24 +08:00
|
|
|
DEVICE_PACKAGES := rssileds -uboot-envtools
|
2019-04-12 11:39:40 +08:00
|
|
|
IMAGE_SIZE := 8000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e120a-v3
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/comfast_cf-e130n-v2
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E130N
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
DEVICE_PACKAGES := rssileds -swconfig -uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 7936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e130n-v2
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/comfast_cf-e313ac
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E313AC
|
2020-08-05 18:05:24 +08:00
|
|
|
DEVICE_PACKAGES := rssileds kmod-ath10k-ct-smallbuffers \
|
2020-02-03 23:45:16 +08:00
|
|
|
ath10k-firmware-qca9888-ct -swconfig -uboot-envtools
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE_SIZE := 7936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e313ac
|
|
|
|
|
|
|
|
|
|
define Device/comfast_cf-e314n-v2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E314N
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
DEVICE_PACKAGES := rssileds
|
|
|
|
|
IMAGE_SIZE := 7936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e314n-v2
|
|
|
|
|
|
ath79: add support for COMFAST CF-E375AC
COMFAST CF-E375AC is a ceiling mount AP with PoE support,
based on Qualcomm/Atheros QCA9563 + QCA9886 + QCA8337.
Short specification:
2x 10/100/1000 Mbps Ethernet, with PoE support
128MB of RAM (DDR2)
16 MB of FLASH
3T3R 2.4 GHz, 802.11b/g/n
2T2R 5 GHz, 802.11ac/n/a, wave 2
built-in 5x 3 dBi antennas
output power (max): 500 mW (27 dBm)
1x RGB LED, 1x button
built-in watchdog chipset
Flash instruction:
1) Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
2) TFTP
2.1) Set a tftp server on your machine with a fixed IP address of
192.168.1.10. A place the sysupgrade as firmware_auto.bin.
2.2) boot the device with an ethernet connection on fixed ip route
2.3) wait a few seconds and try to login via ssh
3) TFTP trough Bootloader
3.1) open the device case and get a uart connection working
3.2) stop the autoboot process and test connection with serverip
3.3) name the sysupgrade image firmware.bin and run firmware_upg
MAC addresses:
Though the OEM firmware has four adresses in the usual locations,
it appears that the assigned addresses are just incremented in a
different way:
interface address location
LAN: *:DC 0x0
WAN *:DD 0x1002
WLAN 2.4g *:E6 n/a (0x0 + 10)
WLAN 5g *:DE 0x6
unused *:DF 0x5006
The MAC address pointed at the label is the one assign to the LAN
interface.
Signed-off-by: Joao Henrique Albuquerque <joaohccalbu@gmail.com>
[add label-mac-device, remove redundant uart status, fix whitespace
issues, fix commit message wrapping, remove x bit on DTS file]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-14 23:04:02 +08:00
|
|
|
define Device/comfast_cf-e375ac
|
|
|
|
|
SOC := qca9563
|
|
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E375AC
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct \
|
|
|
|
|
ath10k-firmware-qca9888-ct -uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e375ac
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/comfast_cf-e5
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E5/E7
|
2020-09-06 18:27:54 +08:00
|
|
|
DEVICE_PACKAGES := rssileds kmod-usb2 kmod-usb-net-qmi-wwan -swconfig \
|
|
|
|
|
-uboot-envtools
|
2019-04-12 11:39:40 +08:00
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e5
|
|
|
|
|
|
2020-02-06 21:45:40 +08:00
|
|
|
define Device/comfast_cf-e560ac
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-E560AC
|
2020-08-05 18:05:24 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
2020-02-06 21:45:40 +08:00
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-e560ac
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/comfast_cf-ew72
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-EW72
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
|
|
|
|
|
-uboot-envtools -swconfig
|
|
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-ew72
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/comfast_cf-wr650ac-v1
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-WR650AC
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-wr650ac-v1
|
|
|
|
|
|
|
|
|
|
define Device/comfast_cf-wr650ac-v2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-WR650AC
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-wr650ac-v2
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/comfast_cf-wr752ac-v1
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := COMFAST
|
|
|
|
|
DEVICE_MODEL := CF-WR752AC
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct \
|
|
|
|
|
-uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += comfast_cf-wr752ac-v1
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/compex_wpj344-16m
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
DEVICE_VENDOR := Compex
|
|
|
|
|
DEVICE_MODEL := WPJ344
|
|
|
|
|
DEVICE_VARIANT := 16M
|
|
|
|
|
SUPPORTED_DEVICES += wpj344
|
|
|
|
|
IMAGES += cpximg-6a08.bin
|
|
|
|
|
IMAGE/cpximg-6a08.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x690 3
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += compex_wpj344-16m
|
|
|
|
|
|
|
|
|
|
define Device/compex_wpj531-16m
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
DEVICE_VENDOR := Compex
|
|
|
|
|
DEVICE_MODEL := WPJ531
|
|
|
|
|
DEVICE_VARIANT := 16M
|
|
|
|
|
SUPPORTED_DEVICES += wpj531
|
|
|
|
|
IMAGES += cpximg-7a03.bin cpximg-7a04.bin cpximg-7a06.bin cpximg-7a07.bin
|
|
|
|
|
IMAGE/cpximg-7a03.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x68a 2
|
|
|
|
|
IMAGE/cpximg-7a04.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
|
|
|
|
|
IMAGE/cpximg-7a06.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
|
|
|
|
|
IMAGE/cpximg-7a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x693 3
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += compex_wpj531-16m
|
|
|
|
|
|
2021-06-08 17:52:18 +08:00
|
|
|
define Device/compex_wpj558-16m
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
DEVICE_VENDOR := Compex
|
|
|
|
|
DEVICE_MODEL := WPJ558
|
|
|
|
|
DEVICE_VARIANT := 16M
|
|
|
|
|
SUPPORTED_DEVICES += wpj558
|
|
|
|
|
IMAGES += cpximg-6a07.bin
|
|
|
|
|
IMAGE/cpximg-6a07.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | mkmylofw_16m 0x691 3
|
|
|
|
|
DEVICE_PACKAGES := kmod-gpio-beeper
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += compex_wpj558-16m
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/compex_wpj563
|
|
|
|
|
SOC := qca9563
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb3
|
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
|
DEVICE_VENDOR := Compex
|
|
|
|
|
DEVICE_MODEL := WPJ563
|
|
|
|
|
SUPPORTED_DEVICES += wpj563
|
|
|
|
|
IMAGES += cpximg-7a02.bin
|
|
|
|
|
IMAGE/cpximg-7a02.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | mkmylofw_16m 0x694 2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += compex_wpj563
|
|
|
|
|
|
2021-02-19 06:12:01 +08:00
|
|
|
define Device/devolo_dlan-pro-1200plus-ac
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Devolo
|
|
|
|
|
DEVICE_MODEL := dLAN pro 1200+ WiFi ac
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dlan-pro-1200plus-ac
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/devolo_dvl1200e
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1200e
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1200e
|
|
|
|
|
|
2019-02-13 18:38:22 +08:00
|
|
|
define Device/devolo_dvl1200i
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1200i
|
2019-02-13 18:38:22 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1200i
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/devolo_dvl1750c
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1750c
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1750c
|
|
|
|
|
|
2019-02-13 18:38:22 +08:00
|
|
|
define Device/devolo_dvl1750e
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1750e
|
2019-02-13 18:38:22 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1750e
|
|
|
|
|
|
|
|
|
|
define Device/devolo_dvl1750i
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1750i
|
2019-02-13 18:38:22 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1750i
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/devolo_dvl1750x
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := devolo
|
|
|
|
|
DEVICE_MODEL := WiFi pro 1750x
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_dvl1750x
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/devolo_magic-2-wifi
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Devolo
|
|
|
|
|
DEVICE_MODEL := Magic 2 WiFi
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += devolo_magic-2-wifi
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/dlink_dap-13xx
|
|
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_PACKAGES += rssileds
|
|
|
|
|
IMAGE_SIZE := 7936k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | mkdapimg2 0xE0000
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dap-1330-a1
|
|
|
|
|
$(Device/dlink_dap-13xx)
|
|
|
|
|
DEVICE_MODEL := DAP-1330
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1330
|
|
|
|
|
SUPPORTED_DEVICES += dap-1330-a1
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-1330-a1
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dap-1365-a1
|
|
|
|
|
$(Device/dlink_dap-13xx)
|
|
|
|
|
DEVICE_MODEL := DAP-1365
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DAP_SIGNATURE := HONEYBEE-FIRMWARE-DAP-1365
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-1365-a1
|
|
|
|
|
|
ath79: add support for D-Link DAP-2660 A1
Specifications:
* QCA9557, 16 MiB Flash, 128 MiB RAM, 802.11n 2T2R
* QCA9882, 802.11ac 2T2R
* Gigabit LAN Port (AR8035), 802.11af PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-09-30 02:02:17 +08:00
|
|
|
define Device/dlink_dap-2xxx
|
2020-12-28 07:41:51 +08:00
|
|
|
IMAGES += factory.img
|
ath79: add support for D-Link DAP-2660 A1
Specifications:
* QCA9557, 16 MiB Flash, 128 MiB RAM, 802.11n 2T2R
* QCA9882, 802.11ac 2T2R
* Gigabit LAN Port (AR8035), 802.11af PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-09-30 02:02:17 +08:00
|
|
|
IMAGE/factory.img := append-kernel | pad-offset 6144k 160 | \
|
|
|
|
|
append-rootfs | wrgg-pad-rootfs | mkwrggimg | check-size
|
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | mkwrggimg | \
|
2021-06-21 00:54:36 +08:00
|
|
|
pad-to $$$$(BLOCKSIZE) | append-rootfs | check-size | append-metadata
|
ath79: add support for D-Link DAP-2660 A1
Specifications:
* QCA9557, 16 MiB Flash, 128 MiB RAM, 802.11n 2T2R
* QCA9882, 802.11ac 2T2R
* Gigabit LAN Port (AR8035), 802.11af PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-09-30 02:02:17 +08:00
|
|
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
|
|
|
|
|
endef
|
|
|
|
|
|
ath79: add support for D-Link DAP-2230 A1
Specifications:
* QCA9533, 16 MiB Flash, 64 MiB RAM, 802.11n 2T2R
* 10/100 Ethernet Port, 802.11af PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-06-17 06:11:37 +08:00
|
|
|
define Device/dlink_dap-2230-a1
|
|
|
|
|
$(Device/dlink_dap-2xxx)
|
|
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DAP-2230
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DAP_SIGNATURE := wapn31_dkbs_dap2230
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-2230-a1
|
|
|
|
|
|
ath79: add support for D-Link DAP-2660 A1
Specifications:
* QCA9557, 16 MiB Flash, 128 MiB RAM, 802.11n 2T2R
* QCA9882, 802.11ac 2T2R
* Gigabit LAN Port (AR8035), 802.11af PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-09-30 02:02:17 +08:00
|
|
|
define Device/dlink_dap-2660-a1
|
|
|
|
|
$(Device/dlink_dap-2xxx)
|
|
|
|
|
SOC := qca9557
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DAP-2660
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DAP_SIGNATURE := wapac09_dkbs_dap2660
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-2660-a1
|
|
|
|
|
|
ath79: add support for D-Link DAP-2680 A1
Specifications:
* QCA9558, 16 MiB Flash, 256 MiB RAM, 802.11n 3T3R
* QCA9984, 802.11ac Wave 2 3T3R
* Gigabit LAN Port (AR8035), 802.11at PoE
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-12-03 04:31:19 +08:00
|
|
|
define Device/dlink_dap-2680-a1
|
|
|
|
|
$(Device/dlink_dap-2xxx)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DAP-2680
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct kmod-ath10k-ct
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
DAP_SIGNATURE := wapac36_dkbs_dap2680
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-2680-a1
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/dlink_dap-2695-a1
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
2021-08-24 04:34:43 +08:00
|
|
|
DEVICE_MODEL := DAP-2695
|
2020-09-06 18:27:54 +08:00
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
IMAGES := factory.img sysupgrade.bin
|
|
|
|
|
IMAGE_SIZE := 15360k
|
|
|
|
|
IMAGE/default := append-kernel | pad-offset 65536 160
|
|
|
|
|
IMAGE/factory.img := $$(IMAGE/default) | append-rootfs | wrgg-pad-rootfs | \
|
|
|
|
|
mkwrggimg | check-size
|
|
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | mkwrggimg | append-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
wrgg-pad-rootfs | check-size | append-metadata
|
2020-09-06 18:27:54 +08:00
|
|
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | mkwrggimg
|
|
|
|
|
DAP_SIGNATURE := wapac02_dkbs_dap2695
|
|
|
|
|
SUPPORTED_DEVICES += dap-2695-a1
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-2695-a1
|
|
|
|
|
|
ath79: add support for D-Link DAP-3320 A1
Specifications:
* QCA9533, 16 MiB Flash, 64 MiB RAM, 802.11n 2T2R
* 10/100 Ethernet Port, 802.11af PoE
* IP55 pole-mountable outdoor case
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
2020-12-01 03:09:29 +08:00
|
|
|
define Device/dlink_dap-3320-a1
|
|
|
|
|
$(Device/dlink_dap-2xxx)
|
|
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DAP-3320
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
IMAGE_SIZE := 15296k
|
|
|
|
|
DAP_SIGNATURE := wapn29_dkbs_dap3320
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-3320-a1
|
|
|
|
|
|
ath79: add support for D-Link DAP-3662 A1
Specifications:
* QCA9557, 16 MiB Flash, 128 MiB RAM, 802.11n 2T2R
* QCA9882, 802.11ac 2T2R
* 2x Gigabit LAN (1x 802.11af PoE)
* IP68 pole-mountable outdoor case
Installation:
* Factory Web UI is at 192.168.0.50
login with 'admin' and blank password, flash factory.bin
* Recovery Web UI is at 192.168.0.50
connect network cable, hold reset button during power-on and keep it
pressed until uploading has started (only required when checksum is ok,
e.g. for reverting back to oem firmware), flash factory.bin
After flashing factory.bin, additional free space can be reclaimed by
flashing sysupgrade.bin, since the factory image requires some padding
to be accepted for upgrading via OEM Web UI.
Both ethernet ports are set to LAN by default, matching the labelling on
the case. However, since both GMAC Interfaces eth0 and eth1 are connected
to the switch (QCA8337), the user may create an additional 'wan' interface
as desired and override the vlan id settings to map br-lan / wan to either
the PoE or non-PoE port, depending on the individual scenario of use.
So, the LAN and WAN ports would then be connected to different GMACs, e.g.
config interface 'lan'
option ifname 'eth0.1'
...
config interface 'wan'
option ifname 'eth1.2'
...
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '2 6t'
Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
[add configuration example]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-12-02 05:34:34 +08:00
|
|
|
define Device/dlink_dap-3662-a1
|
|
|
|
|
$(Device/dlink_dap-2xxx)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DAP-3662
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
|
|
|
|
IMAGE_SIZE := 15296k
|
|
|
|
|
DAP_SIGNATURE := wapac11_dkbs_dap3662
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dap-3662-a1
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/dlink_dch-g020-a1
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DCH-G020
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DEVICE_PACKAGES := kmod-gpio-pca953x kmod-i2c-gpio kmod-usb2 kmod-usb-acm
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE_SIZE := 14784k
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | mkdapimg2 0x20000
|
|
|
|
|
DAP_SIGNATURE := HONEYBEE-FIRMWARE-DCH-G020
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dch-g020-a1
|
|
|
|
|
|
2020-02-03 23:45:16 +08:00
|
|
|
define Device/dlink_dir-505
|
|
|
|
|
SOC := ar9330
|
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-505
|
|
|
|
|
IMAGE_SIZE := 7680k
|
2021-10-21 21:51:48 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
2020-02-03 23:45:16 +08:00
|
|
|
SUPPORTED_DEVICES += dir-505-a1
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-505
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/dlink_dir-825-b1
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-825
|
|
|
|
|
DEVICE_VARIANT := B1
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 6208k
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
|
|
|
|
|
kmod-leds-reset kmod-owl-loader
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += dir-825-b1
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-825-b1
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dir-825-c1
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-825
|
|
|
|
|
DEVICE_VARIANT := C1
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset \
|
|
|
|
|
kmod-owl-loader
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += dir-825-c1
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
IMAGES := factory.bin sysupgrade.bin
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
|
|
|
|
|
pad-rootfs
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-string 00DB120AR9344-RT-101214-00 | check-size
|
2021-06-21 00:54:36 +08:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-825-c1
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dir-835-a1
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-835
|
|
|
|
|
DEVICE_VARIANT := A1
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-leds-reset kmod-owl-loader
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += dir-835-a1
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
IMAGES := factory.bin sysupgrade.bin
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
|
|
|
|
|
pad-rootfs
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-string 00DB120AR9344-RT-101214-00 | check-size
|
2021-06-21 00:54:36 +08:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-835-a1
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/dlink_dir-842-c
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-842
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | seama
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
SEAMA_MTDBLOCK := 5
|
|
|
|
|
SEAMA_SIGNATURE := wrgac65_dlink.2015_dir842
|
|
|
|
|
# 64 bytes offset:
|
|
|
|
|
# - 28 bytes seama_header
|
|
|
|
|
# - 36 bytes of META data (4-bytes aligned)
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/default := append-kernel | uImage lzma | \
|
|
|
|
|
pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
|
|
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
|
2020-03-10 21:58:27 +08:00
|
|
|
seama-seal | check-size
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE_SIZE := 15680k
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dir-842-c1
|
|
|
|
|
$(Device/dlink_dir-842-c)
|
|
|
|
|
DEVICE_VARIANT := C1
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-842-c1
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dir-842-c2
|
|
|
|
|
$(Device/dlink_dir-842-c)
|
|
|
|
|
DEVICE_VARIANT := C2
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-842-c2
|
|
|
|
|
|
|
|
|
|
define Device/dlink_dir-842-c3
|
|
|
|
|
$(Device/dlink_dir-842-c)
|
|
|
|
|
DEVICE_VARIANT := C3
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-842-c3
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/dlink_dir-859-a1
|
|
|
|
|
$(Device/seama)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
|
DEVICE_MODEL := DIR-859
|
|
|
|
|
DEVICE_VARIANT := A1
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15872k
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += dlink_dir-859-a1
|
|
|
|
|
|
|
|
|
|
define Device/elecom_wrc-1750ghbk2-i
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := ELECOM
|
|
|
|
|
DEVICE_MODEL := WRC-1750GHBK2-I/C
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15808k
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
|
|
|
|
|
add-elecom-factory-initramfs RN68 WRC-1750GHBK2
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += elecom_wrc-1750ghbk2-i
|
|
|
|
|
|
|
|
|
|
define Device/elecom_wrc-300ghbk2-i
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := ELECOM
|
|
|
|
|
DEVICE_MODEL := WRC-300GHBK2-I
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7616k
|
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | pad-to 2 | \
|
|
|
|
|
add-elecom-factory-initramfs RN51 WRC-300GHBK2-I
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += elecom_wrc-300ghbk2-i
|
|
|
|
|
|
|
|
|
|
define Device/embeddedwireless_dorin
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Embedded Wireless
|
|
|
|
|
DEVICE_MODEL := Dorin
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += embeddedwireless_dorin
|
|
|
|
|
|
2021-01-30 12:20:16 +08:00
|
|
|
define Device/engenius_eap1200h
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
2021-01-30 12:20:16 +08:00
|
|
|
SOC := qca9557
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
2021-01-30 12:20:16 +08:00
|
|
|
DEVICE_MODEL := EAP1200H
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 11584k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := ar71xx-generic-eap1200h
|
2021-01-30 12:20:16 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_eap1200h
|
|
|
|
|
|
ath79: add support for Senao Engenius EAP300 v2
FCC ID: A8J-EAP300A
Engenius EAP300 v2 is an indoor wireless access point with a
100/10-BaseT ethernet port, 2.4 GHz wireless, internal antennas,
and 802.3af PoE.
**Specification:**
- AR9341
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 64 MB RAM
- UART at J1 (populated)
- Ethernet port with POE
- internal antennas
- 3 LEDs, 1 button (power, eth, wlan) (reset)
**MAC addresses:**
phy0 *:d3 art 0x1002 (label)
eth0 *:d4 art 0x0/0x6
**Installation:**
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
**Return to OEM:**
If you have a serial cable, see Serial Failsafe instructions
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, can cause kernel loop or halt
The easiest way to return to the OEM software is the Failsafe image
If you dont have a serial cable, you can ssh into openwrt and run
`mtd -r erase fakeroot`
Wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
**TFTP recovery** (unstable / not reliable):
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board while holding or pressing reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
**Format of OEM firmware image:**
The OEM software of EAP300 v2 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel size to be no greater than 1536k
and otherwise the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[clarify MAC address section, bump PKG_RELEASE for uboot-envtools]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-05 08:32:27 +08:00
|
|
|
define Device/engenius_eap300-v2
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
ath79: add support for Senao Engenius EAP300 v2
FCC ID: A8J-EAP300A
Engenius EAP300 v2 is an indoor wireless access point with a
100/10-BaseT ethernet port, 2.4 GHz wireless, internal antennas,
and 802.3af PoE.
**Specification:**
- AR9341
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 64 MB RAM
- UART at J1 (populated)
- Ethernet port with POE
- internal antennas
- 3 LEDs, 1 button (power, eth, wlan) (reset)
**MAC addresses:**
phy0 *:d3 art 0x1002 (label)
eth0 *:d4 art 0x0/0x6
**Installation:**
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
**Return to OEM:**
If you have a serial cable, see Serial Failsafe instructions
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, can cause kernel loop or halt
The easiest way to return to the OEM software is the Failsafe image
If you dont have a serial cable, you can ssh into openwrt and run
`mtd -r erase fakeroot`
Wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
**TFTP recovery** (unstable / not reliable):
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board while holding or pressing reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
**Format of OEM firmware image:**
The OEM software of EAP300 v2 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel size to be no greater than 1536k
and otherwise the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[clarify MAC address section, bump PKG_RELEASE for uboot-envtools]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-05 08:32:27 +08:00
|
|
|
SOC := ar9341
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
ath79: add support for Senao Engenius EAP300 v2
FCC ID: A8J-EAP300A
Engenius EAP300 v2 is an indoor wireless access point with a
100/10-BaseT ethernet port, 2.4 GHz wireless, internal antennas,
and 802.3af PoE.
**Specification:**
- AR9341
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 64 MB RAM
- UART at J1 (populated)
- Ethernet port with POE
- internal antennas
- 3 LEDs, 1 button (power, eth, wlan) (reset)
**MAC addresses:**
phy0 *:d3 art 0x1002 (label)
eth0 *:d4 art 0x0/0x6
**Installation:**
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
**Return to OEM:**
If you have a serial cable, see Serial Failsafe instructions
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, can cause kernel loop or halt
The easiest way to return to the OEM software is the Failsafe image
If you dont have a serial cable, you can ssh into openwrt and run
`mtd -r erase fakeroot`
Wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
**TFTP recovery** (unstable / not reliable):
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board while holding or pressing reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
**Format of OEM firmware image:**
The OEM software of EAP300 v2 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel size to be no greater than 1536k
and otherwise the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[clarify MAC address section, bump PKG_RELEASE for uboot-envtools]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-05 08:32:27 +08:00
|
|
|
DEVICE_MODEL := EAP300
|
|
|
|
|
DEVICE_VARIANT := v2
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 12096k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := senao-eap300v2
|
ath79: add support for Senao Engenius EAP300 v2
FCC ID: A8J-EAP300A
Engenius EAP300 v2 is an indoor wireless access point with a
100/10-BaseT ethernet port, 2.4 GHz wireless, internal antennas,
and 802.3af PoE.
**Specification:**
- AR9341
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 64 MB RAM
- UART at J1 (populated)
- Ethernet port with POE
- internal antennas
- 3 LEDs, 1 button (power, eth, wlan) (reset)
**MAC addresses:**
phy0 *:d3 art 0x1002 (label)
eth0 *:d4 art 0x0/0x6
**Installation:**
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
**Return to OEM:**
If you have a serial cable, see Serial Failsafe instructions
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, can cause kernel loop or halt
The easiest way to return to the OEM software is the Failsafe image
If you dont have a serial cable, you can ssh into openwrt and run
`mtd -r erase fakeroot`
Wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
**TFTP recovery** (unstable / not reliable):
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board while holding or pressing reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
**Format of OEM firmware image:**
The OEM software of EAP300 v2 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel size to be no greater than 1536k
and otherwise the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[clarify MAC address section, bump PKG_RELEASE for uboot-envtools]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-05 08:32:27 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_eap300-v2
|
|
|
|
|
|
ath79: add support for Senao Engenius EAP600
FCC ID: A8J-EAP600
Engenius EAP600 is a wireless access point with 1 gigabit ethernet port,
dual-band wireless, external ethernet switch, 4 internal antennas
and 802.3af PoE.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 5 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz, wps) (reset)
- 4 internal antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
eth0 MAC 1 *:5e ---
phy1 MAC 2 *:5f --- (2.4 GHz)
phy0 ----- *:60 art 0x0 (5 GHz)
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of EAP600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-eap600-uImage-lzma.bin
openwrt-senao-eap600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the EAP series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-10-10 00:28:11 +08:00
|
|
|
define Device/engenius_eap600
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
ath79: add support for Senao Engenius EAP600
FCC ID: A8J-EAP600
Engenius EAP600 is a wireless access point with 1 gigabit ethernet port,
dual-band wireless, external ethernet switch, 4 internal antennas
and 802.3af PoE.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 5 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz, wps) (reset)
- 4 internal antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
eth0 MAC 1 *:5e ---
phy1 MAC 2 *:5f --- (2.4 GHz)
phy0 ----- *:60 art 0x0 (5 GHz)
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of EAP600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-eap600-uImage-lzma.bin
openwrt-senao-eap600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the EAP series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-10-10 00:28:11 +08:00
|
|
|
SOC := ar9344
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
ath79: add support for Senao Engenius EAP600
FCC ID: A8J-EAP600
Engenius EAP600 is a wireless access point with 1 gigabit ethernet port,
dual-band wireless, external ethernet switch, 4 internal antennas
and 802.3af PoE.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 5 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz, wps) (reset)
- 4 internal antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
eth0 MAC 1 *:5e ---
phy1 MAC 2 *:5f --- (2.4 GHz)
phy0 ----- *:60 art 0x0 (5 GHz)
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of EAP600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-eap600-uImage-lzma.bin
openwrt-senao-eap600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the EAP series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-10-10 00:28:11 +08:00
|
|
|
DEVICE_MODEL := EAP600
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 12096k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := senao-eap600
|
ath79: add support for Senao Engenius EAP600
FCC ID: A8J-EAP600
Engenius EAP600 is a wireless access point with 1 gigabit ethernet port,
dual-band wireless, external ethernet switch, 4 internal antennas
and 802.3af PoE.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 5 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz, wps) (reset)
- 4 internal antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
eth0 MAC 1 *:5e ---
phy1 MAC 2 *:5f --- (2.4 GHz)
phy0 ----- *:60 art 0x0 (5 GHz)
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of EAP600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-eap600-uImage-lzma.bin
openwrt-senao-eap600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the EAP series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-10-10 00:28:11 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_eap600
|
|
|
|
|
|
ath79: add support for Senao Engenius ECB1200
FCC ID: A8J-ECB1200
Engenius ECB1200 is an indoor wireless access point with a GbE port,
2.4 GHz and 5 GHz wireless, external antennas, and 802.3af PoE.
**Specification:**
- QCA9557 SOC MIPS, 2.4 GHz (2x2)
- QCA9882 WLAN PCIe card, 5 GHz (2x2)
- AR8035-A switch RGMII, GbE with 802.3af PoE, 25 MHz clock
- 40 MHz reference clock
- 16 MB FLASH 25L12845EMI-10G
- 2x 64 MB RAM 1538ZFZ V59C1512164QEJ25
- UART at JP1 (unpopulated, RX shorted to ground)
- 4 external antennas
- 4 LEDs, 1 button (power, eth, wifi2g, wifi5g) (reset)
**MAC addresses:**
MAC Addresses are labeled as ETH and 5GHZ
U-boot environment has the vendor MAC addresses
MAC addresses in ART do not match vendor
eth0 ETH *:5c u-boot-env ethaddr
phy0 5GHZ *:5d u-boot-env athaddr
---- ---- ???? art 0x0/0x6
**Installation:**
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
(see TFTP recovery)
perform a sysupgrade
**Serial Access:**
the RX line on the board for UART is shorted to ground by resistor R176
therefore it must be removed to use the console
but it is not necessary to remove to view boot log
optionally, R175 can be replaced with a solder bridge short
the resistors R175 and R176 are next to the UART pinout at JP1
**Return to OEM:**
If you have a serial cable, see Serial Failsafe instructions
Unlike most Engenius boards, this does not have a 'failsafe' image
the only way to return to OEM is TFTP or serial access to u-boot
**TFTP recovery:**
Unlike most Engenius boards, TFTP is reliable here
rename initramfs-kernel.bin to 'ap.bin'
make the file available on a TFTP server at 192.168.1.10
power board while holding or pressing reset button repeatedly
or with serial access:
run `tftpboot` or `run factory_boot` with initramfs-kernel.bin
then `bootm` with the load address
**Format of OEM firmware image:**
The OEM software of ECB1200 is a heavily modified version
of Openwrt Altitude Adjustment 12.09.
This Engenius board, like ECB1750, uses a proprietary header
with a unique Product ID. The header for factory.bin is
generated by the mksenaofw program included in openwrt.
**Note on PLL-data cells:**
The default PLL register values will not work
because of the AR8035 switch between
the SOC and the ethernet port.
For QCA955x series, the PLL registers for eth0 and eth1
can be see in the DTSI as 0x28 and 0x48 respectively.
Therefore the PLL registers can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x18050028 1` and `md 0x18050048 1`.
However the registers that u-boot sets are not ideal and sometimes wrong...
the at803x driver supports setting the RGMII clock/data delay on the PHY side.
This way the pll-data register only needs to handle invert and phase.
for this board clock invert is needed on the MAC side
all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-11-01 09:23:33 +08:00
|
|
|
define Device/engenius_ecb1200
|
|
|
|
|
SOC := qca9557
|
|
|
|
|
DEVICE_VENDOR := EnGenius
|
|
|
|
|
DEVICE_MODEL := ECB1200
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
|
|
|
|
IMAGE_SIZE := 15680k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
|
|
|
|
senao-header -r 0x101 -p 0x6e -t 2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_ecb1200
|
|
|
|
|
|
2020-09-26 02:04:54 +08:00
|
|
|
define Device/engenius_ecb1750
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := EnGenius
|
|
|
|
|
DEVICE_MODEL := ECB1750
|
2020-11-27 08:11:15 +08:00
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
|
2020-09-26 02:04:54 +08:00
|
|
|
IMAGE_SIZE := 15680k
|
2020-11-27 08:11:15 +08:00
|
|
|
IMAGES += factory.bin
|
2020-09-26 02:04:54 +08:00
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
|
|
|
|
senao-header -r 0x101 -p 0x6d -t 2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_ecb1750
|
|
|
|
|
|
ath79: add support for Senao Engenius ECB600
FCC ID: A8J-ECB600
Engenius ECB600 is a wireless access point with 1 gigabit PoE ethernet port,
dual-band wireless, external ethernet switch, and 4 external antennas.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 4 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz) (reset)
- 4 external antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
phy1 MAC 1 *:52 --- (2.4 GHz)
phy0 MAC 2 *:53 --- (5 GHz)
eth0 ----- *:54 art 0x0
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of ECB600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-ecb600-uImage-lzma.bin
openwrt-senao-ecb600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the ECB series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-09-16 01:44:39 +08:00
|
|
|
define Device/engenius_ecb600
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
ath79: add support for Senao Engenius ECB600
FCC ID: A8J-ECB600
Engenius ECB600 is a wireless access point with 1 gigabit PoE ethernet port,
dual-band wireless, external ethernet switch, and 4 external antennas.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 4 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz) (reset)
- 4 external antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
phy1 MAC 1 *:52 --- (2.4 GHz)
phy0 MAC 2 *:53 --- (5 GHz)
eth0 ----- *:54 art 0x0
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of ECB600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-ecb600-uImage-lzma.bin
openwrt-senao-ecb600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the ECB series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-09-16 01:44:39 +08:00
|
|
|
SOC := ar9344
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
ath79: add support for Senao Engenius ECB600
FCC ID: A8J-ECB600
Engenius ECB600 is a wireless access point with 1 gigabit PoE ethernet port,
dual-band wireless, external ethernet switch, and 4 external antennas.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 4 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz) (reset)
- 4 external antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
phy1 MAC 1 *:52 --- (2.4 GHz)
phy0 MAC 2 *:53 --- (5 GHz)
eth0 ----- *:54 art 0x0
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of ECB600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-ecb600-uImage-lzma.bin
openwrt-senao-ecb600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the ECB series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-09-16 01:44:39 +08:00
|
|
|
DEVICE_MODEL := ECB600
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 12096k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := senao-ecb600
|
ath79: add support for Senao Engenius ECB600
FCC ID: A8J-ECB600
Engenius ECB600 is a wireless access point with 1 gigabit PoE ethernet port,
dual-band wireless, external ethernet switch, and 4 external antennas.
Specification:
- AR9344 SOC (5 GHz, 2x2, WMAC)
- AR9382 WLAN (2.4 GHz, 2x2, PCIe on-board)
- AR8035-A switch (GbE with 802.3af PoE)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16DG
- UART at H1 (populated)
- 4 LEDs, 1 button (power, eth, 2.4 GHz, 5 GHz) (reset)
- 4 external antennas
MAC addresses:
MAC addresses are labeled MAC1 and MAC2
The MAC address in flash is not on the label
The OEM software reports these MACs for the ifconfig
phy1 MAC 1 *:52 --- (2.4 GHz)
phy0 MAC 2 *:53 --- (5 GHz)
eth0 ----- *:54 art 0x0
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Upgrade Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fdf0000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
Format of OEM firmware image:
The OEM software of ECB600 is a heavily modified version
of Openwrt Kamikaze. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-senao-ecb600-uImage-lzma.bin
openwrt-senao-ecb600-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
The OEM upgrade script is at /etc/fwupgrade.sh
Later models in the ECB series likely have a different platform
and the upgrade and image verification process differs.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8035-A switch between
the SOC and the ethernet PHY chips.
For AR934x series, the PLL register for GMAC0
can be seen in the DTSI as 0x2c.
Therefore the PLL register can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x1805002c 1`.
Unfortunately uboot did not have the best values
so they were taken from other similar DTS files.
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2020-09-16 01:44:39 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_ecb600
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/engenius_ens202ext-v1
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
2020-09-06 18:27:54 +08:00
|
|
|
SOC := ar9341
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
2020-09-06 18:27:54 +08:00
|
|
|
DEVICE_MODEL := ENS202EXT
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := rssileds
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 12096k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := senao-ens202ext
|
2020-09-06 18:27:54 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_ens202ext-v1
|
|
|
|
|
|
ath79: add support for Senao Engenius EnStationAC v1
FCC ID: A8J-ENSTAC
Engenius EnStationAC v1 is an outdoor wireless access point/bridge with
2 gigabit ethernet ports on 2 external ethernet switches,
5 GHz only wireless, internal antenna plates, and proprietery PoE.
Specification:
- QCA9557 SOC
- QCA9882 WLAN (PCI card, 5 GHz, 2x2, 26dBm)
- AR8035-A switch (RGMII GbE with PoE+ IN)
- AR8031 switch (SGMII GbE with PoE OUT)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16FG
- UART at J10 (unpopulated)
- internal antenna plates (19 dbi, directional)
- 7 LEDs, 1 button (power, eth, wlan, RSSI) (reset)
MAC addresses:
MAC addresses are labeled as ETH and 5GHz
Vendor MAC addresses in flash are duplicate
eth0 ETH *:d3 art 0x0/0x6
eth1 ---- *:d4 ---
phy0 5GHz *:d5 ---
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fd70000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
TFTP recovery:
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board
hold or press reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
Format of OEM firmware image:
The OEM software of EnStationAC is a heavily modified version
of Openwrt Altitude Adjustment 12.09. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-ar71xx-enstationac-uImage-lzma.bin
openwrt-ar71xx-enstationac-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
Newer EnGenius software requires more checks but their script
includes a way to skip them, otherwise the tar must include
a text file with the version and md5sums in a deprecated format.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would otherwise
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8033 switch between
the SOC and the ethernet PHY chips.
For QCA955x series, the PLL registers for eth0 and eth1
can be see in the DTSI as 0x28 and 0x48 respectively.
Therefore the PLL registers can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x18050028 1` and `md 0x18050048 1`.
For eth0 at 1000 speed, the value returned was
ae000000 but that didn't work, so following
the logical pattern from the rest of the values,
the guessed value of a3000000 works better.
later discovered that delay can be placed on the PHY end only
with phy-mode as 'rgmii-id' and set register to 0x82...
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[fixed SoB to match From:]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-08-25 12:17:28 +08:00
|
|
|
define Device/engenius_enstationac-v1
|
2021-02-13 02:24:32 +08:00
|
|
|
$(Device/senao_loader_okli)
|
ath79: add support for Senao Engenius EnStationAC v1
FCC ID: A8J-ENSTAC
Engenius EnStationAC v1 is an outdoor wireless access point/bridge with
2 gigabit ethernet ports on 2 external ethernet switches,
5 GHz only wireless, internal antenna plates, and proprietery PoE.
Specification:
- QCA9557 SOC
- QCA9882 WLAN (PCI card, 5 GHz, 2x2, 26dBm)
- AR8035-A switch (RGMII GbE with PoE+ IN)
- AR8031 switch (SGMII GbE with PoE OUT)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16FG
- UART at J10 (unpopulated)
- internal antenna plates (19 dbi, directional)
- 7 LEDs, 1 button (power, eth, wlan, RSSI) (reset)
MAC addresses:
MAC addresses are labeled as ETH and 5GHz
Vendor MAC addresses in flash are duplicate
eth0 ETH *:d3 art 0x0/0x6
eth1 ---- *:d4 ---
phy0 5GHz *:d5 ---
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fd70000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
TFTP recovery:
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board
hold or press reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
Format of OEM firmware image:
The OEM software of EnStationAC is a heavily modified version
of Openwrt Altitude Adjustment 12.09. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-ar71xx-enstationac-uImage-lzma.bin
openwrt-ar71xx-enstationac-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
Newer EnGenius software requires more checks but their script
includes a way to skip them, otherwise the tar must include
a text file with the version and md5sums in a deprecated format.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would otherwise
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8033 switch between
the SOC and the ethernet PHY chips.
For QCA955x series, the PLL registers for eth0 and eth1
can be see in the DTSI as 0x28 and 0x48 respectively.
Therefore the PLL registers can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x18050028 1` and `md 0x18050048 1`.
For eth0 at 1000 speed, the value returned was
ae000000 but that didn't work, so following
the logical pattern from the rest of the values,
the guessed value of a3000000 works better.
later discovered that delay can be placed on the PHY end only
with phy-mode as 'rgmii-id' and set register to 0x82...
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[fixed SoB to match From:]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-08-25 12:17:28 +08:00
|
|
|
SOC := qca9557
|
2021-02-13 02:24:32 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
ath79: add support for Senao Engenius EnStationAC v1
FCC ID: A8J-ENSTAC
Engenius EnStationAC v1 is an outdoor wireless access point/bridge with
2 gigabit ethernet ports on 2 external ethernet switches,
5 GHz only wireless, internal antenna plates, and proprietery PoE.
Specification:
- QCA9557 SOC
- QCA9882 WLAN (PCI card, 5 GHz, 2x2, 26dBm)
- AR8035-A switch (RGMII GbE with PoE+ IN)
- AR8031 switch (SGMII GbE with PoE OUT)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16FG
- UART at J10 (unpopulated)
- internal antenna plates (19 dbi, directional)
- 7 LEDs, 1 button (power, eth, wlan, RSSI) (reset)
MAC addresses:
MAC addresses are labeled as ETH and 5GHz
Vendor MAC addresses in flash are duplicate
eth0 ETH *:d3 art 0x0/0x6
eth1 ---- *:d4 ---
phy0 5GHz *:d5 ---
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fd70000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
TFTP recovery:
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board
hold or press reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
Format of OEM firmware image:
The OEM software of EnStationAC is a heavily modified version
of Openwrt Altitude Adjustment 12.09. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-ar71xx-enstationac-uImage-lzma.bin
openwrt-ar71xx-enstationac-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
Newer EnGenius software requires more checks but their script
includes a way to skip them, otherwise the tar must include
a text file with the version and md5sums in a deprecated format.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would otherwise
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8033 switch between
the SOC and the ethernet PHY chips.
For QCA955x series, the PLL registers for eth0 and eth1
can be see in the DTSI as 0x28 and 0x48 respectively.
Therefore the PLL registers can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x18050028 1` and `md 0x18050048 1`.
For eth0 at 1000 speed, the value returned was
ae000000 but that didn't work, so following
the logical pattern from the rest of the values,
the guessed value of a3000000 works better.
later discovered that delay can be placed on the PHY end only
with phy-mode as 'rgmii-id' and set register to 0x82...
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[fixed SoB to match From:]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-08-25 12:17:28 +08:00
|
|
|
DEVICE_MODEL := EnStationAC
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct rssileds
|
2021-02-25 11:55:09 +08:00
|
|
|
IMAGE_SIZE := 11584k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x220000
|
2021-02-13 02:24:32 +08:00
|
|
|
SENAO_IMGNAME := ar71xx-generic-enstationac
|
ath79: add support for Senao Engenius EnStationAC v1
FCC ID: A8J-ENSTAC
Engenius EnStationAC v1 is an outdoor wireless access point/bridge with
2 gigabit ethernet ports on 2 external ethernet switches,
5 GHz only wireless, internal antenna plates, and proprietery PoE.
Specification:
- QCA9557 SOC
- QCA9882 WLAN (PCI card, 5 GHz, 2x2, 26dBm)
- AR8035-A switch (RGMII GbE with PoE+ IN)
- AR8031 switch (SGMII GbE with PoE OUT)
- 40 MHz reference clock
- 16 MB FLASH MX25L12845EMI-10G
- 2x 64 MB RAM NT5TU32M16FG
- UART at J10 (unpopulated)
- internal antenna plates (19 dbi, directional)
- 7 LEDs, 1 button (power, eth, wlan, RSSI) (reset)
MAC addresses:
MAC addresses are labeled as ETH and 5GHz
Vendor MAC addresses in flash are duplicate
eth0 ETH *:d3 art 0x0/0x6
eth1 ---- *:d4 ---
phy0 5GHz *:d5 ---
Installation:
2 ways to flash factory.bin from OEM:
- if you get Failsafe Mode from failed flash:
only use it to flash Original firmware from Engenius
or risk kernel loop or halt which requires serial cable
Method 1: Firmware upgrade page:
OEM webpage at 192.168.1.1
username and password "admin"
Navigate to "Firmware" page from left pane
Click Browse and select the factory.bin image
Upload and verify checksum
Click Continue to confirm and wait 3 minutes
Method 2: Serial to load Failsafe webpage:
After connecting to serial console and rebooting...
Interrupt uboot with any key pressed rapidly
execute `run failsafe_boot` OR `bootm 0x9fd70000`
wait a minute
connect to ethernet and navigate to
"192.168.1.1/index.htm"
Select the factory.bin image and upload
wait about 3 minutes
Return to OEM:
If you have a serial cable, see Serial Failsafe instructions
otherwise, uboot-env can be used to make uboot load the failsafe image
*DISCLAIMER*
The Failsafe image is unique to Engenius boards.
If the failsafe image is missing or damaged this will not work
DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt
ssh into openwrt and run
`fw_setenv rootfs_checksum 0`
reboot, wait 3 minutes
connect to ethernet and navigate to 192.168.1.1/index.htm
select OEM firmware image from Engenius and click upgrade
TFTP recovery:
rename initramfs to 'vmlinux-art-ramdisk'
make available on TFTP server at 192.168.1.101
power board
hold or press reset button repeatedly
NOTE: for some Engenius boards TFTP is not reliable
try setting MTU to 600 and try many times
Format of OEM firmware image:
The OEM software of EnStationAC is a heavily modified version
of Openwrt Altitude Adjustment 12.09. One of the many modifications
is to the sysupgrade program. Image verification is performed
simply by the successful ungzip and untar of the supplied file
and name check and header verification of the resulting contents.
To form a factory.bin that is accepted by OEM Openwrt build,
the kernel and rootfs must have specific names...
openwrt-ar71xx-enstationac-uImage-lzma.bin
openwrt-ar71xx-enstationac-root.squashfs
and begin with the respective headers (uImage, squashfs).
Then the files must be tarballed and gzipped.
The resulting binary is actually a tar.gz file in disguise.
This can be verified by using binwalk on the OEM firmware images,
ungzipping then untaring.
Newer EnGenius software requires more checks but their script
includes a way to skip them, otherwise the tar must include
a text file with the version and md5sums in a deprecated format.
The OEM upgrade script is at /etc/fwupgrade.sh.
OKLI kernel loader is required because the OEM software
expects the kernel to be no greater than 1536k
and the factory.bin upgrade procedure would otherwise
overwrite part of the kernel when writing rootfs.
Note on PLL-data cells:
The default PLL register values will not work
because of the external AR8033 switch between
the SOC and the ethernet PHY chips.
For QCA955x series, the PLL registers for eth0 and eth1
can be see in the DTSI as 0x28 and 0x48 respectively.
Therefore the PLL registers can be read from uboot
for each link speed after attempting tftpboot
or another network action using that link speed
with `md 0x18050028 1` and `md 0x18050048 1`.
For eth0 at 1000 speed, the value returned was
ae000000 but that didn't work, so following
the logical pattern from the rest of the values,
the guessed value of a3000000 works better.
later discovered that delay can be placed on the PHY end only
with phy-mode as 'rgmii-id' and set register to 0x82...
Tested from master, all link speeds functional
Signed-off-by: Michael Pratt <mcpratt@pm.me>
[fixed SoB to match From:]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-08-25 12:17:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_enstationac-v1
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/engenius_epg5000
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
|
|
|
|
DEVICE_MODEL := EPG5000
|
2019-04-12 11:39:40 +08:00
|
|
|
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) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2019-04-12 11:39:40 +08:00
|
|
|
senao-header -r 0x101 -p 0x71 -t 2
|
|
|
|
|
SUPPORTED_DEVICES += epg5000
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_epg5000
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/engenius_ews511ap
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := EnGenius
|
|
|
|
|
DEVICE_MODEL := EWS511AP
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += engenius_ews511ap
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/enterasys_ws-ap3705i
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Enterasys
|
|
|
|
|
DEVICE_MODEL := WS-AP3705i
|
|
|
|
|
IMAGE_SIZE := 30528k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += enterasys_ws-ap3705i
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/etactica_eg200
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := eTactica
|
|
|
|
|
DEVICE_MODEL := EG200
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
|
2021-02-25 18:54:43 +08:00
|
|
|
kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += rme-eg200
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += etactica_eg200
|
|
|
|
|
|
2020-02-03 23:45:16 +08:00
|
|
|
define Device/glinet_6408
|
|
|
|
|
$(Device/tplink-8mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := 6408
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 8000k
|
|
|
|
|
TPLINK_HWID := 0x08000001
|
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
|
SUPPORTED_DEVICES += gl-inet
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_6408
|
|
|
|
|
|
|
|
|
|
define Device/glinet_6416
|
|
|
|
|
$(Device/tplink-16mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := 6416
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
TPLINK_HWID := 0x08000001
|
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
|
SUPPORTED_DEVICES += gl-inet
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_6416
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/glinet_gl-ar150
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9330
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := GL-AR150
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += gl-ar150
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-ar150
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/glinet_gl-ar300m-common-nor
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += gl-ar300m
|
|
|
|
|
endef
|
2019-04-12 11:39:40 +08:00
|
|
|
|
|
|
|
|
define Device/glinet_gl-ar300m-lite
|
|
|
|
|
$(Device/glinet_gl-ar300m-common-nor)
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := GL-AR300M
|
|
|
|
|
DEVICE_VARIANT := Lite
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-ar300m-lite
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/glinet_gl-ar300m16
|
2019-04-12 11:39:40 +08:00
|
|
|
$(Device/glinet_gl-ar300m-common-nor)
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := GL-AR300M16
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += glinet_gl-ar300m16
|
2019-01-03 19:29:28 +08:00
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/glinet_gl-ar750
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := GL-AR750
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
2019-12-02 21:55:49 +08:00
|
|
|
SUPPORTED_DEVICES += gl-ar750
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += glinet_gl-ar750
|
2019-01-03 19:29:28 +08:00
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/glinet_gl-mifi
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := GL.iNET
|
|
|
|
|
DEVICE_MODEL := GL-MiFi
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += gl-mifi
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-mifi
|
|
|
|
|
|
2020-11-25 01:53:39 +08:00
|
|
|
define Device/glinet_gl-usb150
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := GL.iNET
|
|
|
|
|
DEVICE_MODEL := GL-USB150
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += gl-usb150
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-usb150
|
|
|
|
|
|
2021-06-09 00:57:28 +08:00
|
|
|
define Device/glinet_gl-x300b
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := GL-X300B
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-x300b
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/glinet_gl-x750
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
|
DEVICE_MODEL := GL-X750
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += glinet_gl-x750
|
|
|
|
|
|
2020-08-19 20:20:54 +08:00
|
|
|
define Device/hak5_lan-turtle
|
|
|
|
|
$(Device/tplink-16mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Hak5
|
|
|
|
|
DEVICE_MODEL := LAN Turtle
|
|
|
|
|
TPLINK_HWID := 0x5348334c
|
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
|
|
|
|
|
-uboot-envtools -wpad-basic-wolfssl
|
|
|
|
|
SUPPORTED_DEVICES += lan-turtle
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += hak5_lan-turtle
|
|
|
|
|
|
2020-08-19 21:10:04 +08:00
|
|
|
define Device/hak5_packet-squirrel
|
|
|
|
|
$(Device/tplink-16mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Hak5
|
|
|
|
|
DEVICE_MODEL := Packet Squirrel
|
|
|
|
|
TPLINK_HWID := 0x5351524c
|
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 -iwinfo -kmod-ath9k -swconfig \
|
|
|
|
|
-uboot-envtools -wpad-basic-wolfssl
|
|
|
|
|
SUPPORTED_DEVICES += packet-squirrel
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += hak5_packet-squirrel
|
|
|
|
|
|
2020-08-19 22:01:25 +08:00
|
|
|
define Device/hak5_wifi-pineapple-nano
|
|
|
|
|
$(Device/tplink-16mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Hak5
|
|
|
|
|
DEVICE_MODEL := WiFi Pineapple NANO
|
|
|
|
|
TPLINK_HWID := 0x4e414e4f
|
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath9k-htc kmod-usb-chipidea2 kmod-usb-storage \
|
|
|
|
|
-swconfig -uboot-envtools
|
|
|
|
|
SUPPORTED_DEVICES += wifi-pineapple-nano
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += hak5_wifi-pineapple-nano
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/iodata_etg3-r
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9342
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
|
DEVICE_MODEL := ETG3-R
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7680k
|
2020-12-02 01:30:27 +08:00
|
|
|
DEVICE_PACKAGES := -iwinfo -kmod-ath9k -wpad-basic-wolfssl
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += iodata_etg3-r
|
|
|
|
|
|
|
|
|
|
define Device/iodata_wn-ac1167dgr
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9557
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
|
DEVICE_MODEL := WN-AC1167DGR
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 14656k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-02-03 23:45:16 +08:00
|
|
|
senao-header -r 0x30a -p 0x61 -t 2
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += iodata_wn-ac1167dgr
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/iodata_wn-ac1600dgr
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9557
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
|
DEVICE_MODEL := WN-AC1600DGR
|
2019-04-12 11:39:40 +08:00
|
|
|
IMAGE_SIZE := 14656k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-02-03 23:45:16 +08:00
|
|
|
senao-header -r 0x30a -p 0x60 -t 2 -v 200
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += iodata_wn-ac1600dgr
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/iodata_wn-ac1600dgr2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9557
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
|
DEVICE_MODEL := WN-AC1600DGR2/DGR3
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 14656k
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGES += dgr2-dgr3-factory.bin
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/dgr2-dgr3-factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-02-03 23:45:16 +08:00
|
|
|
senao-header -r 0x30a -p 0x60 -t 2 -v 200
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += iodata_wn-ac1600dgr2
|
|
|
|
|
|
|
|
|
|
define Device/iodata_wn-ag300dgr
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar1022
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
|
DEVICE_MODEL := WN-AG300DGR
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15424k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-02-03 23:45:16 +08:00
|
|
|
senao-header -r 0x30a -p 0x47 -t 2
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += iodata_wn-ag300dgr
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/jjplus_ja76pf2
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := jjPlus
|
|
|
|
|
DEVICE_MODEL := JA76PF2
|
2020-12-02 01:30:27 +08:00
|
|
|
DEVICE_PACKAGES += -kmod-ath9k -swconfig -wpad-basic-wolfssl -uboot-envtools fconfig
|
|
|
|
|
IMAGES += kernel.bin rootfs.bin
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE/kernel.bin := append-kernel
|
|
|
|
|
IMAGE/rootfs.bin := append-rootfs | pad-rootfs
|
2020-12-02 01:30:27 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | combined-image | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2019-04-12 11:39:40 +08:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | pad-to $$(BLOCKSIZE)
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb
|
|
|
|
|
IMAGE_SIZE := 16000k
|
2019-12-02 21:55:49 +08:00
|
|
|
SUPPORTED_DEVICES += ja76pf2
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += jjplus_ja76pf2
|
|
|
|
|
|
2021-12-03 00:05:18 +08:00
|
|
|
define Device/jjplus_jwap230
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := jjPlus
|
|
|
|
|
DEVICE_MODEL := JWAP230
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += jjplus_jwap230
|
|
|
|
|
|
2021-06-20 22:56:21 +08:00
|
|
|
define Device/joyit_jt-or750i
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Joy-IT
|
|
|
|
|
DEVICE_MODEL := JT-OR750i
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += joyit_jt-or750i
|
|
|
|
|
|
2021-09-29 00:25:01 +08:00
|
|
|
define Device/letv_lba-047-ch
|
|
|
|
|
$(Device/loader-okli-uimage)
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Letv
|
|
|
|
|
DEVICE_MODEL := LBA-047-CH
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
LOADER_FLASH_OFFS := 0x50000
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | pad-to 14528k | \
|
|
|
|
|
append-loader-okli-uimage $(1) | pad-to 64k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += letv_lba-047-ch
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/librerouter_librerouter-v1
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Librerouter
|
|
|
|
|
DEVICE_MODEL := LibreRouter
|
|
|
|
|
DEVICE_VARIANT := v1
|
2019-04-12 11:39:40 +08:00
|
|
|
IMAGE_SIZE := 7936k
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += librerouter_librerouter-v1
|
|
|
|
|
|
ath79: add support for Meraki MR12
Port device support for Meraki MR12 from the ar71xx target to ath79.
Specifications:
- SoC: AR7242-AH1A CPU
- RAM: 64MiB (NANYA NT5DS32M16DS-5T)
- NOR Flash: 16MiB (MXIC MX25L12845EMI-10G)
- Ethernet: 1 x PoE Gigabit Ethernet Port (SoC MAC + AR8021-BL1E PHY)
- Ethernet: 1 x 100Mbit port (SoC MAC+PHY)
- Wi-Fi: Atheros AR9283-AL1A (2T2R, 11n)
Installation:
1. Requires TFTP server at 192.168.1.101, w/ initramfs & sysupgrade .bins
2. Open shell case
3. Connect a USB->TTL cable to headers furthest from the RF shield
4. Power on the router; connect to U-boot over 115200-baud connection
5. Interrupt U-boot process to boot Openwrt by running:
setenv bootcmd bootm 0xbf0a0000; saveenv;
tftpboot 0c00000 <filename-of-initramfs-kernel>.bin;
bootm 0c00000;
6. Copy sysupgrade image to /tmp on MR12
7. sysupgrade /tmp/<filename-of-sysupgrade>.bin
Notes:
- kmod-owl-loader is still required to load the ART partition into the
driver.
- The manner of storing MAC addresses is updated from ar71xx; it is
at 0x66 of the 'config' partition, where it was discovered that the
OEM firmware stores it. This is set as read-only. If you are
migrating from ar71xx and used the method mentioned above to
upgrade, use kmod-mtd-rw or UCI to add the MAC back in. One more
method for doing this is described below.
- Migrating directly from ar71xx has not been thoroughly tested, but
one method has been used a couple of times with good success,
migrating 18.06.2 to a full image produced as of this commit. Please
note that these instructions are only for experienced users, and/or
those still able to open their device up to flash it via the serial
headers should anything go wrong.
1) Install kmod-mtd-rw and uboot-envtools
2) Run `insmod mtd-rw.ko i_want_a_brick=1`
3) Modify /etc/fw_env.config to point to the u-boot-env partition.
The file /etc/fw_env.config should contain:
# MTD device env offset env size sector size
/dev/mtd1 0x00000 0x10000 0x10000
See https://openwrt.org/docs/techref/bootloader/uboot.config
for more details.
4) Run `fw_printenv` to verify everything is correct, as per the
link above.
5) Run `fw_setenv bootcmd bootm 0xbf0a0000` to set a new boot address.
6) Manually modify /lib/upgrade/common.sh's get_image function:
Change ...
cat "$from" 2>/dev/null | $cmd
... into ...
(
dd if=/dev/zero bs=1 count=$((0x66)) ; # Pad the first 102 bytes
echo -ne '\x00\x18\x0a\x12\x34\x56' ; # Add in MAC address
dd if=/dev/zero bs=1 count=$((0x20000-0x66-0x6)) ; # Pad the rest
cat "$from" 2>/dev/null
) | $cmd
... which, during the upgrade process, will pad the image by
128K of zeroes-plus-MAC-address, in order for the ar71xx's
firmware partition -- which starts at 0xbf080000 -- to be
instead aligned with the ath79 firmware partition, which
starts 128K later at 0xbf0a0000.
7) Copy the sysupgrade image into /tmp, as above
8) Run `sysupgrade -F /tmp/<sysupgrade>.bin`, then wait
Again, this may BRICK YOUR DEVICE, so make *sure* to have your
serial cable handy.
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
[add LED migration and extend compat message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-11-28 10:03:32 +08:00
|
|
|
define Device/meraki_mr12
|
|
|
|
|
SOC := ar7242
|
|
|
|
|
DEVICE_VENDOR := Meraki
|
|
|
|
|
DEVICE_MODEL := MR12
|
|
|
|
|
IMAGE_SIZE := 15616k
|
|
|
|
|
DEVICE_PACKAGES := kmod-owl-loader rssileds
|
|
|
|
|
SUPPORTED_DEVICES += mr12
|
|
|
|
|
DEVICE_COMPAT_VERSION := 2.0
|
|
|
|
|
DEVICE_COMPAT_MESSAGE := Partitions differ from ar71xx version of MR12. Image format is incompatible. \
|
|
|
|
|
To use sysupgrade, you must change /lib/update/common.sh::get_image to prepend 128K zeroes to this image, \
|
|
|
|
|
and change the bootcmd in u-boot to "bootm 0xbf0a0000". After that, you can use "sysupgrade -F -n". \
|
|
|
|
|
Make sure you do not keep your old config, as ethernet setup is not compatible either. \
|
|
|
|
|
For more details, see the OpenWrt Wiki: https://openwrt.org/toh/meraki/MR12, \
|
|
|
|
|
or the commit message of the MR12 ath79 port on git.openwrt.org.
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += meraki_mr12
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/meraki_mr16
|
|
|
|
|
SOC := ar7161
|
|
|
|
|
DEVICE_VENDOR := Meraki
|
|
|
|
|
DEVICE_MODEL := MR16
|
|
|
|
|
IMAGE_SIZE := 15616k
|
|
|
|
|
DEVICE_PACKAGES := kmod-owl-loader
|
|
|
|
|
SUPPORTED_DEVICES += mr16
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += meraki_mr16
|
|
|
|
|
|
2020-09-05 19:03:09 +08:00
|
|
|
define Device/mercury_mw4530r-v1
|
|
|
|
|
$(Device/tplink-8mlzma)
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Mercury
|
|
|
|
|
DEVICE_MODEL := MW4530R
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
|
|
|
|
TPLINK_HWID := 0x45300001
|
|
|
|
|
SUPPORTED_DEVICES += tl-wdr4300
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += mercury_mw4530r-v1
|
|
|
|
|
|
ath79: add support for NEC Aterm WF1200CR
NEC Aterm WF1200CR is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
QCA9561.
Specification:
- SoC : Qualcomm Atheros QCA9561
- RAM : DDR2 128 MiB (W971GG6SB-25)
- Flash : SPI-NOR 8 MiB (MX25L6433FM2I-08G)
- WLAN : 2.4/5 GHz 2T2R
- 2.4 GHz : QCA9561 (SoC)
- 5 GHz : QCA9888
- Ethernet : 2x 10/100 Mbps
- Switch : QCA9561 (SoC)
- LEDs/Keys : 8x/3x (2x buttons, 1x slide-switch)
- UART : through-hole on PCB
- JP1: Vcc, GND, NC, TX, RX from "JP1" marking
- 115200n8
- Power : 12 VDC, 0.9 A
Flash instruction using factory image (stock: < v1.3.2):
1. Boot WF1200CR normally with "Router" mode
2. Access to "http://192.168.10.1/" and open firmware update page
("ファームウェア更新")
3. Select the OpenWrt factory image and click update ("更新") button to
perform firmware update
4. Wait ~150 seconds to complete flashing
Alternate flash instruction using initramfs image (stock: >= v1.3.2):
1. Prepare the TFTP server with the IP address 192.168.1.10 and place
the OpenWrt initramfs image to the TFTP directory with the name
"0101A8C0.img"
2. Connect serial console to WF1200CR
3. Boot WF1200CR and interrupt with any key after the message
"Hit any key to stop autoboot: 2", the U-Boot starts telnetd after
the message "starting telnetd server from server 192.168.1.1"
4. login the telnet (address: 192.168.1.1)
5. Perform the following commands to modify "bootcmd" variable
temporary and check the value
(to ignore the limitation of available commands, "tp; " command at
the first is required as dummy, and the output of "printenv" is
printed on the serial console)
tp; set bootcmd 'set autostart yes; tftpboot'
tp; printenv
6. Save the modified variable with the following command and reset
device
tp; saveenv
tp; reset
7. The U-Boot downloads initramfs image from TFTP server and boots it
8. On initramfs image, download the sysupgrade image to the device and
perform the following commands to erase stock firmware and sysupgrade
mtd erase firmware
sysupgrade <sysupgrade image>
9. After the rebooting by completion of sysupgrade, start U-Boot telnetd
and login with the same way above (3, 4)
10. Perform the following commands to reset "bootcmd" variable to the
default and reset the device
tp; run seattle
tp; reset
(the contents of "seattle":
setenv bootcmd 'bootm 0x9f070040' && saveenv)
11. Wait booting-up the device
Known issues:
- the following 6x LEDs are connected to the gpio controller on QCA9888
chip and the implementation of control via the controller is missing in
ath10k/ath10k-ct
- "ACTIVE" (Red/Green)
- "2.4GHz" (Red/Green)
- "5GHz" (Red/Green)
Note:
- after the version v1.3.2 of stock firmware, "offline update" by
uploading image by user is deleted and the factory image cannot be
used
- the U-Boot on WF1200CR doesn't configure the port-side LEDs on WAN/LAN
and the configuration is required on OpenWrt
- gpio-hog: set the direction of GPIO 14(WAN)/19(LAN) to output
- pinmux: set GPIO 14/19 as switch-controlled LEDs
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2021-03-24 23:19:59 +08:00
|
|
|
define Device/nec_wx1200cr
|
|
|
|
|
DEVICE_VENDOR := NEC
|
|
|
|
|
IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs
|
|
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | seama | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
ath79: add support for NEC Aterm WF1200CR
NEC Aterm WF1200CR is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
QCA9561.
Specification:
- SoC : Qualcomm Atheros QCA9561
- RAM : DDR2 128 MiB (W971GG6SB-25)
- Flash : SPI-NOR 8 MiB (MX25L6433FM2I-08G)
- WLAN : 2.4/5 GHz 2T2R
- 2.4 GHz : QCA9561 (SoC)
- 5 GHz : QCA9888
- Ethernet : 2x 10/100 Mbps
- Switch : QCA9561 (SoC)
- LEDs/Keys : 8x/3x (2x buttons, 1x slide-switch)
- UART : through-hole on PCB
- JP1: Vcc, GND, NC, TX, RX from "JP1" marking
- 115200n8
- Power : 12 VDC, 0.9 A
Flash instruction using factory image (stock: < v1.3.2):
1. Boot WF1200CR normally with "Router" mode
2. Access to "http://192.168.10.1/" and open firmware update page
("ファームウェア更新")
3. Select the OpenWrt factory image and click update ("更新") button to
perform firmware update
4. Wait ~150 seconds to complete flashing
Alternate flash instruction using initramfs image (stock: >= v1.3.2):
1. Prepare the TFTP server with the IP address 192.168.1.10 and place
the OpenWrt initramfs image to the TFTP directory with the name
"0101A8C0.img"
2. Connect serial console to WF1200CR
3. Boot WF1200CR and interrupt with any key after the message
"Hit any key to stop autoboot: 2", the U-Boot starts telnetd after
the message "starting telnetd server from server 192.168.1.1"
4. login the telnet (address: 192.168.1.1)
5. Perform the following commands to modify "bootcmd" variable
temporary and check the value
(to ignore the limitation of available commands, "tp; " command at
the first is required as dummy, and the output of "printenv" is
printed on the serial console)
tp; set bootcmd 'set autostart yes; tftpboot'
tp; printenv
6. Save the modified variable with the following command and reset
device
tp; saveenv
tp; reset
7. The U-Boot downloads initramfs image from TFTP server and boots it
8. On initramfs image, download the sysupgrade image to the device and
perform the following commands to erase stock firmware and sysupgrade
mtd erase firmware
sysupgrade <sysupgrade image>
9. After the rebooting by completion of sysupgrade, start U-Boot telnetd
and login with the same way above (3, 4)
10. Perform the following commands to reset "bootcmd" variable to the
default and reset the device
tp; run seattle
tp; reset
(the contents of "seattle":
setenv bootcmd 'bootm 0x9f070040' && saveenv)
11. Wait booting-up the device
Known issues:
- the following 6x LEDs are connected to the gpio controller on QCA9888
chip and the implementation of control via the controller is missing in
ath10k/ath10k-ct
- "ACTIVE" (Red/Green)
- "2.4GHz" (Red/Green)
- "5GHz" (Red/Green)
Note:
- after the version v1.3.2 of stock firmware, "offline update" by
uploading image by user is deleted and the factory image cannot be
used
- the U-Boot on WF1200CR doesn't configure the port-side LEDs on WAN/LAN
and the configuration is required on OpenWrt
- gpio-hog: set the direction of GPIO 14(WAN)/19(LAN) to output
- pinmux: set GPIO 14/19 as switch-controlled LEDs
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2021-03-24 23:19:59 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/nec_wf1200cr
|
|
|
|
|
$(Device/nec_wx1200cr)
|
|
|
|
|
SOC := qca9561
|
|
|
|
|
DEVICE_MODEL := Aterm WF1200CR
|
|
|
|
|
IMAGE_SIZE := 7680k
|
|
|
|
|
SEAMA_MTDBLOCK := 5
|
|
|
|
|
SEAMA_SIGNATURE := wrgac62_necpf.2016gui_wf1200cr
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
|
|
|
|
|
seama-seal | nec-enc ryztfyutcrqqo69d | check-size
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += nec_wf1200cr
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/nec_wg1200cr
|
ath79: add support for NEC Aterm WF1200CR
NEC Aterm WF1200CR is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based on
QCA9561.
Specification:
- SoC : Qualcomm Atheros QCA9561
- RAM : DDR2 128 MiB (W971GG6SB-25)
- Flash : SPI-NOR 8 MiB (MX25L6433FM2I-08G)
- WLAN : 2.4/5 GHz 2T2R
- 2.4 GHz : QCA9561 (SoC)
- 5 GHz : QCA9888
- Ethernet : 2x 10/100 Mbps
- Switch : QCA9561 (SoC)
- LEDs/Keys : 8x/3x (2x buttons, 1x slide-switch)
- UART : through-hole on PCB
- JP1: Vcc, GND, NC, TX, RX from "JP1" marking
- 115200n8
- Power : 12 VDC, 0.9 A
Flash instruction using factory image (stock: < v1.3.2):
1. Boot WF1200CR normally with "Router" mode
2. Access to "http://192.168.10.1/" and open firmware update page
("ファームウェア更新")
3. Select the OpenWrt factory image and click update ("更新") button to
perform firmware update
4. Wait ~150 seconds to complete flashing
Alternate flash instruction using initramfs image (stock: >= v1.3.2):
1. Prepare the TFTP server with the IP address 192.168.1.10 and place
the OpenWrt initramfs image to the TFTP directory with the name
"0101A8C0.img"
2. Connect serial console to WF1200CR
3. Boot WF1200CR and interrupt with any key after the message
"Hit any key to stop autoboot: 2", the U-Boot starts telnetd after
the message "starting telnetd server from server 192.168.1.1"
4. login the telnet (address: 192.168.1.1)
5. Perform the following commands to modify "bootcmd" variable
temporary and check the value
(to ignore the limitation of available commands, "tp; " command at
the first is required as dummy, and the output of "printenv" is
printed on the serial console)
tp; set bootcmd 'set autostart yes; tftpboot'
tp; printenv
6. Save the modified variable with the following command and reset
device
tp; saveenv
tp; reset
7. The U-Boot downloads initramfs image from TFTP server and boots it
8. On initramfs image, download the sysupgrade image to the device and
perform the following commands to erase stock firmware and sysupgrade
mtd erase firmware
sysupgrade <sysupgrade image>
9. After the rebooting by completion of sysupgrade, start U-Boot telnetd
and login with the same way above (3, 4)
10. Perform the following commands to reset "bootcmd" variable to the
default and reset the device
tp; run seattle
tp; reset
(the contents of "seattle":
setenv bootcmd 'bootm 0x9f070040' && saveenv)
11. Wait booting-up the device
Known issues:
- the following 6x LEDs are connected to the gpio controller on QCA9888
chip and the implementation of control via the controller is missing in
ath10k/ath10k-ct
- "ACTIVE" (Red/Green)
- "2.4GHz" (Red/Green)
- "5GHz" (Red/Green)
Note:
- after the version v1.3.2 of stock firmware, "offline update" by
uploading image by user is deleted and the factory image cannot be
used
- the U-Boot on WF1200CR doesn't configure the port-side LEDs on WAN/LAN
and the configuration is required on OpenWrt
- gpio-hog: set the direction of GPIO 14(WAN)/19(LAN) to output
- pinmux: set GPIO 14/19 as switch-controlled LEDs
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2021-03-24 23:19:59 +08:00
|
|
|
$(Device/nec_wx1200cr)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := Aterm WG1200CR
|
2019-04-12 11:39:40 +08:00
|
|
|
IMAGE_SIZE := 7616k
|
|
|
|
|
SEAMA_MTDBLOCK := 6
|
|
|
|
|
SEAMA_SIGNATURE := wrgac72_necpf.2016gui_wg1200cr
|
|
|
|
|
IMAGES += factory.bin
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-rootfs -x 64 | seama | \
|
2020-03-10 21:58:27 +08:00
|
|
|
seama-seal | nec-enc 9gsiy9nzep452pad | check-size
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += nec_wg1200cr
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/nec_wg800hp
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := NEC
|
|
|
|
|
DEVICE_MODEL := Aterm WG800HP
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7104k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-02-03 23:45:16 +08:00
|
|
|
xor-image -p 6A57190601121E4C004C1E1201061957 -x | nec-fw LASER_ATERM
|
2020-09-06 18:27:54 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct-full-htt
|
2022-01-05 13:40:14 +08:00
|
|
|
DEFAULT := n
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += nec_wg800hp
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/netgear_ex6400_ex7300
|
2020-09-06 18:27:54 +08:00
|
|
|
$(Device/netgear_generic)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x27051956
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := EX7300series
|
|
|
|
|
NETGEAR_HW_ID := 29765104+16+0+128
|
|
|
|
|
IMAGE_SIZE := 15552k
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/default := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
|
|
|
|
|
netgear-rootfs | pad-rootfs
|
2021-06-21 00:54:36 +08:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
|
|
|
|
|
IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca99x0-ct
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/netgear_ex6400
|
|
|
|
|
$(Device/netgear_ex6400_ex7300)
|
|
|
|
|
DEVICE_MODEL := EX6400
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_ex6400
|
|
|
|
|
|
|
|
|
|
define Device/netgear_ex7300
|
|
|
|
|
$(Device/netgear_ex6400_ex7300)
|
|
|
|
|
DEVICE_MODEL := EX7300
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_ex7300
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wndr3x00
|
2020-09-06 18:27:54 +08:00
|
|
|
$(Device/netgear_generic)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7161
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
|
|
|
|
|
kmod-leds-reset kmod-owl-loader
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wndr3700
|
|
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDR3700
|
|
|
|
|
DEVICE_VARIANT := v1
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373030
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDR3700
|
|
|
|
|
IMAGE_SIZE := 7680k
|
|
|
|
|
IMAGES += factory-NA.img
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
|
2020-03-10 21:58:27 +08:00
|
|
|
check-size
|
2019-12-02 21:55:49 +08:00
|
|
|
SUPPORTED_DEVICES += wndr3700
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wndr3700
|
|
|
|
|
|
2020-02-06 21:45:40 +08:00
|
|
|
define Device/netgear_wndr3700-v2
|
2019-12-02 21:55:49 +08:00
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDR3700
|
|
|
|
|
DEVICE_VARIANT := v2
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373031
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDR3700v2
|
|
|
|
|
NETGEAR_HW_ID := 29763654+16+64
|
|
|
|
|
IMAGE_SIZE := 15872k
|
2020-02-06 21:45:40 +08:00
|
|
|
SUPPORTED_DEVICES += wndr3700 netgear,wndr3700v2
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
2020-02-06 21:45:40 +08:00
|
|
|
TARGET_DEVICES += netgear_wndr3700-v2
|
2019-12-02 21:55:49 +08:00
|
|
|
|
|
|
|
|
define Device/netgear_wndr3800
|
|
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDR3800
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373031
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDR3800
|
|
|
|
|
NETGEAR_HW_ID := 29763654+16+128
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += wndr3700
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wndr3800
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wndr3800ch
|
|
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDR3800CH
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373031
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDR3800CH
|
|
|
|
|
NETGEAR_HW_ID := 29763654+16+128
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += wndr3700
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wndr3800ch
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/netgear_wndrmac-v1
|
|
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDRMAC
|
|
|
|
|
DEVICE_VARIANT := v1
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373031
|
2020-09-06 18:27:54 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDRMAC
|
|
|
|
|
NETGEAR_HW_ID := 29763654+16+64
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += wndr3700
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wndrmac-v1
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wndrmac-v2
|
|
|
|
|
$(Device/netgear_wndr3x00)
|
|
|
|
|
DEVICE_MODEL := WNDRMAC
|
|
|
|
|
DEVICE_VARIANT := v2
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x33373031
|
2020-09-06 18:27:54 +08:00
|
|
|
NETGEAR_BOARD_ID := WNDRMACv2
|
|
|
|
|
NETGEAR_HW_ID := 29763654+16+128
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
SUPPORTED_DEVICES += wndr3700
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wndrmac-v2
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/netgear_wnr2200_common
|
2020-09-06 18:27:54 +08:00
|
|
|
$(Device/netgear_generic)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar7241
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := WNR2200
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
2020-11-04 17:21:16 +08:00
|
|
|
UIMAGE_MAGIC := 0x32323030
|
2019-12-02 21:55:49 +08:00
|
|
|
NETGEAR_BOARD_ID := wnr2200
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wnr2200-8m
|
|
|
|
|
$(Device/netgear_wnr2200_common)
|
|
|
|
|
DEVICE_VARIANT := 8M
|
|
|
|
|
NETGEAR_HW_ID := 29763600+08+64
|
|
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
IMAGES += factory-NA.img
|
|
|
|
|
IMAGE/factory-NA.img := $$(IMAGE/default) | netgear-dni NA | \
|
2020-03-10 21:58:27 +08:00
|
|
|
check-size
|
2019-12-02 21:55:49 +08:00
|
|
|
SUPPORTED_DEVICES += wnr2200
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wnr2200-8m
|
|
|
|
|
|
|
|
|
|
define Device/netgear_wnr2200-16m
|
|
|
|
|
$(Device/netgear_wnr2200_common)
|
|
|
|
|
DEVICE_VARIANT := 16M
|
|
|
|
|
DEVICE_ALT0_VENDOR := NETGEAR
|
|
|
|
|
DEVICE_ALT0_MODEL := WNR2200
|
|
|
|
|
DEVICE_ALT0_VARIANT := CN/RU
|
|
|
|
|
NETGEAR_HW_ID :=
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += netgear_wnr2200-16m
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/ocedo_koala
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Ocedo
|
|
|
|
|
DEVICE_MODEL := Koala
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
SUPPORTED_DEVICES += koala
|
|
|
|
|
IMAGE_SIZE := 7424k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += ocedo_koala
|
|
|
|
|
|
|
|
|
|
define Device/ocedo_raccoon
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Ocedo
|
|
|
|
|
DEVICE_MODEL := Raccoon
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7424k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += ocedo_raccoon
|
|
|
|
|
|
2019-04-12 11:39:40 +08:00
|
|
|
define Device/ocedo_ursus
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Ocedo
|
|
|
|
|
DEVICE_MODEL := Ursus
|
2019-04-12 11:39:40 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 7424k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += ocedo_ursus
|
|
|
|
|
|
2021-08-23 21:07:38 +08:00
|
|
|
define Device/onion_omega
|
|
|
|
|
$(Device/tplink-16mlzma)
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Onion
|
|
|
|
|
DEVICE_MODEL := Omega
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
|
|
|
|
SUPPORTED_DEVICES += onion-omega
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
|
|
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
TPLINK_HWID := 0x04700001
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += onion_omega
|
|
|
|
|
|
2021-01-30 12:20:16 +08:00
|
|
|
define Device/openmesh_common_64k
|
|
|
|
|
DEVICE_VENDOR := OpenMesh
|
|
|
|
|
DEVICE_PACKAGES := uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
OPENMESH_CE_TYPE :=
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \
|
|
|
|
|
pad-to $$(BLOCKSIZE)
|
|
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
|
|
|
|
|
openmesh-image ce_type=$$$$(OPENMESH_CE_TYPE) | append-metadata
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_common_256k
|
2020-11-23 20:41:34 +08:00
|
|
|
DEVICE_VENDOR := OpenMesh
|
|
|
|
|
DEVICE_PACKAGES := uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 7168k
|
|
|
|
|
BLOCKSIZE := 256k
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE :=
|
2020-11-23 20:41:34 +08:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \
|
|
|
|
|
pad-to $$(BLOCKSIZE)
|
|
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
|
2021-01-30 12:20:16 +08:00
|
|
|
openmesh-image ce_type=$$$$(OPENMESH_CE_TYPE) | append-metadata
|
|
|
|
|
endef
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_a40
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := A40
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
|
|
|
|
|
OPENMESH_CE_TYPE := A60
|
|
|
|
|
SUPPORTED_DEVICES += a40
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_a40
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_a60
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := A60
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-usb2
|
|
|
|
|
OPENMESH_CE_TYPE := A60
|
|
|
|
|
SUPPORTED_DEVICES += a60
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_a60
|
|
|
|
|
|
2021-01-30 12:20:16 +08:00
|
|
|
define Device/openmesh_mr600-v1
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_MODEL := MR600
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
OPENMESH_CE_TYPE := MR600
|
|
|
|
|
SUPPORTED_DEVICES += mr600
|
2020-11-23 20:41:34 +08:00
|
|
|
endef
|
2021-01-30 12:20:16 +08:00
|
|
|
TARGET_DEVICES += openmesh_mr600-v1
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_mr600-v2
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_MODEL := MR600
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
OPENMESH_CE_TYPE := MR600
|
|
|
|
|
SUPPORTED_DEVICES += mr600v2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_mr600-v2
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_mr900-v1
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := MR900
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
OPENMESH_CE_TYPE := MR900
|
|
|
|
|
SUPPORTED_DEVICES += mr900
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_mr900-v1
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_mr900-v2
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := MR900
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
OPENMESH_CE_TYPE := MR900
|
|
|
|
|
SUPPORTED_DEVICES += mr900v2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_mr900-v2
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_mr1750-v1
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := MR1750
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
OPENMESH_CE_TYPE := MR1750
|
|
|
|
|
SUPPORTED_DEVICES += mr1750
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_mr1750-v1
|
|
|
|
|
|
|
|
|
|
define Device/openmesh_mr1750-v2
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := MR1750
|
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
OPENMESH_CE_TYPE := MR1750
|
|
|
|
|
SUPPORTED_DEVICES += mr1750v2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_mr1750-v2
|
2020-11-23 20:41:34 +08:00
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-v1
|
|
|
|
|
$(Device/openmesh_common_256k)
|
|
|
|
|
SOC := ar7240
|
|
|
|
|
DEVICE_MODEL := OM2P
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
OPENMESH_CE_TYPE := OM2P
|
|
|
|
|
SUPPORTED_DEVICES += om2p
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-v1
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-v2
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := ar9330
|
|
|
|
|
DEVICE_MODEL := OM2P
|
|
|
|
|
DEVICE_VARIANT := v2
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2pv2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-v2
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-v4
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_MODEL := OM2P
|
|
|
|
|
DEVICE_VARIANT := v4
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2pv4
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-v4
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-hs-v1
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := ar9341
|
|
|
|
|
DEVICE_MODEL := OM2P-HS
|
|
|
|
|
DEVICE_VARIANT := v1
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2p-hs
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-hs-v1
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-hs-v2
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := ar9341
|
|
|
|
|
DEVICE_MODEL := OM2P-HS
|
|
|
|
|
DEVICE_VARIANT := v2
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2p-hsv2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-hs-v2
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-hs-v3
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := ar9341
|
|
|
|
|
DEVICE_MODEL := OM2P-HS
|
|
|
|
|
DEVICE_VARIANT := v3
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2p-hsv3
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-hs-v3
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-hs-v4
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_MODEL := OM2P-HS
|
|
|
|
|
DEVICE_VARIANT := v4
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2p-hsv4
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-hs-v4
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om2p-lc
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_256k)
|
2020-11-23 20:41:34 +08:00
|
|
|
SOC := ar9330
|
|
|
|
|
DEVICE_MODEL := OM2P-LC
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM2P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om2p-lc
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om2p-lc
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om5p
|
2021-01-30 12:20:16 +08:00
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := ar9344
|
2020-11-23 20:41:34 +08:00
|
|
|
DEVICE_MODEL := OM5P
|
2021-01-30 12:20:16 +08:00
|
|
|
OPENMESH_CE_TYPE := OM5P
|
2020-11-23 20:41:34 +08:00
|
|
|
SUPPORTED_DEVICES += om5p
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om5p
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om5p-ac-v1
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_MODEL := OM5P-AC
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
OPENMESH_CE_TYPE := OM5PAC
|
|
|
|
|
SUPPORTED_DEVICES += om5p-ac
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om5p-ac-v1
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/openmesh_om5p-ac-v2
|
2020-11-23 20:41:34 +08:00
|
|
|
$(Device/openmesh_common_64k)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_MODEL := OM5P-AC
|
|
|
|
|
DEVICE_VARIANT := v2
|
2020-11-23 20:41:34 +08:00
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
OPENMESH_CE_TYPE := OM5PAC
|
2019-01-03 19:29:28 +08:00
|
|
|
SUPPORTED_DEVICES += om5p-acv2
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om5p-ac-v2
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/openmesh_om5p-an
|
|
|
|
|
$(Device/openmesh_common_64k)
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_MODEL := OM5P-AN
|
|
|
|
|
OPENMESH_CE_TYPE := OM5P
|
|
|
|
|
SUPPORTED_DEVICES += om5p-an
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += openmesh_om5p-an
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/pcs_cap324
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PowerCloud Systems
|
|
|
|
|
DEVICE_MODEL := CAP324
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
SUPPORTED_DEVICES += cap324
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += pcs_cap324
|
|
|
|
|
|
|
|
|
|
define Device/pcs_cr3000
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9341
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PowerCloud Systems
|
|
|
|
|
DEVICE_MODEL := CR3000
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
SUPPORTED_DEVICES += cr3000
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += pcs_cr3000
|
|
|
|
|
|
|
|
|
|
define Device/pcs_cr5000
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PowerCloud Systems
|
|
|
|
|
DEVICE_MODEL := CR5000
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
SUPPORTED_DEVICES += cr5000
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += pcs_cr5000
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/phicomm_k2t
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Phicomm
|
|
|
|
|
DEVICE_MODEL := K2T
|
|
|
|
|
IMAGE_SIZE := 15744k
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
|
2021-06-21 00:54:36 +08:00
|
|
|
check-size | append-metadata
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-leds-reset kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9888-ct
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += phicomm_k2t
|
2019-01-03 19:29:28 +08:00
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/pisen_ts-d084
|
|
|
|
|
$(Device/tplink-8mlzma)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PISEN
|
|
|
|
|
DEVICE_MODEL := TS-D084
|
2020-09-18 19:56:53 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
2019-12-02 21:55:49 +08:00
|
|
|
TPLINK_HWID := 0x07030101
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += pisen_ts-d084
|
2019-01-03 19:29:28 +08:00
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/pisen_wmb001n
|
2021-09-26 22:07:44 +08:00
|
|
|
$(Device/loader-okli-uimage)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9341
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PISEN
|
|
|
|
|
DEVICE_MODEL := WMB001N
|
|
|
|
|
IMAGE_SIZE := 14080k
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_PACKAGES := kmod-i2c-gpio kmod-usb2
|
2019-12-02 21:55:49 +08:00
|
|
|
LOADER_FLASH_OFFS := 0x20000
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pisen_wmb001n-factory $(1)
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += pisen_wmb001n
|
2019-01-03 19:29:28 +08:00
|
|
|
|
|
|
|
|
define Device/pisen_wmm003n
|
|
|
|
|
$(Device/tplink-8mlzma)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9331
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := PISEN
|
|
|
|
|
DEVICE_MODEL := Cloud Easy Power (WMM003N)
|
2020-09-18 19:56:53 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
2019-01-03 19:29:28 +08:00
|
|
|
TPLINK_HWID := 0x07030101
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += pisen_wmm003n
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/plasmacloud_pa300-common
|
|
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_VENDOR := Plasma Cloud
|
|
|
|
|
DEVICE_PACKAGES := uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 7168k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
|
|
|
|
|
IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA300
|
2020-12-25 04:20:53 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
2020-11-23 20:41:34 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/plasmacloud_pa300
|
|
|
|
|
$(Device/plasmacloud_pa300-common)
|
|
|
|
|
DEVICE_MODEL := PA300
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += plasmacloud_pa300
|
|
|
|
|
|
2020-11-23 20:41:34 +08:00
|
|
|
define Device/plasmacloud_pa300e
|
|
|
|
|
$(Device/plasmacloud_pa300-common)
|
|
|
|
|
DEVICE_MODEL := PA300E
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += plasmacloud_pa300e
|
|
|
|
|
|
2020-08-04 05:07:21 +08:00
|
|
|
define Device/qca_ap143
|
2021-09-26 22:07:44 +08:00
|
|
|
$(Device/loader-okli-uimage)
|
2020-08-04 05:07:21 +08:00
|
|
|
SOC := qca9533
|
|
|
|
|
DEVICE_VENDOR := Qualcomm Atheros
|
|
|
|
|
DEVICE_MODEL := AP143
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
SUPPORTED_DEVICES += ap143
|
|
|
|
|
LOADER_FLASH_OFFS := 0x50000
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qca_ap143-8m
|
|
|
|
|
$(Device/qca_ap143)
|
|
|
|
|
DEVICE_VARIANT := (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | pad-to 6336k | \
|
|
|
|
|
append-loader-okli-uimage $(1) | pad-to 64k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qca_ap143-8m
|
|
|
|
|
|
|
|
|
|
define Device/qca_ap143-16m
|
|
|
|
|
$(Device/qca_ap143)
|
|
|
|
|
DEVICE_VARIANT := (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | check-size | pad-to 14528k | \
|
|
|
|
|
append-loader-okli-uimage $(1) | pad-to 64k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qca_ap143-16m
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/qihoo_c301
|
|
|
|
|
$(Device/seama)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Qihoo
|
|
|
|
|
DEVICE_MODEL := C301
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct \
|
|
|
|
|
uboot-envtools
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15744k
|
2019-12-02 21:55:49 +08:00
|
|
|
SEAMA_SIGNATURE := wrgac26_qihoo360_360rg
|
|
|
|
|
SUPPORTED_DEVICES += qihoo-c301
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
2019-12-02 21:55:49 +08:00
|
|
|
TARGET_DEVICES += qihoo_c301
|
2019-01-03 19:29:28 +08:00
|
|
|
|
ath79: add support for Qxwlan E1700AC v2
E1700AC v2 based on Qualcomm/Atheros QCA9563 + QCA9880.
Specification:
- 750/400/250 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 3T3R 5 GHz
- 2 x 10/1000M Mbps Ethernet (RJ45)
- 1 x MiniPCI-e
- 1 x SIM (3G/4G)
- 1 x USB 2.0 Port
- 5 x LED , 2 x Button(S8-Reset Buttun), 1 x power input
- UART (J5) header on PCB (115200 8N1)
Flash instruction:
1.Using tftp mode with UART connection and original LEDE image
- Configure PC with static IP 192.168.1.10 and tftp server.
- Rename "openwrt-ar71xx-generic-xxx-squashfs-sysupgrade.bin"
to "firmware.bin" and place it in tftp server directory.
- Connect PC with one of LAN ports, power up the router and press
key "Enter" to access U-Boot CLI.
- Use the following commands to update the device to LEDE:
run lfw
- After that the device will reboot and boot to LEDE.
- Wait until all LEDs stops flashing and use the router.
2.Using httpd mode with Web UI connection and original LEDE image
- Configure PC with static IP 192.168.1.xxx(2-255) and tftp server.
- Connect PC with one of LAN ports,press the reset button, power up
the router and keep button pressed for around 6-7 seconds, until
leds flashing.
- Open your browser and enter 192.168.1.1,You will see the upgrade
interface, select "openwrt-ar71xx-generic-xxx-squashfs-
sysupgrade.bin" and click the upgrade button.
- After that the device will reboot and boot to LEDE.
- Wait until all LEDs stops flashing and use the router.
Signed-off-by: 张鹏 <sd20@qxwlan.com>
[cut out of bigger patch, keep swconfig, whitespace fixes]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-16 18:53:51 +08:00
|
|
|
define Device/qxwlan_e1700ac-v2
|
|
|
|
|
SOC := qca9563
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E1700AC
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
2020-10-17 20:00:54 +08:00
|
|
|
SUPPORTED_DEVICES += e1700ac-v2
|
ath79: add support for Qxwlan E1700AC v2
E1700AC v2 based on Qualcomm/Atheros QCA9563 + QCA9880.
Specification:
- 750/400/250 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 3T3R 5 GHz
- 2 x 10/1000M Mbps Ethernet (RJ45)
- 1 x MiniPCI-e
- 1 x SIM (3G/4G)
- 1 x USB 2.0 Port
- 5 x LED , 2 x Button(S8-Reset Buttun), 1 x power input
- UART (J5) header on PCB (115200 8N1)
Flash instruction:
1.Using tftp mode with UART connection and original LEDE image
- Configure PC with static IP 192.168.1.10 and tftp server.
- Rename "openwrt-ar71xx-generic-xxx-squashfs-sysupgrade.bin"
to "firmware.bin" and place it in tftp server directory.
- Connect PC with one of LAN ports, power up the router and press
key "Enter" to access U-Boot CLI.
- Use the following commands to update the device to LEDE:
run lfw
- After that the device will reboot and boot to LEDE.
- Wait until all LEDs stops flashing and use the router.
2.Using httpd mode with Web UI connection and original LEDE image
- Configure PC with static IP 192.168.1.xxx(2-255) and tftp server.
- Connect PC with one of LAN ports,press the reset button, power up
the router and keep button pressed for around 6-7 seconds, until
leds flashing.
- Open your browser and enter 192.168.1.1,You will see the upgrade
interface, select "openwrt-ar71xx-generic-xxx-squashfs-
sysupgrade.bin" and click the upgrade button.
- After that the device will reboot and boot to LEDE.
- Wait until all LEDs stops flashing and use the router.
Signed-off-by: 张鹏 <sd20@qxwlan.com>
[cut out of bigger patch, keep swconfig, whitespace fixes]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-16 18:53:51 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e1700ac-v2-16m
|
|
|
|
|
$(Device/qxwlan_e1700ac-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e1700ac-v2-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e1700ac-v2-8m
|
|
|
|
|
$(Device/qxwlan_e1700ac-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e1700ac-v2-8m
|
|
|
|
|
|
2020-10-16 18:42:15 +08:00
|
|
|
define Device/qxwlan_e558-v2
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E558
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2020-10-17 20:00:54 +08:00
|
|
|
SUPPORTED_DEVICES += e558-v2
|
2020-10-16 18:42:15 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e558-v2-16m
|
|
|
|
|
$(Device/qxwlan_e558-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e558-v2-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e558-v2-8m
|
|
|
|
|
$(Device/qxwlan_e558-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e558-v2-8m
|
|
|
|
|
|
ath79: add support for Qxwlan E600G v2 / E600GAC v2
E600G v2 based on Qualcomm/Atheros QCA9531
Specification:
- 650/600/200 MHz (CPU/DDR/AHB)
- 128/64 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz
- 2 x 10/100 Mbps Ethernet(RJ45)
- 1 x MiniPCI-e
- 1 x SIM (3G/4G)
- 5 x LED , 1 x Button(SW2-Reset Buttun), 1 x power input
- UART(J100) header on PCB(115200 8N1)
E600GAC v2 based on Qualcomm/Atheros QCA9531 + QCA9887
Specification:
- 650/600/200 MHz (CPU/DDR/AHB)
- 128/64 MB of RAM (DDR2)
- 8/16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz
- 1T1R 5 GHz
- 2 x 10/100 Mbps Ethernet(RJ45)
- 6 x LED (one three-color led), 2 x Button(SW2-Reset Buttun),1 x power input
- UART (J100)header on PCB(115200 8N1)
Flash instruction:
1.Using tftp mode with UART connection and original OpenWrt image
- Configure PC with static IP 192.168.1.10 and tftp server.
- Rename "openwrt-ath79-generic-xxx-squashfs-sysupgrade.bin"
to "firmware.bin" and place it in tftp server directory.
- Connect PC with one of LAN ports, power up the router and press
key "Enter" to access U-Boot CLI.
- Use the following commands to update the device to OpenWrt:
run lfw
- After that the device will reboot and boot to OpenWrt.
- Wait until all LEDs stops flashing and use the router.
2.Using httpd mode with Web UI connection and original OpenWrt image
- Configure PC with static IP 192.168.1.xxx(2-255) and tftp server.
- Connect PC with one of LAN ports,press the reset button, power up
the router and keep button pressed for around 6-7 seconds, until
leds flashing.
- Open your browser and enter 192.168.1.1,You will see the upgrade
interface, select "openwrt-ath79-generic-xxx-squashfs-
sysupgrade.bin" and click the upgrade button.
- After that the device will reboot and boot to OpenWrt.
- Wait until all LEDs stops flashing and use the router.
Signed-off-by: 张鹏 <sd20@qxwlan.com>
[rearrange in generic.mk, fix one case in 04_led_migration, update
commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-31 09:35:21 +08:00
|
|
|
define Device/qxwlan_e600g-v2
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E600G
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
SUPPORTED_DEVICES += e600g-v2
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e600g-v2-16m
|
|
|
|
|
$(Device/qxwlan_e600g-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e600g-v2-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e600g-v2-8m
|
|
|
|
|
$(Device/qxwlan_e600g-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e600g-v2-8m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e600gac-v2
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E600GAC
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
|
|
|
|
SUPPORTED_DEVICES += e600gac-v2
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e600gac-v2-16m
|
|
|
|
|
$(Device/qxwlan_e600gac-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e600gac-v2-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e600gac-v2-8m
|
|
|
|
|
$(Device/qxwlan_e600gac-v2)
|
|
|
|
|
DEVICE_VARIANT := v2 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e600gac-v2-8m
|
|
|
|
|
|
2020-10-14 15:47:35 +08:00
|
|
|
define Device/qxwlan_e750a-v4
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E750A
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2020-10-17 20:00:54 +08:00
|
|
|
SUPPORTED_DEVICES += e750a-v4
|
2020-10-14 15:47:35 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e750a-v4-16m
|
|
|
|
|
$(Device/qxwlan_e750a-v4)
|
|
|
|
|
DEVICE_VARIANT := v4 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e750a-v4-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e750a-v4-8m
|
|
|
|
|
$(Device/qxwlan_e750a-v4)
|
|
|
|
|
DEVICE_VARIANT := v4 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e750a-v4-8m
|
|
|
|
|
|
2020-10-14 15:47:35 +08:00
|
|
|
define Device/qxwlan_e750g-v8
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Qxwlan
|
|
|
|
|
DEVICE_MODEL := E750G
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
2020-10-17 20:00:54 +08:00
|
|
|
SUPPORTED_DEVICES += e750g-v8
|
2020-10-14 15:47:35 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e750g-v8-16m
|
|
|
|
|
$(Device/qxwlan_e750g-v8)
|
|
|
|
|
DEVICE_VARIANT := v8 (16M)
|
|
|
|
|
IMAGE_SIZE := 15936k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e750g-v8-16m
|
|
|
|
|
|
|
|
|
|
define Device/qxwlan_e750g-v8-8m
|
|
|
|
|
$(Device/qxwlan_e750g-v8)
|
|
|
|
|
DEVICE_VARIANT := v8 (8M)
|
|
|
|
|
IMAGE_SIZE := 7744k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += qxwlan_e750g-v8-8m
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/rosinson_wr818
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Rosinson
|
|
|
|
|
DEVICE_MODEL := WR818
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15872k
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += rosinson_wr818
|
|
|
|
|
|
ath79: add support for Samsung WAM250
Samsung WAM250 is a dual-band (selectable, not simultaneous) wireless
hub, dedicated for Samsung Shape Wireless Audio System. The device is
based on Atheros AR9344 (FCC ID: A3LWAM250). Support for this device
was first introduced in e58e49bdbe (ar71xx target).
Specifications:
- Atheros AR9344
- 560/450/225 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 16 MB of flash (SPI NOR)
- 2x 10/100 Mbps Ethernet
- 2T2R 2.4/5 GHz Wi-Fi, with ext. PA (SE2598L, SE5003L) and LNA
- 1x USB 2.0
- 4x LED (all are driven by GPIO)
- 2x button (reset, wps/speaker add)
- DC jack for main power input (14 V)
- UART header on PCB (J4, RX: 3, TX: 5)
Flash instruction:
This device uses dual-image (switched between upgrades) with a common
jffs2 config partition. Fortunately, there is a way to disable this mode
so that more flash space can be used by OpenWrt image.
You can easily access this device over telnet, using root/root
credentials (the same also work for serial console access).
1. Make sure that your device uses second (bootpart=2) image using
command: "fw_printenv bootpart".
2. If your device uses first image (bootpart=1), perform upgrade to the
latest vendor firmware (after the update, device should boot from
second partition) using web gui (default login: admin/1234567890).
3. Rename "sysupgrade" image to "firmware.bin", download it (you can use
wget, tftp or ftpget) to "/tmp" and issue below commands:
mtd_debug erase /dev/mtd3 0 $(wc -c /tmp/firmware.bin | awk -F' ' '{print $1}')
mtd_debug write /dev/mtd3 0 $(wc -c /tmp/firmware.bin)
fw_setenv bootpart
fw_setenv bootcmd "bootm 0x9f070000"
reboot
Revert to vendor firmware instruction:
1. Download vendor firmware to "/tmp" device and issue below commands:
fw_setenv bootpart 1
sysupgrade -n -F SS_BHUB_v2.2.05.bin
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-09-18 20:11:13 +08:00
|
|
|
define Device/samsung_wam250
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Samsung
|
|
|
|
|
DEVICE_MODEL := WAM250
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
SUPPORTED_DEVICES += wam250
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += samsung_wam250
|
|
|
|
|
|
2020-02-29 01:23:18 +08:00
|
|
|
define Device/siemens_ws-ap3610
|
|
|
|
|
SOC := ar7161
|
|
|
|
|
DEVICE_VENDOR := Siemens
|
|
|
|
|
DEVICE_MODEL := WS-AP3610
|
|
|
|
|
IMAGE_SIZE := 14336k
|
|
|
|
|
BLOCKSIZE := 256k
|
|
|
|
|
LOADER_TYPE := bin
|
|
|
|
|
LOADER_FLASH_OFFS := 0x82000
|
|
|
|
|
COMPILE := loader-$(1).bin
|
|
|
|
|
COMPILE/loader-$(1).bin := loader-okli-compile
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 8128 | uImage none
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += siemens_ws-ap3610
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/sitecom_wlr-7100
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar1022
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Sitecom
|
|
|
|
|
DEVICE_MODEL := WLR-7100
|
2020-02-03 23:45:16 +08:00
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct-smallbuffers kmod-usb2
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGES += factory.dlf
|
|
|
|
|
IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2019-12-02 21:55:49 +08:00
|
|
|
senao-header -r 0x222 -p 0x53 -t 2
|
|
|
|
|
IMAGE_SIZE := 7488k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += sitecom_wlr-7100
|
|
|
|
|
|
2020-04-23 12:00:03 +08:00
|
|
|
define Device/sitecom_wlr-8100
|
|
|
|
|
SOC := qca9558
|
|
|
|
|
DEVICE_VENDOR := Sitecom
|
|
|
|
|
DEVICE_MODEL := WLR-8100
|
|
|
|
|
DEVICE_ALT0_VENDOR := Sitecom
|
|
|
|
|
DEVICE_ALT0_MODEL := X8 AC1750
|
|
|
|
|
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct kmod-usb2 kmod-usb3
|
|
|
|
|
SUPPORTED_DEVICES += wlr8100
|
|
|
|
|
IMAGES += factory.dlf
|
|
|
|
|
IMAGE/factory.dlf := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
2020-07-31 21:46:49 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | \
|
2020-04-23 12:00:03 +08:00
|
|
|
senao-header -r 0x222 -p 0x56 -t 2
|
|
|
|
|
IMAGE_SIZE := 15424k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += sitecom_wlr-8100
|
|
|
|
|
|
2020-09-06 18:27:54 +08:00
|
|
|
define Device/telco_t1
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Telco
|
|
|
|
|
DEVICE_MODEL := T1
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-net-qmi-wwan \
|
|
|
|
|
kmod-usb-serial-option uqmi -swconfig -uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 16192k
|
|
|
|
|
SUPPORTED_DEVICES += telco_electronics,tel-t1
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += telco_t1
|
|
|
|
|
|
2021-06-22 05:27:56 +08:00
|
|
|
define Device/teltonika_rut230-v1
|
|
|
|
|
SOC := ar9331
|
|
|
|
|
DEVICE_VENDOR := Teltonika
|
|
|
|
|
DEVICE_MODEL := RUT230
|
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-acm kmod-usb-net-qmi-wwan \
|
|
|
|
|
uqmi -uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 15552k
|
|
|
|
|
TPLINK_HWID := 0x32200002
|
|
|
|
|
TPLINK_HWREV := 0x1
|
|
|
|
|
TPLINK_HEADER_VERSION := 1
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | teltonika-v1-header
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
|
|
|
|
|
pad-rootfs | pad-extra 64 | teltonika-fw-fake-checksum 54 | check-size
|
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
|
|
|
|
|
append-rootfs | pad-rootfs | append-metadata |\
|
|
|
|
|
check-size
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += teltonika_rut230-v1
|
|
|
|
|
|
2020-02-29 01:23:18 +08:00
|
|
|
define Device/teltonika_rut955
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Teltonika
|
|
|
|
|
DEVICE_MODEL := RUT955
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-acm kmod-usb-net-qmi-wwan \
|
|
|
|
|
kmod-usb-serial-option kmod-hwmon-mcp3021 uqmi -uboot-envtools
|
|
|
|
|
IMAGE_SIZE := 15552k
|
|
|
|
|
TPLINK_HWID := 0x35000001
|
|
|
|
|
TPLINK_HWREV := 0x1
|
|
|
|
|
TPLINK_HEADER_VERSION := 1
|
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header
|
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs |\
|
2021-06-22 05:27:56 +08:00
|
|
|
pad-rootfs | teltonika-fw-fake-checksum 20 | append-string master |\
|
2020-03-10 21:58:27 +08:00
|
|
|
append-md5sum-bin | check-size
|
2020-02-29 01:23:18 +08:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) |\
|
2021-06-21 00:54:36 +08:00
|
|
|
append-rootfs | pad-rootfs | check-size | append-metadata
|
2020-02-29 01:23:18 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += teltonika_rut955
|
|
|
|
|
|
ath79: add support for Teltonika RUT955 H7V3C0
This board was previously supported in ar71xx as 'RUT9XX'. The
difference between that and the other RUT955 board already supported in
ath79 is that instead of the SPI shift registers driving the LEDs and
digital outputs that model got an I2C GPIO expander instead.
To support LEDs during early boot and interrupt-driven digital inputs,
I2C support as well as support for PCA953x has to be built-in and
cannot be kernel modules, hence select those symbols for ath79/generic.
Specification:
- 550/400/200 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1
- 2T2R 2,4 GHz (AR9344)
- built-in 4G/3G module (example: Quectel EC-25EU)
- internal microSD slot (spi-mmc, buggy and disabled for now)
- RS232 on D-Sub9 port (Cypress ACM via USB, /dev/ttyACM0)
- RS422/RS485 (AR934x high speed UART, /dev/ttyATH1)
- analog 0-24V input (MCP3221)
- various digital inputs and outputs incl. a relay
- 11x LED (4 are driven by AR9344, 7 by PCA9539)
- 2x miniSIM slot (can be swapped via GPIO)
- 2x RP-SMA/F (Wi-Fi), 3x SMA/F (2x WWAN, GPS)
- 1x button (reset)
- DC jack for main power input (9-30 V)
- debugging UART available on PCB edge connector
Serial console (/dev/ttyS0) pinout:
- RX: pin1 (square) on top side of the main PCB (AR9344 is on top)
- TX: pin1 (square) on bottom side
Flash instruction:
Vendor firmware is based on OpenWrt CC release. Use the "factory" image
directly in GUI (make sure to uncheck "keep settings") or in U-Boot web
based recovery. To avoid any problems, make sure to first update vendor
firmware to latest version - "factory" image was successfully tested on
device running "RUT9XX_R_00.06.051" firmware and U-Boot "3.0.1".
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-04-30 03:59:04 +08:00
|
|
|
define Device/teltonika_rut955-h7v3c0
|
|
|
|
|
$(Device/teltonika_rut955)
|
|
|
|
|
DEVICE_VARIANT := H7V3C0
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += teltonika_rut955-h7v3c0
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/trendnet_tew-823dru
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9558
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Trendnet
|
|
|
|
|
DEVICE_MODEL := TEW-823DRU
|
|
|
|
|
DEVICE_VARIANT := v1.0R
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
SUPPORTED_DEVICES += tew-823dru
|
|
|
|
|
IMAGE_SIZE := 15296k
|
|
|
|
|
IMAGES := factory.bin sysupgrade.bin
|
2020-02-03 23:45:16 +08:00
|
|
|
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | \
|
|
|
|
|
pad-rootfs
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGE/factory.bin := $$(IMAGE/default) | pad-offset $$$$(IMAGE_SIZE) 26 | \
|
2020-03-10 21:58:27 +08:00
|
|
|
append-string 00AP135AR9558-RT-131129-00 | check-size
|
2021-06-21 00:54:36 +08:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | check-size | append-metadata
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += trendnet_tew-823dru
|
|
|
|
|
|
2020-09-06 15:52:43 +08:00
|
|
|
define Device/wallys_dr531
|
|
|
|
|
SOC := qca9531
|
|
|
|
|
DEVICE_VENDOR := Wallys
|
|
|
|
|
DEVICE_MODEL := DR531
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 rssileds
|
|
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
SUPPORTED_DEVICES += dr531
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += wallys_dr531
|
|
|
|
|
|
2021-11-16 19:25:19 +08:00
|
|
|
define Device/wd_mynet-n600
|
|
|
|
|
$(Device/seama)
|
|
|
|
|
SOC := ar9344
|
|
|
|
|
DEVICE_VENDOR := Western Digital
|
|
|
|
|
DEVICE_MODEL := My Net N600
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
SEAMA_SIGNATURE := wrgnd16_wd_db600
|
|
|
|
|
SUPPORTED_DEVICES += mynet-n600
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += wd_mynet-n600
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/wd_mynet-n750
|
|
|
|
|
$(Device/seama)
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Western Digital
|
|
|
|
|
DEVICE_MODEL := My Net N750
|
|
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2
|
|
|
|
|
SEAMA_SIGNATURE := wrgnd13_wd_av
|
|
|
|
|
SUPPORTED_DEVICES += mynet-n750
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += wd_mynet-n750
|
|
|
|
|
|
2019-01-03 19:29:28 +08:00
|
|
|
define Device/wd_mynet-wifi-rangeextender
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Western Digital
|
|
|
|
|
DEVICE_MODEL := My Net Wi-Fi Range Extender
|
2019-01-03 19:29:28 +08:00
|
|
|
DEVICE_PACKAGES := rssileds nvram -swconfig
|
|
|
|
|
IMAGE_SIZE := 7808k
|
|
|
|
|
ADDPATTERN_ID := mynet-rext
|
|
|
|
|
ADDPATTERN_VERSION := 1.00.01
|
|
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
|
|
|
|
|
addpattern | append-metadata
|
|
|
|
|
SUPPORTED_DEVICES += mynet-rext
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += wd_mynet-wifi-rangeextender
|
|
|
|
|
|
|
|
|
|
define Device/winchannel_wb2000
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Winchannel
|
|
|
|
|
DEVICE_MODEL := WB2000
|
2019-01-03 19:29:28 +08:00
|
|
|
IMAGE_SIZE := 15872k
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_PACKAGES := kmod-i2c-gpio kmod-rtc-ds1307 kmod-usb2 \
|
2020-02-03 23:45:16 +08:00
|
|
|
kmod-usb-ledtrig-usbport
|
2019-01-03 19:29:28 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += winchannel_wb2000
|
2019-02-13 18:38:22 +08:00
|
|
|
|
ath79: add support for Xiaomi AIoT Router AC2350
Device specifications
* SoC: QCA9563 @ 775MHz (MIPS 74Kc)
* RAM: 128MiB DDR2
* Flash: 16MiB SPI-NOR (EN25QH128)
* Wireless 2.4GHz (SoC): b/g/n, 3x3
* Wireless 5Ghz (QCA9988): a/n/ac, 4x4 MU-MIMO
* IoT Wireless 2.4GHz (QCA6006): currently unusable
* Ethernet (AR8327): 3 LAN × 1GbE, 1 WAN × 1GbE
* LEDs: Internet (blue/orange), System (blue/orange)
* Buttons: Reset
* UART: through-hole on PCB ([VCC 3.3v](RX)(GND)(TX) 115200, 8n1)
* Power: 12VDC, 1,5A
MAC addresses map (like in OEM firmware)
art@0x0 88:C3:97:*:57 wan/label
art@0x1002 88:C3:97:*:2D lan/wlan2g
art@0x5006 88:C3:97:*:2C wlan5g
Obtain SSH Access
1. Download and flash the firmware version 1.3.8 (China).
2. Login to the router web interface and get the value of `stok=` from the
URL
3. Open a new tab and go to the following URL (replace <STOK> with the stok
value gained above; line breaks are only for easier handling, please put
together all four lines into a single URL without any spaces):
http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev
?bssid=any&user_id=any&ssid=-h%0Anvram%20set%20ssh_en%3D1%0Anvram%20commit
%0Ased%20-i%20%27s%2Fchannel%3D.%2A%2Fchannel%3D%5C%5C%22debug%5C%5C%22%2F
g%27%20%2Fetc%2Finit.d%2Fdropbear%0A%2Fetc%2Finit.d%2Fdropbear%20start%0A
4. Wait 30-60 seconds (this is the time required to generate keys for the
SSH server on the router).
Create Full Backup
1. Obtain SSH Access.
2. Create backup of all flash (on router):
dd if=/dev/mtd0 of=/tmp/ALL.backup
3. Copy backup to PC (on PC):
scp root@192.168.31.1:/tmp/ALL.backup ./
Tip: backup of the original firmware, taken three times, increases the
chances of recovery :)
Calculate The Password
* Locally using shell (replace "12345/E0QM98765" with your router's serial
number):
On Linux
printf "%s6d2df50a-250f-4a30-a5e6-d44fb0960aa0" "12345/E0QM98765" | \
md5sum - | head -c8 && echo
On macOS
printf "%s6d2df50a-250f-4a30-a5e6-d44fb0960aa0" "12345/E0QM98765" | \
md5 | head -c8
* Locally using python script (replace "12345/E0QM98765" with your
router's serial number):
wget https://raw.githubusercontent.com/eisaev/ax3600-files/master/scripts/calc_passwd.py
python3.7 -c 'from calc_passwd import calc_passwd; print(calc_passwd("12345/E0QM98765"))'
* Online
https://www.oxygen7.cn/miwifi/
Debricking (lite)
If you have a healthy bootloader, you can use recovery via TFTP using
programs like TinyPXE on Windows or dnsmasq on Linux. To switch the router
to TFTP recovery mode, hold down the reset button, connect the power
supply, and release the button after about 10 seconds. The router must be
connected directly to the PC via the LAN port.
Debricking
You will need a full dump of your flash, a CH341 programmer, and a clip
for in-circuit programming.
Install OpenWRT
1. Obtain SSH Access.
2. Create script (on router):
echo '#!/bin/sh' > /tmp/flash_fw.sh
echo >> /tmp/flash_fw.sh
echo '. /bin/boardupgrade.sh' >> /tmp/flash_fw.sh
echo >> /tmp/flash_fw.sh
echo 'board_prepare_upgrade' >> /tmp/flash_fw.sh
echo 'mtd erase rootfs_data' >> /tmp/flash_fw.sh
echo 'mtd write /tmp/openwrt.bin firmware' >> /tmp/flash_fw.sh
echo 'sleep 3' >> /tmp/flash_fw.sh
echo 'reboot' >> /tmp/flash_fw.sh
echo >> /tmp/flash_fw.sh
chmod +x /tmp/flash_fw.sh
3. Copy `openwrt-ath79-generic-xiaomi_aiot-ac2350-squashfs-sysupgrade.bin`
to the router (on PC):
scp openwrt-ath79-generic-xiaomi_aiot-ac2350-squashfs-sysupgrade.bin \
root@192.168.31.1:/tmp/openwrt.bin
4. Flash OpenWRT (on router):
/bin/ash /tmp/flash_fw.sh &
5. SSH connection will be interrupted - this is normal.
6. Wait for the indicator to turn blue.
Signed-off-by: Evgeniy Isaev <isaev.evgeniy@gmail.com>
[improve commit message formatting slightly]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-05-11 16:45:51 +08:00
|
|
|
define Device/xiaomi_aiot-ac2350
|
|
|
|
|
SOC := qca9563
|
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
|
DEVICE_MODEL := AIoT AC2350
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9984-ct
|
|
|
|
|
IMAGE_SIZE := 14336k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += xiaomi_aiot-ac2350
|
|
|
|
|
|
2019-02-13 18:38:22 +08:00
|
|
|
define Device/xiaomi_mi-router-4q
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9561
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
|
DEVICE_MODEL := Mi Router 4Q
|
2019-02-13 18:38:22 +08:00
|
|
|
IMAGE_SIZE := 14336k
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-4q
|
2019-04-12 11:39:40 +08:00
|
|
|
|
|
|
|
|
define Device/yuncore_a770
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9531
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := YunCore
|
|
|
|
|
DEVICE_MODEL := A770
|
2019-04-12 11:39:40 +08:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
2019-12-02 21:55:49 +08:00
|
|
|
IMAGES += tftp.bin
|
|
|
|
|
IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
|
2019-04-12 11:39:40 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += yuncore_a770
|
2019-12-02 21:55:49 +08:00
|
|
|
|
|
|
|
|
define Device/yuncore_a782
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := YunCore
|
|
|
|
|
DEVICE_MODEL := A782
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
IMAGES += tftp.bin
|
|
|
|
|
IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += yuncore_a782
|
|
|
|
|
|
|
|
|
|
define Device/yuncore_xd4200
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := qca9563
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := YunCore
|
|
|
|
|
DEVICE_MODEL := XD4200
|
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
|
|
|
|
|
IMAGE_SIZE := 16000k
|
|
|
|
|
IMAGES += tftp.bin
|
|
|
|
|
IMAGE/tftp.bin := $$(IMAGE/sysupgrade.bin) | yuncore-tftp-header-16m
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += yuncore_xd4200
|
|
|
|
|
|
2020-10-06 20:14:31 +08:00
|
|
|
define Device/ziking_cpe46b
|
|
|
|
|
SOC := ar9330
|
|
|
|
|
DEVICE_VENDOR := ZiKing
|
|
|
|
|
DEVICE_MODEL := CPE46B
|
|
|
|
|
IMAGE_SIZE := 8000k
|
|
|
|
|
DEVICE_PACKAGES := kmod-i2c-gpio
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += ziking_cpe46b
|
|
|
|
|
|
2019-12-02 21:55:49 +08:00
|
|
|
define Device/zbtlink_zbt-wd323
|
2020-02-03 23:45:16 +08:00
|
|
|
SOC := ar9344
|
2019-12-02 21:55:49 +08:00
|
|
|
DEVICE_VENDOR := ZBT
|
|
|
|
|
DEVICE_MODEL := WD323
|
|
|
|
|
IMAGE_SIZE := 16000k
|
2020-04-23 12:00:03 +08:00
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-i2c-gpio kmod-rtc-pcf8563 \
|
2021-02-25 18:54:43 +08:00
|
|
|
kmod-usb-serial-cp210x uqmi
|
2019-12-02 21:55:49 +08:00
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += zbtlink_zbt-wd323
|
2020-09-06 18:27:54 +08:00
|
|
|
|
|
|
|
|
define Device/zyxel_nbg6616
|
|
|
|
|
SOC := qca9557
|
|
|
|
|
DEVICE_VENDOR := ZyXEL
|
|
|
|
|
DEVICE_MODEL := NBG6616
|
|
|
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-rtc-pcf8563 \
|
|
|
|
|
kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
|
RAS_BOARD := NBG6616
|
|
|
|
|
RAS_ROOTFS_SIZE := 14464k
|
|
|
|
|
RAS_VERSION := "OpenWrt Linux-$(LINUX_VERSION)"
|
|
|
|
|
IMAGES += factory.bin
|
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
|
append-rootfs | pad-rootfs | pad-to 64k | check-size | zyxel-ras-image
|
|
|
|
|
SUPPORTED_DEVICES += nbg6616
|
|
|
|
|
endef
|
|
|
|
|
TARGET_DEVICES += zyxel_nbg6616
|