ramips: mt7621: reorganize shared device definitions for Xiaomi
This creates a shared device definition for Xiaomi devices with NAND and "separate" images, i.e. kernel1.bin and rootfs0.bin. This allows to consolidate similar/duplicate code for AC2100 family and Mi Router 3G. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
36347d003a
commit
5a46b71826
@ -1220,39 +1220,27 @@ define Device/winstars_ws-wn583a6
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += winstars_ws-wn583a6
|
TARGET_DEVICES += winstars_ws-wn583a6
|
||||||
|
|
||||||
define Device/xiaomi-ac2100
|
define Device/xiaomi_nand_separate
|
||||||
$(Device/dsa-migration)
|
$(Device/dsa-migration)
|
||||||
$(Device/uimage-lzma-loader)
|
$(Device/uimage-lzma-loader)
|
||||||
|
DEVICE_VENDOR := Xiaomi
|
||||||
|
DEVICE_PACKAGES := uboot-envtools
|
||||||
BLOCKSIZE := 128k
|
BLOCKSIZE := 128k
|
||||||
PAGESIZE := 2048
|
PAGESIZE := 2048
|
||||||
KERNEL_SIZE := 4096k
|
KERNEL_SIZE := 4096k
|
||||||
IMAGE_SIZE := 120320k
|
|
||||||
UBINIZE_OPTS := -E 5
|
UBINIZE_OPTS := -E 5
|
||||||
IMAGES += kernel1.bin rootfs0.bin
|
IMAGES += kernel1.bin rootfs0.bin
|
||||||
IMAGE/kernel1.bin := append-kernel
|
IMAGE/kernel1.bin := append-kernel
|
||||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
IMAGE/rootfs0.bin := append-ubi | check-size
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||||
DEVICE_VENDOR := Xiaomi
|
|
||||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware \
|
|
||||||
uboot-envtools
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Device/xiaomi_mi-router-3g
|
define Device/xiaomi_mi-router-3g
|
||||||
$(Device/dsa-migration)
|
$(Device/xiaomi_nand_separate)
|
||||||
$(Device/uimage-lzma-loader)
|
|
||||||
BLOCKSIZE := 128k
|
|
||||||
PAGESIZE := 2048
|
|
||||||
KERNEL_SIZE := 4096k
|
|
||||||
IMAGE_SIZE := 124416k
|
|
||||||
UBINIZE_OPTS := -E 5
|
|
||||||
IMAGES += kernel1.bin rootfs0.bin
|
|
||||||
IMAGE/kernel1.bin := append-kernel
|
|
||||||
IMAGE/rootfs0.bin := append-ubi | check-size
|
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
||||||
DEVICE_VENDOR := Xiaomi
|
|
||||||
DEVICE_MODEL := Mi Router 3G
|
DEVICE_MODEL := Mi Router 3G
|
||||||
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
IMAGE_SIZE := 124416k
|
||||||
kmod-usb-ledtrig-usbport uboot-envtools
|
DEVICE_PACKAGES += kmod-mt7603 kmod-mt76x2 kmod-usb3 \
|
||||||
|
kmod-usb-ledtrig-usbport
|
||||||
SUPPORTED_DEVICES += R3G mir3g xiaomi,mir3g
|
SUPPORTED_DEVICES += R3G mir3g xiaomi,mir3g
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += xiaomi_mi-router-3g
|
TARGET_DEVICES += xiaomi_mi-router-3g
|
||||||
@ -1301,14 +1289,18 @@ endef
|
|||||||
TARGET_DEVICES += xiaomi_mi-router-4a-gigabit
|
TARGET_DEVICES += xiaomi_mi-router-4a-gigabit
|
||||||
|
|
||||||
define Device/xiaomi_mi-router-ac2100
|
define Device/xiaomi_mi-router-ac2100
|
||||||
$(Device/xiaomi-ac2100)
|
$(Device/xiaomi_nand_separate)
|
||||||
DEVICE_MODEL := Mi Router AC2100
|
DEVICE_MODEL := Mi Router AC2100
|
||||||
|
IMAGE_SIZE := 120320k
|
||||||
|
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += xiaomi_mi-router-ac2100
|
TARGET_DEVICES += xiaomi_mi-router-ac2100
|
||||||
|
|
||||||
define Device/xiaomi_redmi-router-ac2100
|
define Device/xiaomi_redmi-router-ac2100
|
||||||
$(Device/xiaomi-ac2100)
|
$(Device/xiaomi_nand_separate)
|
||||||
DEVICE_MODEL := Redmi Router AC2100
|
DEVICE_MODEL := Redmi Router AC2100
|
||||||
|
IMAGE_SIZE := 120320k
|
||||||
|
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += xiaomi_redmi-router-ac2100
|
TARGET_DEVICES += xiaomi_redmi-router-ac2100
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user