-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from peterwang2050/rock5b-new
refactor:add faq of rock5b
- Loading branch information
Showing
8 changed files
with
90 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
sidebar_position: 21 | ||
--- | ||
|
||
# 清空 SPI Flash | ||
|
||
## 方法一: 在板子上执行清空指令 | ||
|
||
从 SD 卡或者 eMMC 启动 Linux 系统,登录系统后,确认 SPI flash 是否能读到 | ||
|
||
```bash | ||
ls /dev/mtdblock* | ||
``` | ||
|
||
正常情况下会返回 /dev/mtdblock0,然后执行清空命令 | ||
|
||
```bash | ||
sudo dd if=/dev/zero of=/dev/mtdblock0 | ||
sync | ||
``` | ||
|
||
## 方法二: 在 Linux PC / Mac 下 | ||
|
||
首先让设备[进入 MaskRom 模式](./maskrom.md), 然后通过USB线连接 PC 和 设备, | ||
然后下载 [zero.img](https://dl.radxa.com/rock5/sw/images/others/zero.img.gz) 并解压,然后执行下面的命令 | ||
|
||
```bash | ||
rkdeveloptool db rk3588_spl_loader_v1.08.111.bin (其他设备需选择对应的loader文件) | ||
rkdeveloptool wl 0 zero.img | ||
rkdeveloptool rd | ||
``` | ||
|
||
## 方法三 : window 下使用 RKDevTool | ||
|
||
首先让设备[进入 MaskRom 模式](./maskrom.md),然后打开 RkDevTool 工具,选择 “Advanced Function”,按照下图上的顺序执行. | ||
|
||
![Erase Data](/img/common/rkdevtool/700px-Eraseall_new.webp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
### 什么是 Maskrom 模式 | ||
|
||
Maskrom模式,也称为Loader模式,是一种特殊的启动模式,一般用于恢复或维修有问题的设备。这种模式允许用户直接与设备的硬件进行交互,而不需要经过操作系统。在Maskrom模式下,用户可以通过电脑或其他设备与设备进行通信,并执行一系列命令来解决设备的问题。 可以通过下面的命令看设备是否处于 Maskrom 模式(下面的返回值是 Maskrom 状态下的返回值). | ||
|
||
```bash | ||
# MacOS 端: | ||
执行 lsusb 后的结果 | ||
Output:Bus 000 Device 004: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device | ||
|
||
# Linux 端: | ||
执行 lsusb 后的结果 | ||
Output:Bus 001 Device 030: ID 2207:350b Fuzhou Rockchip Electronics Company | ||
|
||
# Windows 端: | ||
打开 RKDevTool,就会看到设备处于 Found One MASKROM Device(找到一个 MASKROM 设备)状态。 | ||
``` | ||
|
||
### 如何进入Maskrom 状态 | ||
|
||
- 按住 [**Maskrom button**](../README.md). | ||
- 将 USB A-C 电缆插入 ROCK 5B 的 Type-C 端口,另一端插入电脑。此时正常情况下会进入 Maskrom 状态 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...ocusaurus-plugin-content-docs/current/rock5/rock5b/getting-started/_maskrom.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters