找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5415|回复: 9

[R3A] 小米R3A TTL刷机之初研!

[复制链接]
本帖最后由 micro.duke 于 2020-3-30 21:28 编辑

看了几位大大的刷机方法,比如:
小米路由4 拆机 ttl 刷breed
【20200306】小米路由器3A(R3A)硬改USB,刷入第三方固件!
小米R3A(硬改)
https://www.right.com.cn/forum/thread-676047-1-1.html
我个人觉得是可以通用TTL对R3A刷机的。
思路就是先进uboot,更改uart_en值,然后TTL或tftp刷机。

正好手头有个usb2ttl串口线。
在win10 x64下,一试,确实出现了类似的:
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.      
9: Load Boot Loader code then write to Flash via TFTP.  
但我的显示乱码,附件所示,但后面显示又是正常的,换了几个串口软件都是如此。
不死心,又找了多个串口调试软件,还是如此。
后来想了一下,应该是数据波特率或数据设置如此。经过多次尝试,终于将Data Bits改为7,正常显示了。比小米四显示更多:
[04000D07][04000D08]
DDR Calibration DQS reg = 00008887




U-Boot 1.1.3 (Nov  1 2018 - 11:19:13)


Board: Ralink APSoC DRAM:  64 MB
Power on memory test. Memory size= 64 MB...OK!
relocate_code Pointer at: 83fa8000
RT2880_RSTSTAT_REG 0xc0030000
***************************
Board power on Occurred
***************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
env is right!
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov  1 2018  Time:11:19:13
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768


##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
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.
   5: Load common filesystem then write to Flash via TFTP.
   7: Load system code via web.
   9: Load Boot Loader code then write to Flash via TFTP.


   n3: System Boot system code via Flash.
Booting System 2
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
.
done
## Booting image at bc7e0000 ...


一阵狂喜,这不是传说中的 boot command line interface出现了。
赶紧重启狂按44444,但无效。(不知道是不是流控设置问题,一会试试)
各位大神,有想法的支个招,如果成功,这就是第一台通过TTL刷机的R3A了










本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
接上面,继续研究,看启动LOG:
。。。。。。
[    1.650000] Creating 11 MTD partitions on "raspi":
[    1.660000] 0x000000000000-0x000001000000 : "ALL"
[    1.660000] 0x000000000000-0x000000030000 : "Bootloader"
[    1.670000] 0x000000030000-0x000000040000 : "Config"
[    1.680000] 0x000000040000-0x000000050000 : "Bdata"
[    1.680000] 0x000000050000-0x000000060000 : "Factory"
[    1.690000] 0x000000060000-0x000000070000 : "crash"
[    1.700000] 0x000000070000-0x000000080000 : "crash_syslog"
[    1.700000] 0x000000080000-0x000000180000 : "overlay"
[    1.710000] 0x000000180000-0x0000007e0000 : "OS1"
[    1.720000] mtd: try split OS1 partition
[    1.720000] mtd: split_firmware
[    1.720000] mtd: firmware_partition->size   0x660000
[    1.730000] mtd: firmware_partition->offset 0x180000
[    1.730000] mtd: uimage_len 1299884
[    1.740000] mtd: uimage_len 1310720
[    1.740000] mtd: rootfs_partition->size   0x520000
[    1.750000] mtd: rootfs_partition->offset 0x2c0000
[    1.750000] mtd: partition "rootfs" created automatically, ofs=2C0000, len=52                                                                             0000
[    1.760000] 0x0000002c0000-0x0000007e0000 : "rootfs"
[    1.760000] 0x0000007e0000-0x000000e40000 : "OS2"
[    1.770000] 0x000000e40000-0x000001000000 : "common"
[    1.780000] PPP generic driver version 2.4.2
。。。。。。。
这个R3A虽然flash有16M,但是一主一备。也就是说只能用8M,这婶能忍,叔也不能忍啊。

试试按住复位键插入电源启动,看串口LOG:
U-Boot 1.1.3 (Nov  1 2018 - 11:19:13)

Board: Ralink APSoC DRAM:  64 MB
Power on memory test. Memory size= 64 MB...OK!
relocate_code Pointer at: 83fa8000
RT2880_RSTSTAT_REG 0xc0030000
***************************
Board power on Occurred
***************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
env is right!
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov  1 2018  Time:11:19:13
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!

NetTxPacket = 0x83FE42C0
。。。。。。。。
。。。。。。。。
NetLoopHttpd,call eth_halt !
Trying Eth0 (10/100-M)

Waitting for RX_DMA_BUSY status Start... done


ETH_STATE_ACTIVE!!
HTTP server is starting at IP: 192.168.31.1
HTTP server is ready!

这不是有个http server嘛,把网卡设为192.168.31.2,接上LAN口,看192.168.31.1
果然出现一个界面:
********************
当前处于恢复模式

       恢复系统
需要手动选择预先下载好的rom,下载地址为:
www1.miwifi.com/miwifi_download.html
刷机过程中路由器将会自动重启,请不要断开路由器电源。
请选择固件:

*********************

看来有不死系统,试试刷入breed引导,上传,写入,串口显示:
Request for: /
Request for: /cleanwrt_logo.png
Data will be downloaded at 0x80100000 in RAM
Upgrade type: firmware
Upload file size: 91168 bytes
Loading: #######################################
         #########################

HTTP upload is done! Upgrading...

val = 0x4
val = 0x0TRX MAGIC error!
Header check error!
Image verify failed!
## Error: HTTP ugrade failed!

试试其他固件,显示
。。。。
HTTP upload is done! Upgrading...

val = 0x4
val = 0x0Not R3A package.
Header check error!
Image verify failed!
## Error: HTTP ugrade failed!
看来通过web升级其他固件又堵死了。

又试了试串口的设置,试图进行boot line command
无效。

不折腾了。
大家还有什么主意,我来试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

直接上编程器吧,刷了breed后就刷不回官方固件。只能再编程器,也比较折腾。

点评

是的,我后来百度了一下,无法TTL刷机,直接 上了编程器  详情 回复 发表于 2020-4-4 15:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
diluxiaoxiao 发表于 2020-4-4 15:14
直接上编程器吧,刷了breed后就刷不回官方固件。只能再编程器,也比较折腾。

是的,我后来百度了一下,无法TTL刷机,直接 上了编程器
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

micro.duke 发表于 2020-4-4 15:21
是的,我后来百度了一下,无法TTL刷机,直接 上了编程器

请教下你ttl用的是哪个串口软件,设置7的。我的有台不启动,测试几个芯片的供电正常,插电电流很小不到0.1a,想用串口看看打印信息能找到故障原因么。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个我试过,网上有说恢复出厂设置再按,但是这3A怎么弄都不行,一直默认n3。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

之前的还在
[05000C07][05000C07]
DDR Calibration DQS reg = 00008787


U-Boot 1.1.3 (Jul 25 2018 - 03:19:13)

Board: Ralink APSoC DRAM:  64 MB
Power on memory test. Memory size= 64 MB...OK!
relocate_code Pointer at: 83fa8000
RT2880_RSTSTAT_REG 0xc0030000
***************************
Board power on Occurred
***************************
flash manufacture id: ef, device id 40 18
find flash: W25Q128BV
env is right!
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jul 25 2018  Time:03:19:13
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
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.
   5: Load common filesystem then write to Flash via TFTP.
   7: Load system code via web.
   9: Load Boot Loader code then write to Flash via TFTP.

   n3: System Boot system code via Flash.
Booting System 1
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
.
done
## Booting image at bc180000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.14
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1425851 Bytes =  1.4 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
commandline uart_en=0 factory_mode=0 mem=64m root=/dev/mtdblock9
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...


LINUX started...

THIS IS ASIC
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.10.14 (jenkins@dea8cc7a4bde) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 MiWiFi-R3A-2.18.40 Thu Nov 1 11:25:58 UTC 2018
[    0.000000]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
diluxiaoxiao 发表于 2020-4-4 15:30
请教下你ttl用的是哪个串口软件,设置7的。我的有台不启动,测试几个芯片的供电正常,插电电流很小不到0. ...

随便哪个都行 putty securecrt都可以
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
a1683970498 发表于 2020-4-5 08:39
这个我试过,网上有说恢复出厂设置再按,但是这3A怎么弄都不行,一直默认n3。

不早点说,害我折腾一晚上
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

请下载哪个固件啊?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-1 09:44

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表