From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 4/9] v7a: delete non-functional run-nfs
Date: Tue, 26 May 2026 21:36:45 +0200 [thread overview]
Message-ID: <20260526193736.288664-5-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20260526193736.288664-1-a.fatoum@pengutronix.de>
This has bitrotted to a degree that it's not usable any longer with
modern QEMU versions:
qemu-system-arm: -redir: invalid option
The run script has support for both nfs and 9p booting and while I
couldn't get them to work, they at least don't use removed qemu
arguments. Therefore, drop this dead code.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/qemu-common | 92 --------------------------------
configs/platform-v7a/run-nfs | 20 -------
2 files changed, 112 deletions(-)
delete mode 100755 configs/platform-v7a/qemu-common
delete mode 100755 configs/platform-v7a/run-nfs
diff --git a/configs/platform-v7a/qemu-common b/configs/platform-v7a/qemu-common
deleted file mode 100755
index 86e25846263b..000000000000
--- a/configs/platform-v7a/qemu-common
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/bash
-#
-# This is sourced by the run scripts.
-
-platformconfig=selected_platformconfig
-# fallback to platformconfig in the same dir as this script
-if [ ! -e "$platformconfig" ]; then
- platformconfig=$(dirname $0)/platformconfig
-fi
-
-#
-# we need information about the platform
-#
-if [ ! -e "$platformconfig" ]; then
- echo "error: selected_platformconfig does not exist"
- echo " please use 'ptxdist platform ...' or 'ptxdist --platformconfig=...'"
- exit 1
-fi
-
-source $platformconfig
-
-if [ -n "${PTXCONF_PLATFORM}" ]; then
- PTXDIST_PLATFORMDIR="./platform-${PTXCONF_PLATFORM}"
-else
- PTXDIST_PLATFORMDIR="."
-fi
-
-if [ ! -e "${PTXDIST_PLATFORMDIR}/images/linuximage" ]; then
- echo "error: run 'ptxdist go' first"
- exit 1
-fi
-
-if [ ! -e "${PTXDIST_PLATFORMDIR}/images/hd.img" ]; then
- echo "error: run 'ptxdist images' first"
- exit 1
-fi
-
-#if [ ! -e "${PTXDIST_PLATFORMDIR}/images/nor0.img" ]; then
-# echo "error: run 'ptxdist images' first"
-# exit 1
-#fi
-
-# the emulator to run
-QEMU_EXEC="${PTXDIST_PLATFORMDIR}/sysroot-host/bin/qemu-system-arm"
-
-if [ ! -e "${QEMU_EXEC}" ]; then
- echo "error: enable and install 'host-qemu' first"
- exit 1
-fi
-
-# disable this, if you want to have some graphics output
-QEMU_NOGRAPHIC=-nographic
-
-# Machine to emulate: The default kernel is prepared to run on "versatile pb"
-QEMU_MACHINE=vexpress-a9
-
-#
-# 'user mode' network related settings
-#
-PLATFORM_IP="10.0.2.7"
-
-#
-# *_INTERNAL_PORT: the port a service would connect (in the emulated system)
-# *_EXTERNAL_PORT: port QEMU opens at the host side to give access to the ${*_INTERNAL_PORT}
-#
-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
- VDE_SOCKET="${dir}"
- fi
- done
-fi
-if [ -n "${VDE_SOCKET}" ]; then
- if ${QEMU_EXEC} --help | grep -q -- '-net vde'; then
- QEMU_NET="-net vde,vlan=1,sock=${VDE_SOCKET}"
- fi
-fi
-if [ -z "${QEMU_NET}" ]; then
- QEMU_NET="-net user,vlan=1"
- PLATFORM_IP=""
-fi
-
-QEMU_REDIR=" \
- -redir tcp:${TELNET_EXTERNAL_PORT}:${PLATFORM_IP}:${TELNET_INTERNAL_PORT} \
- -redir tcp:${HTTP_EXTERNAL_PORT}:${PLATFORM_IP}:${HTTP_INTERNAL_PORT} \
-"
diff --git a/configs/platform-v7a/run-nfs b/configs/platform-v7a/run-nfs
deleted file mode 100755
index c78e36ca1ea0..000000000000
--- a/configs/platform-v7a/run-nfs
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-#
-# For some information about how to work with qemu for ARM, please
-# refer: http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu
-
-. $(dirname $0)/qemu-common
-
-# do the job
-${QEMU_EXEC} ${QEMU_NOGRAPHIC} \
- -M ${QEMU_MACHINE} \
- -m 1024 \
- -no-reboot \
- -net nic,vlan=1 \
- ${QEMU_NET} \
- ${QEMU_REDIR} \
- -kernel ${PTXDIST_PLATFORMDIR}/images/linuximage \
- -dtb ${PTXDIST_PLATFORMDIR}/images/vexpress-v2p-ca9.dtb \
- -smp 1 \
- -append "console=ttyAMA0 root=/dev/nfs nfsroot=10.0.2.2:/root,v3,tcp,port=2049,mountport=2049 rw mem=1024M rootwait loglevel=5 systemd.show_status=auto ip=dhcp"
-
--
2.47.3
next prev parent reply other threads:[~2026-05-26 19:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 19:36 [DistroKit] [PATCH 0/9] v7a: vexpress: Switch from vexpress-a9 to virt Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 1/9] v7a: rauc: fix /dev/disk/by-usage symlinks for FairyTux 2 Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 2/9] v7a: vexpress: do not save environment on missing-bootsource Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 3/9] datapartition: fix regex for virtualized block devices Ahmad Fatoum
2026-05-26 19:36 ` Ahmad Fatoum [this message]
2026-05-26 19:36 ` [DistroKit] [PATCH 5/9] v7a: run: drop non-functional scsi option Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 6/9] v7a: vexpress: drop non-functional 9p boot target Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 7/9] v7a: vexpress: Switch from vexpress-a9 to virt Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 8/9] v7a: run: do not shutdown on reboot Ahmad Fatoum
2026-05-26 19:36 ` [DistroKit] [PATCH 9/9] Revert "platform-v7a: vexpress: use only one core for barebox" Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260526193736.288664-5-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox