summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2017-06-12 16:16:46 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-06-12 17:21:51 +0200
commit4344335ee84b7067d374b99820e134d61c203830 (patch)
treef1832cf2fe67826b8920b960497c21666785c3e3 /configs
parent93ade41ac6ad4612a305f5c8751fb375a4434812 (diff)
downloadDistroKit-4344335ee84b7067d374b99820e134d61c203830.tar.gz
DistroKit-4344335ee84b7067d374b99820e134d61c203830.tar.xz
platform-v7a: add ssh forwarder
This patch makes it possible to have a local ssh forward: if the BSP runs in qemu (started with configs/platform-v7a/run), the SSH port 22 is forwarded to port 4445 on localhost, so you can $ ssh localhost -p 4445 -l root and end up in the DistroKit system. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/platform-v7a/run6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/platform-v7a/run b/configs/platform-v7a/run
index 5cfe8bf..4237009 100755
--- a/configs/platform-v7a/run
+++ b/configs/platform-v7a/run
@@ -41,6 +41,10 @@ TELNET_INTERNAL_PORT=23
# port QEMU opens at the host side to give access to the ${TELNET_INTERNAL_PORT}
TELNET_EXTERNAL_PORT=4444
+# dito for ssh
+SSH_INTERNAL_PORT=22
+SSH_EXTERNAL_PORT=4445
+
# check if vde is available for networking
if [ -z "${VDE_SOCKET}" ]; then
for dir in $(ls -d /var/run/vde2/*.ctl 2>/dev/null); do
@@ -58,7 +62,7 @@ fi
# fall back to user network if necessary
if [ -z "${QEMU_NET}" ]; then
- QEMU_NET=(-netdev user,id=net1,hostfwd=tcp:127.0.0.1:${TELNET_EXTERNAL_PORT}-:${TELNET_INTERNAL_PORT} )
+ QEMU_NET=(-netdev user,id=net1,hostfwd=tcp:127.0.0.1:${TELNET_EXTERNAL_PORT}-:${TELNET_INTERNAL_PORT},hostfwd=tcp:127.0.0.1:${SSH_EXTERNAL_PORT}-:${SSH_INTERNAL_PORT} )
fi
BASE_CMDLINE="console=ttyAMA0,115200 loglevel=5 systemd.log_level=warning systemd.show_status=auto"