123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
- +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
- @@ -34,7 +34,7 @@ mediatek_setup_interfaces()
- bananapi,bpi-r3)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 sfp2" "eth1 wan"
- ;;
- - cmcc,rax3000m|\
- + cmcc,rax3000m*|\
- h3c,magic-nx30-pro)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
- ;;
- --- a/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
- +++ b/target/linux/mediatek/filogic/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
- @@ -57,6 +57,13 @@ case "$board" in
- esac
- [ "$PHYNBR" = "1" ] && echo "$addr" > /sys${DEVPATH}/macaddress
- ;;
- + cmcc,rax3000m-emmc)
- + [ "$PHYNBR" = "1" ] && mmc_get_mac_binary factory 0xa > /sys${DEVPATH}/macaddress
- + ;;
- + cmcc,a10|\
- + cmcc,rax3000m-nand)
- + [ "$PHYNBR" = "1" ] && mtd_get_mac_binary Factory 0xa > /sys${DEVPATH}/macaddress
- + ;;
- cudy,wr3000-v1)
- addr=$(mtd_get_mac_binary bdinfo 0xde00)
- # Originally, phy0 is phy1 mac with LA bit set. However, this would conflict
- --- a/target/linux/mediatek/image/filogic.mk
- +++ b/target/linux/mediatek/image/filogic.mk
- @@ -280,7 +280,38 @@ define Device/cmcc_rax3000m
- ARTIFACT/nand-preloader.bin := mt7981-bl2 spim-nand-ddr4
- ARTIFACT/nand-bl31-uboot.fip := mt7981-bl31-uboot cmcc_rax3000m-nand
- endef
- -TARGET_DEVICES += cmcc_rax3000m
- +
- +define Device/cmcc_rax3000m-nand
- + DEVICE_VENDOR := CMCC
- + DEVICE_MODEL := RAX3000M NAND
- + DEVICE_DTS := mt7981b-cmcc-rax3000m-nand
- + DEVICE_DTS_DIR := ../dts
- + DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
- + e2fsprogs f2fsck mkf2fs
- + UBINIZE_OPTS := -E 5
- + BLOCKSIZE := 128k
- + PAGESIZE := 2048
- + IMAGE_SIZE := 116736k
- + KERNEL_IN_UBI := 1
- + IMAGES += factory.bin
- + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
- + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- +endef
- +TARGET_DEVICES += cmcc_rax3000m-nand
- +
- +define Device/cmcc_rax3000m-emmc
- + DEVICE_VENDOR := CMCC
- + DEVICE_MODEL := RAX3000M eMMC
- + DEVICE_DTS := mt7981b-cmcc-rax3000m-emmc
- + DEVICE_DTS_DIR := ../dts
- + DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
- + e2fsprogs f2fsck mkf2fs losetup kmod-fs-f2fs kmod-mmc
- + KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
- + KERNEL_INITRAMFS := kernel-bin | lzma | \
- + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
- + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
- +endef
- +TARGET_DEVICES += cmcc_rax3000m-emmc
-
- define Device/confiabits_mt7981
- DEVICE_VENDOR := Confiabits
- --- a/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
- +++ b/target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
- @@ -109,6 +109,7 @@ platform_do_upgrade() {
- cudy,wr3000-v1)
- default_do_upgrade "$1"
- ;;
- + cmcc,rax3000m-emmc|\
- glinet,gl-mt6000)
- CI_KERNPART="kernel"
- CI_ROOTPART="rootfs"
- @@ -184,6 +185,7 @@ platform_copy_config() {
- ;;
- esac
- ;;
- + cmcc,rax3000m-emmc|\
- glinet,gl-mt6000|\
- ubnt,unifi-6-plus)
- emmc_copy_config
|