记录下斐讯N1折腾过程
救砖刷机
转转淘来的机器,刷了网心云系统,没办法只能按照救砖的短接线刷方案先刷回原装系统
步骤
- 短接启动线刷模式
- 刷入T1系统的启动文件
- 输入原生
- 启动adb 模式
- 启动U盘启动模式
短接启动线刷模式
准备工作:
- 准备USB 2.0 双公头,注意,一定要是2.0的
- 准备一把铁的镊子或者曲别针,注意一定要是铁的
- 刷机过程中全程只能使用 USB2.0的线和接口,不然会失败
1.撕开N1盒子四个脚垫,可以用吹风机吹一会儿,以防老化脚垫被撕烂了。注意可以用手机撬棒从底部第一个栅格凹槽处慢慢撬开盒子
2.短接触点如下图
3.usb 2.0 双公头连接到电脑上,注意连接到盒子上靠近HDMI接口一边的USB口上
4.电脑打开 USB_Burning_Tool,点击开始
5.镊子短接上图中的触点,最好找个人专门按住触点
6.插入盒子电源,一般5s内,USB_Burning_Tool 就会有反应,显示 Hubx-x 已连接成功,
7.如果失败或者没反应,这时候可以打开电脑的设备管理器,看下有没有前面带问号的设备,有的话更新下驱动,然后重复 5~6步
刷入固件
这一步唯一需要注意就是 擦除flash 和 擦除 BootLoader 这两个选项每一步勾选和不勾选
1.首先刷入 T1 固件,这一步是为了获取盒子的启动文件,一般刷入过程会卡在 21%,同时这一步需要注意勾选擦除flash 和 擦除 BootLoader
2.刷入盒子官方固件,这一步需要注意去掉勾选擦除flash 和 擦除 BootLoader
3.此时盒子一定能成功进入系统,除非硬件挂了
开启 adb 调试
1.刷机完成后,连接到电视机或者显示器上,进入默认界面后,将键鼠插到盒子上,鼠标点击版本号至少5次,显示开启adb
2.使用N1降级工具进行降级,然后启用线刷模式(USB启动)
刷入openwrt系统
编译固件
访问站点OpenWrt在线编译,选择好盒子版本,增加默认配置以后直接点击编译,一般5分钟以后就能编译成功,之后点击下载
烧录到U盘
1.准备一个2.0的U盘
2.下载烧录工具balenaEtcher-Prtable
3.打开烧录工具,选择上一步编译好的固件,选中U盘,点击开始,等待10分钟左右烧录完成
openwrt刷入盒子
最好将盒子接入显示器或者电视机,以便观察系统启动情况
1.盒子断电,插入U盘
2.盒子通电,等待U盘系统启动自检完毕
3.盒子用网线直连到电脑上,电脑访问 上面在线编译时配置好的ip地址,密码也是在线编译时设置好的,如果没改,默认是 root/password
将U盘系统写入 emmc
1.在电脑上打开cmd窗口,输入
ssh root@盒子ip -A
回车以后输入密码,等待链接成功
2.盒子根目录有个 install-to-emmc.sh 的脚本,直接输入
./install-to-emmc.sh
回车执行
3.选中盒子版本号,数字为 11
4.选中存储模式,数字为 2
5.安装完成后,底部会提示你拔掉U盘,断电重启盒子。然后盒子就不用再插U盘启动了
openclash + adguard home + smart dns 配置
这三个插件都涉及到dns相关的配置,需要严格按照相关顺序配置,否则会出现无法访问网站的情况
我的配置顺序是
graph LR
A(adgurad home) --> B(openclash)-->C(smart dns)
F[dns 请求流向图]
AdGuard Home
将adgurad作为入口dns,配置如下图
进入手动配置,更改如下项
upstream_dns:
- 127.0.0.1:7874
该配置表示 Adguard Home 的上游DNS服务器地址,此处指向OpenClash 默认的DNS监听端口
OpenClash
重点,需要停用OpenClash默认开启的DNS劫持功能,因为该功能已由AdGuard Home 接管了,如果都开启会出错,这也是 AdGuard Home 的手动配置里需要指定上游DNS服务器为 OpenClash的原因
配置路径:
openclash主界面=>全局设置=>DNS设置=>去掉本地DNS劫持 勾选
如图:
上游dns配置
config dns_servers
option group 'nameserver'
option ip '127.0.0.1'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option type 'tcp'
option enabled '1'
option port '54'
config dns_servers
option group 'nameserver'
option type 'udp'
option ip '127.0.0.1'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option enabled '1'
option port '54'
config dns_servers
option group 'nameserver'
option ip '127.0.0.1'
option type 'tls'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option enabled '1'
option port '54'
config dns_servers
option group 'nameserver'
option ip '127.0.0.1'
option type 'https'
option interface 'Disable'
option node_resolve '0'
option http3 '0'
option specific_group 'Disable'
option enabled '1'
option port '54'
config dns_servers
option enabled '1'
option group 'nameserver'
option ip '127.0.0.1'
option type 'tcp'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option port '6554'
config dns_servers
option enabled '1'
option group 'nameserver'
option type 'udp'
option ip '127.0.0.1'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option port '6554'
config dns_servers
option enabled '1'
option group 'nameserver'
option ip '127.0.0.1'
option type 'tls'
option interface 'Disable'
option node_resolve '0'
option specific_group 'Disable'
option port '6554'
config dns_servers
option enabled '1'
option group 'nameserver'
option ip '127.0.0.1'
option type 'https'
option interface 'Disable'
option node_resolve '0'
option http3 '0'
option specific_group 'Disable'
option port '6554'
config dns_servers
option group 'nameserver'
option type 'udp'
option ip '114.114.114.114'
option enabled '1'
config dns_servers
option group 'nameserver'
option type 'udp'
option ip '119.29.29.29'
option enabled '1'
config dns_servers
option group 'nameserver'
option type 'udp'
option ip '119.28.28.28'
option enabled '0'
config dns_servers
option group 'nameserver'
option type 'udp'
option ip '223.5.5.5'
option enabled '0'
config dns_servers
option type 'https'
option ip 'doh.pub/dns-query'
option group 'nameserver'
option enabled '1'
config dns_servers
option type 'https'
option ip 'dns.alidns.com/dns-query'
option group 'nameserver'
option enabled '1'
config dns_servers
option type 'https'
option group 'fallback'
option ip 'dns.cloudflare.com/dns-query'
option enabled '1'
config dns_servers
option group 'fallback'
option ip 'dns.google'
option port '853'
option type 'tls'
option enabled '0'
config dns_servers
option group 'fallback'
option type 'https'
option ip '1.1.1.1/dns-query'
option enabled '0'
config dns_servers
option group 'fallback'
option ip '1.1.1.1'
option port '853'
option type 'tls'
option enabled '0'
config dns_servers
option enabled '0'
option group 'fallback'
option ip '8.8.8.8'
option port '853'
option type 'tls'
config dns_servers
option type 'udp'
option group 'fallback'
option ip '2001:4860:4860::8888'
option port '53'
option enabled '0'
config dns_servers
option type 'udp'
option group 'fallback'
option ip '2001:4860:4860::8844'
option port '53'
option enabled '0'
config dns_servers
option type 'udp'
option group 'fallback'
option ip '2001:da8::666'
option port '53'
option enabled '0'
config dns_servers
option group 'fallback'
option type 'https'
option ip 'public.dns.iij.jp/dns-query'
option enabled '1'
config dns_servers
option group 'fallback'
option type 'https'
option ip 'jp.tiar.app/dns-query'
option enabled '1'
config dns_servers
option group 'fallback'
option type 'https'
option ip 'jp.tiarap.org/dns-query'
option enabled '1'
config dns_servers
option group 'fallback'
option ip 'jp.tiar.app'
option type 'tls'
option enabled '0'
config dns_servers
option group 'fallback'
option ip 'dot.tiar.app'
option type 'tls'
option enabled '1'
Smart DNS
重点,SmartDNS 默认使用的是 53 端口,该端口为openwrt默认的主DNS服务端口,此处需要改成其他端口,否则另外两个插件会失效,如图:
smart dns 配置
config smartdns
option server_name 'smartdns'
option tcp_server '1'
option ipv6_server '1'
option dualstack_ip_selection '1'
option serve_expired '1'
option resolve_local_hostnames '1'
option force_aaaa_soa '0'
option force_https_soa '0'
option rr_ttl_min '600'
option seconddns_tcp_server '1'
option seconddns_no_speed_check '0'
option seconddns_no_rule_addr '0'
option seconddns_no_rule_nameserver '0'
option seconddns_no_rule_ipset '0'
option seconddns_no_rule_soa '0'
option seconddns_no_dualstack_selection '0'
option seconddns_no_cache '0'
option seconddns_force_aaaa_soa '0'
option coredump '0'
option prefetch_domain '1'
option auto_set_dnsmasq '0'
option enabled '1'
option seconddns_enabled '1'
option port '54'
option seconddns_port '6554'
option old_port '54'
option old_enabled '1'
option old_auto_set_dnsmasq '0'
config server
option enabled '1'
option type 'udp'
option name '114 DNS'
option ip '114.114.114.114'
config server
option enabled '1'
option type 'udp'
option name '114 DNS'
option ip '114.114.115.115'
config server
option enabled '1'
option type 'udp'
option name '阿里AliDNS'
option ip '223.5.5.5'
config server
option enabled '1'
option type 'udp'
option name '阿里AliDNS'
option ip '223.6.6.6'
config server
option enabled '1'
option type 'udp'
option name '百度 BaiduDNS'
option ip '180.76.76.76'
config server
option enabled '1'
option type 'udp'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'udp'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'udp'
option name 'CNNIC SDNS'
option ip '1.2.4.8'
config server
option enabled '1'
option type 'udp'
option name 'CNNIC SDNS'
option ip '210.2.4.8'
config server
option enabled '1'
option type 'udp'
option name 'oneDNS'
option ip '117.50.11.11'
config server
option enabled '1'
option type 'udp'
option name 'oneDNS'
option ip '52.80.66.66'
config server
option enabled '1'
option type 'udp'
option name 'DNS 派 电信/移动/铁通'
option ip '101.226.4.6'
config server
option enabled '1'
option type 'udp'
option name 'DNS 派 电信/移动/铁通'
option ip '218.30.118.6'
config server
option enabled '1'
option type 'udp'
option name 'DNS 派 联通'
option ip '123.125.81.6'
config server
option enabled '1'
option type 'udp'
option name 'DNS 派 联通'
option ip '140.207.198.6'
config server
option enabled '1'
option type 'udp'
option name 'Google DNS'
option ip '8.8.8.8'
config server
option enabled '1'
option type 'udp'
option name 'Google DNS'
option ip '8.8.4.4'
config server
option enabled '1'
option type 'udp'
option name 'IBM Quad9'
option ip '9.9.9.9'
config server
option enabled '1'
option type 'udp'
option name 'OpenDNS'
option ip '208.67.222.222'
config server
option enabled '1'
option type 'udp'
option name 'OpenDNS'
option ip '208.67.220.220'
config server
option enabled '1'
option type 'udp'
option name 'V2EX DNS'
option ip '199.91.73.222'
config server
option enabled '1'
option type 'udp'
option name 'V2EX DNS'
option ip '178.79.131.110'
config server
option enabled '1'
option type 'udp'
option name '上海电信 DNS'
option ip '202.96.209.133'
config server
option enabled '1'
option type 'udp'
option name '上海电信 DNS'
option ip '116.228.111.118'
config server
option enabled '1'
option type 'udp'
option ip '202.96.209.5'
option name '上海电信 DNS'
config server
option enabled '1'
option type 'udp'
option name '上海电信 DNS'
option ip '180.168.255.118'
config server
option enabled '1'
option type 'udp'
option name '上海联通 DNS'
option ip '210.22.70.3'
config server
option enabled '1'
option type 'udp'
option name '上海联通 DNS'
option ip '210.22.84.3'
config server
option enabled '1'
option type 'udp'
option name '江苏移动 DNS'
option ip '221.131.143.69'
config server
option enabled '1'
option type 'udp'
option name '江苏移动 DNS'
option ip '112.4.0.55'
config server
option enabled '1'
option type 'tcp'
option name '114 DNS'
option ip '114.114.114.114'
config server
option enabled '1'
option type 'tcp'
option name '114 DNS'
option ip '114.114.115.115'
config server
option enabled '1'
option type 'tcp'
option name '阿里AliDNS'
option ip '223.5.5.5'
config server
option enabled '1'
option type 'tcp'
option name '阿里AliDNS'
option ip '223.6.6.6'
config server
option enabled '1'
option type 'tcp'
option name '百度 BaiduDNS'
option ip '180.76.76.76'
config server
option enabled '1'
option type 'tcp'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'tcp'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'tcp'
option name 'CNNIC SDNS'
option ip '1.2.4.8'
config server
option enabled '1'
option type 'tcp'
option name 'CNNIC SDNS'
option ip '210.2.4.8'
config server
option enabled '1'
option type 'tcp'
option name 'oneDNS'
option ip '117.50.11.11'
config server
option enabled '1'
option type 'tcp'
option name 'oneDNS'
option ip '52.80.66.66'
config server
option enabled '1'
option type 'tcp'
option name 'DNS 派 电信/移动/铁通'
option ip '101.226.4.6'
config server
option enabled '1'
option type 'tcp'
option name 'DNS 派 电信/移动/铁通'
option ip '218.30.118.6'
config server
option enabled '1'
option type 'tcp'
option name 'DNS 派 联通'
option ip '123.125.81.6'
config server
option enabled '1'
option type 'tcp'
option name 'DNS 派 联通'
option ip '140.207.198.6'
config server
option enabled '1'
option type 'tcp'
option name 'Google DNS'
option ip '8.8.8.8'
config server
option enabled '1'
option type 'tcp'
option name 'Google DNS'
option ip '8.8.4.4'
config server
option enabled '1'
option type 'tcp'
option name 'IBM Quad9'
option ip '9.9.9.9'
config server
option enabled '1'
option type 'tcp'
option name 'OpenDNS'
option ip '208.67.222.222'
config server
option enabled '1'
option type 'tcp'
option name 'OpenDNS'
option ip '208.67.220.220'
config server
option enabled '1'
option type 'tcp'
option name 'V2EX DNS'
option ip '199.91.73.222'
config server
option enabled '1'
option type 'tcp'
option name 'V2EX DNS'
option ip '178.79.131.110'
config server
option enabled '1'
option type 'tcp'
option name '上海电信 DNS'
option ip '202.96.209.133'
config server
option enabled '1'
option type 'tcp'
option name '上海电信 DNS'
option ip '116.228.111.118'
config server
option enabled '1'
option type 'tcp'
option ip '202.96.209.5'
option name '上海电信 DNS'
config server
option enabled '1'
option type 'tcp'
option name '上海电信 DNS'
option ip '180.168.255.118'
config server
option enabled '1'
option type 'tcp'
option name '上海联通 DNS'
option ip '210.22.70.3'
config server
option enabled '1'
option type 'tcp'
option name '上海联通 DNS'
option ip '210.22.84.3'
config server
option enabled '1'
option type 'tcp'
option name '江苏移动 DNS'
option ip '221.131.143.69'
config server
option enabled '1'
option type 'tcp'
option name '江苏移动 DNS'
option ip '112.4.0.55'
config server
option enabled '1'
option type 'tls'
option name '114 DNS'
option ip '114.114.114.114'
config server
option enabled '1'
option type 'tls'
option name '114 DNS'
option ip '114.114.115.115'
config server
option enabled '1'
option type 'tls'
option name '阿里AliDNS'
option ip '223.5.5.5'
config server
option enabled '1'
option type 'tls'
option name '阿里AliDNS'
option ip '223.6.6.6'
config server
option enabled '1'
option type 'tls'
option name '百度 BaiduDNS'
option ip '180.76.76.76'
config server
option enabled '1'
option type 'tls'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'tls'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'tls'
option name 'CNNIC SDNS'
option ip '1.2.4.8'
config server
option enabled '1'
option type 'tls'
option name 'CNNIC SDNS'
option ip '210.2.4.8'
config server
option enabled '1'
option type 'tls'
option name 'oneDNS'
option ip '117.50.11.11'
config server
option enabled '1'
option type 'tls'
option name 'oneDNS'
option ip '52.80.66.66'
config server
option enabled '1'
option type 'tls'
option name 'DNS 派 电信/移动/铁通'
option ip '101.226.4.6'
config server
option enabled '1'
option type 'tls'
option name 'DNS 派 电信/移动/铁通'
option ip '218.30.118.6'
config server
option enabled '1'
option type 'tls'
option name 'DNS 派 联通'
option ip '123.125.81.6'
config server
option enabled '1'
option type 'tls'
option name 'DNS 派 联通'
option ip '140.207.198.6'
config server
option enabled '1'
option type 'tls'
option name 'Google DNS'
option ip '8.8.8.8'
config server
option enabled '1'
option type 'tls'
option name 'Google DNS'
option ip '8.8.4.4'
config server
option enabled '1'
option type 'tls'
option name 'IBM Quad9'
option ip '9.9.9.9'
config server
option enabled '1'
option type 'tls'
option name 'OpenDNS'
option ip '208.67.222.222'
config server
option enabled '1'
option type 'tls'
option name 'OpenDNS'
option ip '208.67.220.220'
config server
option enabled '1'
option type 'tls'
option name 'V2EX DNS'
option ip '199.91.73.222'
config server
option enabled '1'
option type 'tls'
option name 'V2EX DNS'
option ip '178.79.131.110'
config server
option enabled '1'
option type 'tls'
option name '上海电信 DNS'
option ip '202.96.209.133'
config server
option enabled '1'
option type 'tls'
option name '上海电信 DNS'
option ip '116.228.111.118'
config server
option enabled '1'
option type 'tls'
option ip '202.96.209.5'
option name '上海电信 DNS'
config server
option enabled '1'
option type 'tls'
option name '上海电信 DNS'
option ip '180.168.255.118'
config server
option enabled '1'
option type 'tls'
option name '上海联通 DNS'
option ip '210.22.70.3'
config server
option enabled '1'
option type 'tls'
option name '上海联通 DNS'
option ip '210.22.84.3'
config server
option enabled '1'
option type 'tls'
option name '江苏移动 DNS'
option ip '221.131.143.69'
config server
option enabled '1'
option type 'tls'
option name '江苏移动 DNS'
option ip '112.4.0.55'
config server
option enabled '1'
option type 'https'
option name '114 DNS'
option ip '114.114.114.114'
config server
option enabled '1'
option type 'https'
option name '114 DNS'
option ip '114.114.115.115'
config server
option enabled '1'
option type 'https'
option name '阿里AliDNS'
option ip '223.5.5.5'
config server
option enabled '1'
option type 'https'
option name '阿里AliDNS'
option ip '223.6.6.6'
config server
option enabled '1'
option type 'https'
option name '百度 BaiduDNS'
option ip '180.76.76.76'
config server
option enabled '1'
option type 'https'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'https'
option name 'DNSPod DNS+'
option ip '119.29.29.29'
config server
option enabled '1'
option type 'https'
option name 'CNNIC SDNS'
option ip '1.2.4.8'
config server
option enabled '1'
option type 'https'
option name 'CNNIC SDNS'
option ip '210.2.4.8'
config server
option enabled '1'
option type 'https'
option name 'oneDNS'
option ip '117.50.11.11'
config server
option enabled '1'
option type 'https'
option name 'oneDNS'
option ip '52.80.66.66'
config server
option enabled '1'
option type 'https'
option name 'DNS 派 电信/移动/铁通'
option ip '101.226.4.6'
config server
option enabled '1'
option type 'https'
option name 'DNS 派 电信/移动/铁通'
option ip '218.30.118.6'
config server
option enabled '1'
option type 'https'
option name 'DNS 派 联通'
option ip '123.125.81.6'
config server
option enabled '1'
option type 'https'
option name 'DNS 派 联通'
option ip '140.207.198.6'
config server
option enabled '1'
option type 'https'
option name 'Google DNS'
option ip '8.8.8.8'
config server
option enabled '1'
option type 'https'
option name 'Google DNS'
option ip '8.8.4.4'
config server
option enabled '1'
option type 'https'
option name 'IBM Quad9'
option ip '9.9.9.9'
config server
option enabled '1'
option type 'https'
option name 'OpenDNS'
option ip '208.67.222.222'
config server
option enabled '1'
option type 'https'
option name 'OpenDNS'
option ip '208.67.220.220'
config server
option enabled '1'
option type 'https'
option name 'V2EX DNS'
option ip '199.91.73.222'
config server
option enabled '1'
option type 'https'
option name 'V2EX DNS'
option ip '178.79.131.110'
config server
option enabled '1'
option type 'https'
option name '上海电信 DNS'
option ip '202.96.209.133'
config server
option enabled '1'
option type 'https'
option name '上海电信 DNS'
option ip '116.228.111.118'
config server
option enabled '1'
option type 'https'
option ip '202.96.209.5'
option name '上海电信 DNS'
config server
option enabled '1'
option type 'https'
option name '上海电信 DNS'
option ip '180.168.255.118'
config server
option enabled '1'
option type 'https'
option name '上海联通 DNS'
option ip '210.22.70.3'
config server
option enabled '1'
option type 'https'
option name '上海联通 DNS'
option ip '210.22.84.3'
config server
option enabled '1'
option type 'https'
option name '江苏移动 DNS'
option ip '221.131.143.69'
config server
option enabled '1'
option type 'https'
option name '江苏移动 DNS'
option ip '112.4.0.55'
config server
option enabled '1'
option type 'udp'
option name '本地DNS'
option ip '15.192.252.188'
config server
option enabled '1'
option type 'udp'
option name '本地DNS'
option ip '15.192.251.188'
config server
option enabled '1'
option type 'tcp'
option name '本地DNS'
option ip '15.192.252.188'
config server
option enabled '1'
option type 'tcp'
option name '本地DNS'
option ip '15.192.251.188'
config server
option enabled '1'
option type 'tls'
option name '本地DNS'
option ip '15.192.252.188'
config server
option enabled '1'
option type 'tls'
option name '本地DNS'
option ip '15.192.251.188'
config server
option enabled '1'
option type 'https'
option name '本地DNS'
option ip '15.192.252.188'
config server
option enabled '1'
option type 'https'
option name '本地DNS'
option ip '15.192.251.188'