[LEDE-DEV] [PATCH v2] ramips: add support for RATOC REX-WIFISD2

Mathias Kresin dev at kresin.me
Sat Feb 11 02:28:59 PST 2017


28.01.2017 17:03, FUKAUMI Naoki:
> diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
> index 50eae2f..0728d93 100644
> --- a/target/linux/ramips/image/mt7620.mk
> +++ b/target/linux/ramips/image/mt7620.mk
> @@ -465,3 +465,13 @@ define Device/kng_rc
>  	zyimage -d 8997 -v "ZyXEL Keenetic Viva"
>  endef
>  TARGET_DEVICES += kng_rc
> +
> +define Device/rex-wifisd2
> +  DTS := REX-WIFISD2
> +  IMAGES := kernel.bin rootfs.bin
> +  IMAGE/kernel.bin := append-kernel
> +  IMAGE/rootfs.bin := append-rootfs | pad-rootfs
> +  DEVICE_TITLE := RATOC REX-WIFISD2
> +  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
> +endef
> +TARGET_DEVICES += rex-wifisd2

Please add support for a sysupgrade image as well. Have a look at 
platform_do_upgrade_combined() in 
target/linux/ar71xx/base-files/lib/upgrade/platform.sh for an example on 
how to do it.

Mathias



More information about the Lede-dev mailing list