Skip to content
Snippets Groups Projects
Commit e58319d0 authored by Nam Tran's avatar Nam Tran Committed by Tobias Kahlki
Browse files

mv:mx8mp: fix emission and immunity tests for modular vision

Fixed the tests so they will run on MODV.
Removed unecessary tests.
parent 79b163a4
No related branches found
No related tags found
1 merge request!278mv:mx8mp: fix emission and immunity tests for modular vision
......@@ -18,11 +18,11 @@
#-----------------------------------------------------------------------------#
Testimage_display bball_qml &
MMC_umount for i in $(mount | grep mmcblk1 | awk '{print $1}'); do umount $i; done
eMMC_umount for i in $(mount | grep mmcblk0 | awk '{print $1}'); do umount $i; done
uSD_umount for i in $(mount | grep mmcblk1 | awk '{print $1}'); do umount $i; done
USB_sticks_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}'); do umount $i; done
Touchtest_remove_socket rm -f /touch_tst_socket
Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0
Keypad_Init keypad_init
#-----------------------------------------------------------------------------#
# TESTCASES #
......@@ -30,26 +30,18 @@ Keypad_Init keypad_init
# Modular Vision Carrier
Network_1 iptest -q -g 192.168.1.100 -n 1 -w 50
Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_s.wav
RS485 rs485echo -d /dev/ttymxc1 -s 576000 -x 100 -b 32
Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_s.wav
RS485 rs485echo -d /dev/ttymxc2 -s 576000 -x 100 -b 32
CAN can -n 2 -o 500
# Backlight + LVDS ?
MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
uSD_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1 # USB-A
USB_stick_2_write_25kB bwrite -q -n /dev/sdb -b 25000 -i 1 # USB-C
Touch touchmon -z -r /touch_tst_socket
Keypad_Test keypad_test
# Status LED
# Power LED
Serial0 serial -d /dev/ttymxc0 -q -b 115200 -c 5 -s 1024 -o 300
Serial1 serial -d /dev/ttymxc1 -q -b 115200 -c 5 -s 1024 -o 300
# DIO ?
Serial0 rs485echo -d /dev/ttymxc0 -s 115200 -x 100 -b 32
Serial1 rs485echo -d /dev/ttymxc1 -s 115200 -x 100 -b 32
# Modular Vision SMARC Module
eMMC_write_25kB fwrite -q -n /file25k -b 25000 -i 1
Wait sleep 1.0
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
......
......@@ -18,11 +18,11 @@
#-----------------------------------------------------------------------------#
Fingerpaint_start fingerpaint_sdl &
MMC_umount for i in $(mount | grep mmcblk1 | awk '{print $1}'); do umount $i; done
eMMC_umount for i in $(mount | grep mmcblk0 | awk '{print $1}'); do umount $i; done
uSD_umount for i in $(mount | grep mmcblk1 | awk '{print $1}'); do umount $i; done
USB_sticks_umount for i in $(grep /dev/sd /proc/mounts | awk '{print $1}'); do umount $i; done
Touchtest_remove_socket rm -f /touch_tst_socket
Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0
Keypad_Init keypad_init
#-----------------------------------------------------------------------------#
# TESTCASES #
......@@ -30,27 +30,18 @@ Keypad_Init keypad_init
# Modular Vision Carrier
Network_1 iptest -q -g 192.168.1.100 -n 1 -w 50
Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_s.wav
RS485 rs485echo -d /dev/ttymxc1 -s 576000 -x 100 -b 32
Play_wave_file aplay /opt/ltp/runtest/ding_48kHz_16bit_s.wav
RS485 rs485echo -d /dev/ttymxc2 -s 576000 -x 100 -b 32
CAN can -n 2 -o 500
# Backlight + LVDS ?
MMC_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
uSD_write_25kB bwrite -q -n /dev/mmcblk1 -b 25000 -i 1
USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1 # USB-A
USB_stick_2_write_25kB bwrite -q -n /dev/sdb -b 25000 -i 1 # USB-C
Touch touchmon -z -r /touch_tst_socket
Keypad_Test keypad_test
# Status LED
# Power LED
Temp lm73temp -n lm75 -b 2 -d 004e
Serial0 serial -d /dev/ttymxc0 -q -b 115200 -c 5 -s 1024 -o 300
Serial1 serial -d /dev/ttymxc1 -q -b 115200 -c 5 -s 1024 -o 300
# DIO ?
Serial0 rs485echo -d /dev/ttymxc0 -s 115200 -x 100 -b 32
Serial1 rs485echo -d /dev/ttymxc1 -s 115200 -x 100 -b 32
# Modular Vision SMARC Module
eMMC_write_25kB fwrite -q -n /file25k -b 25000 -i 1
Wait sleep 1.0
#-----------------------------------------------------------------------------#
# CLEANUP #
#-----------------------------------------------------------------------------#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment