openwrt/target/linux/ramips/image/rt305x.mk

1249 lines
30 KiB
Makefile
Raw Normal View History

#
# RT305X Profiles
#
define Build/buffalo-tftp-header
( \
echo -n -e "# Airstation FirmWare\nrun u_fw\nreset\n\n" | \
dd bs=512 count=1 conv=sync; \
dd if=$@; \
) > $@.tmp && \
$(STAGING_DIR_HOST)/bin/buffalo-tftp -i $@.tmp -o $@.new
mv $@.new $@
endef
define Build/dap-header
$(STAGING_DIR_HOST)/bin/mkdapimg $(1) -i $@ -o $@.new
mv $@.new $@
endef
define Build/hilink-header
$(STAGING_DIR_HOST)/bin/mkhilinkfw -e -i $@ -o $@.new
mv $@.new $@
endef
define Device/7links_px-4885-4m
SOC := rt5350
IMAGE_SIZE := 3776k
DEVICE_VENDOR := 7Links
DEVICE_MODEL := PX-4885
DEVICE_VARIANT := 4M
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
kmod-usb-ledtrig-usbport kmod-leds-gpio
SUPPORTED_DEVICES += px-4885-4M
DEFAULT := n
endef
TARGET_DEVICES += 7links_px-4885-4m
define Device/7links_px-4885-8m
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := 7Links
DEVICE_MODEL := PX-4885
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
kmod-usb-ledtrig-usbport kmod-leds-gpio
SUPPORTED_DEVICES += px-4885-8M
endef
TARGET_DEVICES += 7links_px-4885-8m
define Device/8devices_carambola
SOC := rt3050
IMAGE_SIZE := 7872k
DEVICE_VENDOR := 8devices
DEVICE_MODEL := Carambola
DEVICE_PACKAGES :=
SUPPORTED_DEVICES += carambola
endef
TARGET_DEVICES += 8devices_carambola
define Device/accton_wr6202
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Accton
DEVICE_MODEL := WR6202
SUPPORTED_DEVICES += wr6202
endef
TARGET_DEVICES += accton_wr6202
define Device/airlive_air3gii
SOC := rt5350
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := AirLive
DEVICE_MODEL := Air3GII
SUPPORTED_DEVICES += air3gii
DEFAULT := n
endef
TARGET_DEVICES += airlive_air3gii
define Device/alfa-network_w502u
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ALFA
DEVICE_MODEL := Networks W502U
SUPPORTED_DEVICES += w502u
endef
TARGET_DEVICES += alfa-network_w502u
define Device/allnet_all0256n-4m
SOC := rt3050
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Allnet
DEVICE_MODEL := ALL0256N
DEVICE_VARIANT := 4M
DEVICE_PACKAGES := rssileds
SUPPORTED_DEVICES += all0256n-4M
DEFAULT := n
endef
TARGET_DEVICES += allnet_all0256n-4m
define Device/allnet_all0256n-8m
SOC := rt3050
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Allnet
DEVICE_MODEL := ALL0256N
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := rssileds
SUPPORTED_DEVICES += all0256n-8M
endef
TARGET_DEVICES += allnet_all0256n-8m
define Device/allnet_all5002
SOC := rt3352
IMAGE_SIZE := 32448k
DEVICE_VENDOR := Allnet
DEVICE_MODEL := ALL5002
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x
SUPPORTED_DEVICES += all5002
endef
TARGET_DEVICES += allnet_all5002
define Device/allnet_all5003
SOC := rt5350
IMAGE_SIZE := 32448k
DEVICE_VENDOR := Allnet
DEVICE_MODEL := ALL5003
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x
SUPPORTED_DEVICES += all5003
endef
TARGET_DEVICES += allnet_all5003
define Device/alphanetworks_asl26555-16m
SOC := rt3050
IMAGE_SIZE := 15872k
DEVICE_VENDOR := Alpha
DEVICE_MODEL := ASL26555
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += asl26555 asl26555-16M
endef
TARGET_DEVICES += alphanetworks_asl26555-16m
define Device/alphanetworks_asl26555-8m
SOC := rt3050
IMAGE_SIZE := 7744k
DEVICE_VENDOR := Alpha
DEVICE_MODEL := ASL26555
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += asl26555 asl26555-8M
endef
TARGET_DEVICES += alphanetworks_asl26555-8m
define Device/arcwireless_freestation5
SOC := rt3050
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ARC Wireless
DEVICE_MODEL := FreeStation
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb \
kmod-rt2x00-usb
SUPPORTED_DEVICES += freestation5
endef
TARGET_DEVICES += arcwireless_freestation5
define Device/argus_atp-52b
SOC := rt3052
IMAGE_SIZE := 7808k
DEVICE_VENDOR := Argus
DEVICE_MODEL := ATP-52B
SUPPORTED_DEVICES += atp-52b
endef
TARGET_DEVICES += argus_atp-52b
define Device/asiarf_awapn2403
SOC := rt3052
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := AsiaRF
DEVICE_MODEL := AWAPN2403
SUPPORTED_DEVICES += awapn2403
DEFAULT := n
endef
TARGET_DEVICES += asiarf_awapn2403
define Device/asiarf_awm002-evb-4m
SOC := rt5350
IMAGE_SIZE := 3776k
DEVICE_VENDOR := AsiaRF
DEVICE_MODEL := AWM002-EVB
DEVICE_VARIANT := 4M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-gpio
SUPPORTED_DEVICES += awm002-evb-4M
DEFAULT := n
endef
TARGET_DEVICES += asiarf_awm002-evb-4m
define Device/asiarf_awm002-evb-8m
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := AsiaRF
DEVICE_MODEL := AWM002-EVB/AWM003-EVB
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-gpio
SUPPORTED_DEVICES += awm002-evb-8M
endef
TARGET_DEVICES += asiarf_awm002-evb-8m
define Device/asus_rt-g32-b1
SOC := rt3050
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Asus
DEVICE_MODEL := RT-G32
DEVICE_VARIANT := B1
SUPPORTED_DEVICES += rt-g32-b1
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-g32-b1
define Device/asus_rt-n10-plus
SOC := rt3050
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Asus
DEVICE_MODEL := RT-N10+
SUPPORTED_DEVICES += rt-n10-plus
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10-plus
define Device/asus_rt-n13u
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Asus
DEVICE_MODEL := RT-N13U
DEVICE_PACKAGES := kmod-leds-gpio kmod-rt2800-pci kmod-usb-dwc2
SUPPORTED_DEVICES += rt-n13u
endef
TARGET_DEVICES += asus_rt-n13u
define Device/asus_wl-330n
SOC := rt3050
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Asus
DEVICE_MODEL := WL-330N
SUPPORTED_DEVICES += wl-330n
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-330n
define Device/asus_wl-330n3g
SOC := rt3050
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Asus
DEVICE_MODEL := WL-330N3G
DEVICE_PACKAGES :=
SUPPORTED_DEVICES += wl-330n3g
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-330n3g
define Device/aximcom_mr-102n
SOC := rt3052
ramips/rt305x: fix IMAGE_SIZE for all devices This fixes IMAGE_SIZE for all devices based on the partition size given in DTS: DEVICE *.MK *.DTS VERDICT 7links_px-4885-4m (4M) 0x3b0000 7links_px-4885-8m - 0x7b0000 default 8devices_carambola - 0x7b0000 default accton_wr6202 - 0x7b0000 default airlive_air3gii (4M) 0x3b0000 alfa-network_w502u - 0x7b0000 default allnet_all0256n-4m (4M) 0x3b0000 allnet_all0256n-8m - 0x7b0000 default allnet_all5002 32448k 0x1fb0000 allnet_all5003 32448k 0x1fb0000 alphanetworks_asl26555-16m 15872k 0xf80000 alphanetworks_asl26555-8m 7744k 0x790000 arcwireless_freestation5 - 0x7b0000 default argus_atp-52b 7808k 0x7a0000 asiarf_awapn2403 (4M) 0x3b0000 asiarf_awm002-evb-4m (4M) 0x3b0000 asiarf_awm002-evb-8m - 0x7b0000 default asus_rt-g32-b1 (4M) 0x3b0000 asus_rt-n10-plus (4M) 0x3b0000 asus_rt-n13u - 0x7b0000 default asus_wl-330n (4M) 0x3b0000 asus_wl-330n3g (4M) 0x3b0000 aximcom_mr-102n - 0x790000 wrong aztech_hw550-3g - 0x7b0000 default belkin_f5d8235-v2 7744k 0x790000 belkin_f7c027 7616k 0x770000 buffalo_whr-g300n 3801088 0x3a0000 dlink_dap-1350 7488k 0x750000 dlink_dcs-930 (4M) 0x3b0000 dlink_dcs-930l-b1 (4M) 0x3b0000 dlink_dir-300-b1 (4M) 0x3b0000 dlink_dir-300-b7 (4M) 0x7b0000 wrong dlink_dir-320-b1 - 0x7b0000 default dlink_dir-600-b1 (4M) 0x3b0000 dlink_dir-610-a1 (4M) 0x3b0000 dlink_dir-615-d (4M) 0x3b0000 dlink_dir-615-h1 (4M) 0x3b0000 dlink_dir-620-a1 - 0x7b0000 default dlink_dir-620-d1 - 0x7b0000 default dlink_dwr-512-b 7800k 0x7e0000 wrong easyacc_wizard-8800 - 0x7b0000 default edimax_3g-6200n 3648k 0x390000 edimax_3g-6200nl 3648k 0x390000 engenius_esr-9753 (4M) 0x3b0000 fon_fonera-20n - 0x7b0000 default hame_mpr-a1 (4M) 0x3b0000 hame_mpr-a2 - 0x7b0000 default hauppauge_broadway 7744k 0x790000 hilink_hlk-rm04 - 0x3b0000 wrong hootoo_ht-tm02 - 0x7b0000 default huawei_d105 (4M) 0x3b0000 huawei_hg255d 15744k 0xf60000 intenso_memory2move - 0x7b0000 default jcg_jhr-n805r (4M) 0x3b0000 jcg_jhr-n825r (4M) 0x3b0000 jcg_jhr-n926r (4M) 0x3b0000 mofinetwork_mofi3500-3gn - 0x7b0000 default netcore_nw718 3712k 0x3a0000 netgear_wnce2001 (4M) 0x350000 wrong nexaira_bc2 - 0x7b0000 default nexx_wt1520-4m (4M) 0x3b0000 nexx_wt1520-8m - 0x7b0000 default nixcore_x1-16m 16064k 0xfb0000 nixcore_x1-8m 7872k 0x7b0000 olimex_rt5350f-olinuxino - 0x7b0000 default olimex_rt5350f-olinuxino-evb - 0x7b0000 default omnima_miniembplug - 0x7b0000 default omnima_miniembwifi - 0x7b0000 default petatel_psr-680w (4M) 0x3b0000 planex_mzk-dp150n (4M) 0x3b0000 planex_mzk-w300nh2 3648k 0x390000 planex_mzk-wdpr - 0x680000 wrong poray_ip2202 - 0x7b0000 default poray_m3 (4M) 0x3b0000 poray_m4-4m (4M) 0x3b0000 poray_m4-8m - 0x7b0000 default poray_x5 - 0x7b0000 default poray_x8 - 0x7b0000 default prolink_pwh2004 - 0x7b0000 default ralink_v22rw-2x2 (4M) 0x3b0000 sitecom_wl-351 (4M) 0x3b0000 skyline_sl-r7205 (4M) 0x3b0000 sparklan_wcr-150gn (4M) 0x3b0000 teltonika_rut5xx - 0xfb0000 wrong tenda_3g150b (4M) 0x3b0000 tenda_3g300m (4M) 0x3b0000 tenda_w150m (4M) 0x3b0000 tenda_w306r-v2 (4M) 0x3b0000 trendnet_tew-638apb-v2 (4M) 0x3b0000 trendnet_tew-714tru - 0x7b0000 default unbranded_a5-v11 (4M) 0x3b0000 unbranded_wr512-3gn-4m (4M) 0x3b0000 unbranded_wr512-3gn-8m - 0x7b0000 default unbranded_xdx-rn502j (4M) 0x3b0000 upvel_ur-326n4g (4M) 0x3b0000 upvel_ur-336un - 0x7b0000 default vocore_vocore-16m 16064k 0xfb0000 vocore_vocore-8m 7872k 0x7b0000 wansview_ncs601w - 0x7b0000 default wiznet_wizfi630a (16M) 0xfb0000 zorlik_zl5900v2 - 0x7b0000 default zyxel_keenetic (4M) 0x3b0000 zyxel_keenetic-start (4M) 0x3b0000 zyxel_nbg-419n (4M) 0x3b0000 zyxel_nbg-419n-v2 (8M) 0x7b0000 No verdict means that the device is correctly set. Legend: ( ): Value is set via ralink_default_fw_size_xxM [ ]: Value is derived from parent definition - : Value is not set and derived from default definition Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-07-15 12:55:34 +00:00
IMAGE_SIZE := 7744k
DEVICE_VENDOR := AXIMCom
DEVICE_MODEL := MR-102N
SUPPORTED_DEVICES += mr-102n
endef
TARGET_DEVICES += aximcom_mr-102n
define Device/aztech_hw550-3g
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Aztech
DEVICE_MODEL := HW550-3G
DEVICE_ALT0_VENDOR := Allnet
DEVICE_ALT0_MODEL := ALL0239-3G
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += hw550-3g
endef
TARGET_DEVICES += aztech_hw550-3g
define Device/belkin_f5d8235-v2
SOC := rt3052
IMAGE_SIZE := 7744k
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F5D8235
DEVICE_VARIANT := v2
DEVICE_PACKAGES := kmod-switch-rtl8366rb
SUPPORTED_DEVICES += f5d8235-v2
endef
TARGET_DEVICES += belkin_f5d8235-v2
define Device/belkin_f7c027
SOC := rt5350
IMAGE_SIZE := 7616k
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F7C027
SUPPORTED_DEVICES += f7c027
endef
TARGET_DEVICES += belkin_f7c027
define Device/buffalo_whr-g300n
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3712k
DEVICE_VENDOR := Buffalo
DEVICE_MODEL := WHR-G300N
IMAGES += tftp.bin
IMAGE/tftp.bin := $$(sysupgrade_bin) | check-size | buffalo-tftp-header
SUPPORTED_DEVICES += whr-g300n
DEFAULT := n
endef
TARGET_DEVICES += buffalo_whr-g300n
define Device/dlink_dap-1350
SOC := rt3052
IMAGES += factory.bin factory-NA.bin
IMAGE_SIZE := 7488k
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
dap-header -s RT3052-AP-DAP1350WW-3
IMAGE/factory-NA.bin := $$(sysupgrade_bin) | check-size | \
dap-header -s RT3052-AP-DAP1350-3
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DAP-1350
SUPPORTED_DEVICES += dap-1350
endef
TARGET_DEVICES += dlink_dap-1350
define Device/dlink_dcs-930
SOC := rt3050
IMAGE_SIZE := 3776k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DCS-930
DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \
kmod-usb-audio kmod-usb-dwc2
SUPPORTED_DEVICES += dcs-930
DEFAULT := n
endef
TARGET_DEVICES += dlink_dcs-930
define Device/dlink_dcs-930l-b1
SOC := rt5350
IMAGE_SIZE := 3776k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DCS-930L
DEVICE_VARIANT := B1
DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-sound-core \
kmod-usb-audio kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += dcs-930l-b1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dcs-930l-b1
define Device/dlink_dir-300-b1
SOC := rt3050
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
wrg-header wrgn23_dlwbr_dir300b
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-300
DEVICE_VARIANT := B1
SUPPORTED_DEVICES += dir-300-b1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-300-b1
define Device/dlink_dir-300-b7
SOC := rt5350
BLOCKSIZE := 4k
IMAGE_SIZE := 7872k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-300
DEVICE_VARIANT := B7
SUPPORTED_DEVICES += dir-300-b7
endef
TARGET_DEVICES += dlink_dir-300-b7
define Device/dlink_dir-320-b1
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-320
DEVICE_VARIANT := B1
SUPPORTED_DEVICES += dir-320-b1
endef
TARGET_DEVICES += dlink_dir-320-b1
define Device/dlink_dir-600-b1
SOC := rt3050
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
wrg-header wrgn23_dlwbr_dir600b
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-600
DEVICE_VARIANT := B1/B2
SUPPORTED_DEVICES += dir-600-b1 dir-600-b2
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-600-b1
define Device/dlink_dir-610-a1
$(Device/seama)
SOC := rt5350
BLOCKSIZE := 4k
SEAMA_SIGNATURE := wrgn59_dlob.hans_dir610
KERNEL := $(KERNEL_DTB)
IMAGE_SIZE := 3776k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-610
DEVICE_VARIANT := A1
SUPPORTED_DEVICES += dir-610-a1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-610-a1
define Device/dlink_dir-615-d
SOC := rt3050
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
wrg-header wrgn23_dlwbr_dir615d
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-615
DEVICE_VARIANT := D
SUPPORTED_DEVICES += dir-615-d
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-615-d
define Device/dlink_dir-615-h1
$(Device/uimage-lzma-loader)
SOC := rt3352
BLOCKSIZE := 4k
IMAGES += factory.bin
IMAGE_SIZE := 3776k
IMAGE/factory.bin := $$(sysupgrade_bin) | senao-header -r 0x218 -p 0x30 -t 3
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-615
DEVICE_VARIANT := H1
SUPPORTED_DEVICES += dir-615-h1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-615-h1
define Device/dlink_dir-620-a1
SOC := rt3050
IMAGE_SIZE := 7872k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-620
DEVICE_VARIANT := A1
SUPPORTED_DEVICES += dir-620-a1
endef
TARGET_DEVICES += dlink_dir-620-a1
define Device/dlink_dir-620-d1
SOC := rt3352
IMAGE_SIZE := 7872k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-620
DEVICE_VARIANT := D1
SUPPORTED_DEVICES += dir-620-d1
endef
TARGET_DEVICES += dlink_dir-620-d1
define Device/dlink_dwr-512-b
SOC := rt5350
ramips/rt305x: fix IMAGE_SIZE for all devices This fixes IMAGE_SIZE for all devices based on the partition size given in DTS: DEVICE *.MK *.DTS VERDICT 7links_px-4885-4m (4M) 0x3b0000 7links_px-4885-8m - 0x7b0000 default 8devices_carambola - 0x7b0000 default accton_wr6202 - 0x7b0000 default airlive_air3gii (4M) 0x3b0000 alfa-network_w502u - 0x7b0000 default allnet_all0256n-4m (4M) 0x3b0000 allnet_all0256n-8m - 0x7b0000 default allnet_all5002 32448k 0x1fb0000 allnet_all5003 32448k 0x1fb0000 alphanetworks_asl26555-16m 15872k 0xf80000 alphanetworks_asl26555-8m 7744k 0x790000 arcwireless_freestation5 - 0x7b0000 default argus_atp-52b 7808k 0x7a0000 asiarf_awapn2403 (4M) 0x3b0000 asiarf_awm002-evb-4m (4M) 0x3b0000 asiarf_awm002-evb-8m - 0x7b0000 default asus_rt-g32-b1 (4M) 0x3b0000 asus_rt-n10-plus (4M) 0x3b0000 asus_rt-n13u - 0x7b0000 default asus_wl-330n (4M) 0x3b0000 asus_wl-330n3g (4M) 0x3b0000 aximcom_mr-102n - 0x790000 wrong aztech_hw550-3g - 0x7b0000 default belkin_f5d8235-v2 7744k 0x790000 belkin_f7c027 7616k 0x770000 buffalo_whr-g300n 3801088 0x3a0000 dlink_dap-1350 7488k 0x750000 dlink_dcs-930 (4M) 0x3b0000 dlink_dcs-930l-b1 (4M) 0x3b0000 dlink_dir-300-b1 (4M) 0x3b0000 dlink_dir-300-b7 (4M) 0x7b0000 wrong dlink_dir-320-b1 - 0x7b0000 default dlink_dir-600-b1 (4M) 0x3b0000 dlink_dir-610-a1 (4M) 0x3b0000 dlink_dir-615-d (4M) 0x3b0000 dlink_dir-615-h1 (4M) 0x3b0000 dlink_dir-620-a1 - 0x7b0000 default dlink_dir-620-d1 - 0x7b0000 default dlink_dwr-512-b 7800k 0x7e0000 wrong easyacc_wizard-8800 - 0x7b0000 default edimax_3g-6200n 3648k 0x390000 edimax_3g-6200nl 3648k 0x390000 engenius_esr-9753 (4M) 0x3b0000 fon_fonera-20n - 0x7b0000 default hame_mpr-a1 (4M) 0x3b0000 hame_mpr-a2 - 0x7b0000 default hauppauge_broadway 7744k 0x790000 hilink_hlk-rm04 - 0x3b0000 wrong hootoo_ht-tm02 - 0x7b0000 default huawei_d105 (4M) 0x3b0000 huawei_hg255d 15744k 0xf60000 intenso_memory2move - 0x7b0000 default jcg_jhr-n805r (4M) 0x3b0000 jcg_jhr-n825r (4M) 0x3b0000 jcg_jhr-n926r (4M) 0x3b0000 mofinetwork_mofi3500-3gn - 0x7b0000 default netcore_nw718 3712k 0x3a0000 netgear_wnce2001 (4M) 0x350000 wrong nexaira_bc2 - 0x7b0000 default nexx_wt1520-4m (4M) 0x3b0000 nexx_wt1520-8m - 0x7b0000 default nixcore_x1-16m 16064k 0xfb0000 nixcore_x1-8m 7872k 0x7b0000 olimex_rt5350f-olinuxino - 0x7b0000 default olimex_rt5350f-olinuxino-evb - 0x7b0000 default omnima_miniembplug - 0x7b0000 default omnima_miniembwifi - 0x7b0000 default petatel_psr-680w (4M) 0x3b0000 planex_mzk-dp150n (4M) 0x3b0000 planex_mzk-w300nh2 3648k 0x390000 planex_mzk-wdpr - 0x680000 wrong poray_ip2202 - 0x7b0000 default poray_m3 (4M) 0x3b0000 poray_m4-4m (4M) 0x3b0000 poray_m4-8m - 0x7b0000 default poray_x5 - 0x7b0000 default poray_x8 - 0x7b0000 default prolink_pwh2004 - 0x7b0000 default ralink_v22rw-2x2 (4M) 0x3b0000 sitecom_wl-351 (4M) 0x3b0000 skyline_sl-r7205 (4M) 0x3b0000 sparklan_wcr-150gn (4M) 0x3b0000 teltonika_rut5xx - 0xfb0000 wrong tenda_3g150b (4M) 0x3b0000 tenda_3g300m (4M) 0x3b0000 tenda_w150m (4M) 0x3b0000 tenda_w306r-v2 (4M) 0x3b0000 trendnet_tew-638apb-v2 (4M) 0x3b0000 trendnet_tew-714tru - 0x7b0000 default unbranded_a5-v11 (4M) 0x3b0000 unbranded_wr512-3gn-4m (4M) 0x3b0000 unbranded_wr512-3gn-8m - 0x7b0000 default unbranded_xdx-rn502j (4M) 0x3b0000 upvel_ur-326n4g (4M) 0x3b0000 upvel_ur-336un - 0x7b0000 default vocore_vocore-16m 16064k 0xfb0000 vocore_vocore-8m 7872k 0x7b0000 wansview_ncs601w - 0x7b0000 default wiznet_wizfi630a (16M) 0xfb0000 zorlik_zl5900v2 - 0x7b0000 default zyxel_keenetic (4M) 0x3b0000 zyxel_keenetic-start (4M) 0x3b0000 zyxel_nbg-419n (4M) 0x3b0000 zyxel_nbg-419n-v2 (8M) 0x7b0000 No verdict means that the device is correctly set. Legend: ( ): Value is set via ralink_default_fw_size_xxM [ ]: Value is derived from parent definition - : Value is not set and derived from default definition Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-07-15 12:55:34 +00:00
IMAGE_SIZE := 8064k
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DWR-512
DEVICE_VARIANT := B
DEVICE_PACKAGES := jboot-tools kmod-usb2 kmod-spi-dev \
kmod-usb-serial-option kmod-usb-net-cdc-ether comgt-ncm
DLINK_ROM_ID := DLK6E2412001
DLINK_FAMILY_MEMBER := 0x6E24
DLINK_FIRMWARE_SIZE := 0x7E0000
KERNEL := $(KERNEL_DTB)
IMAGES += factory.bin
IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
SUPPORTED_DEVICES += dwr-512-b
endef
TARGET_DEVICES += dlink_dwr-512-b
define Device/easyacc_wizard-8800
SOC := rt5350
IMAGE_SIZE := 7872k
UIMAGE_NAME:= Linux Kernel Image
DEVICE_VENDOR := EasyAcc
DEVICE_MODEL := WIZARD 8800
SUPPORTED_DEVICES += wizard8800
endef
TARGET_DEVICES += easyacc_wizard-8800
define Device/edimax_3g-6200n
SOC := rt3050
IMAGE_SIZE := 3648k
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \
check-size | append-metadata
DEVICE_VENDOR := Edimax
DEVICE_MODEL := 3g-6200n
SUPPORTED_DEVICES += 3g-6200n
DEFAULT := n
endef
TARGET_DEVICES += edimax_3g-6200n
define Device/edimax_3g-6200nl
SOC := rt3050
IMAGE_SIZE := 3648k
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
edimax-header -s CSYS -m 3G62 -f 0x50000 -S 0x01100000 | pad-rootfs | \
check-size | append-metadata
DEVICE_VENDOR := Edimax
DEVICE_MODEL := 3g-6200nl
SUPPORTED_DEVICES += 3g-6200nl
DEFAULT := n
endef
TARGET_DEVICES += edimax_3g-6200nl
define Device/engenius_esr-9753
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := EnGenius
DEVICE_MODEL := ESR-9753
SUPPORTED_DEVICES += esr-9753
DEFAULT := n
endef
TARGET_DEVICES += engenius_esr-9753
define Device/fon_fonera-20n
SOC := rt3052
IMAGE_SIZE := 7872k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | \
edimax-header -s RSDK -m NL1T -f 0x50000 -S 0xc0000
DEVICE_VENDOR := Fon
DEVICE_MODEL := Fonera 2.0N
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += fonera20n
endef
TARGET_DEVICES += fon_fonera-20n
define Device/hame_mpr-a1
SOC := rt5350
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
UIMAGE_NAME:= Linux Kernel Image
DEVICE_VENDOR := HAME
DEVICE_MODEL := MPR
DEVICE_VARIANT := A1
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += mpr-a1
DEFAULT := n
endef
TARGET_DEVICES += hame_mpr-a1
define Device/hame_mpr-a2
SOC := rt5350
IMAGE_SIZE := 7872k
UIMAGE_NAME:= Linux Kernel Image
DEVICE_VENDOR := HAME
DEVICE_MODEL := MPR
DEVICE_VARIANT := A2
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += mpr-a2
endef
TARGET_DEVICES += hame_mpr-a2
define Device/hauppauge_broadway
SOC := rt3052
IMAGE_SIZE := 7744k
UIMAGE_NAME:= Broadway Kernel Image
DEVICE_VENDOR := Hauppauge
DEVICE_MODEL := Broadway
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += broadway
endef
TARGET_DEVICES += hauppauge_broadway
define Device/hilink_hlk-rm04
SOC := rt5350
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | hilink-header
DEVICE_VENDOR := Hi-Link
DEVICE_MODEL := HLK-RM04
SUPPORTED_DEVICES += hlk-rm04
DEFAULT := n
endef
TARGET_DEVICES += hilink_hlk-rm04
define Device/hootoo_ht-tm02
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := HooToo
DEVICE_MODEL := HT-TM02
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += ht-tm02
DEFAULT := n
endef
TARGET_DEVICES += hootoo_ht-tm02
define Device/huawei_d105
SOC := rt3050
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Huawei
DEVICE_MODEL := D105
SUPPORTED_DEVICES += d105
DEFAULT := n
endef
TARGET_DEVICES += huawei_d105
define Device/huawei_hg255d
SOC := rt3052
IMAGE_SIZE := 15744k
DEVICE_VENDOR := HuaWei
DEVICE_MODEL := HG255D
SUPPORTED_DEVICES += hg255d
endef
TARGET_DEVICES += huawei_hg255d
define Device/intenso_memory2move
SOC := rt5350
IMAGE_SIZE := 7872k
UIMAGE_NAME:= Linux Kernel Image
DEVICE_VENDOR := Intenso
DEVICE_MODEL := Memory 2 Move
DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage kmod-scsi-core kmod-fs-ext4 \
kmod-fs-vfat block-mount
SUPPORTED_DEVICES += m2m
endef
TARGET_DEVICES += intenso_memory2move
define Device/jcg_jhr-n805r
SOC := rt3050
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 29.24
DEVICE_VENDOR := JCG
DEVICE_MODEL := JHR-N805R
SUPPORTED_DEVICES += jhr-n805r
DEFAULT := n
endef
TARGET_DEVICES += jcg_jhr-n805r
define Device/jcg_jhr-n825r
SOC := rt3052
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 23.24
DEVICE_VENDOR := JCG
DEVICE_MODEL := JHR-N825R
SUPPORTED_DEVICES += jhr-n825r
DEFAULT := n
endef
TARGET_DEVICES += jcg_jhr-n825r
define Device/jcg_jhr-n926r
SOC := rt3052
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | jcg-header 25.24
DEVICE_VENDOR := JCG
DEVICE_MODEL := JHR-N926R
SUPPORTED_DEVICES += jhr-n926r
DEFAULT := n
endef
TARGET_DEVICES += jcg_jhr-n926r
define Device/mofinetwork_mofi3500-3gn
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := MoFi Network
DEVICE_MODEL := MOFI3500-3GN
SUPPORTED_DEVICES += mofi3500-3gn
endef
TARGET_DEVICES += mofinetwork_mofi3500-3gn
define Device/netcore_nw718
SOC := rt3050
IMAGE_SIZE := 3712k
UIMAGE_NAME:= ARA1B4NCRNW718;1
DEVICE_VENDOR := Netcore
DEVICE_MODEL := NW718
SUPPORTED_DEVICES += nw718
DEFAULT := n
endef
TARGET_DEVICES += netcore_nw718
define Device/netgear_wnce2001
SOC := rt3052
ramips/rt305x: fix IMAGE_SIZE for all devices This fixes IMAGE_SIZE for all devices based on the partition size given in DTS: DEVICE *.MK *.DTS VERDICT 7links_px-4885-4m (4M) 0x3b0000 7links_px-4885-8m - 0x7b0000 default 8devices_carambola - 0x7b0000 default accton_wr6202 - 0x7b0000 default airlive_air3gii (4M) 0x3b0000 alfa-network_w502u - 0x7b0000 default allnet_all0256n-4m (4M) 0x3b0000 allnet_all0256n-8m - 0x7b0000 default allnet_all5002 32448k 0x1fb0000 allnet_all5003 32448k 0x1fb0000 alphanetworks_asl26555-16m 15872k 0xf80000 alphanetworks_asl26555-8m 7744k 0x790000 arcwireless_freestation5 - 0x7b0000 default argus_atp-52b 7808k 0x7a0000 asiarf_awapn2403 (4M) 0x3b0000 asiarf_awm002-evb-4m (4M) 0x3b0000 asiarf_awm002-evb-8m - 0x7b0000 default asus_rt-g32-b1 (4M) 0x3b0000 asus_rt-n10-plus (4M) 0x3b0000 asus_rt-n13u - 0x7b0000 default asus_wl-330n (4M) 0x3b0000 asus_wl-330n3g (4M) 0x3b0000 aximcom_mr-102n - 0x790000 wrong aztech_hw550-3g - 0x7b0000 default belkin_f5d8235-v2 7744k 0x790000 belkin_f7c027 7616k 0x770000 buffalo_whr-g300n 3801088 0x3a0000 dlink_dap-1350 7488k 0x750000 dlink_dcs-930 (4M) 0x3b0000 dlink_dcs-930l-b1 (4M) 0x3b0000 dlink_dir-300-b1 (4M) 0x3b0000 dlink_dir-300-b7 (4M) 0x7b0000 wrong dlink_dir-320-b1 - 0x7b0000 default dlink_dir-600-b1 (4M) 0x3b0000 dlink_dir-610-a1 (4M) 0x3b0000 dlink_dir-615-d (4M) 0x3b0000 dlink_dir-615-h1 (4M) 0x3b0000 dlink_dir-620-a1 - 0x7b0000 default dlink_dir-620-d1 - 0x7b0000 default dlink_dwr-512-b 7800k 0x7e0000 wrong easyacc_wizard-8800 - 0x7b0000 default edimax_3g-6200n 3648k 0x390000 edimax_3g-6200nl 3648k 0x390000 engenius_esr-9753 (4M) 0x3b0000 fon_fonera-20n - 0x7b0000 default hame_mpr-a1 (4M) 0x3b0000 hame_mpr-a2 - 0x7b0000 default hauppauge_broadway 7744k 0x790000 hilink_hlk-rm04 - 0x3b0000 wrong hootoo_ht-tm02 - 0x7b0000 default huawei_d105 (4M) 0x3b0000 huawei_hg255d 15744k 0xf60000 intenso_memory2move - 0x7b0000 default jcg_jhr-n805r (4M) 0x3b0000 jcg_jhr-n825r (4M) 0x3b0000 jcg_jhr-n926r (4M) 0x3b0000 mofinetwork_mofi3500-3gn - 0x7b0000 default netcore_nw718 3712k 0x3a0000 netgear_wnce2001 (4M) 0x350000 wrong nexaira_bc2 - 0x7b0000 default nexx_wt1520-4m (4M) 0x3b0000 nexx_wt1520-8m - 0x7b0000 default nixcore_x1-16m 16064k 0xfb0000 nixcore_x1-8m 7872k 0x7b0000 olimex_rt5350f-olinuxino - 0x7b0000 default olimex_rt5350f-olinuxino-evb - 0x7b0000 default omnima_miniembplug - 0x7b0000 default omnima_miniembwifi - 0x7b0000 default petatel_psr-680w (4M) 0x3b0000 planex_mzk-dp150n (4M) 0x3b0000 planex_mzk-w300nh2 3648k 0x390000 planex_mzk-wdpr - 0x680000 wrong poray_ip2202 - 0x7b0000 default poray_m3 (4M) 0x3b0000 poray_m4-4m (4M) 0x3b0000 poray_m4-8m - 0x7b0000 default poray_x5 - 0x7b0000 default poray_x8 - 0x7b0000 default prolink_pwh2004 - 0x7b0000 default ralink_v22rw-2x2 (4M) 0x3b0000 sitecom_wl-351 (4M) 0x3b0000 skyline_sl-r7205 (4M) 0x3b0000 sparklan_wcr-150gn (4M) 0x3b0000 teltonika_rut5xx - 0xfb0000 wrong tenda_3g150b (4M) 0x3b0000 tenda_3g300m (4M) 0x3b0000 tenda_w150m (4M) 0x3b0000 tenda_w306r-v2 (4M) 0x3b0000 trendnet_tew-638apb-v2 (4M) 0x3b0000 trendnet_tew-714tru - 0x7b0000 default unbranded_a5-v11 (4M) 0x3b0000 unbranded_wr512-3gn-4m (4M) 0x3b0000 unbranded_wr512-3gn-8m - 0x7b0000 default unbranded_xdx-rn502j (4M) 0x3b0000 upvel_ur-326n4g (4M) 0x3b0000 upvel_ur-336un - 0x7b0000 default vocore_vocore-16m 16064k 0xfb0000 vocore_vocore-8m 7872k 0x7b0000 wansview_ncs601w - 0x7b0000 default wiznet_wizfi630a (16M) 0xfb0000 zorlik_zl5900v2 - 0x7b0000 default zyxel_keenetic (4M) 0x3b0000 zyxel_keenetic-start (4M) 0x3b0000 zyxel_nbg-419n (4M) 0x3b0000 zyxel_nbg-419n-v2 (8M) 0x7b0000 No verdict means that the device is correctly set. Legend: ( ): Value is set via ralink_default_fw_size_xxM [ ]: Value is derived from parent definition - : Value is not set and derived from default definition Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-07-15 12:55:34 +00:00
IMAGE_SIZE := 3392k
IMAGES += factory.bin factory-NA.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
dap-header -s RT3052-AP-WNCE2001-3 -r WW -v 1.0.0.99
IMAGE/factory-NA.bin := $$(sysupgrade_bin) | check-size | \
dap-header -s RT3052-AP-WNCE2001-3 -r NA -v 1.0.0.99
DEVICE_VENDOR := NETGEAR
DEVICE_MODEL := WNCE2001
SUPPORTED_DEVICES += wnce2001
DEFAULT := n
endef
TARGET_DEVICES += netgear_wnce2001
define Device/nexaira_bc2
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := NexAira
DEVICE_MODEL := BC2
SUPPORTED_DEVICES += bc2
endef
TARGET_DEVICES += nexaira_bc2
define Device/nexx_wt1520-4m
SOC := rt5350
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B WT1520 -F 4M
DEVICE_VENDOR := Nexx
DEVICE_MODEL := WT1520
DEVICE_VARIANT := 4M
SUPPORTED_DEVICES += wt1520-4M
DEFAULT := n
endef
TARGET_DEVICES += nexx_wt1520-4m
define Device/nexx_wt1520-8m
SOC := rt5350
IMAGE_SIZE := 7872k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B WT1520 -F 8M
DEVICE_VENDOR := Nexx
DEVICE_MODEL := WT1520
DEVICE_VARIANT := 8M
SUPPORTED_DEVICES += wt1520-8M
endef
TARGET_DEVICES += nexx_wt1520-8m
define Device/nixcore_x1-16m
SOC := rt5350
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Nixcore
DEVICE_MODEL := X1
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-16M
endef
TARGET_DEVICES += nixcore_x1-16m
define Device/nixcore_x1-8m
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Nixcore
DEVICE_MODEL := X1
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-8M
endef
TARGET_DEVICES += nixcore_x1-8m
define Device/olimex_rt5350f-olinuxino
$(Device/uimage-lzma-loader)
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := OLIMEX
DEVICE_MODEL := RT5350F-OLinuXino
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += rt5350f-olinuxino
endef
TARGET_DEVICES += olimex_rt5350f-olinuxino
define Device/olimex_rt5350f-olinuxino-evb
$(Device/uimage-lzma-loader)
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := OLIMEX
DEVICE_MODEL := RT5350F-OLinuXino-EVB
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += rt5350f-olinuxino-evb
endef
TARGET_DEVICES += olimex_rt5350f-olinuxino-evb
define Device/omnima_miniembplug
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Omnima
DEVICE_MODEL := MiniEMBPlug
SUPPORTED_DEVICES += miniembplug
endef
TARGET_DEVICES += omnima_miniembplug
define Device/omnima_miniembwifi
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Omnima
DEVICE_MODEL := MiniEMBWiFi
SUPPORTED_DEVICES += miniembwifi
endef
TARGET_DEVICES += omnima_miniembwifi
define Device/petatel_psr-680w
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Petatel
DEVICE_MODEL := PSR-680W Wireless 3G Router
SUPPORTED_DEVICES += psr-680w
DEFAULT := n
endef
TARGET_DEVICES += petatel_psr-680w
define Device/planex_mzk-dp150n
SOC := rt5350
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-DP150N
DEVICE_PACKAGES := kmod-spi-dev
SUPPORTED_DEVICES += mzk-dp150n
DEFAULT := n
endef
TARGET_DEVICES += planex_mzk-dp150n
define Device/planex_mzk-w300nh2
SOC := rt3052
IMAGE_SIZE := 3648k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | \
edimax-header -s CSYS -m RN52 -f 0x50000 -S 0xc0000
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-W300NH2
SUPPORTED_DEVICES += mzk-w300nh2
DEFAULT := n
endef
TARGET_DEVICES += planex_mzk-w300nh2
define Device/planex_mzk-wdpr
SOC := rt3052
ramips/rt305x: fix IMAGE_SIZE for all devices This fixes IMAGE_SIZE for all devices based on the partition size given in DTS: DEVICE *.MK *.DTS VERDICT 7links_px-4885-4m (4M) 0x3b0000 7links_px-4885-8m - 0x7b0000 default 8devices_carambola - 0x7b0000 default accton_wr6202 - 0x7b0000 default airlive_air3gii (4M) 0x3b0000 alfa-network_w502u - 0x7b0000 default allnet_all0256n-4m (4M) 0x3b0000 allnet_all0256n-8m - 0x7b0000 default allnet_all5002 32448k 0x1fb0000 allnet_all5003 32448k 0x1fb0000 alphanetworks_asl26555-16m 15872k 0xf80000 alphanetworks_asl26555-8m 7744k 0x790000 arcwireless_freestation5 - 0x7b0000 default argus_atp-52b 7808k 0x7a0000 asiarf_awapn2403 (4M) 0x3b0000 asiarf_awm002-evb-4m (4M) 0x3b0000 asiarf_awm002-evb-8m - 0x7b0000 default asus_rt-g32-b1 (4M) 0x3b0000 asus_rt-n10-plus (4M) 0x3b0000 asus_rt-n13u - 0x7b0000 default asus_wl-330n (4M) 0x3b0000 asus_wl-330n3g (4M) 0x3b0000 aximcom_mr-102n - 0x790000 wrong aztech_hw550-3g - 0x7b0000 default belkin_f5d8235-v2 7744k 0x790000 belkin_f7c027 7616k 0x770000 buffalo_whr-g300n 3801088 0x3a0000 dlink_dap-1350 7488k 0x750000 dlink_dcs-930 (4M) 0x3b0000 dlink_dcs-930l-b1 (4M) 0x3b0000 dlink_dir-300-b1 (4M) 0x3b0000 dlink_dir-300-b7 (4M) 0x7b0000 wrong dlink_dir-320-b1 - 0x7b0000 default dlink_dir-600-b1 (4M) 0x3b0000 dlink_dir-610-a1 (4M) 0x3b0000 dlink_dir-615-d (4M) 0x3b0000 dlink_dir-615-h1 (4M) 0x3b0000 dlink_dir-620-a1 - 0x7b0000 default dlink_dir-620-d1 - 0x7b0000 default dlink_dwr-512-b 7800k 0x7e0000 wrong easyacc_wizard-8800 - 0x7b0000 default edimax_3g-6200n 3648k 0x390000 edimax_3g-6200nl 3648k 0x390000 engenius_esr-9753 (4M) 0x3b0000 fon_fonera-20n - 0x7b0000 default hame_mpr-a1 (4M) 0x3b0000 hame_mpr-a2 - 0x7b0000 default hauppauge_broadway 7744k 0x790000 hilink_hlk-rm04 - 0x3b0000 wrong hootoo_ht-tm02 - 0x7b0000 default huawei_d105 (4M) 0x3b0000 huawei_hg255d 15744k 0xf60000 intenso_memory2move - 0x7b0000 default jcg_jhr-n805r (4M) 0x3b0000 jcg_jhr-n825r (4M) 0x3b0000 jcg_jhr-n926r (4M) 0x3b0000 mofinetwork_mofi3500-3gn - 0x7b0000 default netcore_nw718 3712k 0x3a0000 netgear_wnce2001 (4M) 0x350000 wrong nexaira_bc2 - 0x7b0000 default nexx_wt1520-4m (4M) 0x3b0000 nexx_wt1520-8m - 0x7b0000 default nixcore_x1-16m 16064k 0xfb0000 nixcore_x1-8m 7872k 0x7b0000 olimex_rt5350f-olinuxino - 0x7b0000 default olimex_rt5350f-olinuxino-evb - 0x7b0000 default omnima_miniembplug - 0x7b0000 default omnima_miniembwifi - 0x7b0000 default petatel_psr-680w (4M) 0x3b0000 planex_mzk-dp150n (4M) 0x3b0000 planex_mzk-w300nh2 3648k 0x390000 planex_mzk-wdpr - 0x680000 wrong poray_ip2202 - 0x7b0000 default poray_m3 (4M) 0x3b0000 poray_m4-4m (4M) 0x3b0000 poray_m4-8m - 0x7b0000 default poray_x5 - 0x7b0000 default poray_x8 - 0x7b0000 default prolink_pwh2004 - 0x7b0000 default ralink_v22rw-2x2 (4M) 0x3b0000 sitecom_wl-351 (4M) 0x3b0000 skyline_sl-r7205 (4M) 0x3b0000 sparklan_wcr-150gn (4M) 0x3b0000 teltonika_rut5xx - 0xfb0000 wrong tenda_3g150b (4M) 0x3b0000 tenda_3g300m (4M) 0x3b0000 tenda_w150m (4M) 0x3b0000 tenda_w306r-v2 (4M) 0x3b0000 trendnet_tew-638apb-v2 (4M) 0x3b0000 trendnet_tew-714tru - 0x7b0000 default unbranded_a5-v11 (4M) 0x3b0000 unbranded_wr512-3gn-4m (4M) 0x3b0000 unbranded_wr512-3gn-8m - 0x7b0000 default unbranded_xdx-rn502j (4M) 0x3b0000 upvel_ur-326n4g (4M) 0x3b0000 upvel_ur-336un - 0x7b0000 default vocore_vocore-16m 16064k 0xfb0000 vocore_vocore-8m 7872k 0x7b0000 wansview_ncs601w - 0x7b0000 default wiznet_wizfi630a (16M) 0xfb0000 zorlik_zl5900v2 - 0x7b0000 default zyxel_keenetic (4M) 0x3b0000 zyxel_keenetic-start (4M) 0x3b0000 zyxel_nbg-419n (4M) 0x3b0000 zyxel_nbg-419n-v2 (8M) 0x7b0000 No verdict means that the device is correctly set. Legend: ( ): Value is set via ralink_default_fw_size_xxM [ ]: Value is derived from parent definition - : Value is not set and derived from default definition Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-07-15 12:55:34 +00:00
IMAGE_SIZE := 6656k
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-WDPR
SUPPORTED_DEVICES += mzk-wdpr
endef
TARGET_DEVICES += planex_mzk-wdpr
define Device/poray_ip2202
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Poray
DEVICE_MODEL := IP2202
SUPPORTED_DEVICES += ip2202
endef
TARGET_DEVICES += poray_ip2202
define Device/poray_m3
SOC := rt5350
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B M3 -F 4M
DEVICE_VENDOR := Poray
DEVICE_MODEL := M3
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += m3
DEFAULT := n
endef
TARGET_DEVICES += poray_m3
define Device/poray_m4-4m
SOC := rt5350
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B M4 -F 4M
DEVICE_VENDOR := Poray
DEVICE_MODEL := M4
DEVICE_VARIANT := 4M
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += m4-4M
DEFAULT := n
endef
TARGET_DEVICES += poray_m4-4m
define Device/poray_m4-8m
SOC := rt5350
IMAGE_SIZE := 7872k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B M4 -F 8M
DEVICE_VENDOR := Poray
DEVICE_MODEL := M4
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += m4-8M
endef
TARGET_DEVICES += poray_m4-8m
define Device/poray_x5
SOC := rt5350
IMAGE_SIZE := 7872k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B X5 -F 8M
DEVICE_VENDOR := Poray
DEVICE_MODEL := X5/X6
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += x5
endef
TARGET_DEVICES += poray_x5
define Device/poray_x8
SOC := rt5350
IMAGE_SIZE := 7872k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B X8 -F 8M
DEVICE_VENDOR := Poray
DEVICE_MODEL := X8
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += x8
endef
TARGET_DEVICES += poray_x8
define Device/prolink_pwh2004
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Prolink
DEVICE_MODEL := PWH2004
DEVICE_PACKAGES :=
SUPPORTED_DEVICES += pwh2004
endef
TARGET_DEVICES += prolink_pwh2004
define Device/ralink_v22rw-2x2
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Ralink
DEVICE_MODEL := AP-RT3052-V22RW-2X2
SUPPORTED_DEVICES += v22rw-2x2
DEFAULT := n
endef
TARGET_DEVICES += ralink_v22rw-2x2
define Device/sitecom_wl-351
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Sitecom
DEVICE_MODEL := WL-351 v1
DEVICE_PACKAGES := kmod-switch-rtl8366rb
SUPPORTED_DEVICES += wl-351
DEFAULT := n
endef
TARGET_DEVICES += sitecom_wl-351
define Device/skyline_sl-r7205
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Skyline
DEVICE_MODEL := SL-R7205 Wireless 3G Router
SUPPORTED_DEVICES += sl-r7205
DEFAULT := n
endef
TARGET_DEVICES += skyline_sl-r7205
define Device/sparklan_wcr-150gn
SOC := rt3050
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Sparklan
DEVICE_MODEL := WCR-150GN
SUPPORTED_DEVICES += wcr-150gn
DEFAULT := n
endef
TARGET_DEVICES += sparklan_wcr-150gn
define Device/teltonika_rut5xx
SOC := rt3050
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Teltonika
DEVICE_MODEL := RUT5XX
SUPPORTED_DEVICES += rut5xx
endef
TARGET_DEVICES += teltonika_rut5xx
define Device/tenda_3g150b
SOC := rt5350
BLOCKSIZE := 4k
IMAGE_SIZE := 3776k
UIMAGE_NAME:= Linux Kernel Image
DEVICE_VENDOR := Tenda
DEVICE_MODEL := 3G150B
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += 3g150b
DEFAULT := n
endef
TARGET_DEVICES += tenda_3g150b
define Device/tenda_3g300m
SOC := rt3052
IMAGE_SIZE := 3776k
UIMAGE_NAME := 3G150M_SPI Kernel Image
DEVICE_VENDOR := Tenda
DEVICE_MODEL := 3G300M
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += 3g300m
DEFAULT := n
endef
TARGET_DEVICES += tenda_3g300m
define Device/tenda_w150m
SOC := rt3050
IMAGE_SIZE := 3776k
UIMAGE_NAME:= W150M Kernel Image
DEVICE_VENDOR := Tenda
DEVICE_MODEL := W150M
SUPPORTED_DEVICES += w150m
DEFAULT := n
endef
TARGET_DEVICES += tenda_w150m
define Device/tenda_w306r-v2
SOC := rt3052
IMAGE_SIZE := 3776k
UIMAGE_NAME:= linkn Kernel Image
DEVICE_VENDOR := Tenda
DEVICE_MODEL := W306R
DEVICE_VARIANT := V2.0
SUPPORTED_DEVICES += w306r-v20
DEFAULT := n
endef
TARGET_DEVICES += tenda_w306r-v2
define Device/trendnet_tew-638apb-v2
SOC := rt3050
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
IMAGE/sysupgrade.bin := $$(sysupgrade_bin) | umedia-header 0x026382 | \
check-size | append-metadata
DEVICE_VENDOR := TRENDnet
DEVICE_MODEL := TEW-638APB
DEVICE_VARIANT := v2
SUPPORTED_DEVICES += tew-638apb-v2
DEFAULT := n
endef
TARGET_DEVICES += trendnet_tew-638apb-v2
define Device/trendnet_tew-714tru
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := TRENDnet
DEVICE_MODEL := TEW-714TRU
SUPPORTED_DEVICES += tew-714tru
endef
TARGET_DEVICES += trendnet_tew-714tru
define Device/unbranded_a5-v11
SOC := rt5350
IMAGE_SIZE := 3776k
IMAGES += factory.bin
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size | \
poray-header -B A5-V11 -F 4M
DEVICE_VENDOR := Unbranded
DEVICE_MODEL := A5-V11
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += a5-v11
DEFAULT := n
endef
TARGET_DEVICES += unbranded_a5-v11
define Device/unbranded_wr512-3gn-4m
SOC := rt3052
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Unbranded
DEVICE_MODEL := WR512-3GN
DEVICE_VARIANT := 4M
SUPPORTED_DEVICES += wr512-3gn-4M
DEFAULT := n
endef
TARGET_DEVICES += unbranded_wr512-3gn-4m
define Device/unbranded_wr512-3gn-8m
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Unbranded
DEVICE_MODEL := WR512-3GN
DEVICE_VARIANT := 8M
SUPPORTED_DEVICES += wr512-3gn-8M
endef
TARGET_DEVICES += unbranded_wr512-3gn-8m
define Device/unbranded_xdx-rn502j
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := Unbranded
DEVICE_MODEL := XDX-RN502J
SUPPORTED_DEVICES += xdxrn502j
DEFAULT := n
endef
TARGET_DEVICES += unbranded_xdx-rn502j
define Device/upvel_ur-326n4g
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := UPVEL
DEVICE_MODEL := UR-326N4G
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += ur-326n4g
DEFAULT := n
endef
TARGET_DEVICES += upvel_ur-326n4g
define Device/upvel_ur-336un
SOC := rt3052
IMAGE_SIZE := 7872k
DEVICE_VENDOR := UPVEL
DEVICE_MODEL := UR-336UN
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += ur-336un
endef
TARGET_DEVICES += upvel_ur-336un
define Device/vocore_vocore-16m
SOC := rt5350
IMAGE_SIZE := 16064k
DEVICE_VENDOR := VoCore
DEVICE_MODEL := VoCore
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += vocore vocore-16M
endef
TARGET_DEVICES += vocore_vocore-16m
define Device/vocore_vocore-8m
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := VoCore
DEVICE_MODEL := VoCore
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += vocore vocore-8M
endef
TARGET_DEVICES += vocore_vocore-8m
define Device/wansview_ncs601w
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Wansview
DEVICE_MODEL := NCS601W
DEVICE_PACKAGES := kmod-video-core kmod-video-uvc kmod-usb-ohci
SUPPORTED_DEVICES += ncs601w
endef
TARGET_DEVICES += wansview_ncs601w
define Device/wiznet_wizfi630a
SOC := rt5350
IMAGE_SIZE := 16064k
DEVICE_VENDOR := WIZnet
DEVICE_MODEL := WizFi630A
SUPPORTED_DEVICES += wizfi630a
endef
TARGET_DEVICES += wiznet_wizfi630a
define Device/zorlik_zl5900v2
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := Zorlik
DEVICE_MODEL := ZL5900V2
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
endef
TARGET_DEVICES += zorlik_zl5900v2
ramips: add support for ZTE MF283+ ZTE MF283+ is a dual-antenna LTE category 4 router, based on Ralink RT3352 SoC, and built-in ZTE P685M PCIe MiniCard LTE modem. Hardware highlighs: - CPU: MIPS24KEc at 400MHz, - RAM: 64MB DDR2, - Flash: 16MB SPI, - Ethernet: 4 10/100M port switch with VLAN support, - Wireless: Dual-stream 802.11n (RT2860), with two internal antennas, - WWAN: Built-in ZTE P685M modem, with two internal antennas and two switching SMA connectors for external antennas, - FXS: Single ATA, with two connectors marked PHONE1 and PHONE2, internally wired in parallel by 0-Ohm resistors, handled entirely by internal WWAN modem. - USB: internal miniPCIe slot for modem, unpopulated USB A connector on PCB. - SIM slot for the WWAN modem. - UART connector for the console (unpopulated) at 3.3V, pinout: 1: VCC, 2: TXD, 3: RXD, 4: GND, settings: 57600-8-N-1. - LEDs: Power (fixed), WLAN, WWAN (RGB), phone (bicolor, controlled by modem), Signal, 4 link/act LEDs for LAN1-4. - Buttons: WPS, reset. Installation: As the modem is, for most of the time, provided by carriers, there is no possibility to flash through web interface, only built-in FOTA update and TFTP recovery are supported. There are two installation methods: (1) Using serial console and initramfs-kernel - recommended, as it allows you to back up original firmware, or (2) Using TFTP recovery - does not require disassembly. (1) Using serial console: To install OpenWrt, one needs to disassemble the router and flash it via TFTP by using serial console: - Locate unpopulated 4-pin header on the top of the board, near buttons. - Connect UART adapter to the connector. Use 3.3V voltage level only, omit VCC connection. Pin 1 (VCC) is marked by square pad. - Put your initramfs-kernel image in TFTP server directory. - Power-up the device. - Press "1" to load initramfs image to RAM. - Enter IP address chosen for the device (defaults to 192.168.0.1). - Enter TFTP server IP address (defaults to 192.168.0.22). - Enter image filename as put inside TFTP server - something short, like firmware.bin is recommended. - Hit enter to load the image. U-boot will store above values in persistent environment for next installation. - If you ever might want to return to vendor firmware, BACK UP CONTENTS OF YOUR FLASH NOW. For this router, commonly used by mobile networks, plain vendor images are not officially available. To do so, copy contents of each /dev/mtd[0-3], "firmware" - mtd3 being the most important, and copy them over network to your PC. But in case anything goes wrong, PLEASE do back up ALL OF THEM. - From under OpenWrt just booted, load the sysupgrade image to tmpfs, and execute sysupgrade. (2) Using TFTP recovery - Set your host IP to 192.168.0.22 - for example using: sudo ip addr add 192.168.0.22/24 dev <interface> - Set up a TFTP server on your machine - Put the sysupgrade image in TFTP server root named as 'root_uImage' (no quotes), for example using tftpd: cp openwrt-ramips-rt305x-zte_mf283plus-squashfs-sysupgrade.bin /srv/tftp/root_uImage - Power on the router holding BOTH Reset and WPS buttons held for around 5 seconds, until after WWAN and Signal LEDs blink. - Wait for OpenWrt to start booting up, this should take around a minute. Return to original firmware: Here, again there are two possibilities are possible, just like for installation: (1) Using initramfs-kernel image and serial console (2) Using TFTP recovery (1) Using initramfs-kernel image and serial console - Boot OpenWrt initramfs-kernel image via TFTP the same as for installation. - Copy over the backed up "firmware.bin" image of "mtd3" to /tmp/ - Use "mtd write /tmp/firmware.bin /dev/mtd3", where firmware.bin is your backup taken before OpenWrt installation, and /dev/mtd3 is the "firmware" partition. (2) Using TFTP recovery - Follow the same steps as for installation, but replacing 'root_uImage' with firmware backup you took during installation, or by vendor firmware obtained elsewhere. A few quirks of the device, noted from my instance: - Wired and wireless MAC addresses written in flash are the same, despite being in separate locations. - Power LED is hardwired to 3.3V, so there is no status LED per se, and WLAN LED is controlled by WLAN driver, so I had to hijack 3G/4G LED for status - original firmware also does this in bootup. - FXS subsystem and its LED is controlled by the modem, so it work independently of OpenWrt. Tested to work even before OpenWrt booted. I managed to open up modem's shell via ADB, and found from its kernel logs, that FXS and its LED is indeed controlled by modem. - While finding LEDs, I had no GPL source drop from ZTE, so I had to probe for each and every one of them manually, so this might not be complete - it looks like bicolor LED is used for FXS, possibly to support dual-ported variant in other device sharing the PCB. - Flash performance is very low, despite enabling 50MHz clock and fast read command, due to using 4k sectors throughout the target. I decided to keep it at the moment, to avoid breaking existing devices - I identified one potentially affected, should this be limited to under 4MB of Flash. The difference between sysupgrade durations is whopping 3min vs 8min, so this is worth pursuing. In vendor firmware, WWAN LED behaviour is as follows, citing the manual: - red - no registration, - green - 3G, - blue - 4G. Blinking indicates activity, so netdev trigger mapped from wwan0 to blue:wwan looks reasonable at the moment, for full replacement, a script similar to "rssileds" would need to be developed. Behaviour of "Signal LED" in vendor firmware is as follows: - Off - no signal, - Blinking - poor coverage - Solid - good coverage. A few more details on the built-in LTE modem: Modem is not fully supported upstream in Linux - only two CDC ports (DIAG and one for QMI) probe. I sent patches upstream to add required device IDs for full support. The mapping of USB functions is as follows: - CDC (QCDM) - dedicated to comunicating with proprietary Qualcomm tools. - CDC (PCUI) - not supported by upstream 'option' driver yet. Patch submitted upstream. - CDC (Modem) - Exactly the same as above - QMI - A patch is sent upstream to add device ID, with that in place, uqmi did connect successfully, once I selected correct PDP context type for my SIM (IPv4-only, not default IPv4v6). - ADB - self-explanatory, one can access the ADB shell with a device ID added to 51-android.rules like so: SUBSYSTEM!="usb", GOTO="android_usb_rules_end" LABEL="android_usb_rules_begin" SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1275", ENV{adb_user}="yes" ENV{adb_user}=="yes", MODE="0660", GROUP="plugdev", TAG+="uaccess" LABEL="android_usb_rules_end" While not really needed in OpenWrt, it might come useful if one decides to move the modem to their PC to hack it further, insides seem to be pretty interesting. ADB also works well from within OpenWrt without that. O course it isn't needed for normal operation, so I left it out of DEVICE_PACKAGES. Signed-off-by: Lech Perczak <lech.perczak@gmail.com> [remove kmod-usb-ledtrig-usbport, take merged upstream patches] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-06 12:56:46 +00:00
define Device/zte_mf283plus
$(Device/uimage-lzma-loader)
ramips: add support for ZTE MF283+ ZTE MF283+ is a dual-antenna LTE category 4 router, based on Ralink RT3352 SoC, and built-in ZTE P685M PCIe MiniCard LTE modem. Hardware highlighs: - CPU: MIPS24KEc at 400MHz, - RAM: 64MB DDR2, - Flash: 16MB SPI, - Ethernet: 4 10/100M port switch with VLAN support, - Wireless: Dual-stream 802.11n (RT2860), with two internal antennas, - WWAN: Built-in ZTE P685M modem, with two internal antennas and two switching SMA connectors for external antennas, - FXS: Single ATA, with two connectors marked PHONE1 and PHONE2, internally wired in parallel by 0-Ohm resistors, handled entirely by internal WWAN modem. - USB: internal miniPCIe slot for modem, unpopulated USB A connector on PCB. - SIM slot for the WWAN modem. - UART connector for the console (unpopulated) at 3.3V, pinout: 1: VCC, 2: TXD, 3: RXD, 4: GND, settings: 57600-8-N-1. - LEDs: Power (fixed), WLAN, WWAN (RGB), phone (bicolor, controlled by modem), Signal, 4 link/act LEDs for LAN1-4. - Buttons: WPS, reset. Installation: As the modem is, for most of the time, provided by carriers, there is no possibility to flash through web interface, only built-in FOTA update and TFTP recovery are supported. There are two installation methods: (1) Using serial console and initramfs-kernel - recommended, as it allows you to back up original firmware, or (2) Using TFTP recovery - does not require disassembly. (1) Using serial console: To install OpenWrt, one needs to disassemble the router and flash it via TFTP by using serial console: - Locate unpopulated 4-pin header on the top of the board, near buttons. - Connect UART adapter to the connector. Use 3.3V voltage level only, omit VCC connection. Pin 1 (VCC) is marked by square pad. - Put your initramfs-kernel image in TFTP server directory. - Power-up the device. - Press "1" to load initramfs image to RAM. - Enter IP address chosen for the device (defaults to 192.168.0.1). - Enter TFTP server IP address (defaults to 192.168.0.22). - Enter image filename as put inside TFTP server - something short, like firmware.bin is recommended. - Hit enter to load the image. U-boot will store above values in persistent environment for next installation. - If you ever might want to return to vendor firmware, BACK UP CONTENTS OF YOUR FLASH NOW. For this router, commonly used by mobile networks, plain vendor images are not officially available. To do so, copy contents of each /dev/mtd[0-3], "firmware" - mtd3 being the most important, and copy them over network to your PC. But in case anything goes wrong, PLEASE do back up ALL OF THEM. - From under OpenWrt just booted, load the sysupgrade image to tmpfs, and execute sysupgrade. (2) Using TFTP recovery - Set your host IP to 192.168.0.22 - for example using: sudo ip addr add 192.168.0.22/24 dev <interface> - Set up a TFTP server on your machine - Put the sysupgrade image in TFTP server root named as 'root_uImage' (no quotes), for example using tftpd: cp openwrt-ramips-rt305x-zte_mf283plus-squashfs-sysupgrade.bin /srv/tftp/root_uImage - Power on the router holding BOTH Reset and WPS buttons held for around 5 seconds, until after WWAN and Signal LEDs blink. - Wait for OpenWrt to start booting up, this should take around a minute. Return to original firmware: Here, again there are two possibilities are possible, just like for installation: (1) Using initramfs-kernel image and serial console (2) Using TFTP recovery (1) Using initramfs-kernel image and serial console - Boot OpenWrt initramfs-kernel image via TFTP the same as for installation. - Copy over the backed up "firmware.bin" image of "mtd3" to /tmp/ - Use "mtd write /tmp/firmware.bin /dev/mtd3", where firmware.bin is your backup taken before OpenWrt installation, and /dev/mtd3 is the "firmware" partition. (2) Using TFTP recovery - Follow the same steps as for installation, but replacing 'root_uImage' with firmware backup you took during installation, or by vendor firmware obtained elsewhere. A few quirks of the device, noted from my instance: - Wired and wireless MAC addresses written in flash are the same, despite being in separate locations. - Power LED is hardwired to 3.3V, so there is no status LED per se, and WLAN LED is controlled by WLAN driver, so I had to hijack 3G/4G LED for status - original firmware also does this in bootup. - FXS subsystem and its LED is controlled by the modem, so it work independently of OpenWrt. Tested to work even before OpenWrt booted. I managed to open up modem's shell via ADB, and found from its kernel logs, that FXS and its LED is indeed controlled by modem. - While finding LEDs, I had no GPL source drop from ZTE, so I had to probe for each and every one of them manually, so this might not be complete - it looks like bicolor LED is used for FXS, possibly to support dual-ported variant in other device sharing the PCB. - Flash performance is very low, despite enabling 50MHz clock and fast read command, due to using 4k sectors throughout the target. I decided to keep it at the moment, to avoid breaking existing devices - I identified one potentially affected, should this be limited to under 4MB of Flash. The difference between sysupgrade durations is whopping 3min vs 8min, so this is worth pursuing. In vendor firmware, WWAN LED behaviour is as follows, citing the manual: - red - no registration, - green - 3G, - blue - 4G. Blinking indicates activity, so netdev trigger mapped from wwan0 to blue:wwan looks reasonable at the moment, for full replacement, a script similar to "rssileds" would need to be developed. Behaviour of "Signal LED" in vendor firmware is as follows: - Off - no signal, - Blinking - poor coverage - Solid - good coverage. A few more details on the built-in LTE modem: Modem is not fully supported upstream in Linux - only two CDC ports (DIAG and one for QMI) probe. I sent patches upstream to add required device IDs for full support. The mapping of USB functions is as follows: - CDC (QCDM) - dedicated to comunicating with proprietary Qualcomm tools. - CDC (PCUI) - not supported by upstream 'option' driver yet. Patch submitted upstream. - CDC (Modem) - Exactly the same as above - QMI - A patch is sent upstream to add device ID, with that in place, uqmi did connect successfully, once I selected correct PDP context type for my SIM (IPv4-only, not default IPv4v6). - ADB - self-explanatory, one can access the ADB shell with a device ID added to 51-android.rules like so: SUBSYSTEM!="usb", GOTO="android_usb_rules_end" LABEL="android_usb_rules_begin" SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1275", ENV{adb_user}="yes" ENV{adb_user}=="yes", MODE="0660", GROUP="plugdev", TAG+="uaccess" LABEL="android_usb_rules_end" While not really needed in OpenWrt, it might come useful if one decides to move the modem to their PC to hack it further, insides seem to be pretty interesting. ADB also works well from within OpenWrt without that. O course it isn't needed for normal operation, so I left it out of DEVICE_PACKAGES. Signed-off-by: Lech Perczak <lech.perczak@gmail.com> [remove kmod-usb-ledtrig-usbport, take merged upstream patches] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-06 12:56:46 +00:00
SOC := rt3352
IMAGE_SIZE := 15872k
DEVICE_VENDOR := ZTE
DEVICE_MODEL := MF283+
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-net-qmi-wwan uqmi \
kmod-usb-serial kmod-usb-serial-option
endef
TARGET_DEVICES += zte_mf283plus
define Device/zyxel_keenetic
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport \
kmod-usb-dwc2
SUPPORTED_DEVICES += kn
endef
TARGET_DEVICES += zyxel_keenetic
define Device/zyxel_keenetic-lite-b
$(Device/uimage-lzma-loader)
SOC := rt5350
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Lite
DEVICE_VARIANT := B
endef
TARGET_DEVICES += zyxel_keenetic-lite-b
define Device/zyxel_keenetic-start
SOC := rt5350
IMAGE_SIZE := 3776k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Start
DEFAULT := n
endef
TARGET_DEVICES += zyxel_keenetic-start
define Device/zyxel_nbg-419n
SOC := rt3052
BLOCKSIZE := 64k
IMAGE_SIZE := 3776k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := NBG-419N
SUPPORTED_DEVICES += nbg-419n
DEFAULT := n
endef
TARGET_DEVICES += zyxel_nbg-419n
define Device/zyxel_nbg-419n-v2
$(Device/uimage-lzma-loader)
SOC := rt3352
IMAGE_SIZE := 7872k
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := NBG-419N
DEVICE_VARIANT := v2
SUPPORTED_DEVICES += nbg-419n2
endef
TARGET_DEVICES += zyxel_nbg-419n-v2