米尔电子
直播中

jf_1137202360

8年用户 1350经验值
擅长:嵌入式技术
私信 关注
[技术]

【米尔MYD-J1028X开发板试用体验】初体验

[TOC]

开箱

开箱过程就略了,直接看板子。板子比较大,酷黑风格,一看做工就不错,该有的接口防护设计都有,完全按照工业级产品标准设计,大大的散热器很突出,5个网口也很有特色。

image.png

image.png

板载资源

核心板

· 基于NXP LS1028A处理器,双核 Cortex™-A72,主频1.5GHz;

· 支持6个千兆网口,且都支持TSN(开发板支持5个千兆工业网口);

· 具备PCIe3.0、SATA3.0、USB3.0、CAN-FD等高速总线接口;

· 支持DP显示,可支持DP1.3和eDP1.4,显示分辨率高达4K@60FPS;

· 工业级-40℃ - +85℃,金手指314PIN;

名称 主要参数 配置
处理器型号 NXP LS1028A 标配
处理器架构 双核ARM Cortex-A72
处理器主频 1.5GHz
内存 标配2GB DDR4 ,容量可选3GB、4GB 可选
存储器 标配8GB eMMC ,容量可选16GB、32GB 可选
XSPI NOR Flash 默认空贴 可选
QSPI NAND Flash 默认空贴 可选
工作电压 5V
机械尺寸 82mmx45mmx1.2mm
接口类型 金手指,314PIN
PCB工艺 12层板设计,沉金工艺
工作温度 工业级:-40℃~85℃
操作系统 Linux 5.10Ubuntu 18.04
相关认证 CE,ROHS
项目 参数
Ethernet 1* SGMII信号1* QSGMII信号
PCIe 3.0 2* PCIe 3.0
SATA 3.0 1* SATA 3.0
CAN-FD 2* CAN-FD
USB3.0 2* USB3.0
I2C 8* I2C
SPI 3* SPI
SDIO 2* SDIO
UART 6LPUART2UART
Display Output 1* DP1.3/eDP1.4,支持4K@60fps
JTAG 支持JTAG
SAI 6* SAI

底板

功能 参数
系统 POWER
KEY 1路复位按键
1路用户按键
SWITCH 1路电源开关
BOOT SET 1路拨码开关
SD 1路Micro SD卡槽
通讯接口 WIFI/BT
5G 1路USB3.0协议M.2 B型插座的5G模块接口2路SIM卡座
SSD 1路SATA3.0协议M.2 B型插座的SSD模块接口
Ethernet 5路10/100/1000M以太网接口,RJ45接口,均支持TSN
USB 1路 USB 3.0 HOST 接口,采用Type-A接口
UART 1路调试串口,通过串口转USB,采用Type-C接口2路普通串口,通过扩展接口引出
多媒体接口 DISPLAY
AUDIO 1路3.5mm音频输出接口
扩展接口 Expansion IO

串口登录

USB线接J22: DEBUG UART。

接好电源J1,S1电源开关打到ON,开发板上电。

这里串口终端使用SecureCRT。

查看设备管理器串口号,使用SecureCRT连接串口,115200-8-N-1。

image.png

输入用户名root

密码root登录

NXP LSDK 2012 main

localhost login: root

Password:

Last login: Fri Jan  1 00:00:05 UTC 2066 on tty7

Welcome to NXP LSDK 2012 main (GNU/Linux 5.4.47-g20182b961 aarch64)

* Support:        https://www.nxp.com/lsdk
* Documentation:  https://lsdk.github.io/document
* Licensing:      https://lsdk.github.io/eula

The programs included with the NXP LSDK are free software, the exact distribution

terms of some programs are described in the individual files in /usr/share/doc.

NXP LSDK comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.

By using this LSDK, you indicate that you accept the terms of the Agreement in

the link above and you acknowledge that you have the authority, for yourself

or on behalf of your company, to bind your company to these terms.

root@localhost:~#

体验

CPU信息

输入cat /proc/cpuinfo回车查看CPU信息,可以看到双核信息。

root@localhost:~# cat /proc/cpuinfo

processor       : 0

BogoMIPS        : 50.00

Features        : fp asimd evtstrm crc32 cpuid

CPU implementer : 0x41

CPU architecture: 8

CPU variant     : 0x0

CPU part        : 0xd08

CPU revision    : 3

processor       : 1

BogoMIPS        : 50.00

Features        : fp asimd evtstrm crc32 cpuid

CPU implementer : 0x41

CPU architecture: 8

CPU variant     : 0x0

CPU part        : 0xd08

CPU revision    : 3

CPU使用率

输入top回车查看CPU使用率

top - 00:39:02 up 39 min,  1 user,  load average: 0.11, 0.13, 0.09

Tasks: 104 total,   1 running,  55 sleeping,   0 stopped,   0 zombie

%Cpu(s):  0.0 us,  0.5 sy,  0.0 ni, 99.0 id,  0.2 wa,  0.3 hi,  0.0 si,  0.0 st

KiB Mem :  1955912 total,  1608636 free,   176168 used,   171108 buff/cache

KiB Swap:        0 total,        0 free,        0 used.  1710876 avail Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND

141 root       0 -20       0      0      0 I   0.3  0.0   0:00.16 kworker/1:+

172 root      19  -1   26044   7140   6556 S   0.3  0.4   0:00.26 systemd-jo+

492 root      20   0  779972  34964  17112 S   0.3  1.8   0:05.34 containerd

763 root      20   0       0      0      0 I   0.3  0.0   0:00.05 kworker/1:+

766 root      20   0    6032   2984   2404 R   0.3  0.2   0:00.05 top


1 root      20   0   13384   7848   5724 S   0.0  0.4   0:04.89 systemd

2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd

3 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 rcu_gp

4 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 rcu_par_gp

7 root      20   0       0      0      0 I   0.0  0.0   0:00.47 kworker/u4+

8 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 mm_percpu_+

9 root      20   0       0      0      0 S   0.0  0.0   0:00.03 ksoftirqd/0

10 root      20   0       0      0      0 I   0.0  0.0   0:00.05 rcu_preempt

11 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/0

12 root      20   0       0      0      0 S   0.0  0.0   0:00.00 cpuhp/0

13 root      20   0       0      0      0 S   0.0  0.0   0:00.00 cpuhp/1

14 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/1

CPU温度

输入cat /sys/class/thermal/thermal_zone0/temp

回车查看CPU温度

这里看到只有42°,温度不高。

root@localhost:~# cat /sys/class/thermal/thermal_zone0/temp

42000

CPU压力测试

输入echo "scale=5000; 4*a(1)" | bc -l -q &

回车,后台计算圆周率到小数点后5000位。

运算过程中输入top回车查看cpu使用率达到了100%

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND

782 root      20   0    2572   1588   1336 R 100.0  0.1   0:07.74 bc

大概45秒运算完,这也可以用于定性体现CPU性能。

root@localhost:~# 3.141592653589793238462643383279502884197169399375105820974944592307

81640628620899862803482534211706798214808651328230664709384460955058
22317253594081284811174502841027019385211055596446229489549303819644
28810975665933446128475648233786783165271201909145648566923460348610
45432664821339360726024914127372458700660631558817488152092096282925
40917153643678925903600113305305488204665213841469519415116094330572
70365759591953092186117381932611793105118548074462379962749567351885
75272489122793818301194912983367336244065664308602139494639522473719
07021798609437027705392171762931767523846748184676694051320005681271
45263560827785771342757789609173637178721468440901224953430146549585
37105079227968925892354201995611212902196086403441815981362977477130
99605187072113499999983729780499510597317328160963185950244594553469
08302642522308253344685035261931188171010003137838752886587533208381
42061717766914730359825349042875546873115956286388235378759375195778
18577805321712268066130019278766111959092164201989380952572010654858
63278865936153381827968230301952035301852968995773622599413891249721
......

可以将5000改为50000持续测试,查看温度变化

稳定在了46°左右

root@localhost:~# cat /sys/class/thermal/thermal_zone0/temp

46000

温度测量感觉有点不太准备,用手触摸散热器,感觉明显升温有点烫了,应该不止46°了。

内存信息

输入cat /proc/meminfo

回车查看内存信息

root@localhost:~# cat /proc/meminfo

MemTotal:        1955912 kB

MemFree:         1604108 kB

MemAvailable:    1710244 kB

Buffers:           10164 kB

Cached:           151856 kB

SwapCached:            0 kB

Active:           110576 kB

Inactive:         133768 kB

Active(anon):      82708 kB

Inactive(anon):      164 kB

Active(file):      27868 kB

Inactive(file):   133604 kB

Unevictable:           0 kB

Mlocked:               0 kB

SwapTotal:             0 kB

SwapFree:              0 kB

Dirty:                 0 kB

Writeback:             0 kB

AnonPages:         79628 kB

Mapped:            75472 kB

Shmem:               556 kB

KReclaimable:      13232 kB

Slab:              38300 kB

SReclaimable:      13232 kB

SUnreclaim:        25068 kB

KernelStack:        2336 kB

PageTables:         1396 kB

NFS_Unstable:          0 kB

Bounce:                0 kB

WritebackTmp:          0 kB

CommitLimit:      977956 kB

Committed_AS:     445708 kB

VmallocTotal:   135290159040 kB

VmallocUsed:        8004 kB

VmallocChunk:          0 kB

Percpu:             1688 kB

HardwareCorrupted:     0 kB

AnonHugePages:      8192 kB

ShmemHugePages:        0 kB

ShmemPmdMapped:        0 kB

FileHugePages:         0 kB

FilePmdMapped:         0 kB

CmaTotal:         262144 kB

CmaFree:          211616 kB

HugePages_Total:       0

HugePages_Free:        0

HugePages_Rsvd:        0

HugePages_Surp:        0

Hugepagesize:       2048 kB

Hugetlb:               0 kB

内存使用率

输入#free -m回车查看内存使用率

root@localhost:~# free -m


total        used        free      shared  buff/cache   available

Mem:           1910         172        1566           0         171        1669

Swap:             0           0           0

内存压力测试

输入 memtester 1024M 1

回车

root@localhost:~# # memtester 1024M 1

root@localhost:~# memtester 1024M 1

memtester version 4.3.0 (64-bit)

Copyright (C) 2001-2012 Charles Cazabon.

Licensed under the GNU General Public License version 2 (only).

pagesize is 4096

pagesizemask is 0xfffffffffffff000

want 1024MB (1073741824 bytes)

got  1024MB (1073741824 bytes), trying mlock ...locked.

Loop 1/1:

Stuck Address       : ok

Random Value        : ok

Compare XOR         : ok

Compare SUB         : ok

Compare MUL         : ok

Compare DIV         : ok

Compare OR          : ok

Compare AND         : ok

Sequential Increment: ok

Solid Bits          : ok

Block Sequential    : ok

Checkerboard        : ok

Bit Spread          : ok

Bit Flip            : ok

Walking Ones        : ok

Walking Zeroes      : ok

8-bit Writes        : ok

16-bit Writes       : ok

Done.

EMMC

输入fdisk -l回车查看emmc信息

root@localhost:~# fdisk -l

Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

......

Disk /dev/mmcblk1: 7.3 GiB, 7818182656 bytes, 15269888 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0xf0c623ad

Device         Boot   Start      End  Sectors  Size Id Type

/dev/mmcblk1p1       139264   401407   262144  128M 83 Linux

/dev/mmcblk1p2       403456  4597759  4194304    2G 83 Linux

/dev/mmcblk1p3      4599808  4730879   131072   64M 83 Linux

/dev/mmcblk1p4      4732928 15269887 10536960    5G 83 Linux

输入df -h

回车查看挂载信息

root@localhost:~# df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/root       4.9G  2.3G  2.4G  50% /

devtmpfs        825M     0  825M   0% /dev

tmpfs           956M     0  956M   0% /dev/shm

tmpfs           956M  556K  955M   1% /run

tmpfs           5.0M     0  5.0M   0% /run/lock

tmpfs           956M     0  956M   0% /sys/fs/cgroup

/dev/mmcblk1p2  2.0G  658M  1.2G  36% /boot

tmpfs           192M     0  192M   0% /run/user/0

输入time dd if=/dev/zero of=tempfile bs=1M count=100 conv=fdatasync

测试写文件速度,大概27.9MB/S

coot@localhost:~# time dd if=/dev/zero of=tempfile bs=1M count=100 conv=fdatasync

100+0 records in

100+0 records out

104857600 bytes (105 MB, 100 MiB) copied, 3.75256 s, 27.9 MB/s

real    0m3.755s

user    0m0.001s

sys     0m0.300s

输入

time dd if=tempfile of=/dev/null bs=1M count=100 iflag=direct,nonblock

回车测试读速度193MB/S

nonblockalhost:~# time dd if=tempfile of=/dev/null bs=1M count=100 iflag=direct,n

100+0 records in

100+0 records out

104857600 bytes (105 MB, 100 MiB) copied, 0.542257 s, 193 MB/s

real    0m0.544s

user    0m0.000s

sys     0m0.014s

RTC

输入ls -l /dev/rtc* 回车查看设备

输入cat /sys/class/rtc/rtc0/name回车查看名字

root@localhost:~# ls -l /dev/rtc*

lrwxrwxrwx 1 root root      4 Jan  1 00:00 /dev/rtc -> rtc0

crw------- 1 root root 251, 0 Jan  1 00:00 /dev/rtc0

crw------- 1 root root 251, 1 Jan  1 00:00 /dev/rtc1

root@localhost:~# cat /sys/class/rtc/rtc0/name

rtc-rx8025t 1-0032

输入date查看当前时间

输入date -s "2022-8-19 22:53:30"设置时间

输入date查看设置后的时间

输入hwclock -w将时间写入rtc

输入hwclock -r加载rtc的时间

不断电按住RST按键一段时间,再放开重启,看保持复位这段时间时间是否在继续走。

看到时间是保持走动的。

root@localhost:~# date

Fri Aug 19 23:00:53 UTC 2022

root@localhost:~# date -s "2022-9-19 22:53:30"

Mon Sep 19 22:53:30 UTC 2022

root@localhost:~# date

Mon Sep 19 22:53:31 UTC 2022

root@localhost:~# hwclock -w

root@localhost:~# hwclock -r

2022-09-19 22:53:39.978946+0000

......

保持复位一段时间,

重启

......

root@localhost:~# date

Mon Sep 19 22:55:01 UTC 2022

hwclock -s

可以让RTC和系统时间保持同步。

看门狗

输入cat /sys/class/watchdog/watchdog0/device/uevent查看看门狗信息

root@localhost:~# cat /sys/class/watchdog/watchdog0/device/uevent

DRIVER=sp805-wdt

OF_NAME=watchdog

OF_FULLNAME=/soc/watchdog@c000000

OF_COMPATIBLE_0=arm,sp805

OF_COMPATIBLE_1=arm,primecell

OF_COMPATIBLE_N=2

AMBA_ID=00141805

MODALIAS=amba:d00141805

echo V > /dev/watchdog关闭看门狗

总结

板子的性能非常强悍,资源接口也非常丰富,做工也一如既往的优秀,不仅仅是一个开发板,而且就是一个工业及标准的产品,该有的防护设计都有,可以直接用于二次开发。资料比较详细,简单体验了下相关的测试都非常nice,后面再针对性的对各模块进行测试。

资源非常丰富,且开源,一如既往的好评,先把所有资料下载,下一次开始搭建开发环境测试。

资料下载

http://down.myir-tech.com/MYD-J1028X/

更多回帖

发帖
×
20
完善资料,
赚取积分