差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
nk-6a12 [2024/03/14 20:43] ljy |
nk-6a12 [2024/07/25 03:12] (当前版本) ljy |
||
---|---|---|---|
行 1: | 行 1: | ||
===== NK-6A12 ===== | ===== NK-6A12 ===== | ||
+ | [[English version]] | ||
==== RK3568芯片架构 ==== | ==== RK3568芯片架构 ==== | ||
{{ arm: | {{ arm: | ||
行 12: | 行 12: | ||
==== 接口定义 ==== | ==== 接口定义 ==== | ||
- | |||
{{page>: | {{page>: | ||
行 32: | 行 31: | ||
1.下载并安装USB驱动DriverAssitant_v5.0(Windows 系统可能会自动安装),解压后点击DriverInstall.exe安装驱动;再安装烧录工具RKDevTool | 1.下载并安装USB驱动DriverAssitant_v5.0(Windows 系统可能会自动安装),解压后点击DriverInstall.exe安装驱动;再安装烧录工具RKDevTool | ||
- | {{:arm:rk3399: | + | {{arm:driver.jpg|driver}} |
+ | |||
+ | {{: | ||
2.开始烧录:\\ | 2.开始烧录:\\ | ||
行 196: | 行 197: | ||
== LCD/ | == LCD/ | ||
- | 1. 系统支持使用APP切换不同的LCD屏,输入dis命令打开APP如下图: | + | {{page>template:temp_linux_lcd}} |
- | + | ||
- | * 选择对应的eDP/ | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | 2. 背光亮度调节: | + | |
- | + | ||
- | * 方法①:点击右下角系统托盘如下图标,打开背光调节APP | + | |
- | + | ||
- | {{:template:backlight.png? | + | |
- | + | ||
- | * 方法②:控制驱动应用层接口: | + | |
- | + | ||
- | echo 100 > / | + | |
- | (注:写入数值越大亮度越大,max_brightness 为250) | + | |
== Audio == | == Audio == | ||
行 297: | 行 283: | ||
1. 串口定义参考: | 1. 串口定义参考: | ||
- | * [[:nk-rk3399-v0c# | + | * [[template:nk6a12_hw_pin# |
2. 串口设备节点系统对应表: | 2. 串口设备节点系统对应表: | ||
- | ^ 主板丝印 | + | ^ 主板丝印 |
- | | | + | | |
- | | | + | | |
- | | | + | | |
- | | | + | | |
- | | RS485_A1\B1 | + | | RS485_A1\B1 |
- | | RS485_A2\B2 | + | | RS485_A2\B2 |
3. CuTecom 测试串口,以232_RX5\TX5回环测试为例 | 3. CuTecom 测试串口,以232_RX5\TX5回环测试为例 | ||
行 332: | 行 318: | ||
== GPIO/SPI == | == GPIO/SPI == | ||
- | 1.导出节点(编号为56、57、58、59) | + | {{page>:template:temp_linux_gpio}} |
- | + | ||
- | $:echo 56 >/ | + | |
- | + | ||
- | 也可以使用for循环一次性导出所有IO节点: | + | |
- | $:cd / | + | |
- | $:for i in {56, | + | |
- | + | ||
- | 2. IO 控制节点在目录:/ | + | |
- | + | ||
- | {{:arm:rk3399: | + | |
- | + | ||
- | 3. IO 对应表如下: | + | |
- | ^ 功能 | + | |
- | ^ 输入\输出 | + | |
- | | ::: | J_GPIO2 | + | |
- | | ::: | J_GPIO3 | + | |
- | | ::: | J_GPIO4 | + | |
- | + | ||
- | + | ||
- | + | ||
- | 4. IO控制方法: | + | |
- | + | ||
- | *设置IO方向为输出: | + | |
- | + | ||
- | echo out >/ | + | |
- | + | ||
- | *输出低电平: | + | |
- | + | ||
- | echo 0 >/ | + | |
- | + | ||
- | *输出高电平: | + | |
- | + | ||
- | echo 1 >/ | + | |
- | + | ||
- | *查看输出电平的值是否可控: | + | |
- | + | ||
- | cat / | + | |
- | + | ||
- | *使用电压表测量IO对应的针脚对GND的电压值 | + | |
- | + | ||
- | 0 高电平3.3V | + | |
- | 1 低电平0V | + | |
== WatchDog == | == WatchDog == | ||
行 380: | 行 324: | ||
== Key == | == Key == | ||
- | 1. 输入命令evtest 查看系统下所有按键、输入设备: | + | {{page>:template:temp_linux_key}} |
- | + | ||
- | root@rk3399: | + | |
- | No device specified, trying to scan all of / | + | |
- | Available devices: | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | Select the device event number [0-4]: | + | |
- | + | ||
- | 2. 按照上面提示选择测试按键,如RK3399 boot按键为 | + | |
- | + | ||
- | | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | 3. 自定义按键功能,配置文件为 | + | |
- | + | ||
- | / | + | |
- | 如下为定义按键为reboot功能,亦为系统默认配置,用户可以根据需要自定义。 | + | |
- | + | ||
- | KEY_VOLUMEUP | + | |
== PowerManager == | == PowerManager == | ||
行 416: | 行 337: | ||
== RTC/ | == RTC/ | ||
- | 1.查看当前系统时间: | + | {{page>:template:temp_linux_rtc}} |
- | + | ||
- | [root@rk3399: | + | |
- | Wed Jun 8 15:54:09 CST 2022 | + | |
- | + | ||
- | 2. 设置同步硬件时钟: | + | |
- | + | ||
- | [root@rk3399:/ | + | |
- | Wed Jun 8 17:01:01 CST 2022 | + | |
- | [root@rk3399:/ | + | |
- | [root@rk3399:/ | + | |
- | Wed Jun 8 17:01:09 2022 0.000000 seconds | + | |
- | + | ||
- | 3. 关机断电5秒以上,再开机查看系统时间是否保存: | + | |
- | [root@rk3399:/ | + | |
- | Wed Jun 8 17:02:30 CST 2022 | + | |
- | 注:系统默认为网络时间同步,以上RTC测试需要在断外网情况下测试。 | + | |
- | + | ||
- | 4. 时区设置 | + | |
- | + | ||
- | * 方法① -- 修改link文件, | + | |
- | + | ||
- | ln -sf / | + | |
- | reboot | + | |
- | + | ||
- | + | ||
- | 设置其他时区只需将上面命令中的Asia/ | + | |
- | + | ||
- | * 方法② -- 在图形界面依次打开首选项-> | + | |
- | + | ||
- | {{:arm: | + | |
- | + | ||
- | 选择完成后关闭窗口,使用date命令查看时区变化: | + | |
- | + | ||
- | | + | |
== Linux OTA 在线升级 == | == Linux OTA 在线升级 == | ||
行 460: | 行 347: | ||
=== Linux 基本命令 === | === Linux 基本命令 === | ||
- | = CPU = | + | {{page>: |
- | 查看CPU信息: | + | |
- | + | ||
- | cat / | + | |
- | = Memory = | + | |
- | 查看内存容量大小: | + | |
- | + | ||
- | free -h | + | |
- | + | ||
- | = EMMC = | + | |
- | 查看EMMC可用容量大小 | + | |
- | + | ||
- | df -h | + | |
=== 系统性能测试 === | === 系统性能测试 === | ||
行 486: | 行 361: | ||
==== Linux 应用编程 ==== | ==== Linux 应用编程 ==== | ||
+ | {{page>: | ||
==== Linux 应用支持 ==== | ==== Linux 应用支持 ==== | ||
+ | {{page>: |