斐讯E1拆机焊接TTL救砖

从老家的柜子里翻出来一台斐讯E1,老家在用的是斐讯K2P,300M宽带,房间和大部分位置wifi5足够跑满了,一直懒得升级,也足够用了。
不过发现部分位置信号比较弱,都不到50M,考虑插上E1做个AP中继,偶尔用用,当个备胎。
结果这个E1记得之前好像刷过机,但是IP地址忘了,不知道怎么连接,各种尴尬,只好尝试恢复出厂设置,但是恢复以后也一直无法连接,reset貌似也不能恢复出厂设置,这就诡异了。
虽然这破玩意也不值啥钱,其他备用设备老家也没有了,倒是还有K2P不过不在老家了,于是尝试修一下看看吧

大概率板子上都是有ttl的,于是搜了搜拆机方法:

下载breed:
K1/K1S/K2 通用,文件名:breed-mt7620-phicomm-psg1208.bin

E1使用与k2相同的breed
https://breed.hackpascal.net/breed-mt7620-phicomm-psg1208.bin

先下载一个padavan固件临时刷机用吧:
https://opt.cn2qq.com/padavan/RT-AC54U-GPIO-1-PSG1208-64M_3.4.3.9-099.trx

搜到一个斐讯系列固件网盘下载地址,留着备用吧。
斐讯系列,MTK系列刷机,华硕老毛子padavan固件和OpwenWrt路由器固件等
http://ggdkd.ysepan.com/?xzpd=1

开启ssh或telnet刷入Breed

wget http://breed.hackpascal.net/breed-mt7620-phicomm-psg1208.bin
mtd_write write breed-mt7620-phicomm-psg1208.bin Bootloader

这个貌似用不到了,目前完全起不来,留着备用吧。

E1焊接TTL

拆机参考:https://www.right.com.cn/forum/thread-267083-1-1.html
先拆4颗螺丝,然后拿薄片四周一顿撬,趴开外壳就简单了,基本上就能看到TTL接头了。
这个E1的TTL接口有2个,任意一边都能使用,拆开外壳后,网口右下角这一块就是了。
从上往下的:RX/TX/GND/VCC
从右往左的:RX/TX/GND/VCC
ttl只需要焊接3根即可: RX/TX/GND,图上并未焊接VCC
杜邦线中间剪断,另外一头母头,直接插usb to ttl小板即可。
注意:上面标注的RX/TX是指TTL小板上的段子 如接错或者无数据,可以考虑对调TX/RX即可。
在这里插入图片描述

macos登录串口,windows更简单,网上一堆,不废话了。
注意,波特率为57600
刚开始我盲猜9600,115200都不行,最后搜录一下搜到k2的帖子,写的波特率为57600,然后就ok了

搜波特率的时候发现的这个k2 ttl刷机的文档,除了拆机接线不一样,后面的基本相似了:
https://blog.csdn.net/TeleostNaCl/article/details/126675764

命令行找到串口设备号:

ls /dev/tty*

登录串口
screen /dev/tty.usbserial-14140 57600
(screen 退出串口: ctrl+a, k)

ttl boot log:

U-Boot 1.1.3 ( - )Board: Ralink APSoC DRAM:  64 MB
MT7620 gpio init : WPS / RESET pin
GPIO#1 updated GPIOMODE register: 001a311c -> 001a311d
relocate_code Pointer at: 83fa8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
*** Warning - bad CRC, using default environment============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:  Time:
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768##### The CPU freq = 580 MHZ ####estimate memory size =64 MbytesPress press hardware button for more than 4 seconds to run web failsafe modeCatution: hardware button wasn't pressed or not long enough!
Continuing normal boot...Please choose the operation:1: Load system code to SDRAM via TFTP.2: Load system code then write to Flash via TFTP.3: Boot system code via Flash (default).4: Entr boot command line interface.6: Load all then write to Flash via TFTP.7: Load Boot Loader code then write to Flash via Serial.9: Load Boot Loader code then write to Flash via TFTP.3: System Boot system code via Flash.
## Booting image at bc0a0000 ...Image Name:   OpenWrt-Linux-3.10.14Image Type:   MIPS Linux Kernel Image (lzma compressed)Data Size:    1267333 Bytes =  1.2 MBLoad Address: 80000000Entry Point:  80000000Verifying Checksum ... Bad Data CRC

镜像不能启动了,Data CRC错误,不过既然uboot是好的,那就好解决了,先试试长按reset按键,直接默认uboot网页刷固件看看是否可行

U-Boot 1.1.3 ( - )Board: Ralink APSoC DRAM:  64 MB
MT7620 gpio init : WPS / RESET pin
GPIO#1 updated GPIOMODE register: 001a311c -> 001a311d
relocate_code Pointer at: 83fa8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
*** Warning - bad CRC, using default environment============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:  Time:
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768##### The CPU freq = 580 MHZ ####estimate memory size =64 MbytesPress press hardware button for more than 4 seconds to run web failsafe modereset buootn pressed!                                                                                                                                                                                                      1 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      2 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      3 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      4 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      5 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      6 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      7 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      8 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                      9 second(s)reset buootn pressed!
reset buootn pressed!                                                                                                                                                                                                     10 second(s)reset buootn pressed!hardware button was pressed for 10 seconds
HTTP server is starting for firmware update...NetTxPacket = 0x83FE4400NetRxPackets[0] = 0x83FE4A00NetRxPackets[1] = 0x83FE5000NetRxPackets[2] = 0x83FE5600NetRxPackets[3] = 0x83FE5C00NetRxPackets[4] = 0x83FE6200NetRxPackets[5] = 0x83FE6800NetRxPackets[6] = 0x83FE6E00NetRxPackets[7] = 0x83FE7400NetRxPackets[8] = 0x83FE7A00NetRxPackets[9] = 0x83FE8000NetRxPackets[10] = 0x83FE8600NetRxPackets[11] = 0x83FE8C00NetRxPackets[12] = 0x83FE9200NetRxPackets[13] = 0x83FE9800NetRxPackets[14] = 0x83FE9E00NetRxPackets[15] = 0x83FEA400NetRxPackets[16] = 0x83FEAA00NetRxPackets[17] = 0x83FEB000NetRxPackets[18] = 0x83FEB600NetRxPackets[19] = 0x83FEBC00NetRxPackets[20] = 0x83FEC200NetRxPackets[21] = 0x83FEC800NetRxPackets[22] = 0x83FECE00NetRxPackets[23] = 0x83FED400KSEG1ADDR(NetTxPacket) = 0xA3FE4400NetLoopHttpd,call eth_halt !
Trying Eth0 (10/100-M)Waitting for RX_DMA_BUSY status Start... doneETH_STATE_ACTIVE!!
HTTP server is starting at IP: 192.168.2.1
HTTP server is ready!

电脑手工设置网卡ip为192.168.2.10,这个是uboot默认值,后面uboot升级时就直接连接了,不需要修改默认参数了,然后浏览器访问192.168.2.1,打开e1自带的uboot更新固件的web界面,尝试传一个网上下载的原版固件:
在这里插入图片描述

 ETH_STATE_ACTIVE!!
HTTP server is starting at IP: 192.168.2.1
HTTP server is ready!Request for: /
Request for: /style.css
Request for: /favicon.ico
## Error: file not found!
Request for: /
Request for: /style.css
Data will be downloaded at 0x80100000 in RAM
Upgrade type: sopimg
Upload file size: 8388608 bytes
Loading: ##############################################################################...#####################################################################HTTP upload is done! Upgrading...****************************
*    SOPIMG UPGRADING    *
* DO NOT POWER OFF DEVICE! *
****************************Not found the header
## Error: HTTP ugrade failed!NetLoopHttpd,call eth_halt !
Trying Eth0 (10/100-M)ETH_STATE_ACTIVE!!
HTTP server is starting at IP: 192.168.2.1
HTTP server is ready!

报错了,提示Not found the header,不能升级,不折腾了,升级原版了还得root,然后再刷breed固件,索性直接uboot下更新breed即可

maos启用tftp server

Howto Start TFTP server on macOS
https://bacnh.com/howto-start-tftp-server-on-macos

sudo chmod -R 777 /private/tftpboot
cp ~/Downloads/phicom_e1/breed-mt7620-phicomm-psg1208.bin /private/tftpboot/breed.bin
sudo chmod -R 777 /private/tftpboot/breed.bin
sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plisttftp -e 127.0.0.1
tftp> get breed.bin
Received 90581 bytes in 0.1 seconds
tftp> get breed1.bin
Error code 256: File not found
tftp> get breed.bin
Received 90581 bytes in 0.0 seconds
tftp> quit

然后再拨电源,再插电启动上电,因为拆机拆螺丝了,电源接头经常接触不良,导致板子不上电,于是我找了一个带开关的插排,把E1固定好,然后只需要按插排开关即可,避免来回插拨E1导致接触不良不上电。

通电以后,在ttl串口中按9,出现Y/N的提示时,先把breed放进tftp server根目录下再继续,然后通过uboot命令行刷入breed固件:

U-Boot 1.1.3 ( - )Board: Ralink APSoC DRAM:  64 MB
MT7620 gpio init : WPS / RESET pin
GPIO#1 updated GPIOMODE register: 001a311c -> 001a311d
relocate_code Pointer at: 83fa8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
*** Warning - bad CRC, using default environment============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:  Time:
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768##### The CPU freq = 580 MHZ ####estimate memory size =64 MbytesPress press hardware button for more than 4 seconds to run web failsafe modeCatution: hardware button wasn't pressed or not long enough!
Continuing normal boot...Please choose the operation:1: Load system code to SDRAM via TFTP.2: Load system code then write to Flash via TFTP.3: Boot system code via Flash (default).4: Entr boot command line interface.6: Load all then write to Flash via TFTP.7: Load Boot Loader code then write to Flash via Serial.9: Load Boot Loader code then write to Flash via TFTP.You choosed 99: System Load Boot Loader then write to Flash via TFTP.Warning!! Erase Boot Loader in Flash then burn new one. Are you sure?(Y/N)Please Input new ones /or Ctrl-C to discardInput device IP (192.168.2.1) ==:192.168.2.1Input server IP (192.168.2.10) ==:192.168.2.10Input Uboot filename () ==:breed.binnetboot_common, argc= 3NetTxPacket = 0x83FE4400KSEG1ADDR(NetTxPacket) = 0xA3FE4400NetLoop,call eth_halt !NetLoop,call eth_init !
Trying Eth0 (10/100-M)Waitting for RX_DMA_BUSY status Start... doneETH_STATE_ACTIVE!!
TFTP from server 192.168.2.10; our IP address is 192.168.2.1
Filename 'breed.bin'.TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: Got ARP REPLY, set server/gtwy eth addr (c0:25:a5:d2:f5:62)
Got it
##################
done
Bytes transferred = 90581 (161d5 hex)
NetBootFileXferSize= 000161d5
.
blocksize write ok i=0!
.
Done!Boot and Recovery Environment for Embedded Devices
Copyright (C) 2021 HackPascal <hackpascal@gmail.com>
Build date 2021-12-15 [git-f9b74d0]
Version 1.1 (r1337)DRAM: 64MB
Platform: MediaTek MT7620A ver 2, eco 6
Board: Phicomm PSG1208 (K1)
Clocks: CPU: 580MHz, Bus: 193MHz
Flash: GigaDevice GD25Q64 (8MB) on rt2880-spi
rt2880-eth: Using MAC address 68:db:54:dd:28:35
eth0: MediaTek MT7620A built-in 5-port 10/100M switchNetwork started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0Press any key to interrupt autoboot ... 2
Autoboot aborted due to key press.Starting breed built-in shellbreed> help
Available commands:
about    - About this bootloader
abstatus - Interrupt status of autoboot
arp      - Display ARP table
autoboot - Detect firmware type and boot automatically
boot     - Boot firmware
btntst   - Test GPIO of buttons
dhcp     - Display DHCP leases
env      - Environment variables utility
envconf  - Configure environment variable block
exit     - Exit from telnet
flash    - Flash utility
gpio     - GPIO utilities
help     - Show available commands
mdio     - MDIO utility
mem      - Memory operation utilities
net      - Network control
netstat  - Display network state
reset    - Restart device
setbrg   - Set baudrate
spi      - SPI utility
sysinfo  - Display system information
thread   - Display all threads
wget     - Retrieval file through HTTPbreed> sysinfo
Platform: MediaTek MT7620A ver 2, eco 6
Board: Phicomm PSG1208 (K1)
Clocks: CPU: 580MHz, Bus: 193MHz
Relocate Offset: 03eba000DRAM size: 64MB
DRAM range: 80000000 - 83ffffffKernel size: 274KB
Kernel range: 83fba000 - 83ffea6bKernel symbol table size: 1KB
Kernel symbol table range: 83fb99f0 - 83fb9ffaManaged memory size: 2MB
Managed memory range: 83db98f0 - 83fb98ef
Managed memory used: 287.34KB (14.3%)Boot parameter size: 256KB
Boot parameter range: 83d797f0 - 83db97efUnused memory size: 61MB
Unused memory range: 80000000 - 83d787efbreed> about
Boot and Recovery Environment for Embedded Devices
Copyright (C) 2021 HackPascal <hackpascal@gmail.com>
Build date 2021-12-15 [git-f9b74d0]
Version 1.1 (r1337)breed> netstat
Protocol    Local Address           Foreign Address         State
TCP         192.168.1.1:80          0.0.0.0:0               LISTENING
TCP         192.168.1.1:23          0.0.0.0:0               LISTENINGbreed>

breed很快就刷完了,然后自动reboot,出现Press any key to interrupt autoboot … 提示时按任意键即可中止启动,进入breed提示符,然后电脑IP需要从192.168.2.10改成192.168.1.x任意地址,浏览器打开192.168.1.1,上传padavan固件, config使用公版,刷完自动重启即可。

在这里插入图片描述

后面基本就完事了,padavan刷完启动成功,wifi都ok了,救砖成功了。
不折腾了,拨电上螺丝,留着吃灰去了

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/806083.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

CASL Tutorial Chinese

Attribute-based access control (ABAC) Role-based access control (RBAC) Policy-based access control (PBAC) Claims-based access control (CBAC) 通过研究CASL&#xff0c;设计一款VUE的认证和权限的产品 do - name of the action (e.g., read, update). Has an alia…

106. 跑步锻炼(结果填空)

public class Main { public static void main(String[] args) { int startYear 2000; int startMonth 1; int startDay 1; // 周六 int endYear 2020; int endMonth 10; int endDay 1; // 周四 int totalDistance 0; // 计算开始日期到结束日期之间的每一天 …

【LocalAI】(3):LocalAI本地使用Model gallery,对qwen模型进行配置,使用modescope源下载,本地运行速度快。特别简单!

1&#xff0c;关于localai LocalAI 是一个用于本地推理的&#xff0c;与 OpenAI API 规范兼容的 REST API。 它允许您在本地使用消费级硬件运行 LLM&#xff08;不仅如此&#xff09;&#xff0c;支持与 ggml 格式兼容的多个模型系列。支持CPU硬件/GPU硬件。 模型启动方法&am…

Spring与SpringBoot的区别

Spring是一个开源的Java应用程序框架&#xff0c;旨在简化企业级Java应用程序的开发。它提供了一个轻量级的容器&#xff0c;用于管理应用程序中的各个组件&#xff08;如依赖注入、AOP等&#xff09;&#xff0c;并提供了丰富的功能和模块&#xff0c;用于处理数据库访问、事务…

Acwing.4009 收集卡牌(期望dp)

题目 小林在玩一个抽卡游戏&#xff0c;其中有 n种不同的卡牌&#xff0c;编号为 1到 n。 每一次抽卡&#xff0c;她获得第 i种卡牌的概率为 pi。 如果这张卡牌之前已经获得过了&#xff0c;就会转化为一枚硬币。 可以用 k枚硬币交换一张没有获得过的卡。 小林会一直抽卡&…

【ZZULIOJ】1055: 兔子繁殖问题(Java)

目录 题目描述 输入 输出 样例输入 Copy 样例输出 Copy 提示 code 题目描述 这是一个有趣的古典数学问题&#xff0c;著名意大利数学家Fibonacci曾提出一个问题&#xff1a;有一对小兔子&#xff0c;从出生后第3个月起每个月都生一对兔子。小兔子长到第3个月后每个月又…

【2024】elasticsearch的安装及使用建议

为了方便本节将使用docker部署Elasticsearch&#xff0c;以下简称es。 Elasticsearch 1.基础理论部分1.1.简单介绍一下es1.2.es的基本概念和相关术语 2.elasticsearch安装部分3.elasticsearch配置及建议 1.基础理论部分 1.1.简单介绍一下es Elasticsearch是一个开源的、分布…

智能面试——录音及播放下载js-audio-recorder — post请求,formdata传参

录音插件 js-audio-recorder bug&#xff1a;本地调试调取不起来麦克风 浏览器配置安全域名 chrome://flags/Insecure origins treated as secure输入域名即可电脑需要连接上耳机 <template><div class"BaseRecorder"><div class"BaseRecorder-r…

C++递归递推混合

昆虫繁殖 题目描述&#xff1a;科学家在热带森林中发现了一种特殊的昆虫&#xff0c;这种昆虫的繁殖能力很强。每对成虫过x个月 产y对卵&#xff0c;每对卵要过两个月长成成虫。假设每个成虫不死&#xff0c;第一个月只有一对成虫&#xff0c;且卵 长成成虫后的第一个月不产卵…

【UE5 C++】各个头文件的含义

#pragma once 预处理程序指令 作用&#xff1a;保护同一个文件不会被多次包含&#xff0c;使得头文件只会被编译一次&#xff0c; #include “CoreMinimal.h” 包含了一套来自UE4的核心编程环境的普遍存在类型 #include “GameFramework/GameModeBase.h” 基于GameModeBas…

应急响应-挖矿脚本检测指南威胁情报样本定性文件清除入口修复

一、演示案例-挖矿样本-Win&Linux-危害&定性 危害&#xff1a;CPU拉满&#xff0c;网络阻塞&#xff0c;服务器卡顿等 定性&#xff1a;威胁情报平台上传解析分析&#xff0c;文件配置查看等windows样本 linux样本 二、演示案例-Linux-Web安全漏洞导致挖矿事件 某公司…

PyQt介绍——qrc资源文件使用介绍

使用介绍 在PyQt中&#xff0c;qrc文件是一种资源文件&#xff0c;用于将应用程序所需的资源&#xff08;如图像、音频文件、样式表等&#xff09;打包到一个单独的二进制文件中&#xff0c;以便在运行时轻松地加载和访问这些资源。qrc文件是用XML格式编写的&#xff0c;其中包…

Harmony鸿蒙南向驱动开发-Watchdog

看门狗&#xff08;Watchdog&#xff09;&#xff0c;又称看门狗计时器&#xff08;Watchdog timer&#xff09;&#xff0c;是一种硬件计时设备。一般有一个输入、一个输出&#xff0c;输入叫做喂狗&#xff0c;输出连接到系统的复位端。当系统主程序发生错误导致未及时清除看…

PTA 2813:画家问题 (熄灯问题)

PTA 2813&#xff1a;画家问题 &#xff08;熄灯问题&#xff09; 经典的熄灯问题&#xff0c;思路就不过多阐述&#xff0c;csdn都有 #include <bits/stdc.h> using namespace std; int num[20]; int num2[20]; int main() {int n;cin >> n;for (int i 1; i <…

RobotFramework测试框架(11)--变量文件

Variable files包含的variables可以用于test data中&#xff08;即测试用例&#xff09;中。Variables可以使用Variables section或者从命令行设置。 但是也允许动态创建。 变量文件通常使用模块实现&#xff0c;有两种实现方式。 1、直接从模块中获取变量 变量被指定为模块…

【带源码】如何开发一个视频打赏,付费观看视频的系统?

【带源码】如何开发一个视频打赏&#xff0c;付费观看视频的系统&#xff1f;开发指南来了 最近非常火爆的视频打赏系统&#xff0c;有用户端&#xff0c;管理端&#xff0c;代理端 风口来了&#xff0c;系统部署简单&#xff0c;需要详细部署教程的可以留下评论哦&#xff01…

Calico IPIP和BGP TOR的数据包走向

IPIP Mesh全网互联 文字描述 APOD eth0 10.7.75.132 -----> APOD 网关 -----> A宿主机 cali76174826315网卡 -----> Atunl0 10.7.75.128 封装 ----> Aeth0 10.120.181.20 -----> 通过网关 10.120.181.254 -----> 下一跳 BNODE eth0 10.120.179.8 解封装 --…

“FM”、“AM”信号如何解调?

同学们大家好&#xff0c;今天我们继续学习杨欣的《电子设计从零开始》&#xff0c;这本书从基本原理出发&#xff0c;知识点遍及无线电通讯、仪器设计、三极管电路、集成电路、传感器、数字电路基础、单片机及应用实例&#xff0c;可以说是全面系统地介绍了电子设计所需的知识…

陷波器(带阻滤波器)

非广&#xff0c;为了不赘述&#xff08;器件介绍&#xff09; 陷波器是带阻滤波器的一种&#xff08;与带通滤波器正好相反&#xff0c;带通是保持指定频率的信号&#xff0c;而带阻滤波器是阻挡指定频率的信号&#xff09;&#xff0c;通过设置相应的滤波器参数&#xff0c;…

蓝桥杯 每日2题 day4

碎碎念&#xff1a;好难好难&#xff0c;&#xff0c;发呆两小时什么也写不出来&#xff0c;&#xff0c;&#xff0c;周六大寄了 10.阶乘约数 - 蓝桥云课 (lanqiao.cn) 暴力跑了两个小时没出来结果&#xff0c;&#xff0c;去看题解要用数学&#xff1a;约数定理&#xff0c…