Skip to content
Snippets Groups Projects

remote-station: Add Makefile to create self installation script

Files

+ 3
2
@@ -29,7 +29,7 @@ USB_sticks_umount for i in $(grep /dev/sd /proc/mounts | awk '{print
Touchtest_remove_socket rm -f /touch_tst_socket
Touchtest_start touchmon -d -i /dev/input/event0 -s /touch_tst_socket -p 0
Battery_Charger_Active gpioset $(gpiofind EN_CHARGER)=1
Bluetooth_prepare systemctl start bluetooth-init; ( l2pingd -s64 -t1 -d0 -v 00:0E:8E:BB:4D:21 2>&1 | tee -a /opt/ltp/results/bt-test.log > /tmp/bt_test.log ) &
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
@@ -53,7 +53,7 @@ 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 ) ]
USB_stick_1_write_25kB bwrite -q -n /dev/sda -b 25000 -i 1
Test_BT_ping /opt/ltp/scripts/bt_test.sh -p /tmp/bt_test.log -n 2 -g 2 -d 10
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
@@ -89,3 +89,4 @@ 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
Loading