From patchwork Fri Mar 11 12:54:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hoyes X-Patchwork-Id: 5096 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43FCBC433F5 for ; Fri, 11 Mar 2022 12:54:05 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.4850.1647003244200376452 for ; Fri, 11 Mar 2022 04:54:04 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: peter.hoyes@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C03AC175D; Fri, 11 Mar 2022 04:54:03 -0800 (PST) Received: from e125920.arm.com (unknown [10.57.91.184]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DBC883FA27; Fri, 11 Mar 2022 04:54:02 -0800 (PST) From: Peter Hoyes To: meta-arm@lists.yoctoproject.org Cc: diego.sueiro@arm.com, robbie.cao@arm.com, Peter Hoyes Subject: [PATCH honister] arm-bsp/docs,kas: Add SSH server to fvp-baser-aemv8r64 image Date: Fri, 11 Mar 2022 12:54:09 +0000 Message-Id: <20220311125409.2027175-1-peter.hoyes@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 11 Mar 2022 12:54:05 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/3154 From: Peter Hoyes To make it easier for users to test and evaluate the FVP, including testing inbound network connections, enable the openssh SSH server by default and map to port 8022 on the host. Update fvp-baser-aemv8r64 documentation accordingly in new "Networking" section. Issue-Id: SCM-3881 Signed-off-by: Peter Hoyes Change-Id: I88329731418e198e2ef5d3449bfb38fde5ae77bb --- kas/fvp-baser-aemv8r64-bsp.yml | 3 ++- .../documentation/fvp-baser-aemv8r64.md | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/kas/fvp-baser-aemv8r64-bsp.yml b/kas/fvp-baser-aemv8r64-bsp.yml index 1ae05ed..08564ed 100644 --- a/kas/fvp-baser-aemv8r64-bsp.yml +++ b/kas/fvp-baser-aemv8r64-bsp.yml @@ -33,7 +33,8 @@ local_conf_header: CONF_VERSION = "2" PACKAGE_CLASSES = "package_ipk" PACKAGECONFIG:remove:pn-qemu-system-native = "gtk+ sdl" - EXTRA_IMAGE_FEATURES:append = " debug-tweaks" + EXTRA_IMAGE_FEATURES:append = " debug-tweaks ssh-server-openssh" + FVP_CONFIG[bp.virtio_net.hostbridge.userNetPorts] ?= "8022=22" IMAGE_CLASSES:append = " ${@oe.utils.ifelse(d.getVar('FVP_BASE_R_AEM_TARBALL_URI'), 'fvpboot', '')}" LICENSE_FLAGS_WHITELIST:append = " ${@oe.utils.vartrue('FVP_BASE_R_ARM_EULA_ACCEPT', 'Arm-FVP-EULA', '', d)}" diff --git a/meta-arm-bsp/documentation/fvp-baser-aemv8r64.md b/meta-arm-bsp/documentation/fvp-baser-aemv8r64.md index 3cc3a12..716a669 100644 --- a/meta-arm-bsp/documentation/fvp-baser-aemv8r64.md +++ b/meta-arm-bsp/documentation/fvp-baser-aemv8r64.md @@ -176,6 +176,24 @@ To finish the fvp emulation, you need to close the telnet session: - Escape to telnet console with ``ctrl+]``. - Run ``quit`` to close the session. +### Networking +The FVP is configured by default to use "user-mode networking", which simulates +an IP router and DHCP server to avoid additional host dependencies and +networking configuration. Outbound connections work automatically, e.g. by +running: + + wget www.arm.com + +Inbound connections require an explicit port mapping from the host. By default, +port 8022 on the host is mapped to port 22 on the FVP, so that the following +command will connect to an ssh server running on the FVP: + + ssh root@localhost -p 8022 + +Note that user-mode networking does not support ICMP, so `ping` will not work. +For more information about user-mode networking, please see +https://developer.arm.com/documentation/100964/1117/Introduction-to-Fast-Models/User-mode-networking?lang=en + ### File sharing between host and fvp It is possible to share a directory between the host machine and the fvp using the virtio P9 device component included in the kernel. To do so, create a