Skip to content

Commit

Permalink
refine 2410
Browse files Browse the repository at this point in the history
  • Loading branch information
lunatickochiya committed Feb 11, 2025
1 parent ad489a2 commit 28d72a0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions diy-2410.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ packages=(
"rtl8821cu"
"xray-core"
"smartdns"
"luci-app-filebrowser"
"luci-app-filemanager"
)

for package in "${packages[@]}"; do
Expand All @@ -79,6 +81,8 @@ done
directories=(
"feeds/luci/applications/luci-app-dockerman"
"feeds/luci/applications/luci-app-smartdns"
"feeds/luci/applications/luci-app-filebrowser"
"feeds/luci/applications/luci-app-filemanager"
"feeds/lunatic7/rtl8821cu"
"feeds/lunatic7/shortcut-fe"
"feeds/lunatic7/fullconenat-nft"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From 9d30632db1d474c366e4ebfde891cdd3a1f3f85b Mon Sep 17 00:00:00 2001
From 6a72793c12d23ee1cac6d10b2307c283dee12a21 Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Sun, 26 Jan 2025 17:38:23 +0800
Date: Tue, 11 Feb 2025 19:16:28 +0800
Subject: [PATCH 1/6] mediatek:add support for cmcc rax3000m nand custom uboot
mod

Expand Down Expand Up @@ -50,7 +50,7 @@ index 6ee525e8d0..9c29f88256 100644
addr=$(mtd_get_mac_binary "Factory" 0x8000)
[ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 135a954400..a88a0e39d0 100644
index 135a954400..d1630facc4 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -533,6 +533,29 @@ define Device/cmcc_rax3000m
Expand All @@ -63,7 +63,7 @@ index 135a954400..a88a0e39d0 100644
+ DEVICE_VARIANT := (custom U-Boot layout)
+ DEVICE_DTS := mt7981b-cmcc-rax3000m-nand-ubootmod
+ DEVICE_DTS_DIR := ../dts
+ DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
+ DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
+ e2fsprogs f2fsck mkf2fs
+ UBINIZE_OPTS := -E 5
+ BLOCKSIZE := 128k
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 2be300656f72ea527a1d515fcabaab4a83df1101 Mon Sep 17 00:00:00 2001
From e0c090e9646e182f2b94df2731e9958a3f49c058 Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Sun, 26 Jan 2025 17:40:30 +0800
Subject: [PATCH 2/6] mediatek:add cmcc rax3000m nand custom uboot mod dts file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From 7b78ac97da134f382e0310f1ec4a83675cf09898 Mon Sep 17 00:00:00 2001
From 3b880de6ab7996e0fa48f0e78f1108473e64ad5d Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Tue, 11 Feb 2025 14:43:14 +0800
Date: Tue, 11 Feb 2025 19:16:55 +0800
Subject: [PATCH 3/6] mediatek:add support for cmcc rax3000m emmc custom uboot
mod

Expand Down Expand Up @@ -89,7 +89,7 @@ index 11bfad2e7b..37f532af41 100755
glinet,gl-mt6000|\
glinet,gl-x3000|\
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index a88a0e39d0..b3d2bc50eb 100644
index d1630facc4..ddc88568d8 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -533,6 +533,21 @@ define Device/cmcc_rax3000m
Expand All @@ -101,7 +101,7 @@ index a88a0e39d0..b3d2bc50eb 100644
+ DEVICE_MODEL := RAX3000M eMMC version (custom U-Boot layout)
+ DEVICE_DTS := mt7981b-cmcc-rax3000m-emmc-ubootmod
+ DEVICE_DTS_DIR := ../dts
+ DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
+ DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
+ resize2fs tune2fs losetup blkid lsblk fdisk cfdisk parted mount-utils kmod-loop autoset-resize-rootfs-script \
+ e2fsprogs f2fsck mkf2fs
+ KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 52ffea807d93a196eef57190908d44db54165d12 Mon Sep 17 00:00:00 2001
From fce93958018387ccbdfba5275910a206bfa4edf3 Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Sun, 26 Jan 2025 17:52:35 +0800
Subject: [PATCH 4/6] mediatek:add cmcc rax3000m emmc custom uboot mod dts file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 79404268564cd695ff359053815f8d7f749f77f0 Mon Sep 17 00:00:00 2001
From 11e858bd24f0e138cf481f8bd662517398ba44a1 Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Sun, 9 Feb 2025 22:00:39 +0800
Subject: [PATCH 5/6] mediatek: add Nokia EA0326GMP support ubootmod 110M dts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From d2ff3a5b588562471bd7226ef9ce0af23974ff9f Mon Sep 17 00:00:00 2001
From 2a2ec4b5bb873a5eca89945168ea7ac16a71ae62 Mon Sep 17 00:00:00 2001
From: lunatickochiya <125438787@qq.com>
Date: Sun, 9 Feb 2025 22:00:51 +0800
Date: Tue, 11 Feb 2025 19:19:25 +0800
Subject: [PATCH 6/6] mediatek: add Nokia EA0326GMP support ubootmod 110M
support

Expand Down Expand Up @@ -66,7 +66,7 @@ index 37f532af41..f56795cb05 100755
netcore,n60|\
qihoo,360t7|\
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index b3d2bc50eb..291f1daae4 100644
index ddc88568d8..3336a8f311 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -1224,6 +1224,24 @@ define Device/nokia_ea0326gmp
Expand All @@ -86,7 +86,7 @@ index b3d2bc50eb..291f1daae4 100644
+ KERNEL_IN_UBI := 1
+ IMAGES += factory.bin
+ IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
+ DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware
+ DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
+ IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+endef
+TARGET_DEVICES += nokia_ea0326gmp_ubootmod
Expand Down

0 comments on commit 28d72a0

Please sign in to comment.