summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2013-05-08 11:38:16 +0200
committerJan Luebbe <jlu@pengutronix.de>2013-05-09 11:37:19 +0200
commita911a69065beb4279da2c6a1f3633ea6c3474ad0 (patch)
tree19e15530a05e2a3d8ab1998cc5126ef8d42b10dd
parentce3fe7dad340c144b73dfef4e8ade159fc094c46 (diff)
downloadplatform-pengutronix-vexpress-a911a69065beb4279da2c6a1f3633ea6c3474ad0.tar.gz
vexpress: qemu: add port redirection for http
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rwxr-xr-xrun4
1 files changed, 4 insertions, 0 deletions
diff --git a/run b/run
index a1630de..49199ea 100755
--- a/run
+++ b/run
@@ -58,6 +58,9 @@ PLATFORM_IP="10.0.2.7"
TELNET_INTERNAL_PORT=23
TELNET_EXTERNAL_PORT=20023
+HTTP_INTERNAL_PORT=80
+HTTP_EXTERNAL_PORT=20080
+
if [ -z "${VDE_SOCKET}" ]; then
for dir in $(ls -d /var/run/vde2/*.ctl 2>/dev/null); do
if [ -r "${dir}" ]; then
@@ -83,6 +86,7 @@ ${QEMU_EXEC} ${QEMU_NOGRAPHIC} \
-net nic,vlan=1 \
${QEMU_NET} \
-redir tcp:${TELNET_EXTERNAL_PORT}:${PLATFORM_IP}:${TELNET_INTERNAL_PORT} \
+ -redir tcp:${HTTP_EXTERNAL_PORT}:${PLATFORM_IP}:${HTTP_INTERNAL_PORT} \
-kernel ${PTXDIST_PLATFORMDIR}/images/linuximage \
-sd ${PTXDIST_PLATFORMDIR}/images/sd.img \
-smp 2 \