Skip to content

Commit b2cd170

Browse files
committed
docs: reorganize T153MX Linux guides
1 parent 5a2dc49 commit b2cd170

125 files changed

Lines changed: 1641 additions & 67 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/T153MX/01-BoardIntroduction.md

Lines changed: 91 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,29 @@ OmniGate-T153 是一款基于全志 T153MX 的工业边缘网关开发板,由
1616

1717
:::
1818

19+
## 目标
20+
21+
通过本页确认 OmniGate-T153 的核心板、扩展底板、主要接口和软件支持状态,并找到从获取板级 overlay 到首次进入 Linux Shell 的最短路径。
22+
23+
## 准备工作
24+
25+
- OmniGate-T153 开发板及对应批次的原理图、BOM 或硬件说明。
26+
- 稳定电源、USB 数据线和调试串口连接。
27+
- Ubuntu 开发主机及可用的 T153 Tina SDK。
28+
29+
不同批次的内存、eMMC、无线和 4G 模块可能不同。开始实验前应以实物和当前批次资料核对,不能只根据同系列板卡推断。
30+
31+
## 操作步骤
32+
33+
1. 查看下方产品组成和资源表,确认核心板与底板版本。
34+
2. 克隆板级适配仓库,将 overlay 应用到完整 Tina SDK。
35+
3. 选择 `t153_omnigate_mmc-buildroot`,完成编译和打包。
36+
4. 核对镜像路径和目标设备后烧录,通过调试串口观察首次启动。
37+
38+
## 验证方法
39+
40+
启动后应能从串口进入开发板 Linux Shell。使用 `uname -a``cat /proc/partitions` 和对应接口的设备节点确认运行内核、存储与板级配置;未完成板端验证的功能仍以本页状态表为准。
41+
1942
## 产品组成
2043

2144
### mCore-T153MX 核心板
@@ -44,6 +67,37 @@ OmniGate 扩展底板为核心板提供双 4G、双千兆以太网、工业总
4467

4568
![OmniGate-T153 背面双 4G 模块位](./images/DshanPI-OminiGate-2.png)
4669

70+
### 硬件功能关系示意
71+
72+
```mermaid
73+
flowchart TB
74+
SOC[T153MX<br/>4× Cortex-A7 + E907]
75+
DDR[DDR4]
76+
EMMC[eMMC]
77+
NET[2× 千兆以太网]
78+
CELL[2× 4G / SIM]
79+
BUS[2× CAN FD<br/>2× RS485]
80+
WIFI[Wi-Fi 6 / Bluetooth 5]
81+
DISP[MIPI DSI / RGB LCD]
82+
CAM[MIPI CSI]
83+
USB[USB Type-C / USB 3.0]
84+
DEBUG[UART0 调试串口]
85+
86+
SOC --- DDR
87+
SOC --- EMMC
88+
SOC --- NET
89+
SOC --- CELL
90+
SOC --- BUS
91+
SOC --- WIFI
92+
SOC --- DISP
93+
SOC --- CAM
94+
SOC --- USB
95+
SOC --- DEBUG
96+
```
97+
98+
该图表示功能连接关系,不表示具体引脚号。电平、复用、供电和连接器脚位仍应以对应批次原理图
99+
及设备树为准。
100+
47101
## 主要硬件资源
48102

49103
| 类别 | 板载资源 |
@@ -81,7 +135,25 @@ OmniGate 扩展底板为核心板提供双 4G、双千兆以太网、工业总
81135

82136
“已配置”表示板级配置中已经启用相关控制器,不代表所有外接设备、线材和应用场景均完成验证。
83137

84-
## 获取板级适配仓库
138+
## 获取开发资料
139+
140+
### 获取 T153MX 基础 SDK
141+
142+
基础开发包通过百度网盘提供:
143+
144+
- 文件夹:`DshanPI-OminiGate_T153MX`
145+
- 下载链接:[https://pan.baidu.com/s/1ai6yzYs5ujDba-luz-JeXw](https://pan.baidu.com/s/1ai6yzYs5ujDba-luz-JeXw)
146+
- 提取码:`6mtk`
147+
148+
下载完成后,先阅读[Tina SDK 开发环境搭建](./part3/01-DevelopmentEnvironmentSetup.md)。网盘文件夹名称不等于解压后的 SDK 根目录;能够看到 `build/envsetup.sh``build.sh``device/``kernel/``buildroot/` 的目录才是 SDK 根目录。
149+
150+
:::tip 建议保留原始包
151+
152+
首次解压后不要直接覆盖唯一副本。建议保留一份未修改的基础 SDK,用于比对板级修改、恢复误删文件和重新生成 overlay 补丁。
153+
154+
:::
155+
156+
### 获取 OmniGate 板级适配仓库
85157

86158
```bash
87159
git clone https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate.git
@@ -110,27 +182,39 @@ T153MX-Tina5SDK_OmniGate/
110182

111183
## 编译与打包
112184

113-
在已经应用 overlay 的 Tina SDK 根目录执行:
185+
完整的主机依赖、SDK 检查、编译和产物验证步骤见[Tina SDK 开发环境搭建](./part3/01-DevelopmentEnvironmentSetup.md)。下面仅列出已经配置好环境后的最短命令。
186+
187+
在已经应用 overlay 的 Tina SDK 根目录,首次先执行交互式方案配置:
114188

115189
```bash
116190
source build/envsetup.sh
117-
lunch t153_omnigate_mmc-buildroot
118-
make
119-
pack
191+
./build.sh config
192+
```
193+
194+
按名称选择 `linux``buildroot``t153``omnigate``default``linux-5.10-origin`,该组合
195+
对应 `t153_omnigate_mmc-buildroot`。随后执行:
196+
197+
```bash
198+
./build.sh
199+
./build.sh pack
120200
```
121201

122202
当前镜像输出名称:
123203

124204
```text
125-
out/t153_linux_omnigate_uart0.img
205+
out/t153/omnigate/buildroot/t153_linux_omnigate_uart0.img
126206
```
127207

208+
启用对应无线配置时,也可能生成 `t153_linux_omnigate_uart0-wifi1.img`。烧录前必须根据本次 `pack` 的时间戳和构建配置选择镜像,不能只按文件名猜测。
209+
128210
烧录和串口调试前请确认目标设备、USB 连接和镜像路径,避免误写其他存储设备。
129211

130212
## 调试资料
131213

214+
- [板载功能体验](./part2/01-Ethernet.md)
215+
- [HelloWorld 应用开发](./part4/01-HelloWorld.md)
132216
- [OmniGate 板级仓库](https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate)
133217
- [WLAN、Bluetooth 与 PCM 调试记录](https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate/blob/main/docs/wlan-bluetooth-bringup.md)
134218
- [MIPI DSI 4-Lane 屏调试记录](https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate/blob/main/docs/mipi-dsi-debug-record.md)
135219
- [Bluetooth 音响交付变更说明](https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate/blob/main/docs/bluetooth-speaker-change-set.md)
136-
- [OmniGate AMP Shell 异构开发](./02-DevelopmentGuides/09-omnigate-amp-shell-guide.md)
220+
- [OmniGate AMP Shell 异构开发](./part5/05-OmniGateAMPShell.md)

docs/T153MX/02-DevelopmentGuides/00-Overview.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/T153MX/02-DevelopmentGuides/_category_.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
sidebar_position: 2
3+
sidebar_label: 源码、工具与手册
4+
---
5+
6+
# 源码、工具与手册
7+
8+
本页面汇总 OmniGate-T153 开发所需的 SDK、板级适配、烧录工具和参考资料。
9+
10+
## 基础 SDK
11+
12+
- 网盘文件夹:`DshanPI-OminiGate_T153MX`
13+
- 下载链接:[百度网盘](https://pan.baidu.com/s/1ai6yzYs5ujDba-luz-JeXw)
14+
- 提取码:`6mtk`
15+
16+
下载并解压后,能同时看到 `build/envsetup.sh``build.sh``device/``kernel/``buildroot/` 的目录才是 SDK 根目录。
17+
18+
## OmniGate 板级适配
19+
20+
- 板级仓库:[T153MX-Tina5SDK_OmniGate](https://github.com/dshanpi/T153MX-Tina5SDK_OmniGate)
21+
- 编译方案:`t153_omnigate_mmc-buildroot`
22+
- Linux:5.10.198
23+
- Buildroot:2022.05
24+
25+
基础 SDK 和板级适配不是同一份资料。先准备完整 SDK,再按仓库说明应用 OmniGate overlay。
26+
27+
## 烧录和串口工具
28+
29+
| 主机 | 工具 | 用途 |
30+
| --- | --- | --- |
31+
| Ubuntu | SDK `tools/OpenixCLI/openixcli` | 扫描设备、检查镜像、烧录 |
32+
| Windows | PhoenixSuit | 全志完整镜像烧录 |
33+
| Ubuntu | picocom/minicom | UART0 串口终端 |
34+
| Windows | MobaXterm/PuTTY | UART0 串口终端 |
35+
36+
## 硬件资料
37+
38+
OmniGate-T153 原理图、位号图和不同批次 BOM:`TODO: 待补充发布链接`
39+
40+
在链接补齐前,CAN、RS485、4G、显示和摄像头的具体连接器脚位以随板资料和 PCB 丝印为准,不从相似型号推断。
41+
42+
## 文档入口
43+
44+
- [快速启动](./part1/01-QuickStart.md)
45+
- [板载功能体验](./part2/01-Ethernet.md)
46+
- [Tina SDK 开发](./part3/01-DevelopmentEnvironmentSetup.md)
47+
- [应用开发](./part4/01-HelloWorld.md)
48+
- [进阶专题](./part5/01-USB.md)

docs/T153MX/03-ConfigHostEnv.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
sidebar_position: 3
3+
sidebar_label: 安装并配置开发环境
4+
---
5+
6+
# 安装并配置开发环境
7+
8+
本章节说明 OmniGate-T153 开发主机的基本要求。SDK 的完整编译步骤见[Tina SDK 开发环境搭建](./part3/01-DevelopmentEnvironmentSetup.md)
9+
10+
## 准备 Ubuntu 主机
11+
12+
推荐使用 Ubuntu 20.04 或 22.04 64 位系统,预留不少于 100 GB 可用磁盘空间。SDK 不要放在 NTFS/FAT 共享目录,也不要使用包含空格和中文的路径。
13+
14+
**Ubuntu 主机**执行:
15+
16+
```bash
17+
uname -m
18+
lsb_release -ds
19+
df -h .
20+
```
21+
22+
`uname -m` 应输出 `x86_64`
23+
24+
## 安装编译依赖
25+
26+
```bash
27+
sudo apt update
28+
sudo apt install -y build-essential gcc-multilib g++-multilib \
29+
git gawk flex bison gettext texinfo libncurses5-dev libncursesw5-dev \
30+
libssl-dev python3 python-is-python3 rsync unzip zlib1g-dev file bc \
31+
cpio wget curl patch device-tree-compiler adb
32+
```
33+
34+
## 安装串口工具
35+
36+
```bash
37+
sudo apt install -y picocom
38+
```
39+
40+
连接 USB 转串口后查看设备:
41+
42+
```bash
43+
ls -l /dev/ttyUSB* /dev/ttyACM* 2>/dev/null
44+
```
45+
46+
找到实际串口后,以 115200 8N1 打开:
47+
48+
```bash
49+
sudo picocom -b 115200 <SERIAL_DEVICE>
50+
```
51+
52+
`<SERIAL_DEVICE>` 替换为实际节点,例如 `/dev/ttyUSB0`。按 `Ctrl+A`、再按 `Ctrl+X` 退出 picocom。

docs/T153MX/03-HALV2/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "HAL V2",
3-
"position": 3,
3+
"position": 9,
44
"link": {
55
"type": "generated-index",
66
"title": "HAL V2",

docs/T153MX/_category_.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"position": 2,
44
"link": {
55
"type": "generated-index",
6-
"description": "5 minutes to learn the most important Docusaurus concepts."
6+
"title": "T153MX",
7+
"description": "DshanPi OmniGate-T153 单板介绍、Linux 开发指南与 HAL V2 参考。"
78
}
89
}

docs/T153MX/part1/01-QuickStart.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
sidebar_position: 1
3+
sidebar_label: 启动开发板
4+
---
5+
6+
# 启动 OmniGate-T153
7+
8+
本章节将完成 OmniGate-T153 的电源、调试串口和 USB 连接,并进入 Linux Shell。
9+
10+
## 准备工作
11+
12+
**硬件:**
13+
14+
- OmniGate-T153 开发板
15+
- 与板卡要求匹配的稳定电源
16+
- 3.3 V USB 转串口模块
17+
- USB 数据线
18+
19+
**软件:**
20+
21+
- Ubuntu:picocom/minicom
22+
- Windows:MobaXterm/PuTTY
23+
24+
## 连接开发板
25+
26+
开发板外观如下:
27+
28+
![OmniGate-T153 开发板接口](../images/DshanPI-OminiGate-1.png)
29+
30+
调试串口接线:
31+
32+
```text
33+
USB 转串口 OmniGate-T153 UART0
34+
GND -------- GND
35+
TXD -------- RXD
36+
RXD -------- TXD
37+
VCC -------- 不连接
38+
```
39+
40+
TX/RX 需要交叉连接,串口模块必须是 3.3 V TTL 电平,不能使用 RS232 电平。UART0 排针的准确位置以 PCB 丝印和对应批次原理图为准。
41+
42+
## 打开串口终端
43+
44+
**Ubuntu 主机**查看串口设备:
45+
46+
```bash
47+
ls -l /dev/ttyUSB* /dev/ttyACM* 2>/dev/null
48+
```
49+
50+
打开串口:
51+
52+
```bash
53+
sudo picocom -b 115200 <SERIAL_DEVICE>
54+
```
55+
56+
Windows 串口参数同样设置为 115200、8 数据位、无校验、1 停止位、无流控。
57+
58+
## 启动开发板
59+
60+
确认接线无误后接通板卡电源。串口终端会依次打印 Boot0、U-Boot 和 Linux 日志,最后进入 Linux Shell。
61+
62+
**开发板 Linux Shell**执行:
63+
64+
```bash
65+
uname -a
66+
uname -m
67+
cat /proc/partitions
68+
```
69+
70+
可以看到 Linux 5.10、`armv7l` 和 eMMC 分区信息,说明开发板已经正常启动。
71+
72+
如果串口完全没有输出,先检查供电、GND、TX/RX 是否接反和串口设备是否选错;如果输出乱码,确认波特率为 115200。

0 commit comments

Comments
 (0)