diff --git a/main_tests/synch/clk_disable.sh b/main_tests/synch/clk_disable.sh index 4880f51..203e140 100755 --- a/main_tests/synch/clk_disable.sh +++ b/main_tests/synch/clk_disable.sh @@ -50,6 +50,7 @@ clk_test_cmos() return $(( ret1 )) } +sudo dtoverlay -r sudo dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044.dtbo lsblk | grep "/media/analog/M2k" diff --git a/main_tests/synch/misc_test.sh b/main_tests/synch/misc_test.sh index 11146af..8f94829 100755 --- a/main_tests/synch/misc_test.sh +++ b/main_tests/synch/misc_test.sh @@ -17,7 +17,7 @@ run_test $TEST_ID "$SHORT_DESC" "$CMD" TEST_ID="03" SHORT_DESC="Test poweroff. Synchrona will be turned off now." -CMD="sshpass -p analog ssh -q -t -oConnectTimeout=10 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oCheckHostIP=no analog@analog \"sudo poweroff\" ;" +CMD="sshpass -p analog ssh -q -t -oConnectTimeout=10 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oCheckHostIP=no analog@192.168.2.1 \"sudo poweroff\" ;" CMD+="YES_no 'Device should be turned off. Check if fan is off, STAT2 is off and STAT1 has turned red'" run_test $TEST_ID "$SHORT_DESC" "$CMD" diff --git a/main_tests/synch/rpi-ad9545-hmc7044-no-ad.dtbo b/main_tests/synch/rpi-ad9545-hmc7044-no-ad.dtbo index cd3598d..3b9526a 100755 Binary files a/main_tests/synch/rpi-ad9545-hmc7044-no-ad.dtbo and b/main_tests/synch/rpi-ad9545-hmc7044-no-ad.dtbo differ diff --git a/main_tests/synch/rpi-ad9545-hmc7044-vcxo2.dtbo b/main_tests/synch/rpi-ad9545-hmc7044-vcxo2.dtbo index f993daf..7362bf8 100644 Binary files a/main_tests/synch/rpi-ad9545-hmc7044-vcxo2.dtbo and b/main_tests/synch/rpi-ad9545-hmc7044-vcxo2.dtbo differ diff --git a/main_tests/synch/rpi-ad9545-hmc7044.dtbo b/main_tests/synch/rpi-ad9545-hmc7044.dtbo old mode 100644 new mode 100755 index 1ea5e8e..1bef747 Binary files a/main_tests/synch/rpi-ad9545-hmc7044.dtbo and b/main_tests/synch/rpi-ad9545-hmc7044.dtbo differ diff --git a/main_tests/synch/synch_test.sh b/main_tests/synch/synch_test.sh index f72f283..c03b136 100755 --- a/main_tests/synch/synch_test.sh +++ b/main_tests/synch/synch_test.sh @@ -26,7 +26,8 @@ source $SCRIPT_DIR/test_i2c_temp.sh answer=$? proceed_if_ok $answer - +dtoverlay -r +dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044.dtbo sudo fru-dump -i $SCRIPT_DIR/pieeprom-new.bin -o $SCRIPT_DIR/pieeprom-new.bin -I 524016 -O 524016 -d now -s $BOARD_SERIAL rpi-eeprom-update -d -f $SCRIPT_DIR/pieeprom-new.bin diff --git a/main_tests/synch/test_uart.expect b/main_tests/synch/test_uart.expect index 118915d..7d88b56 100755 --- a/main_tests/synch/test_uart.expect +++ b/main_tests/synch/test_uart.expect @@ -8,6 +8,6 @@ send "\r" expect -re "root@analog:~# " send "cat /proc/device-tree/model | grep \"Raspberry Pi 4\"\r" expect { - "Binary file (standard input) matches" { exit 0 } + "grep: (standard input): binary file matches" { exit 0 } } exit 1 \ No newline at end of file diff --git a/main_tests/synch/vcxo_test.sh b/main_tests/synch/vcxo_test.sh index ee432ca..6eaed7b 100644 --- a/main_tests/synch/vcxo_test.sh +++ b/main_tests/synch/vcxo_test.sh @@ -7,10 +7,8 @@ source $SCRIPT_DIR/test_util.sh TEST_NAME="TEST_CLK_OUTPUTS" TEST_ID="01" -SHORT_DESC="TEST OUTPUT CHANNEL 01 - P. Make sure cable is connected!" +SHORT_DESC="TEST VCXO SWITCH" CMD="dtoverlay -r;" -CMD+="echo 6 > /sys/class/gpio/export;" -CMD+="echo 1 > /sys/class/gpio/gpio6/value;" CMD+="dtoverlay $SCRIPT_DIR/rpi-ad9545-hmc7044-vcxo2.dtbo;" CMD+="cat /sys/kernel/debug/iio/iio\:device0/status | grep \"PLL1 & PLL2 Locked\"" run_test $TEST_ID "$SHORT_DESC" "$CMD" \ No newline at end of file