-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
168 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
devices/mediatek_filogic/diy/target/linux/mediatek/dts/mt7981b-cudy-tr3000-mod.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
/dts-v1/; | ||
#include "mt7981b-cudy-tr3000-v1.dts" | ||
|
||
/ { | ||
model = "Cudy TR3000 (U-Boot mod)"; | ||
compatible = "cudy,tr3000-mod", "mediatek,mt7981-spim-snand-rfb"; | ||
}; | ||
|
||
&spi0 { | ||
flash@0 { | ||
partitions { | ||
partition@580000 { | ||
label = "ubi"; | ||
reg = <0x5C0000 0x7000000>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- a/target/linux/mediatek/image/filogic.mk | ||
+++ b/target/linux/mediatek/image/filogic.mk | ||
@@ -633,6 +633,21 @@ define Device/cudy_re3000-v1 | ||
endef | ||
TARGET_DEVICES += cudy_re3000-v1 | ||
|
||
+define Device/cudy_tr3000-mod | ||
+ DEVICE_VENDOR := Cudy | ||
+ DEVICE_MODEL := TR3000 | ||
+ DEVICE_VARIANT := (U-Boot mod) | ||
+ DEVICE_DTS := mt7981b-cudy-tr3000-mod | ||
+ DEVICE_DTS_DIR := ../dts | ||
+ UBINIZE_OPTS := -E 5 | ||
+ BLOCKSIZE := 128k | ||
+ PAGESIZE := 2048 | ||
+ KERNEL_IN_UBI := 1 | ||
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | ||
+ DEVICE_PACKAGES := kmod-usb3 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware | ||
+endef | ||
+TARGET_DEVICES += cudy_tr3000-mod | ||
+ | ||
define Device/cudy_tr3000-v1 | ||
DEVICE_VENDOR := Cudy | ||
DEVICE_MODEL := TR3000 | ||
|
||
--- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network | ||
+++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network | ||
@@ -78,7 +78,7 @@ mediatek_setup_interfaces() | ||
ucidef_set_interface_lan "eth0" | ||
;; | ||
cudy,m3000-v1|\ | ||
- cudy,tr3000-v1|\ | ||
+ cudy,tr3000*|\ | ||
glinet,gl-mt2500|\ | ||
glinet,gl-mt3000|\ | ||
glinet,gl-x3000|\ | ||
|
||
--- a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface | ||
+++ b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface | ||
@@ -1,7 +1,7 @@ | ||
set_preinit_iface() { | ||
case $(board_name) in | ||
cudy,m3000-v1|\ | ||
- cudy,tr3000-v1|\ | ||
+ cudy,tr3000*|\ | ||
glinet,gl-mt3000|\ | ||
openembed,som7981) | ||
ip link set eth1 up | ||
|
||
--- 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 | ||
@@ -73,7 +73,7 @@ case "$board" in | ||
addr=$(mtd_get_mac_binary "Factory" 0x8000) | ||
[ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress | ||
;; | ||
- cudy,tr3000-v1|\ | ||
+ cudy,tr3000*|\ | ||
cudy,re3000-v1) | ||
addr=$(mtd_get_mac_binary bdinfo 0xde00) | ||
[ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-24.10 | ||
src-git luci https://git.openwrt.org/project/luci.git;openwrt-24.10 | ||
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-24.10 | ||
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-24.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
REPO_URL="https://github.com/georgemoussalem/openwrt-fork" | ||
REPO_BRANCH="main" | ||
CONFIG_FILE=".config" | ||
DIY_SH="diy.sh" | ||
FREE_UP_DISK="false" | ||
UPLOAD_BIN_DIR_FOR_ARTIFACT="false" | ||
UPLOAD_FIRMWARE_FOR_ARTIFACT="true" | ||
UPLOAD_FIRMWARE_FOR_RELEASE="false" | ||
UPLOAD_FIRMWARE_TO_COWTRANSFER="false" | ||
UPLOAD_FIRMWARE_TO_WETRANSFER="true" |
Oops, something went wrong.