1. 1 OK3519 BSP整體測評 OK3519A 采用Hi3519AV100,該芯片支持 H.265/H.264編解碼,編碼/解碼性能高達4K*2K@60fps/1080p@240fps,集成了海思第四代ISP,支持WDR、多級降噪、六軸防抖及多種圖像增強和矯正算法,內置高性能全景拼接引擎,集成了智能加速引擎包括IVE,DSP,NNIE,DPU,可進行圖片分類,目標檢測等。適用于適用于醫療,金融,防控等多個領域的計算機視覺。 整理來說,OK3519A 視頻編解碼,視頻輸入方面的性能強大,集成了智能加速引擎,提供了高效且豐富的計算資源。海思提供了大量的庫文件,應用可調用海思的庫實現。 飛凌優化了原廠BSP,移植了QT5.9.4,支持鼠標和觸摸屏。目前QT顯示功能與海思原生測試沖突,不能直接同時使用。如果希望同時使用,需從代碼上去掉對MPI和VB的重復初始化。 默認出廠程序HDMI顯示,加載QT主界面,如下圖:
OK3519A 支持MIPI-DSI和HDMI屏幕接口,HDMI支持4K輸出。2種方式切換屏幕:uboot菜單動態控制和燒寫系統時環境變量指定。 QT與命令行demo,均有測試例程,客戶可參考,添加自己的應用。減少開發時間。 1. 2 OK3519 A 接口功能簡介
串口支持odd、even、mark、space校驗,實測波特率可9600到1500000。 網絡支持SSH/SFTP/WEB服務。 支持移遠ec20 4G模塊,華為ME909S 4G 模塊。 MIPI-DSI屏顯示(1024x600分辨率ARGB1555輸出顯示,ft5x06和gt911觸摸),支持背光調節。 支持RX-RTC8010。 音頻支持2路AI輸入,1路AO輸出,支持HDMI音頻輸出,支持VQE。 默認支持索尼的imx290和imx334。支持MIPI-CSI(OV5640)預覽到HDMI上。
支持PCIE接口(與USB3.0 共用資源,默認為USB3.0)。 支持SPI接口,一路片選。 支持原廠MPP例程。 支持SD卡燒寫,支持ext4 燒寫,速度快。 多種啟動方式:SPI NAND flash(支持yaffs文件系統,24位ECC)、eMMC啟動(ext4文件系統)。 1.3 OK3519 性能測試 1.3. 1. USB2.0 讀寫速度測試 存儲設備不同,測試結果存在差異。 寫入測試: $dd if=/dev/zero of=/run/media/sda1/test bs=1M count=500 conv=fsync
讀取測試: $dd if=/run/media/sda1/test of=/dev/null bs=1M
1.3.2 USB3.0 讀寫速度測試 存儲設備不同,測試結果存在差異。 寫入測試: $dd if=/dev/zero of=/run/media/sda1/test bs=1M count=500 conv=fsync
讀取測試: $dd if=/run/media/sda1/test of=/dev/null bs=1M
1.3.3 SD卡讀寫測試 SD卡支持Default Speed(DS)/High Speed(HS) /ddr50 /SDR12 /SDR25 /SDR50 /SDR104模式。實測工作在SDR50時的讀寫速度。
寫入測試: $dd if=/dev/zero of=/run/media/mmcblk1/test bs=1M count=500 conv=fsync
讀取測試: $dd if=/run/media/mmcblk1/test of=/dev/null bs=1M
1.3.4 eMMC讀寫測試 eMMC采用HS400模式,以讀寫ext4文件系統速度為例,如下: 寫入測試: $ dd if=/dev/zero of=/test bs=1M count=100 conv=fsync
讀取測試: $dd if=/test of=/dev/null bs=1M 1.3.5 有線網絡吞吐量測試 組網環境如下:
TCP發送吞吐量測試: PC機做服務器:ipeRF3.ext -s OK3519上測試:iperf3 -c 192.168.2.72 -t 10 -i 1 Connecting to host 192.168.2.72, port 5201 [ 4] local 192.168.2.147 port 35524 connected to 192.168.2.72 port 5201 [ ID] Interval Transfer Bandwidth Retr Cwnd [ 4] 0.00-1.00 sec 108 MBytes 908 Mbits/sec 12 191 KBytes [ 4] 1.00-2.00 sec 112 MBytes 941 Mbits/sec 4 154 KBytes [ 4] 2.00-3.00 sec 112 MBytes 941 Mbits/sec 1 218 KBytes [ 4] 3.00-4.00 sec 110 MBytes 925 Mbits/sec 7 211 KBytes [ 4] 4.00-5.00 sec 112 MBytes 939 Mbits/sec 4 164 KBytes [ 4] 5.00-6.01 sec 112 MBytes 932 Mbits/sec 4 215 KBytes [ 4] 6.01-7.00 sec 112 MBytes 942 Mbits/sec 0 215 KBytes [ 4] 7.00-8.01 sec 113 MBytes 941 Mbits/sec 1 225 KBytes [ 4] 8.01-9.00 sec 112 MBytes 939 Mbits/sec 2 238 KBytes [ 4] 9.00-10.00 sec 112 MBytes 941 Mbits/sec 1 211 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 1.09 GBytes 935 Mbits/sec 36 sender [ 4] 0.00-10.00 sec 1.09 GBytes 933 Mbits/sec receiver
iperf Done. TCP接收與UDP發送接收,其他測試方法類似。 1.3.6 Coremark 跑分 2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 18799 Total time (secs): 18.799000 Iterations/Sec : 5851.375073 Iterations : 110000 Compiler version : GCC6.3.0 Compiler flags : -O3 -funroll-all-loops --param max-inline-insns-auto=550 -DPERFORMANCE_RUN=1 -lrt Memory location : Please put data memory location here (e.g. code in flash, data on heap etc) seedcrc : 0xe9f5 [0]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [0]crcfinal : 0x33ff Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 5851.375073 / GCC6.3.0 -O3 -funroll-all-loops --param max-inline-insns-auto=550 -DPERFORMANCE_RUN=1 -lrt / Heap 1.3.7 Dhrystone測試 /run/media/mmcblk1p1 # echo 50000000 | ./dhrystone Dhrystone Benchmark, Version 2.1 (Language: C) Please give the number of runs through the benchmark: Execution starts, 50000000 runs through Dhrystone Execution ends Final values of the variables used in the benchmark: Int_Glob: 5 should be: 5 Bool_Glob: 1 should be: 1 Ch_1_Glob: A should be: A Ch_2_Glob: B should be: B Arr_1_Glob[8]: 7 should be: 7 Arr_2_Glob[8][7]: 50000010 should be: Number_Of_Runs + 10 Ptr_Glob-> Ptr_Comp: 648336 should be: (implementation-dependent) Discr: 0 should be: 0 Enum_Comp: 2 should be: 2 Int_Comp: 17 should be: 17 Str_Comp: DHRYSTONE PROGRAM, SOME STRING should be: DHRYSTONE PROGRAM, SOME STRING Next_Ptr_Glob-> Ptr_Comp: 648336 should be: (implementation-dependent), same as above Discr: 0 should be: 0 Enum_Comp: 1 should be: 1 Int_Comp: 18 should be: 18 Str_Comp: DHRYSTONE PROGRAM, SOME STRING should be: DHRYSTONE PROGRAM, SOME STRING Int_1_Loc: 5 should be: 5 Int_2_Loc: 13 should be: 13 Int_3_Loc: 7 should be: 7 Enum_Loc: 1 should be: 1 Str_1_Loc: DHRYSTONE PROGRAM, 1'ST STRING should be: DHRYSTONE PROGRAM, 1'ST STRING Str_2_Loc: DHRYSTONE PROGRAM, 2'ND STRING should be: DHRYSTONE PROGRAM, 2'ND STRING
Register option selected? YES microseconds for one run through Dhrystone: 0.2 Dhrystones per Second: 4989727.1 VAX MIPS rating = 2839.913 原文鏈接:https://www.forlinx.com/article_view_519.html
|