Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4013d1e1 authored by Robert Nelson's avatar Robert Nelson
Browse files

bbb: call flasher from device script


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 287ddd9b
Branches
Tags
No related merge requests found
......@@ -60,11 +60,9 @@ if [ -e /sys/class/drm/card0/card0-HDMI-A-1/edid ] ; then
fi
fi
if [ ! -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /boot/uboot/tools/scripts/beaglebone-black-copy-microSD-to-eMMC.sh ] ; then
/bin/bash /boot/uboot/tools/scripts/beaglebone-black-copy-microSD-to-eMMC.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
/bin/bash /opt/scripts/beaglebone-black-eMMC-flasher.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
fi
......
......@@ -52,13 +52,6 @@ start|reload|force-reload|restart)
/bin/sh /opt/scripts/${board}.sh >/dev/null 2>&1 &
fi
fi
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
mkdir -p /boot/uboot/debug/
/bin/bash /opt/scripts/beaglebone-black-eMMC-flasher.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
fi
;;
stop)
exit 0
......
......@@ -42,11 +42,4 @@ if [ -f /boot/uboot/SOC.sh ] && [ -f /boot/uboot/run_boot-scripts ] ; then
/bin/sh /opt/scripts/${board}.sh >/dev/null 2>&1 &
fi
fi
if [ -f /boot/uboot/flash-eMMC.txt ] ; then
if [ -f /opt/scripts/beaglebone-black-eMMC-flasher.sh ] ; then
mkdir -p /boot/uboot/debug/
/bin/bash /opt/scripts/beaglebone-black-eMMC-flasher.sh >/boot/uboot/debug/flash-eMMC.log 2>&1
fi
fi
end script
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment