From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 26 May 2026 21:37:53 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxb7-0048hx-1f for lore@lore.pengutronix.de; Tue, 26 May 2026 21:37:53 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wRxb6-0002r9-VZ; Tue, 26 May 2026 21:37:52 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wRxb4-0002nc-06; Tue, 26 May 2026 21:37:50 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxb3-001zPm-1C; Tue, 26 May 2026 21:37:49 +0200 Received: from [::1] (helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.98.2) (envelope-from ) id 1wRxb3-00000001DHA-3YZQ; Tue, 26 May 2026 21:37:49 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Tue, 26 May 2026 21:36:45 +0200 Message-ID: <20260526193736.288664-5-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260526193736.288664-1-a.fatoum@pengutronix.de> References: <20260526193736.288664-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 4/9] v7a: delete non-functional run-nfs X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false 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 --- 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