From nobody Sun Feb 8 19:16:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1603739259; cv=none; d=zohomail.com; s=zohoarc; b=lNMrbEBW57QA+oma2jroqztme7znCtQLZn0sCRClG+hLUHT/t5SNpGXRTA3OTd3LtS8wX++5gmNeNSWEctRtgcfgQ1SH9LZC1fmMQDuWyFQDVZRCe4/GBktbVehkvZXdoK8caEX0Bg8rPHjInQxRwF6rDhvBOWkt/D5OIeQtI5w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603739259; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=7CT9njDsFv7z3bPi4MElJcX4QFjJnLsmcrJhB+d6sQ0=; b=XR2Pq6OMSHhvqdus9QgIQ6DreGR1YuM0aqpJBz92rIFiGKHRCjY2AqlQoTpJNNfiX6TSTqsSc/gdvXhxP3BhSiDhvlB/IqPhcqH1OG7HXtIOO/LmK9xMdAj+d8p6dCdqQ+1oMrmu1hT5BlwJpQVXG/C1dWtFBvbSiHh2Mkgm8ic= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1603739259094967.702574781555; Mon, 26 Oct 2020 12:07:39 -0700 (PDT) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-487-CsRQuO7JPP-8DuCQ0IRFvQ-1; Mon, 26 Oct 2020 15:07:35 -0400 Received: by mail-ej1-f69.google.com with SMTP id d13so5846501ejz.6 for ; Mon, 26 Oct 2020 12:07:35 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (237.red-88-18-140.staticip.rima-tde.net. [88.18.140.237]) by smtp.gmail.com with ESMTPSA id e2sm6361275ejd.81.2020.10.26.12.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603739258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7CT9njDsFv7z3bPi4MElJcX4QFjJnLsmcrJhB+d6sQ0=; b=CuwOtXxt2mQ8bnmEwHMssSFf+plkE2snaMZQFJlBs5mdJRoO/7tqJG0d9HArWq4V0BPEYa rwtTv9RrmUNP+mTkxCrG5LV6jmk0dB4o1mLBO7MgR4DRmVcjcPaaz0mFymzDWvEAMvRGNa 2AhB1J1UfjHt/S2p8anuPEHN3D13GTg= X-MC-Unique: CsRQuO7JPP-8DuCQ0IRFvQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7CT9njDsFv7z3bPi4MElJcX4QFjJnLsmcrJhB+d6sQ0=; b=ZY6frifWF6mwl7fntAv9hH9qLMHWYk5l2JoTIL3GPjSaxIk7qGbNq0NgqkUowe0Pg/ 3I4RaFSRo4mYE7PDIDPjE2FAeGAWxwquTt2bGUwrjnPKr0DAb40llTFSVw3s0Aex/uW8 pTxEwpH5agvCtV/nlricOyW1W56ei3OkIOtCPoACYjC6N3wdbr+KPqw6WyF8XaT5ppNI HSEj/G03duWqvdPA6fSnJBKvCuuKK5cyLwKjcaM3mgiMrCcqOPMT7n5mnyatUiEtxf8W H1ObqI/GrRfseLmpH83JpEHsFaf89XQMswZgixrXl94DFZHqW8iks1DpObgdTaoE9bEj ICKg== X-Gm-Message-State: AOAM532oYRZXl4xastL+a0Rn3fUONFH1Tt/kwQJubpqOEoX5ohZs/q4s cJa5LNt5qvH7gc1grC3uxQjr93b2RSP88z6FJk1MD37zq9LRBw+do0N1SR8KiRNu/nN/le3S6eQ 7nqmFD9rBxyuAFw== X-Received: by 2002:a50:d65c:: with SMTP id c28mr11611617edj.279.1603739253929; Mon, 26 Oct 2020 12:07:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7691Eoc3/823C/lNN/zwZ14iS85WxeCapR/EGFlLe2tsDoA89BHLhJrbKVwjxgADbbVqu2Q== X-Received: by 2002:a50:d65c:: with SMTP id c28mr11611597edj.279.1603739253712; Mon, 26 Oct 2020 12:07:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luc Michel Subject: [PULL 1/4] tests/boot_linux_console: Boot Trusted Firmware-A on the Raspberry Pi 3 Date: Mon, 26 Oct 2020 20:07:23 +0100 Message-Id: <20201026190726.19515-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201026190726.19515-1-philmd@redhat.com> References: <20201026190726.19515-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) From: Philippe Mathieu-Daud=C3=A9 This test runs Trusted Firmware-A on the Raspberry Pi 3. We deliberately stop the boot process when the EDK2 UEFI version is displayed. The binary is build on AppVeyor CI using Pete Batard repository [1]. ATF v2.1 binary are used (see [2]). It is very simple and fast: $ avocado --show=3Dapp,console run -t atf tests/acceptance JOB ID : 1e748d7c9e9011cf0af3250ddc8ebf2389d6204e JOB LOG : avocado/job-results/job-2020-02-16T18.08-1e748d7/job.log (1/1) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_aarch= 64_raspi3_atf: console: NOTICE: Booting Trusted Firmware console: NOTICE: BL1: v2.1(release):v2.1 console: NOTICE: BL1: Built : 15:26:06, May 13 2019 console: NOTICE: rpi3: Detected: Raspberry Pi 3 Model B (1GB, Sony, UK) = [0x00a02082] console: NOTICE: BL1: Booting BL2 console: ERROR: rpi3_sdhost: timeout status 0x40 console: NOTICE: BL2: v2.1(release):v2.1 console: NOTICE: BL2: Built : 15:26:01, May 13 2019 console: NOTICE: BL1: Booting BL31 console: NOTICE: BL31: v2.1(release):v2.1 console: NOTICE: BL31: Built : 15:26:04, May 13 2019 console: =3DUEFI firmware (version UEFI Firmware v1.15 built at 11:58:44 = on Feb 14 2020) PASS (1.54 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | = CANCEL 0 JOB TIME : 1.88 s [1] https://github.com/pbatard/RPi3#summary [2] https://github.com/ARM-software/arm-trusted-firmware/blob/v2.1/docs/pla= t/rpi3.rst Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Luc Michel Message-Id: <20200217103442.30318-1-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/boot_linux_console.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 0118ed59156..415e32ef0d6 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -889,6 +889,28 @@ def test_arm_orangepi_uboot_netbsd9(self): # Wait for user-space wait_for_console_pattern(self, 'Starting root file system check') =20 + def test_aarch64_raspi3_atf(self): + """ + :avocado: tags=3Darch:aarch64 + :avocado: tags=3Dmachine:raspi3 + :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Ddevice:pl011 + :avocado: tags=3Datf + """ + zip_url =3D ('https://github.com/pbatard/RPi3/releases/download/' + 'v1.15/RPi3_UEFI_Firmware_v1.15.zip') + zip_hash =3D '74b3bd0de92683cadb14e008a7575e1d0c3cafb9' + zip_path =3D self.fetch_asset(zip_url, asset_hash=3Dzip_hash) + + archive.extract(zip_path, self.workdir) + efi_fd =3D os.path.join(self.workdir, 'RPI_EFI.fd') + + self.vm.set_console(console_index=3D1) + self.vm.add_args('-nodefaults', + '-device', 'loader,file=3D%s,force-raw=3Dtrue' % = efi_fd) + self.vm.launch() + self.wait_for_console_pattern('version UEFI Firmware v1.15') + def test_s390x_s390_ccw_virtio(self): """ :avocado: tags=3Darch:s390x --=20 2.26.2