Commit f03d786a authored by Benoit Rat's avatar Benoit Rat

build: check that sam-ba is found in lsusb for the flashing script

parent 6397977b
......@@ -8,6 +8,13 @@ if [ -d ./usb-loader ]; then true; else
exit 1
fi
# Check if atmel sam-ba is find by lusb
lsusb | grep "at91sam SAMBA" &> /dev/null
if [ $? -gt "0" ]; then
echo "Did not find the sam-ba bootloader in lsub....\nPlease check that the Dataflash is short-circuited!"
exit 1;
fi
err=0;
if [ -f ./binaries/at91bootstrap.bin ]; then true; else err=1; fi
if [ -f ./binaries/barebox.bin ]; then true; else err=1; fi
......@@ -58,4 +65,4 @@ fi
# flash it (msc...)
(cd usb-loader && ./mch_flasher $T $DEV)
#rm -f $T
\ No newline at end of file
#rm -f $T
Markdown is supported
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