Advantech RSB-3720 User Manual page 51

Nxp i.mx8m plus cortex®-a53 2.5" sbc with uio40-express
Hide thumbs Also See for RSB-3720:
Table of Contents

Advertisement

root@imx8mprsb3720a1:~# echo 501 > /sys/class/gpio/export
root@imx8mprsb3720a1:~# echo 503 > /sys/class/gpio/export
 Step 3:set direction
root@imx8mprsb3720a1:~# echo out > /sys/class/gpio/gpio1/direction
root@imx8mprsb3720a1:~# echo in > /sys/class/gpio/gpio2/direction
 Step 4:read value and set output value than check
root@imx8mprsb3720a1:~# cat /sys/class/gpio/gpio2/value
0
root@imx8mprsb3720a1:~# echo 1 > /sys/class/gpio/gpio1/value
root@imx8mprsb3720a1:~# cat /sys/class/gpio/gpio2/value
1
Watchdog test
System will reboot after 1 sec
root@imx8mprsb3720a1:~# /unit_tests/Watchdog/wdt_driver_test.out 1 2 0
---- Running < /unit_tests/Watchdog/wdt_driver_test.out > test ----
Starting wdt_driver (timeout: 1, sleep: 2, test: ioctl)
Trying to set timeout value=1 seconds
The actual timeout was set to 10 seconds
Now reading back -- The timeout is 10 seconds
U-Boot SPL 2020.04-3720A1AIM30LIVA0070+g121029b89f (Dec 01 2020 - 08:46:32 +0000)
Camera test( Default MIPI CSI0 and MIPI CSI1 are ov5640)
MIPI CSI0 – ov5640
 Preview
# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-
raw,width=640,height=480 ! waylandsink
 Capture

Advertisement

Table of Contents
loading

Table of Contents