小米路由3硬改适配Openwrt日记
准备工作
1.mt7620a_xiaomi_miwifi-r3mi.dts
文件存放路径:/lede/target/linux/ramips/dts
文件存放路径:/lede/target/linux/ramips/mt7620/base-files/etc/board.d
文件存放路径:/lede/target/linux/ramips/image
开始
更换内核
[scode type="blue"]
- 更新于2021-10-17
我发现最新的5.10内核
会导致垃圾路由(比如小米路由3硬改16M flash版)无法正确生成.bin
刷机包,取消所有插件以及主题后仍然超出0.19M
左右,故尝试更换内核并记录注释配置文件
内核文件:
lede/include/kernel-version.mk
LINUX_VERSION-5.4 = .150
# LINUX_VERSION-5.10 = .70
#注释5.10,启用5.4
LINUX_KERNEL_HASH-5.4.150 = f424a9bbb05007f04c17f96a2e4f041a8001554a9060d2c291606e8a97c62aa2
# LINUX_KERNEL_HASH-5.10.70 = 75736c33711d7f298889ee4981b18774882045323e5c46af9ad3b022082db232
#注释5.10,启用5.4
注释后建议执行
make distclean
# 清除所有相关的东西,包括下载的软件包,配置文件,feed内容等
重新拉取软件包
cd lede/package
git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git
# 添加插件
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
# 更新插件包
[/scode]
订正源码
mt7620a_xiaomi_miwifi-r3mi.dts
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "xiaomi,miwifi-r3mi", "ralink,mt7620a-soc";
model = "Xiaomi Mi Router R3Mi";
aliases {
led-boot = &led_yellow;
led-failsafe = &led_red;
led-running = &led_blue;
led-upgrade = &led_yellow;
label-mac-device = ðernet;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_blue: blue {
label = "blue:status";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_yellow: yellow {
label = "yellow:status";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_red: red {
label = "red:status";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
default-state = "on";
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio1 {
status = "okay";
};
&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>;
};
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 0xf80000>;
};
partition@fd0000 {
label = "crash";
reg = <0xfd0000 0x10000>;
};
partition@fe0000 {
label = "reserved";
reg = <0xfe0000 0x10000>;
read-only;
};
partition@ff0000 {
label = "Bdata";
reg = <0xff0000 0x10000>;
};
};
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&state_default {
gpio {
groups = "i2c", "rgmii1";
function = "gpio";
};
};
02_network
xiaomi,miwifi-r3)
ucidef_add_switch "switch0" \
"1:lan" "4:lan" "0:wan" "6@eth0"
;;
xiaomi,miwifi-r3mi)
ucidef_add_switch "switch0" \
"1:lan" "4:lan" "0:wan" "6@eth0"
;;
mt7620.mk
define Device/xiaomi_miwifi-mini
SOC := mt7620a
IMAGE_SIZE := 15872k
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := MiWiFi Mini
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
SUPPORTED_DEVICES += miwifi-mini
endef
TARGET_DEVICES += xiaomi_miwifi-mini
define Device/xiaomi_miwifi-r3mi
SOC := mt7620a
IMAGE_SIZE := 15872k
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router R3Mi
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
SUPPORTED_DEVICES += miwifi-r3mi
endef
TARGET_DEVICES += xiaomi_miwifi-r3mi
define Device/xiaomi_miwifi-r3
SOC := mt7620a
BLOCKSIZE := 128k
PAGESIZE := 2048
KERNEL_SIZE := 4096k
IMAGE_SIZE := 32768k
UBINIZE_OPTS := -E 5
IMAGES += kernel1.bin rootfs0.bin
IMAGE/kernel1.bin := append-kernel | check-size
IMAGE/rootfs0.bin := append-ubi | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router R3
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools
endef
TARGET_DEVICES += xiaomi_miwifi-r3
第一次编译
[scode type="red"]
故障内容如下:
- 2.4Ghz 获取IP过慢,且5Ghz无法正常驱动
- 启动过程中黄灯未常亮,而是蓝灯闪烁启动
- 固件网页设置中,无法正常识别到5Ghz无线网卡,且一网卡驱动不上,修改时显示为2.4Ghz无线网卡,怀疑是驱动混乱
[/scode]
第一次尝试解决
1.[scode type="blue"]
xiaomi,miwifi-r3mi|\
xiaomi,miwifi-r3)
ucidef_add_switch "switch0" \
"1:lan" "4:lan" "0:wan" "6@eth0"
;;
[/scode]
2.[scode type="blue"]
define Device/xiaomi_miwifi-r3mi
SOC := mt7620a
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router R3Mi
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools
endef
TARGET_DEVICES += xiaomi_miwifi-r3mi
[/scode]
3.[scode type="blue"]
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "xiaomi,miwifi-r3mi", "ralink,mt7620a-soc";
model = "Xiaomi Mi Router R3Mi";
aliases {
led-boot = &led_red;
led-failsafe = &led_yellow;
led-running = &led_blue;
led-upgrade = &led_yellow;
label-mac-device = ðernet;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_blue: blue {
label = "miwifi-mini:blue:status";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_yellow: yellow {
label = "miwifi-mini:yellow:status";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
};
led_red: red {
label = "miwifi-mini:red:status";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&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>;
};
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 0xf80000>;
};
partition@fd0000 {
label = "crash";
reg = <0xfd0000 0x10000>;
};
partition@fe0000 {
label = "reserved";
reg = <0xfe0000 0x10000>;
read-only;
};
partition@ff0000 {
label = "Bdata";
reg = <0xff0000 0x10000>;
};
};
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&state_default {
gpio {
groups = "i2c", "rgmii1";
function = "gpio";
};
};
[/scode]
第二次编译
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j1 V=sk
第二次尝试解决
1.[scode type="yellow"]
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "xiaomi,miwifi-r3mi", "ralink,mt7620a-soc";
model = "Xiaomi Mi Router R3Mi";
aliases {
led-failsafe = &led_red;
led-running = &led_yellow;
led-upgrade = &led_blue;
label-mac-device = ðernet;
};
chosen {
bootargs = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_blue: blue {
label = "miwifi-mini:blue:status";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_yellow: yellow {
label = "miwifi-mini:yellow:status";
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
};
led_red: red {
label = "miwifi-mini:red:status";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RESTART>;
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&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>;
};
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 0xf80000>;
};
partition@fd0000 {
label = "crash";
reg = <0xfd0000 0x10000>;
};
partition@fe0000 {
label = "reserved";
reg = <0xfe0000 0x10000>;
read-only;
};
partition@ff0000 {
label = "Bdata";
reg = <0xff0000 0x10000>;
};
};
};
};
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&state_default {
gpio {
groups = "i2c", "rgmii1";
function = "gpio";
};
};
[/scode]
2.
[scode type="yellow"]
删除
xiaomi,miwifi-r3mi)
wan_mac=$(mtd_get_mac_binary factory 0x28)
lan_mac=$(macaddr_setbit_la "$wan_mac")
;;
[/scode]
3.[scode type="yellow"]
define Device/xiaomi_miwifi-r3mi
SOC := mt7620a
IMAGE_SIZE := 16064k
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router R3Mi
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci uboot-envtools
endef
TARGET_DEVICES += xiaomi_miwifi-r3mi
[/scode]
第三次编译
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j1 V=sk
第三次尝试解决
考虑到可能是乌班图系统问题
故更换系统为乌班图20.10
[button color="info" <a href="" type="round"]镜像下载[/button]
安装环境
sudo apt-get install -y gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk asciidoc zlib1g-dev git git-man liberror-perl libsigsegv2 vim build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev zlib1g-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 subversion flex uglifyjs git gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync subversion gawk
拉取源码
git clone https://github.com/coolsnowwolf/lede
cd lede
./scripts/feeds clean
./scripts/feeds update -a
./scripts/feeds install -a
安装宝塔
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
开防火墙
sudo ufw allow 8888
#允许外部访问8888端口(tcp/udp)
上传历史文件
[button color="info" icon="glyphicon glyphicon-cloud" url="https:\/\/wwi.lanzoui.com\/iO7oYwfso0j" type=""]工程文件下载[/button]
开始编译
cd /lede
make menuconfig
遇到报错 Build dependency: Please install GNU 'awk' Prerequisite check failed. Use FORCE=1 to override. make: *** [/home/yuos/lede/include/toplevel.mk:174:staging_dir/host/.prereq-build] 错误 1
sudo apt-get install subversion gawk
#问题解决
make menuconfig
/*选择配置*/
make -j8 download V=s
#下载dl库(国内请尽量全局科学上网)
make v=99
编译成功
[button color="info" icon="glyphicon glyphicon-cloud" url="https:\/\/wwi.lanzoui.com\/iO7oYwfso0j" type=""]蓝奏云盘[/button]
建议搭配魔改版信号文件食用效果更佳
[button color="info" icon="glyphicon glyphicon-cloud" url="https:\/\/pan.yuos.top\/s\/AquY" type=""]小渔网盘[/button]
大佬您好,我在同7620A的newifimini自编译后出现ethernet eth0: transmit timed out,请问您是怎么解决的呢 详细日志
A:Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.587406] ------------[ cut here ]------------
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.592172] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:468 dev_watchdog+0x26c/0x274
Fri Feb 18 12:17:35 2022 kern.info kernel: [ 2864.600633] NETDEV WATCHDOG: eth0 (ralink_soc_eth): transmit queue 0 timed out
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.608015] Modules linked in: xt_FULLCONENAT rt2800soc rt2800mmio rt2800lib pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT rt2x00soc rt2x00mmio rt2x00lib pppox ppp_mppe ppp_generic nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_flow_table nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast nf_conntrack_amanda nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt76 mac80211 lzo ipt_REJECT cfg80211 xt_time xt_tcpudp xt_socket xt_multiport xt_mark xt_mac xt_limit xt_iprange xt_comment xt_TPROXY xt_TCPMSS xt_LOG ts_kmp ts_fsm ts_bm tcp_bbr slhc nf_tproxy_ipv6 nf_tproxy_ipv4 nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 macvlan lzo_decompress lzo_compress iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.608458] asn1_decoder cryptodev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha256_generic libsha256 sha1_generic seqiv jitterentropy_rng drbg hmac ecb cmac authenc arc4 crypto_acompress leds_gpio ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.764920] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.100 #0
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.770969] Stack : 806d0000 805d5bb8 00000000 00000000 80c09e0c 80800000 80646200 80645dc7
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.779546] 805ad820 00000000 808033c4 ffffffff 806c0000 00000001 80c09dc0 105cb797
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.788131] 00000000 00000000 805ad820 80c09c60 ffffefff 806b101c 00000000 00000000
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.796689] 00000000 0000008e 00000000 000babf8 00000000 80c09ea0 00000009 803e1328
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.805257] 00000009 ffffffff 806c0000 00000000 00000018 8030a56c 00000000 80800000
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.813841] ...
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.816347] Call Trace:
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.818877] [] show_stack+0x30/0x100
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.823432] [] __warn+0xc0/0xe8
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.827549] [] warn_slowpath_fmt+0x8c/0xac
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.832628] [] dev_watchdog+0x26c/0x274
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.837462] [] call_timer_fn.isra.33+0x20/0x90
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.842892] [] run_timer_softirq+0x2cc/0x338
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.848160] [] __do_softirq+0x110/0x298
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.852968] [] except_vec_vi_end+0xb8/0xc4
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.858074] [] r4k_wait_irqoff+0x18/0x24
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.862985] [] do_idle+0xd0/0x104
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.867258] [] cpu_startup_entry+0x18/0x28
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.872357] [] start_kernel+0x584/0x5ac
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.877159]
Fri Feb 18 12:17:35 2022 kern.warn kernel: [ 2864.878691] ---[ end trace 53931f5fae596159 ]---
Fri Feb 18 12:17:35 2022 kern.err kernel: [ 2864.883413] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Fri Feb 18 12:17:35 2022 kern.info kernel: [ 2864.890005] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Fri Feb 18 12:17:35 2022 kern.info kernel: [ 2864.896411] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=021c0000, max=1024, ctx=125, dtx=125, fdx=113, next=125
Fri Feb 18 12:17:35 2022 kern.info kernel: [ 2864.907707] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=021a8000, max=1024, calc=153, drx=155
Fri Feb 18 12:17:41 2022 kern.err kernel: [ 2867.337430] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Fri Feb 18 12:17:41 2022 kern.info kernel: [ 2867.344049] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Fri Feb 18 12:17:41 2022 kern.info kernel: [ 2867.350487] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=021c0000, max=1024, ctx=472, dtx=472, fdx=464, next=472
Fri Feb 18 12:17:41 2022 kern.info kernel: [ 2867.361786] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0221c000, max=1024, calc=356, drx=359
Fri Feb 18 12:17:47 2022 kern.err kernel: [ 2869.941643] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Fri Feb 18 12:17:47 2022 kern.info kernel: [ 2869.948248] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Fri Feb 18 12:17:47 2022 kern.info kernel: [ 2869.954693] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=021c0000, max=1024, ctx=720, dtx=720, fdx=434, next=720
Fri Feb 18 12:17:47 2022 kern.info kernel: [ 2869.965999] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=021a8000, max=1024, calc=505, drx=507
Fri Feb 18 12:17:52 2022 kern.err kernel: [ 2872.446049] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Fri Feb 18 12:17:52 2022 kern.info kernel: [ 2872.452655] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Fri Feb 18 12:17:52 2022 kern.info kernel: [ 2872.459088] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=021c0000, max=1024, ctx=603, dtx=603, fdx=176, next=603
Fri Feb 18 12:17:52 2022 kern.info kernel: [ 2872.470398] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0221c000, max=1024, calc=437, drx=439
Fri Feb 18 12:18:02 2022 kern.err kernel: [ 2876.041552] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Fri Feb 18 12:18:02 2022 kern.info kernel: [ 2876.048172] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Fri Feb 18 12:18:02 2022 kern.info kernel: [ 2876.054619] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=021c0000, max=1024, ctx=142, dtx=142, fdx=16, next=142
Fri Feb 18 12:18:02 2022 kern.info kernel: [ 2876.065824] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=021a8000, max=1024, calc=229, drx=230
Fri Feb 18 13:05:17 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 3a:47:d2:77:8b:6e
Fri Feb 18 13:05:17 2022 daemon.info hostapd: wlan0: STA 3a:47:d2:77:8b:6e IEEE 802.11: disassociated due to inactivity
Fri Feb 18 13:05:18 2022 daemon.info hostapd: wlan0: STA 3a:47:d2:77:8b:6e IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
@233 : 看这个报错像是kernel-3.4.x.config 的问题,你可以拉取其他同等配置的配置文件然后更改下再编译试试
大佬好,我想请问下,我的设备是小米路由器3,用最新的lean源码编译,并且更改了target/linux/ramips/image/mt7620.mk文件,使编译可以生成pb-boot.bin的sysupgrade安装文件,然后在192.168.1.1的pb-boot中刷这个包,路由器会不断重启,我刷x-wrt和大佬您的固件却可以正常启动,我想自己编译,请问是我有哪里还需要更改吗, 这个问题困扰我半个月了。希望大佬可以解惑,谢谢
@ali : 是nand闪存的还是硬改了的呢(๑•̀ㅁ•́ฅ)
@小渔 : nand闪存,问题解决了,最新的lean源码竟然没nand驱动,官方已经添加了,然后重新编译就能启动了,不过出现了新的问题。。固件启动都正常功能也都正常,但是过几分钟会网络断网,有线无线都断。日志报错是:
Thu Dec 9 19:48:30 2021 kern.err kernel: [ 479.229151] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Dec 9 19:48:30 2021 kern.info kernel: [ 479.235757] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Thu Dec 9 19:48:30 2021 kern.info kernel: [ 479.242189] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=064d4000, max=1024, ctx=301, dtx=301, fdx=287, next=301
Thu Dec 9 19:48:30 2021 kern.info kernel: [ 479.253478] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=06434000, max=1024, calc=10, drx=11
Thu Dec 9 19:48:40 2021 kern.err kernel: [ 482.920900] ralink_soc_eth 10100000.ethernet eth0: transmit timed out
Thu Dec 9 19:48:40 2021 kern.info kernel: [ 482.927505] ralink_soc_eth 10100000.ethernet eth0: dma_cfg:80000065
Thu Dec 9 19:48:40 2021 kern.info kernel: [ 482.933936] ralink_soc_eth 10100000.ethernet eth0: tx_ring=0, base=064d4000, max=1024, ctx=255, dtx=255, fdx=252, next=255
Thu Dec 9 19:48:40 2021 kern.info kernel: [ 482.945227] ralink_soc_eth 10100000.ethernet eth0: rx_ring=0, base=05194000, max=1024, calc=528, drx=529
提示time out,是不是用的交换机驱动又不正常了啊。。 头疼啊。。
@ali : 我之前遇到过大流量断流的问题,超频后问题解决
@ali : MT7620A瓶颈,可以试试超频后观察下
@ali : 有开很多其他的功能吗?比如SS?
@小渔 : 没有开多余的功能,都是默认功能,ss没开,cpu占用率就10%,也是大流量就timeOut,好像是驱动问题。 对了,怎么超频呢,我用的lean的源码,是编译的时候设置吗,在哪里设置呢。超到多少比较合适。
博主您好。我有一个小米路由器 3 最近因为刷入自编译的 LEDE 变砖了,TTL 串口也因为 uboot-env 参数丢失被锁死了。目前查阅了一些资料,包括您的硬改教程之后产生了一些想法,想向您请教一下。 首先是关于硬改的部分。我经过搜寻发现 R3G 和 R3P 这两款路由器从 NAND 切换到 SPI 可以通过短接 J10 和 J11 来完成。(见 https://www.right.com.cn/forum/thread-465774-1-1.html ),而 R3 的板子上也同样有两个很突兀的过孔 J90 和 J91,有没有可能可以通过对他们进行短接从而回避对 R3 本身的硬改呢? 其次是关于救砖的部分。虽然有 SPI 的硬改方法可以救砖,但可以的话我还是希望能够把 NAND 也给救回来。但 NAND 的编程器过于昂贵我无法负担,同时我目前的工程条件也不允许我对 NAND 的封装进行焊接工作。所以当硬改 SPI 之后 NAND 是从物理层面上被完全屏蔽了呢?还是依旧可以从系统中访问到呢?如果依旧能够访问到或者是通过某些操作之后可以访问到,有没有可能利用路由器作为编程器将 NAND 救回来呢? 如果问题 2 被证明是可行的,那么有没有办法在 NAND 模式下将路由器作为 SPI 的编程器使用呢?或者有没有可能将 SPI 作为路由器的内置拓展空间使用呢?或者组成双系统以达成一方被砖另一方来救的效果呢? 感谢博主产出了这么优秀的教程,烦请博主不吝赐教。
@Orville Q. Song : 首先感谢您的信任,对于您的想法外网已经有大佬产出了教程,具体地址参见如下:https://www.anywlan.com/thread-412270-1-1.html
然后您的想法我也想过,但是一直没有时间去实践,所以很抱歉,不能解答您的问题
Thanks.
I got Mir3 openwrt firmware. it worked very well.
I try build firmware for Mi4A gigabit and R3G, signal is not good.
Mi R4A gigabit 's 5Ghz singal only have 1dBm Transmit power
R3G only have 5Ghz and 1dBm power.
Those is source code i had try:
https://github.com/coolsnowwolf/openwrt
https://github.com/coolsnowwolf/lede
https://github.com/Lienol/openwrt
https://github.com/immortalwrt/immortalwrt/tree/openwrt-18.06
@v Anh : You're welcome, have you tried the closed source drive of MTK7621?
https://github.com/coolsnowwolf/lede/issues/5002
@小渔 : No, i dont.
can you show me how to do it?
i cpoied folder: https://github.com/MeIsReallyBa/Redmi2100-WIFI-ProprietaryDriver-linux5.4
to lede/package/lean/mt
but 5Ghz band still weak
@v Anh : So easy, Just follow this issues https://github.com/coolsnowwolf/lede/issues/5002
@小渔 : I am amatuer.
So i dont know how to change driver open source to close source!
Can you explain step by step?
"请问ac2100需要将哪几个设置替换成闭源驱动,谢谢~"
老大在吗 今天我把TP 740NV5 9331的 装上了X-OPENWRT
进去后发现没shadonsockts plus+ 郁闷了
这个怎么把SHADONSOCKTS PLUS+ 加进去
https://downloads.x-wrt.com/rom/
下载的740N V1的这个文件x-wrt-9.0-b202104170928-ath79-generic-tplink_tl-wr710n-v1-squashfs-sysupgrade.bin
@OPENWRT MAGIC : 下载.ipk文件安装即可 ::aru:cheer::
想进QQ群 老大 UP的B站昵称是啥 ヾ(≧∇≦*)ゝ
@OPENWRT MAGIC : 小渔学长
是因为刷OP失败变砖 突然发现有硬改SPI FLASH 然后发现了神奇的版主
版主 MI R3 我换256内存可以支持吗
@OPENWRT MAGIC : 不太清楚,理论上是自适应的⌇●﹏●⌇
版主绝对大佬级别 我这个MI R3 真是被它折腾死了 看到了版主的帖子 果断硬改 刷入了OP 好用 谢谢您的编译
@OPENWRT MAGIC : 不客气,我的主要问题是为了自己成砖的小米路由3编译的,话说好好的小米路由3你为啥要硬改呢,难道只是为了刷不死吗(๑•̀ㅁ•́ฅ)
(๑•̀ㅁ•́ฅ)(๑•̀ㅁ•́ฅ)