amx-mst701/scripts/upload_and_flash.sh

7 lines
226 B
Bash
Raw Permalink Normal View History

2024-12-18 13:52:47 +01:00
#!/bin/bash
echo "Uploading..."
scp uImage-with-dtb alarm@amx-tablet:/tmp/uImage
echo "Flashing and rebooting..."
ssh alarm@amx-tablet 'sudo dd if=/tmp/uImage of=/dev/mmcblk0 bs=512 seek=2048 conv=notrunc; sync; sudo reboot'