Tpm Test; Can Bus Test; Eeprom Test; Battery Test - Advantech ROM-5722 User Manual

Nxp i.mx8m plus cortex-a53 smarc 2.1 computer-on-module
Table of Contents

Advertisement

4.1.15

TPM Test

Using the tpm_test.bin to test
root@imx8mprom5722a1:~# cp /run/media/sda1/tpm_test.bin .
root@imx8mprom5722a1:~# ls
tpm_test.bin
root@imx8mprom5722a1:~# ./tpm_test.bin
[TPM Command]
80010000000C000001440000
[TPM Response]
80010000000A00000100
[TPM Command]
80010000000B0000014301
[TPM Response]
80010000000A00000000
[TPM Command]
8001000000160000017A000000060000010500000001
[TPM Response]
80010000001B000000000100000006000000010000010553544D20
[TPM Command]
8001000000160000017A000000060000010B00000002
[TPM Response]
800100000023000000000100000006000000020000010B004900410000010C44A01A17
root@imx8mprom5722a1:~#
4.1.16

CAN Bus Test

Step 2: Set can0 and can1 up
root@imx8mprom5722a1:~#
[ 1362.935162] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@imx8mprom5722a1:~# ifconfig can0 up
root@imx8mprom5722a1:~#
[ 1381.546624] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
root@imx8mprom5722a1:~# ifconfig can1 up
Step 3: candump can0
root@imx8mprom5722a1:~# candump can0 &
[1] 965
Step 4: cansend can1
root@imx8mprom5722a1:~# cansend can1 1F334455#1122334455667788
root@imx8mprom5722a1:~#
88
4.1.17

EEPROM Test

# echo -n $'\x06\x05\x04\x03\x02\x01' > test
# dd if=test of=/sys/bus/i2c/devices/3-0050/eeprom
# hexdump -C /sys/bus/i2c/devices/3-0050/eeprom -n 64
4.1.18

Battery Test

# cat /sys/class/power_supply/bms/uevent
ip link set can0 up type can bitrate 125000
ip link set can1 up type can bitrate 125000
can0
1F334455
27
[8]
11 22 33 44 55 66 77
ROM-5722 User Manual

Advertisement

Table of Contents
loading

Table of Contents