gl-usb150|\
gl-ar300|\
gl-ar300m|\
+tpe-r1200|\
gl-ar750)
ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy0tpt"
;;
dr344|\
gl-ar150|\
gl-ar300m|\
+ tpe-r1200|\
gl-domino|\
gl-inet|\
gl-mifi|\
status_led_on
case $(ar71xx_board_name) in
gl-ar300m|\
+ tpe-r1200|\
gl-ar750)
fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
;;
*TEW-823DRU)
name="tew-823dru"
;;
+ *"TPE-R1200 Think Penguin Mini Router")
+ name="tpe-r1200"
+ ;;
*"TL-WR1041N v2")
name="tl-wr1041n-v2"
;;
platform_check_image_gl_ar300m "$1" "$board" "$magic" && return 0
return 1
;;
+ tpe-r1200)
+ platform_check_image_gl_ar300m "$1" "$board" "$magic" && return 0
+ return 1
+ ;;
gl-ar300|\
gl-ar750|\
gl-domino|\
gl-ar300m)
platform_pre_upgrade_gl_ar300m "$1"
;;
+ tpe-r1200)
+ platform_pre_upgrade_gl_ar300m "$1"
+ ;;
rb-941-2nd)
;;
rb*|\
CONFIG_ATH79_MACH_TEW_712BR=y
CONFIG_ATH79_MACH_TEW_732BR=y
CONFIG_ATH79_MACH_TEW_823DRU=y
+CONFIG_ATH79_MACH_TPE_R1200=y
CONFIG_ATH79_MACH_TL_MR11U=y
CONFIG_ATH79_MACH_TL_MR13U=y
CONFIG_ATH79_MACH_TL_MR3020=y
select ATH79_DEV_USB
select ATH79_DEV_WMAC
+config ATH79_MACH_TPE_R1200
+ bool "TPE-R1200 Support"
+ select SOC_QCA953X
+ select ATH79_DEV_ETH
+ select ATH79_DEV_GPIO_BUTTONS
+ select ATH79_DEV_LEDS_GPIO
+ select ATH79_DEV_M25P80
+ select ATH79_DEV_USB
+ select ATH79_DEV_WMAC
+
config ATH79_MACH_ARCHER_C7
bool "TP-LINK Archer C5/C7/TL-WDR4900 v2 board support"
select SOC_QCA955X
MIPS_MACHINE(ATH79_MACH_GL_AR300M, "GL-AR300M", "GL-AR300M",
gl_ar300m_setup);
+
+MIPS_MACHINE(ATH79_MACH_TPE_R1200, "TPE-R1200", "TPE-R1200 Think Penguin Mini Router",
+ gl_ar300m_setup);
ATH79_MACH_TEW_712BR, /* TRENDnet TEW-712BR */
ATH79_MACH_TEW_732BR, /* TRENDnet TEW-732BR */
ATH79_MACH_TEW_823DRU, /* TRENDnet TEW-823DRU */
+ ATH79_MACH_TPE_R1200, /* ThinkPenguin TPE-R1200 */
ATH79_MACH_TL_MR10U, /* TP-LINK TL-MR10U */
ATH79_MACH_TL_MR11U, /* TP-LINK TL-MR11U */
ATH79_MACH_TL_MR13U, /* TP-LINK TL-MR13U */
CONSOLE = ttyS0,115200
MTDPARTS = spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro
endef
-TARGET_DEVICES += gl-ar300m
+
+define Device/tpe-r1200
+ $(Device/gl-ar300m)
+ DEVICE_TITLE := TPE-R1200 Think Penguin Mini Router
+ BOARDNAME = TPE-R1200
+endef
+
+TARGET_DEVICES += gl-ar300m tpe-r1200
+
define Device/gl-ar750
DEVICE_TITLE := GL.iNet GL-AR750
tew823dru_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,15296k(firmware),192k(lang)ro,512k(my-dlink)ro,64k(mac)ro,64k(art)ro
wndr4300_mtdlayout=mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)
gl-ar300md_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(reserved),64k(art);spi0.1:2048k(kernel),-(ubi)
+tpe-r1200d_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(reserved),64k(art);spi0.1:2048k(kernel),-(ubi)
zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x50000(firmware)
mynet_rext_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,7808k(firmware),64k(nvram)ro,64k(ART)ro
$(eval $(call SingleProfile,ZyXELNAND,128k,NBG6716,nbg6716,NBG6716,ttyS0,115200,NBG6716,$$(zyx_nbg6716_mtdlayout),mem=256M))
$(eval $(call SingleProfile,GLNAND,64k,GL-AR300MD,gl-ar300m,GL-AR300M,ttyS0,115200,$$(gl-ar300md_mtdlayout),gl-ar300m))
+$(eval $(call SingleProfile,GLNAND,64k,TPE-R1200D,tpe-r1200,TPE-R1200,ttyS0,115200,$$(tpe-r1200d_mtdlayout),tpe-r1200))
+
endif # ifeq ($(SUBTARGET),nand)
define Image/Build/squashfs
DEVICE_TITLE := GL-AR300M with nand flash
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 uboot-envtools
endef
-LEGACY_DEVICES += GL-AR300MD
+
+define LegacyDevice/TPE-R1200D
+ DEVICE_TITLE := TPE-R1200 Think Penguin Mini Router
+ DEVICE_PACKAGES := kmod-usb-core kmod-usb2 uboot-envtools
+endef
+LEGACY_DEVICES += GL-AR300MD TPE-R1200D
define Device/mr18
DEVICE_TITLE := Meraki MR18
--- /dev/null
+[rootfs]
+# Volume mode (other option is static)
+mode=ubi
+# Source image
+image=root.squashfs
+# Volume ID in UBI image
+vol_id=0
+# Allow for dynamic resize
+vol_type=dynamic
+# Volume name
+vol_name=rootfs
+# Autoresize volume at first mount
+# vol_flags=autoresize
+
+[rootfs_data]
+# Volume mode (other option is static)
+mode=ubi
+# Volume ID in UBI image
+vol_id=1
+# Allow for dynamic resize
+vol_type=dynamic
+# Volume name
+vol_name=rootfs_data
+# Autoresize volume at first mount
+vol_flags=autoresize
+vol_size=1MiB