记忆一隅

贝壳云P1 刷机

2019-12-18 · 5 min read
矿渣

beike yun flash system

转载自hanwckf的博客

刷机方法

暂无免拆机刷机法,必须要拆机引出USB进行线刷

刷机工具:https://pan.baidu.com/s/1aOAIZ3vyG8mgipj726Bhgg 提取码: 7eee
固件发布:https://github.com/hanwckf/build-beikeyun/releases/latest

准备工作

  1. 去Github Release下载你喜欢的固件,解压xz包得到img镜像

  2. 剪一根废旧的USB线,焊接到USB焊盘上,或者焊接一个排针在焊盘上,注意线序(可以从背面焊接,VCC可以不焊)

  3. 进入maskrom模式

  • 对于已经刷过第三方固件的机器,可按照本文后面的方法快速进入maskrom模式
  • 对于从未刷机的原厂固件,按照以下步骤操作以进入maskrom模式:将USB线连接到电脑,然后用镊子短接主板背面的maskrom触点,最后再接入12V电源,等待两秒钟后松开镊子。
  1. 下载安装线刷驱动 (DriverAssitant_v4.5.zip)和AndroidTool,然后运行AndroidTool,如果没有出现"发现一个MASKROM设备"的提示,请重新进行准备工作

选择img镜像刷入即可(loader已经预先设置无需更改)

  1. armbian默认root密码为1234,第一次登陆后会让你设置新密码

其他注意

已经刷入Rock64的armbian固件后,可以在上电时长按主板正面的微动开关进入maskrom模式而无需短接触点,此时ttl输出如下(波特率:1500000):

DDR version 1.13 20180428
ID:0xFFF
In
SRX
DDR3
786MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
ddrconfig:1
OUT
Boot1 Release Time: Feb  2 2018 15:41:39, version: 2.46
ChipType = 0x11, 209
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=7456MB
FwPartOffset=2000 , 2000
SdmmcInit=0 2
StorageInit ok = 19161
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
LoadTrustBL
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa4e00
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):f947c7e
NOTICE:  BL31: Built : 20:41:40, Nov 26 2018
NOTICE:  BL31:Rockchip release version: v1.3
INFO:    ARM GICv2 driver initialized
INFO:    Using rkfiq sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe
INFO:    BL31: Initializing runtime services
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-armbian (Feb 08 2019 - 11:49:32 +0100)

Model: Pine64 Rock64
DRAM:  1022 MiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
SF: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930323200000000192205
serial=433a170c2728fd1
rockchip_dnl_mode = 1 mode
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
rockchip_dnl_mode = 2 mode
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
rockchip_dnl_mode = 3 mode
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
rockchip_dnl_mode = 4 mode
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'power' operation failed (err=-121)
LED 'standby' operation failed (err=-121)
entering maskrom mode...

对于已经刷入任一第三方固件的机器,可以采用以下方法进入maskrom模式:
接好TTL(波特率:1500000),上电后在U-boot倒计时结束前按任意键进入U-boot命令行,输入以下指令擦除emmc前面的内容:

mmc erase 0 100

然后复位

reset

复位后就进入maskrom模式了

作者:libgcc
链接:https://www.jianshu.com/p/21d3954231dc
来源:简书