本篇主要是查询了开发板主要功能参数,并对部分功能进行了参数修改和验证,测评结果为完全正常。
- 由于开发板出厂时已经将镜像文件烧录到了eMMC,所以先通过eMMC启动开发板。
以下为通过eMMC启动开发板时完整的datalog
U-Boot 2021.10 (Aug 24 2023 - 01:09:07 +0000)
CPU: Renesas Electronics CPU rev 1.0
Model: smarc-rzg2ul
DRAM: 448 MiB
SW_ET0_EN: OFF
MMC: sd@11c00000: 0, sd@11c10000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial@1004b800
Out: serial@1004b800
Err: serial@1004b800
Net:
Error: ethernet@11c30000 address not set.
No ethernet found.
Hit any key to stop autoboot: 0
## Resetting to default environment
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
Couldn't find partition mmc 1
Can't set block device
switch to partitions #0, OK
mmc0(part 0) is current device
20537856 bytes read in 664 ms (29.5 MiB/s)
30196 bytes read in 3 ms (9.6 MiB/s)
Moving Image from 0x48080000 to 0x48200000, end=49600000
## Flattened Device Tree blob at 48000000
Booting using the fdt blob at 0x48000000
Loading Device Tree to 0000000057ff5000, end 0000000057fff5f3 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 0.000000] Linux version 5.10.83-cip1-arm64-renesas (hjx@myir-server) (aarch64-poky-linux-gcc (GCC) 8.3.0, GNU ld (GNU Binutils) 2.31.1) #1 SMP PREEMPT Fri Nov 24 16:31:33 CST 2023
[ 0.000000] Machine model: Evaluation board based on r9a07g043u11
[ 0.000000] earlycon: scif0 at MMIO 0x000000001004b800 (options '115200n8')
[ 0.000000] printk: bootconsole [scif0] enabled
Welcome to Poky (Yocto Project Reference Distro) 3.1.21 (dunfell)!
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Dispatch Password 鈥s to Console Directory Watch.
[ OK ] Started Forward Password R鈥ests to Wall Directory Watch.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Reached target Paths.
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Slices.
[ OK ] Reached target Swap.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Listening on udev Kernel Socket.
Mounting Huge Pages File System...
Mounting POSIX Message Queue File System...
Mounting Kernel Debug File System...
Mounting Temporary Directory (/tmp)...
[ OK ] Started Start psplash boot splash screen.
[ OK ] Started Start psplash-syst鈥rogress communication helper.
Starting Journal Service...
Starting Load Kernel Modules...
Starting Remount Root and Kernel File Systems...
Starting udev Coldplug all Devices...
[ OK ] Mounted Huge Pages File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Temporary Directory (/tmp).
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
Mounting Kernel Configuration File System...
Starting Apply Kernel Variables...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Apply Kernel Variables.
Starting Create Static Device Nodes in /dev...
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Starting udev Kernel Device Manager...
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[ OK ] Mounted /var/volatile.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Set.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
Starting Docker Socket for the API.
[ OK ] Listening on dropbear.socket.
[ OK ] Started Load/Save Random Seed.
[ OK ] Listening on Docker Socket for the API.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting IPv6 Packet Filtering Framework...
Starting IPv4 Packet Filtering Framework...
Starting Telephony service...
[ OK ] Started optee services.
Starting samba.service...
Starting Login Service...
[ OK ] Started VIN initializing setting.
[ OK ] Started WatchdogTimer.
[ OK ] Started IPv6 Packet Filtering Framework.
[ OK ] Started IPv4 Packet Filtering Framework.
[ OK ] Reached target Network (Pre).
Starting Connection service...
Starting Network Service...
[ OK ] Started Telephony service.
[ OK ] Started Network Service.
Starting Wait for Network to be Configured...
[ OK ] Started Connection service.
[ OK ] Reached target Network.
Starting Wait for network to be configured by ConnMan...
Starting proftpd Daemon...
Starting Permit User Sessions...
Starting Target Communication Framework agent...
[ OK ] Started Vsftpd ftp daemon.
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttySC0.
[ OK ] Reached target Login Prompts.
Starting myir hmi v2.0...
[ OK ] Started proftpd Daemon.
[ OK ] Started Target Communication Framework agent.
Starting WPA supplicant...
Starting Hostname Service...
[ OK ] Started WPA supplicant.
[ OK ] Started Login Service.
[ OK ] Created slice system-weston.slice.
[ OK ] Started Weston Wayland Compositor.
[ OK ] Created slice User Slice of UID 0.
Starting User Runtime Directory /run/user/0...
[ OK ] Started User Runtime Directory /run/user/0.
Starting User Manager for UID 0...
[ OK ] Reached target Hardware activated USB gadget.
[ OK ] Started User Manager for UID 0.
[ OK ] Started Session c1 of user root.
[ OK ] Started Hostname Service.
Starting Save/Restore Sound Card State...
[ OK ] Started Save/Restore Sound Card State.
[ OK ] Reached target Sound Card.
[ OK ] Started myir hmi v2.0.
[ OK ] Started Stop weston.........
Poky (Yocto Project Reference Distro) 3.1.21 myir-rzg2ul ttySC0
BSP: //3.0.3
LSI:
Version: 3.0.3
myir-rzg2ul login: root (automatic login)
Last login: Fri Jan 1 00:07:48 UTC 2066
>>>PN=MYD-YG2UL-4E512D-100-I
>>>SN=WK20231016033000065
smarc-rzg2ul login: root (super user)
root@myir-rzg2ul:~#
开发板启动结束后的部分截图如下:
- 利用命令行方式修改hostname为Beyond
root@myir-rzg2ul:~# cd /etc
root@myir-rzg2ul:/etc# vi hostname
将myir-rzg2ul改为Beyond,然后保存退出。通过reboot命令重启开发板。
重启后主机名已经改为Beyond,如下图(开发板重启完成):
3.读取当前开发板的相关信息
3.1 查询linux内核信息,
root@Beyond:~# uname -a
Linux Beyond 5.10.83-cip1-arm64-renesas #1 SMP PREEMPT Fri Nov 24 16:31:33 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
3.2查询CPU 信息
root@Beyond:~# cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x2
CPU part : 0xd05
CPU revision : 0
3.3查询CPU运行频率,显示CPU运行频率为1GHz
root@Beyond:~# cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
1000000
3.4 查询CPU内部温度,显示当前CPU温度为40.5°C
root@Beyond:~# cat /sys/class/thermal/thermal_zone0/temp
40500
以上为3.1-3.4对应的查询指令及结果的截图如下:
3.5 对CPU进行压力测试,通过输出结果确认CPU运算性能正常
root@Beyond:~# echo "scale=5000; 4*a(1)" | bc -l -q & [1] 504
root@Beyond:~# root@Beyond:~# echo "scale=5000; 4*a(1)" | bc -l -q &
[2] 511
root@Beyond:~# -sh: root@Beyond:~#: command not found
^C
[2]+ Done root@Beyond:~# echo "scale=5000; 4*a(1)" | bc -l -q
root@Beyond:~# 3.141592653589793238462643383279502884197169399375105820974944592307\
81640628620899862803482534211706798214808651328230664709384460955058\
22317253594081284811174502841027019385211055596446229489549303819644\
28810975665933446128475648233786783165271201909145648566923460348610\
45432664821339360726024914127372458700660631558817488152092096282925\ ……
部分截图如下:
3.6 查询CPU利用率
root@Beyond:~# top
输出结果部分截图如下:
3.7 查询开发板的内存参数信息
root@Beyond:~# cat /proc/meminfo
MemTotal: 422064 kB
MemFree: 96724 kB
MemAvailable: 308920 kB
Buffers: 5640 kB
Cached: 216316 kB
SwapCached: 0 kB
Active: 88628 kB
Inactive: 166064 kB ……
部分截图如下:
3.8 查询开发板的内存使用情况
root@Beyond:~# free -m
total used free shared buff/cache available
Mem: 412 90 94 10 227 301
Swap: 0 0 0
截图如下:
3.9 查询开发板的eMMC使用情况
root@Beyond:~# fdisk -l
Disk /dev/mmcblk0: 3.66 GiB, 3909091328 bytes, 7634944 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: 0x5bf0b1d9
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 20480 122879 102400 50M c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 7634943 7512064 3.6G 83 Linux
截图如下:
3.10 查询开发板的eMMC分区情况,挂载路径以及使用情况
root@Beyond:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.2G 972M 80M 93% /
devtmpfs 174M 0 174M 0% /dev
tmpfs 207M 0 207M 0% /dev/shm
tmpfs 207M 9.6M 197M 5% /run
tmpfs 207M 0 207M 0% /sys/fs/cgroup
tmpfs 207M 0 207M 0% /tmp
tmpfs 207M 24K 207M 1% /var/volatile
tmpfs 42M 0 42M 0% /run/user/0
/dev/mmcblk0p1 50M 20M 30M 40% /mnt
截图如下:
3.11 测试开发板eMMC的数据读写速度,写入速度为10.4 MB/s,读取速度为38.0 MB/s
root@Beyond:~# 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, 10.123 s, 10.4 MB/s
real 0m10.225s
user 0m0.006s
sys 0m0.755s
root@Beyond:~# time dd if=tempfile of=/dev/null bs=1M count=100 iflag=direct,nonblock
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 2.76008 s, 38.0 MB/s
real 0m2.765s
user 0m0.001s
sys 0m0.062s
截图如下:
3.12 查询开发板的eMMC使用寿命(与擦写次数有关)情况
root@Beyond:~# mmc extcsd read /dev/mmcblk0 | grep LIFE
eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x01
截图如下:
对应表格,显示目前eMMC的使用情况只在10%以内(0%~10% device life time used)
3.13 查询开发板的EEPROM信息
root@Beyond:~# cat /sys/bus/i2c/devices/0-0050/name
24c32
截图如下:
3.14 向开发板的EEPROM写入数据并且读取出来,写入Test MYD-YG2UL by Beyond
root@Beyond:~# echo Test MYD-YG2UL by Beyond > /sys/bus/i2c/devices/0-0050/eeprom
root@Beyond:~# cat /sys/bus/i2c/devices/0-0050/eeprom
Test MYD-YG2UL by Beyond
截图如下: