Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 committed Jul 9, 2022
1 parent 4276583 commit fc351a8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 73 deletions.
2 changes: 0 additions & 2 deletions devices/common/.config
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_SYSLOG_INFO=y
CONFIG_PACKAGE_bash=y
CONFIG_PACKAGE_ca-bundle=y

CONFIG_PACKAGE_kmod-mt7615d_dbdc=n

CONFIG_IMAGEOPT=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_REPO="https://op.supes.top"
Expand Down
26 changes: 22 additions & 4 deletions devices/ramips_mt7621/.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,32 @@ CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_ROOTFS_INITRAMFS=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-cr660x=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-3g=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-3-pro=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-4=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_redmi-router-ac2100=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaomi_mi-router-ac2100=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_xiaoyu_xy-c5=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_lenovo_newifi-d1=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_d-team_newifi-d2=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_glinet_gl-mt1300=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_phicomm_k2p=y
CONFIG_ALL_KMODS=n
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_asus_rt-ac85p=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6220=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6260=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6700-v2=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6800=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6850=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r6900-v2=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_netgear_r7450=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jcg_y2=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_jcg_q20=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_gehua_ghl-r-001=y

CONFIG_PACKAGE_luci-ssl=y # uhttpd服务

CONFIG_PACKAGE_kmod-shortcut-fe=n
CONFIG_PACKAGE_kmod-shortcut-fe-cm=n

CONFIG_PACKAGE_kmod-fs-ntfs3-oot=n


CONFIG_PACKAGE_kmod-fs-ntfs3-oot=n
83 changes: 16 additions & 67 deletions devices/ramips_mt7621/patches/cr660x.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---- a/target/linux/ramips/image/mt7621.mk
From 593d238ebf777c36c9ee819a1e20f59da5adc361 Mon Sep 17 00:00:00 2001
From: kiddin9 <48883331+kiddin9@users.noreply.github.com>
Date: Tue, 5 Jul 2022 17:54:53 +0800
Subject: [PATCH] Update mt7621.mk

Signed-off-by: kiddin9 <48883331+kiddin9@users.noreply.github.com>
---
target/linux/ramips/image/mt7621.mk | 46 +++++++++--------------------
1 file changed, 14 insertions(+), 32 deletions(-)

diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index bdaeac2cb16e..72fbd3930a80 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -223,7 +223,7 @@ define Device/asus_rt-n56u-b1
DEVICE_VARIANT := B1
Expand All @@ -9,43 +21,12 @@
endef
TARGET_DEVICES += asus_rt-n56u-b1

@@ -476,8 +476,8 @@ define Device/d-team_newifi-d2
IMAGE_SIZE := 32448k
DEVICE_VENDOR := Newifi
DEVICE_MODEL := D2
- DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
- kmod-usb-ledtrig-usbport
+ DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e kmod-usb3 \
+ kmod-usb-ledtrig-usbport luci-app-mtwifi -wpad-basic-wolfssl
endef
TARGET_DEVICES += d-team_newifi-d2

@@ -663,8 +663,8 @@ define Device/gehua_ghl-r-001
IMAGE_SIZE := 32448k
DEVICE_VENDOR := GeHua
DEVICE_MODEL := GHL-R-001
- DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
- kmod-usb-ledtrig-usbport
+ DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e kmod-usb3 \
+ kmod-usb-ledtrig-usbport luci-app-mtwifi -wpad-basic-wolfssl
endef
TARGET_DEVICES += gehua_ghl-r-001

@@ -673,7 +673,7 @@ define Device/glinet_gl-mt1300
IMAGE_SIZE := 32448k
DEVICE_VENDOR := GL.iNet
DEVICE_MODEL := GL-MT1300
- DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
+ DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi -wpad-basic-wolfssl kmod-usb3
endef
TARGET_DEVICES += glinet_gl-mt1300

@@ -984,7 +984,7 @@ define Device/jcg_y2
JCG_MAXSIZE := 16064k
DEVICE_VENDOR := JCG
DEVICE_MODEL := Y2
- DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3
+ DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi kmod-usb3 -wpad-basic-wolfssl -coremark -htop -bash -openssh-sftp-server
+ DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware kmod-usb3 wpad-mini -wpad-basic-wolfssl -coremark -htop -bash -openssh-sftp-server
endef
TARGET_DEVICES += jcg_y2

Expand All @@ -72,7 +53,7 @@
DEVICE_ALT0_MODEL := KE 2P
SUPPORTED_DEVICES += k2p
- DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware
+ DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi -wpad-basic-wolfssl -coremark -htop -bash -openssh-sftp-server
+ DEVICE_PACKAGES := kmod-mt7615e kmod-mt7615-firmware wpad-mini -wpad-basic-wolfssl -coremark -htop -bash -openssh-sftp-server
endef
TARGET_DEVICES += phicomm_k2p

Expand Down Expand Up @@ -119,16 +100,7 @@
endef
TARGET_DEVICES += xiaomi_mi-router-4a-gigabit

@@ -1914,7 +1912,7 @@ define Device/xiaomi_mi-router-ac2100
$(Device/xiaomi_nand_separate)
DEVICE_MODEL := Mi Router AC2100
IMAGE_SIZE := 120320k
- DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
+ DEVICE_PACKAGES += kmod-mt7603e kmod-mt7615d luci-app-mtwifi -wpad-basic-wolfssl
endef
TARGET_DEVICES += xiaomi_mi-router-ac2100

@@ -1927,36 +1925,20 @@ define Device/xiaomi_mi-router-cr660x
@@ -1927,30 +1925,14 @@ define Device/xiaomi_mi-router-cr660x
KERNEL_SIZE := 4096k
UBINIZE_OPTS := -E 5
IMAGE_SIZE := 128512k
Expand Down Expand Up @@ -163,13 +135,6 @@

define Device/xiaomi_redmi-router-ac2100
$(Device/xiaomi_nand_separate)
DEVICE_MODEL := Redmi Router AC2100
IMAGE_SIZE := 120320k
- DEVICE_PACKAGES += kmod-mt7603 kmod-mt7615e kmod-mt7615-firmware
+ DEVICE_PACKAGES += kmod-mt7603e kmod-mt7615d luci-app-mtwifi -wpad-basic-wolfssl
endef
TARGET_DEVICES += xiaomi_redmi-router-ac2100

@@ -1985,7 +1967,7 @@ define Device/youhua_wr1200js
DEVICE_VENDOR := YouHua
DEVICE_MODEL := WR1200JS
Expand Down Expand Up @@ -255,19 +220,3 @@
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x20000"
;;
esac

--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -75,6 +75,12 @@ ramips_setup_interfaces()
mikrotik,routerboard-760igs)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
;;
+ jcg,y2|\
+ phicomm,k2p|\
+ xiaoyu,xy-c5)
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
+ ;;
tplink,eap235-wall-v1|\
tplink,eap615-wall-v1)
ucidef_set_interface_lan "lan0 lan1 lan2 lan3"

0 comments on commit fc351a8

Please sign in to comment.