本帖最后由 sivs147 于 2022-1-10 07:20 编辑
2022.01.01
以下版本適用OPENWRT 21.02之後的版本,核心改5.10
DSA驅動 GUI修改VLAN功能已能正常使用,1/10更新測試能用,但pppoe速度都只有100M以下,後來又降回19.07,速度才正常
修改後的檔案直接下載
链接:https://share.weiyun.com/cx9gdAcU 密码:ecyej9
OpenWrt SNAPSHOT r18458 含P910nd
链接:https://share.weiyun.com/vT0UC6pk 密码:d7tm8b
OpenWrt SNAPSHOT r18457
链接:https://share.weiyun.com/HJGlKg8v 密码:5dzvyw
前兩天的版本 OpenWrt SNAPSHOT r18454-2e1206ad23
链接:https://share.weiyun.com/h9VhKzeM 密码:ppci8m
比較特別的設定是除了新增到network>interface>device 設定VLAN之外ˋ
也必須到network>interface將VLAN加入一個介面,這是看這幾天老外上傳的影片才知道的
原以為只要設定完VLAN就可以
還有VLAN除了設定UNTAGED PVID也得打上(下拉選單最後一個,會打上*號)
UNTAGED是要將其他埠轉過來的封包移除TAG封包
而PVID是要將進入該埠封包打上TAG封包 ,才能正確通過
除非是特殊應用,不然進出方向不一樣VLAN會失效
須修改兩個檔案,新增一個檔案
./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds(須修改)
./target/linux/ramips/image/mt7621.mk(須修改) ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts(新增)
1. ./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds 新增 ======================================================================================= zte,e8820v2) ucidef_set_led_netdev"sys" "SYS_LED" "$boardname:white:sys""eth0" "tx rx" ucidef_set_led_default"power" "POWER_LED" "$boardname:white:power""1" ;; ====================================================================================== 2. ./target/linux/ramips/image/mt7621.mk 新增 ======================================================================================= define Device/zte_e8820v2 $(Device/dsa-migration) IMAGE_SIZE := 16064k DEVICE_VENDOR := ZTE DEVICE_MODEL := E8820V2 DEVICE_PACKAGES := \ kmod-mt7603kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad hostapd-utils luci endef TARGET_DEVICES += zte_e8820v2 ======================================================================================= 3. ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts 新增 =======================================================================================
#include "mt7621.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { compatible ="zte,e8820v2", "mediatek,mt7621-soc"; model ="ZTE E8820V2"; aliases { led-boot= &led_sys; led-failsafe= &led_sys; led-running= &led_sys; led-upgrade= &led_sys; }; chosen { bootargs= "console=ttyS0,115200"; }; leds { compatible= "gpio-leds"; led_sys:sys{ label= "e8820v2:white:sys"; gpios= <&gpio 29 GPIO_ACTIVE_LOW>; }; led_power:power{ label= "e8820v2:white:power"; gpios= <&gpio 31 GPIO_ACTIVE_LOW>; }; }; keys { compatible= "gpio-keys"; reset{ label= "reset"; gpios= <&gpio 18 GPIO_ACTIVE_LOW>; linux,code= <KEY_RESTART>; }; wps{ label= "wps"; gpios= <&gpio 24 GPIO_ACTIVE_LOW>; linux,code= <KEY_WPS_BUTTON>; }; }; }; &spi0 { status ="okay"; flash@0 { compatible= "jedec,spi-nor"; reg= <0>; spi-max-frequency= <10000000>; partitions{ compatible= "fixed-partitions"; #address-cells= <1>; #size-cells= <1>; partition@0{ label= "u-boot"; reg= <0x0 0x30000>; read-only; }; partition@30000{ label= "u-boot-env"; reg= <0x30000 0x10000>; read-only; }; factory:partition@40000 { label= "factory"; reg= <0x40000 0x10000>; read-only; }; partition@50000{ compatible= "denx,uimage"; label= "firmware"; reg= <0x50000 0xfb0000>; }; }; }; }; &pcie { status ="okay"; }; &pcie0 { mt76@0,0 { reg= <0x0000 0 0 0 0>; mediatek,mtd-eeprom= <&factory 0x0000>; led{ led-active-low; }; }; }; &pcie1 { mt76@0,0 { reg= <0x0000 0 0 0 0>; mediatek,mtd-eeprom= <&factory 0x8000>; ieee80211-freq-limit= <5000000 6000000>; led{ led-sources= <2>; led-active-low; }; }; }; &gmac0 { mtd-mac-address= <&factory 0xe000>; }; &switch0 { ports { port@0{ status= "okay"; label= "lan1"; }; port@1{ status= "okay"; label= "lan2"; }; port@2{ status= "okay"; label= "lan3"; }; port@3{ status= "okay"; label= "lan4"; }; port@4{ status= "okay"; label= "wan"; mtd-mac-address= <&factory 0xe006>; }; }; }; &state_default { gpio { groups= "i2c", "uart2", "uart3", "wdt"; function= "gpio"; }; };
以下版本適用OPENWRT 19.02之後的版本,核心改5.4
須修改兩個檔案,新增一個檔案
./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds(須修改)
./target/linux/ramips/image/mt7621.mk(須修改) ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts(新增)
1. ./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds 新增
=======================================================================================
zte,e8820v2)
ucidef_set_led_netdev"sys" "SYS_LED" "$boardname:white:sys""eth0" "tx rx"
ucidef_set_led_default"power" "POWER_LED" "$boardname:white:power""1"
;;
======================================================================================
2. ./target/linux/ramips/image/mt7621.mk
新增
=======================================================================================
define Device/zte_e8820v2
IMAGE_SIZE := 16064k
DEVICE_VENDOR := ZTE
DEVICE_MODEL := E8820V2
DEVICE_PACKAGES := \
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad luci
endef
TARGET_DEVICES += zte_e8820v2
=======================================================================================
3. ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts
新增
=======================================================================================
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "zte,e8820v2", "mediatek,mt7621-soc";
model = "ZTE E8820V2";
aliases {
led-boot = &led_sys;
led-failsafe = &led_sys;
led-running = &led_sys;
led-upgrade = &led_sys;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_sys:sys {
label = "e8820v2:white:sys";
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
};
led_power:power {
label = "e8820v2:white:power";
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
m25p80@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xfb0000>;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
led {
led-active-low;
};
};
};
&pcie1 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
led {
led-sources = <2>;
led-active-low;
};
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
ports {
port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
port@0 {
status = "okay";
label = "lan1";
};
port@1 {
status = "okay";
label = "lan2";
};
port@2 {
status = "okay";
label = "lan3";
};
port@3 {
status = "okay";
label = "lan4";
};
};
};
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "wdt";
function = "gpio";
};
};
=======================================================================================
以下版本適用OPENWRT 19.07
須修改三個檔案,新增一個檔案
./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds(路徑有修改)./target/linux/ramips/mt7621/base-files/etc/board.d/02_network(路徑有修改) ./target/linux/ramips/image/mt7621.mk(須修改) ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts(新增)
1. ./target/linux/ramips/mt7621/base-files/etc/board.d/01_leds 新增
=======================================================================================
zte,e8820v2)
ucidef_set_led_netdev"sys" "SYS_LED" "$boardname:white:sys""eth0" "tx rx"
ucidef_set_led_default"power" "POWER_LED" "$boardname:white:power""1"
;;
======================================================================================
2. ./target/linux/ramips/mt7621/base-files/etc/board.d/02_network 新增
=======================================================================================
zte,e8820v2)
ucidef_set_interfaces_lan_wan"eth0.1" "eth0.2"
ucidef_add_switch"switch0" "1" "1" \
"0:lan:1""1:lan:1" "2:lan:1" "3:lan:1" "4:wan:2""6t@eth0"
;;
=======================================================================================
3. ./target/linux/ramips/image/mt7621.mk 新增
=======================================================================================
define Device/zte_e8820v2
MTK_SOC := mt7621
IMAGE_SIZE := 16064k
DEVICE_VENDOR := ZTE
DEVICE_MODEL := E8820V2
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := \
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad hostapd-utils luci
endef
TARGET_DEVICES += zte_e8820v2
=======================================================================================
4. ./target/linux/ramips/dts/mt7621_zte_e8820v2.dts
新增
=======================================================================================
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "zte,e8820v2", "mediatek,mt7621-soc";
model = "ZTE E8820V2";
aliases {
led-boot = &led_sys;
led-failsafe = &led_sys;
led-running = &led_sys;
led-upgrade = &led_sys;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_sys:sys {
label = "e8820v2:white:sys";
gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
};
led_power:power {
label = "e8820v2:white:power";
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;
reset {
label = "reset";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
m25p80@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xfb0000>;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
led {
led-active-low;
};
};
};
&pcie1 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
led {
led-sources = <2>;
led-active-low;
};
};
};
ðernet {
mtd-mac-address = <&factory 0xe000>;
};
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "i2c", "uart2", "uart3", "wdt";
ralink,function = "gpio";
};
};
};
============================================================================
以下版本僅適用於OPENWRT 18.06版
注意:更新完自動重開第一次無線都會無法載入,原因不明還再查找,但是確定移除電源重開就能載入
原廠EEPROM,不是每一台都一樣,建議最好備份自己機子的,如果沒有再考慮刷我的
https://share.weiyun.com/5clgMrS 密碼:ysvsyq
進入BREED刷完後,記得到MAC修改的位置紅色的部分填上原本的MAC
如何編譯固件很多大神都有教學,我就提示要改哪些文件就好
如果有人能幫我上傳到GITHUB最好,因為我還搞不懂那個用法
編譯E8820V2須修改新增的檔案
共計五個如下
修改內容
./target/linux/ramips/base-files/etc/board.d/01_leds
./target/linux/ramips/base-files/etc/board.d/02_network
./target/linux/ramips/image/mt7621.mk
./target/linux/ramips/base-files/lib/ramips.sh
新增檔案
./target/linux/ramips/dts/E8820V2.dts
1. ./target/linux/ramips/base-files/etc/board.d/01_leds
新增
=======================================================================================
zte,e8820v2)
ucidef_set_led_netdev"sys""SYS_LED" "$boardname:white:sys""eth0" "txrx"
ucidef_set_led_default"power""POWER_LED" "$boardname:white:power""1"
;;
=======================================================================================
3. ./target/linux/ramips/base-files/etc/board.d/02_network
新增
=======================================================================================
zte,e8820v2)
ucidef_set_interfaces_lan_wan"eth0.1""eth0.2"
ucidef_add_switch"switch0""1" "1" \
"3:lan:1""2:lan:1""1:lan:1" "0:lan:1" "4:wan:2""6t@eth0"
;;
=======================================================================================
4. ./target/linux/ramips/image/mt7621.mk
新增
=======================================================================================
define Device/zte_e8820v2
DTS := E8820V2
IMAGE_SIZE :=$(ralink_default_fw_size_16M)
DEVICE_TITLE := ZTE E8820V2
DEVICE_PACKAGES := \
kmod-mt76 kmod-mt7603 kmod-mt76x2 kmod-usb3kmod-usb-ledtrig-usbport wpad hostapd-utils
endef
TARGET_DEVICES += zte_e8820v2
=======================================================================================
5. ./target/linux/ramips/base-files/lib/ramips.sh
新增
=======================================================================================
*"zte,e8820v2")
name="e8820v2"
;;
=======================================================================================
6. ./target/linux/ramips/dts/E8820V2.dts
新增
=======================================================================================
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible ="zte,e8820v2","mediatek,mt7621-soc";
model ="ZTE E8820V2";
aliases {
led-boot= &led_sys;
led-failsafe= &led_sys;
led-running= &led_sys;
led-upgrade= &led_sys;
};
memory@0 {
device_type= "memory";
reg= <0x0 0x4000000>;
};
chosen {
bootargs= "console=ttyS0,115200";
};
leds {
compatible= "gpio-leds";
led_sys:sys{
label= "e8820v2:white:sys";
gpios= <&gpio0 29 GPIO_ACTIVE_LOW>;
};
led_power:power{
label= "e8820v2:white:power";
gpios= <&gpio0 31 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible= "gpio-keys-polled";
poll-interval= <20>;
reset{
label= "reset";
gpios= <&gpio0 18 GPIO_ACTIVE_LOW>;
linux,code= <KEY_RESTART>;
};
wps{
label= "wps";
gpios= <&gpio0 24 GPIO_ACTIVE_LOW>;
linux,code= <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status ="okay";
m25p80@0 {
compatible= "jedec,spi-nor";
reg= <0>;
spi-max-frequency= <10000000>;
partitions{
compatible= "fixed-partitions";
#address-cells= <1>;
#size-cells= <1>;
partition@0{
label="u-boot";
reg=<0x0 0x30000>;
read-only;
};
partition@30000{
label="u-boot-env";
reg=<0x30000 0x10000>;
read-only;
};
factory:partition@40000 {
label="factory";
reg=<0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible= "denx,uimage";
label="firmware";
reg=<0x50000 0xfb0000>;
};
};
};
};
&pcie {
status ="okay";
};
&pcie0 {
mt76@0,0 {
reg= <0x0000 0 0 0 0>;
mediatek,mtd-eeprom= <&factory 0x0000>;
led{
led-active-low;
};
};
};
&pcie1 {
mt76@0,0 {
reg= <0x0000 0 0 0 0>;
mediatek,mtd-eeprom= <&factory 0x8000>;
ieee80211-freq-limit= <5000000 6000000>;
led{
led-sources= <2>;
led-active-low;
};
};
};
ðernet {
mtd-mac-address= <&factory 0xe000>;
};
&pinctrl {
state_default:pinctrl0 {
gpio{
ralink,group= "i2c", "uart2", "uart3","wdt";
ralink,function= "gpio";
};
};
};
=======================================================================================
如果可以建議用編程器複製出來再改刷,我測了四台都會有些微不同
第一台不知道在測試的時候發生什麼事,5G永遠都抓不到了
有注意到在進入Breed的時候,溫度會比在OP時候高,沒要刷別停著
不知道是不是停太久,燒掉了
修改符合OPENWRT如附圖
原廠==>新EEPROM
7603 0x2F000~0x2F12F==>0x0~0x7FFF 空的填FF
7612 0x2F800~0x2F9EF==>0x8000~0x81EF 空的填FF
有線MAC 0xE000開始填,E8820V2跟無線2.4G一樣,但是我看了WR1200JS的是前面填2.4GMAC,後面填有線MAC
舊版下載
由 深藍夜空 提供空間 本帖31# 31樓
鏈接: https://pan.baidu.com/s/1f-8Jd8HNrpwT92MX2Z9c3A 提取碼: fz5d
裡面有breed也有樓主的固件,還有原版固件,但從breed刷不進去的
2022/01/01
OPENWRT r13243 下載網址
链接:https://share.weiyun.com/32425FJv 密码:7pwhze
2020/02/11
花了點時間把802.11v和802.11k的網頁版改上去
已經有辦法改動/etc/config/wireless,但是用WIFI分析儀還是看不到
先放上來讓大家試試看,是不是我硬體的問題
鏈接:https://share.weiyun.com/5eCaBAt 密碼:94f3ju
R9.12.3
鏈接:https://share.weiyun.com/5p1Ip40 密碼:c2qdvx
r11684
鏈接:https://share.weiyun.com/5ZCjoeU 密碼:ifn6j7
|