高通Ride软件开发包使用指南(6)
- 6.2使用SDK设置配置QDrive平台
- 6.3生成SDK配置文件
- 6.4 QDrive功能验证
6.2使用SDK设置配置QDrive平台
- 配置平台
$ cd ~/qride/platform
$ ./setup.sh [Platform SOC]
该脚本根据IP地址检测平台,然后推送摄像头QRide SDK的配置和自动启动脚本。
输出例:
$ ./setup.sh --ip 192.168.1.1
Using target ip-addr 192.168.1.1
Detected QDrive 3.0 SDP7.1 based platform
Using target ip-addr 192.168.1.1
- 使用FTP将SDK文件传输到以下平台。
注意:默认情况下,SOC1 IP地址为192.168.1.1,SOC2 IP地址为192.168.1.2
~/qride/stack-sdk$ lftp -c 'open -uroot, [QRIDE SOC IP]; put -O/var/data
pkg-aarch64-qos220.tar.gz‘
~/qride/stack-sdk$ ssh root@[QRide SOC IP Address]
# cd /var/data/
# tar xzf pkg-aarch64-qos220.tar.gz
# cp -fr pkg-aarch64-qos220/opt/qride /opt
# echo “M0” > /opt/qride/conf/target-name
- 要在启动时设置不同的平台IP地址,编辑 emac0
~\qride\platform\qdrive\3.0\configs\SOC1\network or
~\qride\platform\qdrive\3.0\configs\SOC2\network.
例如, emac0:
IPADDR=192.168.1.1
NETMASK=255.255.255.0
6.3生成SDK配置文件
脚步 qride-sysconf-generate (位于 stack-sdk 包) 生成SDK的必要配置。
~/qride/stack-sdk $ ./tools/Sysconf/qride-sysconf-generate --templates
sysconf/templates --hwdb sysconf/hwdb --top [JSON CONFIGURATION FILE] --
output system.json
例如
下面这个例子用了 7cam-pre-es1.json (在~/qride/stacksdk/sysconf/examples):
~/qride/stack-sdk$ ./tools/Sysconf/qride-sysconf-generate --templates
sysconf/templates --hwdb sysconf/hwdb --top sysconf/examples/7cam-ES1json -
-output system.json
输出文件可以推送到平台
$ lftp -c 'open -uroot, [QRIDE SOC IP]; put -O/opt/qride/conf system.json'
6.4 QDrive功能验证
SDK应在给定的启动时执行:
■ system.json 文件在/opt/qride/conf
■ target-name in /opt/qride/conf is present and has a valid entry
□ -“M0” – M designates QDrive 3.0 where 0 is SOC1
□ -“M1” - M designates QDrive 3.0 where 1 is SOC2
以下方法可用于验证SDK在平台上是否正常工作:
AIS Camera FPS
# tail -f /opt/qride/log/N0.txt |^J awk '/vdds-push \/timesync\/1hz/ {
print $1, "------"; for (i in c) { print i, "\tfps: ", c[i]; } delete c; }
/vdds-push \/sensors\/camera\/CAM.*raw/ { c[$6] += 1; }'
00000000530.787027020 ------
/sensors/camera/CAM0/raw fps: 29
/sensors/camera/CAM4/raw fps: 29
/sensors/camera/CAM3/raw fps: 28
/sensors/camera/CAM2/raw fps: 29
/sensors/camera/CAM1/raw fps: 29
/sensors/camera/CAM6/raw fps: 29
/sensors/camera/CAM5/raw fps: 29
00000000531.787016100 ------
/sensors/camera/CAM0/raw fps: 29
/sensors/camera/CAM4/raw fps: 28
/sensors/camera/CAM3/raw fps: 29
/sensors/camera/CAM2/raw fps: 28
/sensors/camera/CAM1/raw fps: 28
/sensors/camera/CAM6/raw fps: 28
/sensors/camera/CAM5/raw fps: 28
用户还可以轮询QAIC状态,以验证网络是否已加载并通过qaic util应用程序:
# qaic-util -q -d 0
QID 0
Status:Ready
PCI Address:0003:01:00.0
PCI Info:
HW Version:0.2.0.0
HW Serial:0x3c9e0046
FW Version:1.4.8
FW QC_IMAGE_VERSION:QSM.AIC.1.4.8
FW OEM_IMAGE_VERSION:
FW IMAGE_VARIANT:AIC100.REL
NSP Version:1.4.2
NSP QC_IMAGE_VERSION:NSP.AIC.1.4.2
NSP OEM_IMAGE_VERSION:
NSP IMAGE_VARIANT:aic100.nsp.prodQ
Compiler Version:0
Dram Total:16308 MB
Dram Free:15314 MB
Dram Fragmentation:0.00%
Vc Total:16
Vc Free:9
Nsp Total:14
Nsp Free:0
Peak Dram Bw:0.0
Peak Sram Bw:0.0
Peak PcieBw:0.0
MCID Total:3072
MCID Free:2372
Semaphore Total:32
Semaphore Free:18
Constants Loaded:7
Constants In-Use:7
Networks Loaded:7
Networks Active:7
NSP Frequency(Mhz):1333
DDR Frequency(Mhz):2133
COMPNOC Frequency(Mhz):1450
MEMNOC Frequency(Mhz):1000
SYSNOC Frequency(Mhz):667
Metadata Version:0.10
NNC Command Protocol Version:8.0
SBL Image:SBL.AIC.1.4.1
PVS Image Version:16
NSP Defective PG Mask: 0x1010
板序列号:序列号保留fu7xCam CPU和Mem利用率
# top -d
Min Max Average
CPU 0 idle: 86% 87% 86%
CPU 1 idle: 90% 90% 90%
CPU 2 idle: 97% 97% 97%
CPU 3 idle: 98% 99% 98%
CPU 4 idle: 71% 72% 71%
CPU 5 idle: 79% 81% 80%
CPU 6 idle: 92% 93% 92%
CPU 7 idle: 96% 97% 96%
Mem Avail: 5824MB 5824MB 5824MB
Processes: 53 53 53
Threads: 784 784 784