forked from M-Labs/nac3
remote-run: add debug output
This commit is contained in:
parent
35ffe6729b
commit
9edd6f374d
|
@ -23,7 +23,9 @@ done
|
||||||
|
|
||||||
target_folder=/tmp/zynq-\$USER
|
target_folder=/tmp/zynq-\$USER
|
||||||
|
|
||||||
|
echo "Creating $target_folder..."
|
||||||
ssh $target_host "mkdir -p $target_folder"
|
ssh $target_host "mkdir -p $target_folder"
|
||||||
|
echo "Copying files..."
|
||||||
rsync openocd/* $target_host:$target_folder
|
rsync openocd/* $target_host:$target_folder
|
||||||
if [ $impure -eq 1 ]; then
|
if [ $impure -eq 1 ]; then
|
||||||
rsync $impure_dir/firmware/armv7-none-eabihf/release/szl $target_host:$target_folder/szl.elf
|
rsync $impure_dir/firmware/armv7-none-eabihf/release/szl $target_host:$target_folder/szl.elf
|
||||||
|
@ -32,4 +34,5 @@ else
|
||||||
rsync -L $pure_dir/szl.elf $target_host:$target_folder
|
rsync -L $pure_dir/szl.elf $target_host:$target_folder
|
||||||
rsync -L $pure_dir/top.bit $target_host:$target_folder
|
rsync -L $pure_dir/top.bit $target_host:$target_folder
|
||||||
fi
|
fi
|
||||||
|
echo "Programming board..."
|
||||||
ssh $target_host "cd $target_folder; openocd -f zc706.cfg -c 'pld load 0 top.bit; load_image szl.elf; resume 0; exit'"
|
ssh $target_host "cd $target_folder; openocd -f zc706.cfg -c 'pld load 0 top.bit; load_image szl.elf; resume 0; exit'"
|
||||||
|
|
Loading…
Reference in New Issue