Skip to content

Commit

Permalink
Merge pull request #66 from peterwang2050/sg2300x-patch-1
Browse files Browse the repository at this point in the history
Sg2300x patch 1
  • Loading branch information
peterwang2050 authored Apr 22, 2024
2 parents 0495637 + 6a2be32 commit 2c78882
Show file tree
Hide file tree
Showing 83 changed files with 78 additions and 631 deletions.
10 changes: 5 additions & 5 deletions docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,16 +493,16 @@ sidebar_custom_props:
{
products_name: "Fogwise AirBox",
products_photo_url: "/home/product-pictures/airbox.webp",
products_link: "/sophon/bm168m",
products_link: "/sophon/airbox",
docs:
[
{
docs_link: "/sophon/bm168m",
docs_link: "/sophon/airbox",
docs_photo_type: "Overview",
docs_name_en: "Overview",
docs_name_zh: "Radxa Fogwise BM168M 概览",
docs_info_en: "Overview of the Radxa Fogwise BM168M",
docs_info_zh: "Radxa Fogwise BM168M 概览",
docs_name_zh: "Radxa Fogwise AirBox 概览",
docs_info_en: "Overview of the Radxa Fogwise AirBox",
docs_info_zh: "Radxa Fogwise AirBox 概览",
},
],
},
Expand Down
31 changes: 18 additions & 13 deletions docs/rock5/rock5b/low-level-dev/maskrom.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,29 @@
sidebar_position: 1
---

### 什么是 Maskrom 模式
<details>
<summary>什么是 Maskrom 模式</summary>
Maskrom模式,也称为Loader模式,是一种特殊的启动模式,一般用于恢复或维修有问题的设备。这种模式允许用户直接与设备的硬件进行交互,而不需要经过操作系统。在Maskrom模式下,用户可以通过电脑或其他设备与设备进行通信,并执行一系列命令来解决设备的问题。 可以通过下面的命令看设备是否处于 Maskrom 模式(下面的返回值是 Maskrom 状态下的返回值).

Maskrom模式,也称为Loader模式,是一种特殊的启动模式,一般用于恢复或维修有问题的设备。这种模式允许用户直接与设备的硬件进行交互,而不需要经过操作系统。在Maskrom模式下,用户可以通过电脑或其他设备与设备进行通信,并执行一系列命令来解决设备的问题。 可以通过下面的命令看设备是否处于 Maskrom 模式(下面的返回值是 Maskrom 状态下的返回值).
# MacOS 端:

```bash
# MacOS 端:
执行 lsusb 后的结果
Output:Bus 000 Device 004: ID 2207:350b Fuzhou Rockchip Electronics Co., Ltd. Composite Device
执行 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
# Linux 端:

# Windows 端:
打开 RKDevTool,就会看到设备处于 Found One MASKROM Device(找到一个 MASKROM 设备)状态。
```
执行 lsusb 后的结果
Output:Bus 001 Device 030: ID 2207:350b Fuzhou Rockchip Electronics Company

# Windows 端:

打开 RKDevTool,就会看到设备处于 Found One MASKROM Device(找到一个 MASKROM 设备)状态。

</details>

### 如何进入Maskrom 状态

- 按住 [**Maskrom button**](../README.md).
- 按住 **Maskrom button**
- 将 USB A-C 电缆插入 ROCK 5B 的 Type-C 端口,另一端插入电脑。此时正常情况下会进入 Maskrom 状态

![MaskRom Key](/img/rock5b/rock-5b-typec-maskrom-400px.webp)
10 changes: 5 additions & 5 deletions docs/sophon/aicore-sg2300x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ Radxa AICore SG2300X 即可在 SOC 模式下工作 也可在 PCIe 模式下工

</TabItem>

<TabItem value="Radxa Fogwise BM168M" label="瑞莎 Fogwise BM168M">
<TabItem value="Radxa Fogwise AirBox" label="瑞莎 Fogwise AirBox">

## 产品介绍

Radxa Fogwise BM168M 是一款基于 **AICore SG2300X核心板** 的嵌入式人工智能微型服务器,算力高达 32TOPS@INT8,支持多种精度(INT8、FP16/BF16、FP32),支持私有 GPT、文本到图像等多种主流人工智能模型部署,并配备铝合金外壳,可在恶劣环境中部署。
Radxa Fogwise AirBox 是一款基于 **AICore SG2300X核心板** 的嵌入式人工智能微型服务器,算力高达 32TOPS@INT8,支持多种精度(INT8、FP16/BF16、FP32),支持私有 GPT、文本到图像等多种主流人工智能模型部署,并配备铝合金外壳,可在恶劣环境中部署。

**这个介绍 Fogwise BM168M 是为了方便介绍 AICore SG2300X 的功能。**
**这个介绍 Fogwise AirBox 是为了方便介绍 AICore SG2300X 的功能。**

#### 特性

| 模块 | Radxa Fogwise BM168M |
| 模块 | Radxa Fogwise AirBox |
| :--------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **尺寸** | 104 mm × 84 mm × 50.2 mm |
| **处理器** | SOPHON SG2300X SoC,八核 Arm® Cortex®-A53 (ARMv8) @ 2.3GHz |
Expand All @@ -64,7 +64,7 @@ Radxa Fogwise BM168M 是一款基于 **AICore SG2300X核心板** 的嵌入式人

#### 实物照片

![Fogwise BM168M Overview](/img/bm168m/radxa_fogwise_bm168m.webp)
![Fogwise AirBox Overview](/img/airbox/radxa_fogwise_airbox.webp)

### 芯片框图

Expand Down
12 changes: 6 additions & 6 deletions docs/sophon/bm168m/README.md → docs/sophon/airbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
sidebar_position: 4
---

# 瑞莎 Fogwise BM168M
# 瑞莎 Fogwise AirBox

<Tabs queryString="target">

<TabItem value="Radxa Fogwise BM168M" label="瑞莎 Fogwise BM168M">
<TabItem value="Radxa Fogwise AirBox" label="瑞莎 Fogwise AirBox">

## 产品介绍

Radxa Fogwise BM168M 是一款嵌入式人工智能微型服务器,算力高达 32TOPS@INT8,支持多种精度(INT8、FP16/BF16、FP32),支持私有 GPT、文本到图像等多种主流人工智能模型部署,并配备铝合金外壳,可在恶劣环境中部署。
Radxa Fogwise AirBox 是一款嵌入式人工智能微型服务器,算力高达 32TOPS@INT8,支持多种精度(INT8、FP16/BF16、FP32),支持私有 GPT、文本到图像等多种主流人工智能模型部署,并配备铝合金外壳,可在恶劣环境中部署。

#### 特性

| 模块 | Radxa Fogwise BM168M |
| 模块 | Radxa Fogwise AirBox |
| :--------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **尺寸** | 104 mm × 84 mm × 50.2 mm |
| **处理器** | SOPHON SG2300X SoC,八核 Arm® Cortex®-A53 (ARMv8) @ 2.3GHz |
Expand All @@ -29,15 +29,15 @@ Radxa Fogwise BM168M 是一款嵌入式人工智能微型服务器,算力高

#### 实物照片

![Fogwise BM168M Overview](/img/bm168m/radxa_fogwise_bm168m.webp)
![Fogwise AirBox Overview](/img/airbox/radxa_fogwise_airbox.webp)

### 芯片框图

![SG2300X Block Diagram](/img/aicore-sg2300x/sg2300x-block-diagram.webp)

### 系统框图

![Fogwise BM168M Block Diagram](/img/bm168m/bm168m-block-diagram.webp)
![Fogwise AirBox Block Diagram](/img/airbox/airbox-block-diagram.webp)

</TabItem>

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 2
title: 系统安装
---

本文档将介绍如何把 OS 镜像安装到 BM168M 中。
本文档将介绍如何把 OS 镜像安装到 AirBox 中。

## 准备工作

Expand All @@ -14,7 +14,7 @@ title: 系统安装

## 镜像下载

请到 [资源下载](/sophon/bm168m/getting-started/download.md)下载对应的镜像文件
请到 [资源下载](/sophon/airbox/getting-started/download.md)下载对应的镜像文件

## 系统安装

Expand Down Expand Up @@ -46,7 +46,7 @@ Balena Etcher 是一个跨平台且,用户界面友好的镜像文件烧写工

### 2.SD卡刷机

请将 Fogwise BM168M 断电,插入 SD 卡,并连接串口终端(使用usb type-a转type-c数据线,type-c接 Fogwise BM168M 的debug口,type a连接电脑,波特率设置成115200,debug口位置在[Fogwise BM168M硬件开发下的硬件接口说明](../../bm168m/hardware-design/hardware-interface.md)寻找),然后给整机上电。您将看到
请将 Fogwise AirBox 断电,插入 SD 卡,并连接串口终端(使用usb type-a转type-c数据线,type-c接 Fogwise AirBox 的debug口,type a连接电脑,波特率设置成115200,debug口位置在[Fogwise AirBox硬件开发下的硬件接口说明](../../airbox/hardware-design/hardware-interface.md)寻找),然后给整机上电。您将看到
SG2300X 自动进入刷机流程:

```
Expand Down Expand Up @@ -95,7 +95,7 @@ LED 'status' not found (err=-19)

## 系统启动

- 按照上述步骤成功烧录镜像到emmc后,将 microSD 卡拔出,然后给 Fogwise BM168M 上电。
- 按照上述步骤成功烧录镜像到emmc后,将 microSD 卡拔出,然后给 Fogwise AirBox 上电。

## 注意事项

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Type-C 接口供电,至少 20V / 65W 的电源输入。

使用 USB Type-A 转 Type-C 数据线连接整机 Debug 口和 PC 端,波特率设置为115200,连接示意图:

<img src="/img/bm168m/connection-diagram-1.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/connection-diagram-1.webp" alt="radxa-aicore-sg2300x interfaces" />

#### Windows 下串口使用

Windows 下需要安装串口驱动,请参考:[安装串口驱动](/sophon/bm168m/getting-started/serial-driver-install.md)
Windows 下需要安装串口驱动,请参考:[安装串口驱动](/sophon/airbox/getting-started/serial-driver-install.md)

在安装好后,以 Putty 工具说明:

Expand All @@ -43,11 +43,11 @@ Windows 下需要安装串口驱动,请参考:[安装串口驱动](/sophon/b
- 在左边栏目中选择Session,将串行线路设置为 COM1,波特率设置 115200,连接类型为 Serial。
- 在 Saved Sessions 列中写入想要设置的名字,然后按 Save

<img src="/img/bm168m/putty-setting-1.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/putty-setting-1.webp" alt="radxa-aicore-sg2300x interfaces" />

2.在左边栏目选择最底下的 Serial 并按照以下参数配置:

<img src="/img/bm168m/putty-setting-2.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/putty-setting-2.webp" alt="radxa-aicore-sg2300x interfaces" />

3.设置完成后,点击 Open 打开串口即可。

Expand Down Expand Up @@ -77,7 +77,7 @@ X是不同设备,一般是0。

连接示意图:

<img src="/img/bm168m/connection-diagram-2.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/connection-diagram-2.webp" alt="radxa-aicore-sg2300x interfaces" />

首先,使用 Angryip 查找 IP

Expand Down Expand Up @@ -109,12 +109,12 @@ Windows 有许多 SSH 工具,这里以 [Mobaxterm](https://mobaxterm.mobatek.n

点击左上角的 `Session` 新建 SSH 连接,在 `Remote host` 处输入板子的 IP,勾选 `Specify usernema` 并填入登录的用户, 双击会话开始连接后输入登录密码即可连接。

<img src="/img/bm168m/angryip.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/angryip.webp" alt="radxa-aicore-sg2300x interfaces" />

#### 通过 LAN 口

连接示意图:

<img src="/img/bm168m/connection-diagram-3.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/connection-diagram-3.webp" alt="radxa-aicore-sg2300x interfaces" />

这种方式不需要先获取IP,LAN口固定IP为192.168.150.1,在知道IP为192.168.150.1后使用和 WAN 口一样的方法即可 SSH 登录系统,但是需要我们将电脑的IP改为150的网段,比如设置我们的电脑IP为为192.168.150.5。
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ sidebar_position: 3

# 安装串口驱动

在 Windows 电脑,BM168M 需要安装 CP210 的串口驱动程序,驱动下载地址:https://www.silabs.com/documents/public/software/CP210x_Universal_Windows_Driver.zip
在 Windows 电脑,AirBox 需要安装 CP210 的串口驱动程序,驱动下载地址:https://www.silabs.com/documents/public/software/CP210x_Universal_Windows_Driver.zip

下载好压缩文件后解压再参照下图安装

<img src="/img/bm168m/serial-driver-install-1.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/serial-driver-install-1.webp" alt="radxa-aicore-sg2300x interfaces" />

安装完成后,打开设备管理器,查看如下,可以看到端口处有对应设备出现

<img src="/img/bm168m/serial-driver-install-2.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/serial-driver-install-2.webp" alt="radxa-aicore-sg2300x interfaces" />

在端口处看到对应设备即可
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_position: 4

## 接口总览

<img src="/img/bm168m/radxa_fogwise_bm168m.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/radxa_fogwise_airbox.webp" alt="radxa-aicore-sg2300x interfaces" />

## 电源接口

Expand All @@ -28,6 +28,6 @@ sidebar_position: 4

## 底盖内视

<img src="/img/bm168m/mark_fogwise_bm168m_02.webp" alt="radxa-aicore-sg2300x interfaces" />
<img src="/img/airbox/mark_fogwise_airbox_02.webp" alt="radxa-aicore-sg2300x interfaces" />

如上图, M-KEY 可接 PM991 NVME SSD 。 E-KEY 可接 Intel 7265NGW 和 Intel AX210 两种 WIFI & BT 模块
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,32 @@
sidebar_position: 1
---

### What is Maskrom Mode
<details>
<summary>What is Maskrom Mode</summary>
Maskrom mode, also known as Loader mode, is a special boot mode that generally used to recover or repair faulty devices.
This mode allows the user to interact directly with the device's hardware without going through the operating system. In Maskrom mode,
the user can communicate with the device through a computer or other device and execute a series of commands to fix the device's problems.
You can see if the device is in Maskrom mode by using the following command (the return value below is the return value in Maskrom state).

Maskrom mode, also known as Loader mode, is a special boot mode that generally used to recover or repair faulty devices.
This mode allows the user to interact directly with the device's hardware without going through the operating system. In Maskrom mode,
the user can communicate with the device through a computer or other device and execute a series of commands to fix the device's problems.
You can see if the device is in Maskrom mode by using the following command (the return value below is the return value in Maskrom state).
# MacOS side.

```bash
# MacOS side.
The result of running lsusb
Output:Bus 000 Device 004: ID 2207:350b Composite Device of Fuzhou Rockchip Electronics Co.
# Linux.
Output:Bus 000 Device 004: ID 2207:350b Composite Device of Fuzhou Rockchip Electronics Co.

# Linux.

Result after executing lsusb
Output:Bus 001 Device 030: ID 2207:350b Fuzhou Rockchip Electronics Company
# Windows: Open RKDevTool.
Open RKDevTool and you will see that the device is in Found One MASKROM Device state.
```
Output:Bus 001 Device 030: ID 2207:350b Fuzhou Rockchip Electronics Company

# Windows: Open RKDevTool.

Open RKDevTool and you will see that the device is in Found One MASKROM Device state.

</details>

### How to enter Maskrom state

- Press and hold [**Maskrom button**](../README.md).
- Press and hold **Maskrom button**
- Plug the USB A-C cable into the Type-C port of the ROCK 5B and the other end into your computer. This will normally enter the MaskROM state.

![MaskRom Key](/img/rock5b/rock-5b-typec-maskrom-400px.webp)
Loading

0 comments on commit 2c78882

Please sign in to comment.