summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-08-09 09:11:53 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-08-09 09:11:53 +0200
commita1b9127d160fb41b1e68892aa8daa68f69e96d90 (patch)
treecbc7cfbcb94752b4e306afaab9674843edf6fe97
parent011ed9eab49a8dce11b70b832842f1a46e4f1a6d (diff)
tc1796: use ssh_askpass to replace password prompt
-rw-r--r--src/arch/tc1796-triboard/Makefile.inc5
-rwxr-xr-xsrc/arch/tc1796-triboard/ssh-askpass3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/tc1796-triboard/Makefile.inc b/src/arch/tc1796-triboard/Makefile.inc
index b9634c3..93cf1e6 100644
--- a/src/arch/tc1796-triboard/Makefile.inc
+++ b/src/arch/tc1796-triboard/Makefile.inc
@@ -67,9 +67,10 @@ build/system.bin: build/system.elf
# > qemu-system-i386 -boot c -m 2048 -hda debian3-1.qcow2 -machine type=pc,accel=kvm:tcg --enable-kvm -net nic,model=ne2k_pci -net user,hostfwd=tcp::2022-:22 -smp cores=1,threads=2 -usb -monitor telnet::${QEMU_PORT},server,nowait
# Must already be running in the background before 'make program' can be used.
program: build/system.bin
+ ${QUIET}SSH_ASKPASS=/home/derf/var/projects/multipass/src/arch/tc1796-triboard/ssh-askpass SSH_ASKPASS_REQUIRE=force ssh -oKexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -p 2022 root@localhost true
${QUIET}echo 'device_add usb-host,vendorid=0x058b,productid=0x0028,id=tricore' | nc -q 1 localhost ${QEMU_PORT} > /dev/null
- ${QUIET}scp -oKexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -P 2022 build/system.bin root@localhost:/tmp/system.bin
- ${QUIET}ssh -oKexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -p 2022 root@localhost "/opt/trigcc345/bin/tricore-jtag-usb-flash /opt/trigcc345/tricore/flash_driver/intern/tc1796/flashprg.elf /tmp/system.bin"
+ ${QUIET}SSH_ASKPASS=/home/derf/var/projects/multipass/src/arch/tc1796-triboard/ssh-askpass SSH_ASKPASS_REQUIRE=force scp -oKexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -P 2022 build/system.bin root@localhost:/tmp/system.bin
+ ${QUIET}SSH_ASKPASS=/home/derf/var/projects/multipass/src/arch/tc1796-triboard/ssh-askpass SSH_ASKPASS_REQUIRE=force ssh -oKexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -p 2022 root@localhost "/opt/trigcc345/bin/tricore-jtag-usb-flash /opt/trigcc345/tricore/flash_driver/intern/tc1796/flashprg.elf /tmp/system.bin"
${QUIET}echo 'device_del tricore' | nc -q 1 localhost ${QEMU_PORT} > /dev/null
monitor:
diff --git a/src/arch/tc1796-triboard/ssh-askpass b/src/arch/tc1796-triboard/ssh-askpass
new file mode 100755
index 0000000..53af580
--- /dev/null
+++ b/src/arch/tc1796-triboard/ssh-askpass
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo root