mirror of https://github.com/m-labs/artiq.git
artiq_flash: do not always assume permission problems
This commit is contained in:
parent
8a3be4eca0
commit
8a2b8fc634
|
@ -112,7 +112,7 @@ check_return() {
|
||||||
xc3sprog -c $CABLE -R 2&>1 > /dev/null
|
xc3sprog -c $CABLE -R 2&>1 > /dev/null
|
||||||
if [ "$?" != "0" ]
|
if [ "$?" != "0" ]
|
||||||
then
|
then
|
||||||
echo "Flashing failed because it seems you do not have permission to access the USB device."
|
echo "Flashing failed. Maybe you do not have permission to access the USB device?"
|
||||||
echo "To fix this you might want to add a udev rule by doing:"
|
echo "To fix this you might want to add a udev rule by doing:"
|
||||||
echo "$ sudo cp $ARTIQ_PREFIX/misc/$UDEV_RULES /etc/udev/rules.d"
|
echo "$ sudo cp $ARTIQ_PREFIX/misc/$UDEV_RULES /etc/udev/rules.d"
|
||||||
echo "Then unplug/replug your device and try flashing again"
|
echo "Then unplug/replug your device and try flashing again"
|
||||||
|
|
Loading…
Reference in New Issue