Commit 20e33f67 authored by Jens Korinth's avatar Jens Korinth

Zynq: clean bit_reload.sh output

parent 939702ba
...@@ -54,18 +54,18 @@ shift "$((OPTIND-1))" ...@@ -54,18 +54,18 @@ shift "$((OPTIND-1))"
BITSTREAM="$1" BITSTREAM="$1"
if [ -n $BITSTREAM ] && [[ $BITSTREAM == *.bit ]] && [[ -e $BITSTREAM ]] if [ -n $BITSTREAM ] && [[ $BITSTREAM == *.bit ]] && [[ -e $BITSTREAM ]]
then then
pushd $TAPASCO_HOME/platform/zynq/module pushd $TAPASCO_HOME/platform/zynq/module &> /dev/null
if [[ `lsmod | grep tapasco | wc -l` -eq 1 ]]; then if [[ `lsmod | grep tapasco | wc -l` -eq 1 ]]; then
sudo ./unload.sh sudo ./unload.sh
fi fi
popd popd &> /dev/null
echo "Loading bitstream $BITSTREAM ..." echo "Loading bitstream $BITSTREAM ..."
sudo sh -c "cat $BITSTREAM > /dev/xdevcfg" sudo sh -c "cat $BITSTREAM > /dev/xdevcfg"
echo "Done!" echo "Done!"
pushd $TAPASCO_HOME/platform/zynq/module pushd $TAPASCO_HOME/platform/zynq/module &> /dev/null
echo "Loading kernel module ..." echo "Loading kernel module ..."
sudo ./load.sh sudo ./load.sh
popd popd &> /dev/null
echo "Done." echo "Done."
else else
show_usage show_usage
......
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