From 94148e2181931a0778a01e21d6d48c5d64705dea Mon Sep 17 00:00:00 2001 From: nagumii Date: Fri, 24 Jan 2025 21:11:28 +0200 Subject: [PATCH] Add LED heartbeat during first boot --- .../rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh index 08c4e1f..e8b402e 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh @@ -26,6 +26,14 @@ fi echo -e "\e[32m******* First boot *******\e[0m" +# pulse LED during firstboot +while true; do + echo 1 > /sys/class/gpio/gpio34/value; + sleep 0.5; + echo 0 > /sys/class/gpio/gpio34/value; + sleep 0.5; +done + # Disable LED to prevent boot codes from showing during this boot #sh -c "echo 34 > /sys/class/gpio/unexport"