From nobody Thu Nov 13 16:34:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581874308974598.1135218957855; Sun, 16 Feb 2020 09:31:48 -0800 (PST) Received: from localhost ([::1]:34626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Nlj-0005HN-9M for importer@patchew.org; Sun, 16 Feb 2020 12:31:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49792) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3Nl1-0004aC-ST for qemu-devel@nongnu.org; Sun, 16 Feb 2020 12:31:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3Nl0-0001QE-Fu for qemu-devel@nongnu.org; Sun, 16 Feb 2020 12:31:03 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:35453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3Nky-0001Ob-Bn; Sun, 16 Feb 2020 12:31:01 -0500 Received: by mail-wr1-x444.google.com with SMTP id w12so16866682wrt.2; Sun, 16 Feb 2020 09:30:59 -0800 (PST) Received: from localhost.localdomain (78.red-88-21-202.staticip.rima-tde.net. [88.21.202.78]) by smtp.gmail.com with ESMTPSA id 59sm18086135wre.29.2020.02.16.09.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 09:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ILByhanNSF4EWIF7kqIRdqxbnlc2sM+dFB4V1nqdc6M=; b=UYTLEyVGniAzpBLTnUMIlzGKTh2jG8JtmaIfySDMY24Cvt+e4H2Ea7opHdhb1VhR95 E5d5b7L3jERpa5ZX+/F5yJssJMHZ1QHgCD0IE8wtfb0Gu9SIkhk4bcf2ccV1JV5saILb 0cPKQVYUe7Fq329pmEyGBCv9Ckkek6PMUGg9ogS4Y467u8glzlQVWyhKp/Dv7SgHguXi DC7SKsSZD6KqUguTAexer9LGWjVPcvfW+GCi5Z4hpo5MwVVsAISQ+lqfqTAZHkcJBp2Q Yh2e5JAjuQTEVb299sl4VWk5A1rsomGPKUCEkWWF7YkQThWqY+Q1jA3SWSSkkgjttAjg wTXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ILByhanNSF4EWIF7kqIRdqxbnlc2sM+dFB4V1nqdc6M=; b=m/pGOHuvNVhAv7SUhnOD5xmtYQHdUqY2QIdfR9XW3RmRalvboaI62z40ImUqbEEzEi eq2za087we1Pjf9rak3okq0WFRAZO2y9YkFz2Yrgt+uqiX1LF4cJBuHZubyXKziVFiCQ bOBQbsDdBgXYfeywntjRJa3n9omNMZuZwj/Ja4AHFNxEC1pw/xRd0RWq3b1+H6+YGCQO eNhxZyrCDDK8aWyNM5RbWWiZ+57K9vgeehckRbnJmfgiuFROBAY46slQafNF4W73iTcf 84Lr6RPiMVqUFd4EOl7Ab3N8zXDBXcLxk8CZEh5kA9vpo/5/BqDjo+5G83Kr1E7quWNw V4cg== X-Gm-Message-State: APjAAAV9pAoiiN/oCTa11oD2RJOKBIZBzW+uiq2IR2J7ZAW6sxkKgBzW CLGzlPjBfFw8cuxrA0ofa7xtG9F9YHw= X-Google-Smtp-Source: APXvYqyGs87kwhUCxWSJWZwpCkT5DrUyOuqZa8fkfZ+OSM85HhApWM08bWVI5Hoa0RQX1U7EJ7GsCQ== X-Received: by 2002:adf:e5c4:: with SMTP id a4mr17687924wrn.292.1581874258126; Sun, 16 Feb 2020 09:30:58 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH] tests/boot_linux_console: Boot Trusted Firmware-A on the Raspberry Pi 3 Date: Sun, 16 Feb 2020 18:30:55 +0100 Message-Id: <20200216173055.30338-1-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, pete@akeo.ie, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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 --- 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 34d37eba3b..51f24c462a 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -507,6 +507,28 @@ def test_arm_cubieboard_sata(self): exec_command_and_wait_for_pattern(self, 'reboot', 'reboot: Restarting system= ') =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.21.1