Skip to content
Snippets Groups Projects

remote-station: Add Makefile to create self installation script

Files

+ 14
14
@@ -21,9 +21,9 @@
#Testimage_HDMI hdmiconfig unblank; hdmiconfig set 1920 1080 60 16; sleep 3; FRAMEBUFFER=/dev/fb2 fbv -er /opt/ltp/images/guf_test_800x480.png < /dev/null
Testimage_display bball_qml &
LED_RED echo 10 > /sys/class/leds/led_board\:red/brightness
LED_Green echo 70 > /sys/class/leds/led_board\:green/brightness
LED_Yellow echo 100 > /sys/class/leds/led_board\:yellow/brightness
LED_RED echo 10 > /sys/class/leds/led_board\:red/brightness
LED_Green echo 70 > /sys/class/leds/led_board\:green/brightness
LED_Yellow echo 100 > /sys/class/leds/led_board\:yellow/brightness
MMC_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
@@ -32,8 +32,8 @@ Battery_Charger_Active gpioset $(gpiofind EN_CHARGER)=1
Bluetooth_prepare /opt/ltp/scripts/bluetooth_l2test_service.sh 00:0E:8E:BB:4D:23 /tmp/l2test.log &
# Enable 24VOUT Rail
Enable_24VOUT echo 1 > /sys/bus/platform/drivers/reg-userspace-consumer/24V_OUT/state
Relay_1_ON gpioset $(gpiofind "RELAY1_ON")=1
Relay_2_OFF gpioset $(gpiofind "RELAY2_ON")=0
Relay_1_ON gpioset $(gpiofind "RELAY1_ON")=1
Relay_2_OFF gpioset $(gpiofind "RELAY2_ON")=0
# Setup ADI lines
# ADI 0 as Analog Voltag input
SETUP_ADI0 gpioset $(gpiofind "CFG0_0")=0;gpioset $(gpiofind "CFG0_1")=1;
@@ -43,24 +43,24 @@ SETUP_ADI1 gpioset $(gpiofind "CFG1_0")=1;gpioset $(gpiofind "C
SETUP_ADI2 gpioset $(gpiofind "CFG2_0")=0;gpioset $(gpiofind "CFG2_1")=0;
# ADI 3 as Digital input
SETUP_ADI3 gpioset $(gpiofind "CFG3_0")=0;gpioset $(gpiofind "CFG3_1")=0;
CIM_5V_ON echo 1 > /sys/bus/platform/drivers/reg-userspace-consumer/5P0_CIM/state
CIM_5V_ON echo 1 > /sys/bus/platform/drivers/reg-userspace-consumer/5P0_CIM/state
Wait_for_BT sleep 10
Wait_for_Bluetooth /opt/ltp/scripts/bluetooth_l2test_wait.sh /tmp/l2test.log
#-----------------------------------------------------------------------------#
# TESTCASES #
#-----------------------------------------------------------------------------#
Temp lm73temp -n lm75 -b 1 -d 0049
eMMC_write_25kB fwrite -q -n /file25k -b 25000 -i 1
Light_Sensor [ 2 -lt $( cat /sys/bus/iio/devices/iio\:device0/in_illuminance_raw ) ]
Light_Sensor [ 2 -lt $( cat /sys/bus/iio/devices/iio\:device0/in_illuminance_raw ) ]
USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1
Bluetooth /opt/ltp/scripts/bluetooth_l2test.sh /tmp/l2test.log
#I2C i2c -q -d /dev/i2c-0 -s 0x68 -a 0x0a -b 0x0b -w 100 -i 150
Network_1 iptest -q -g 192.168.1.100 -n 1 -w 50
Network_wlan0 iptest -q -g 192.168.3.100 -n 1 -w 900 -a
RS485_1 rs485echo -d /dev/ttymxc0 -s 576000 -x 100 -b 32
RS485_2 rs485echo -d /dev/ttymxc1 -s 576000 -x 100 -b 32
RS485_3 rs485echo -d /dev/ttyUSB0 -s 576000 -x 100 -b 32 -n
#RS485_CIM /opt/ltp/testcases/bin/serialloop -d /dev/ttymxc3 -s 115200 -b 8 -r
RS485_1 rs485echo -d /dev/ttymxc0 -s 576000 -x 1000 -b 32
RS485_2 rs485echo -d /dev/ttymxc1 -s 576000 -x 1000 -b 32
RS485_3 rs485echo -d /dev/ttyUSB0 -s 576000 -x 1000 -b 32 -n
#RS485_CIM /opt/ltp/testcases/bin/serialloop -d /dev/ttymxc3 -s 115200 -b 8 -r
#Relay_1_DIG_IN_4 /opt/ltp/scripts/relay_digin_test.sh RELAY1_ON DIG_IN4
#Relay_2_DIG_IN_5 /opt/ltp/scripts/relay_digin_test.sh RELAY2_ON DIG_IN5
24V_OUT [ 1 -eq $(gpioget -l $(gpiofind 24VOUT_OK) ) ]
@@ -88,5 +88,5 @@ Relay_1_OFF gpioset $(gpiofind "RELAY1_ON")=0
Relay_2_OFF gpioset $(gpiofind "RELAY2_ON")=0
Test_BT_stop killall l2pingd
Battery_Charger_disable gpioset $(gpiofind EN_CHARGER)=0
CIM_5V_OFF echo 0 > /sys/bus/platform/drivers/reg-userspace-consumer/5P0_CIM/state
Bluetooth_stop kill $(ps ax | grep bluetooth_l2test_service.sh | grep -v "grep" | cut -d " " -f 3 ); pkill l2test
CIM_5V_OFF echo 0 > /sys/bus/platform/drivers/reg-userspace-consumer/5P0_CIM/state
Bluetooth_stop for i in $(ps ax | grep "bluetooth_l2test_service.sh\|l2test" | grep -v "grep" | sed -e 's/ *\([0-9]\+\).*/\1/');do kill $i;done
Loading