Received: by 2002:a05:6512:3aa:0:0:0:0 with SMTP id v10csp910344lfp; Tue, 28 Jan 2020 12:17:28 -0800 (PST) X-Google-Smtp-Source: APXvYqw8TqzbEgQkUyOrmv/PSInaw9mPOw31fEhFU1r7C3J5t+Zu+30hMScWPCTQaXnLg7pBVItW X-Received: by 2002:a5d:4a91:: with SMTP id o17mr29014580wrq.232.1580242648713; Tue, 28 Jan 2020 12:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580242648; cv=none; d=google.com; s=arc-20160816; b=z0GrxbQOuhRnn9Xvpu4I7Z8Yee+z6+u3UF/heigc49PcW3i2F4pzszOx1XLOMEhcnI a6uQyyA+9k3isphnpv7Zz4/mmaUAYzC2RpwmkQFEYYOAUsariM19A8U4hNlKueOxZJqQ k9AeypOK7Adq4/mSudluHr9+3ezy1hXcnGh+qLGdfhgAjssPTuDTBBNoCwSqNgSD2FUJ aOVkM7UjKhUiET9fE1M5l/JXmL4Pjn3bYXkNxUXZv/whebPXmDxCbIqXLQ1wk0N8xlgj KLs6RbGzGqcf6C54ZZqA8D7l1fj4Gg8wmfdptH3JqihQXWa+gTjQza2g7IMlYsBRU8A0 r13w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=pc8NOi0faJUWVA3FoOLpgOr2lmB7ci5vdpsvcWsKE1M=; b=BKa6e8V/BRFi/b0SsxfXM1API0QKYjMF00c30Sf6e9UhuMKiJpx11fPeOHC5AQW/tt 8mFa1CxaFsLkffHpCLvEZrq+DUKmGjMp0QpAbRPsdAmsRdCKBmhOVhFfg0FO7efaa223 FIWdibOliHzwPVETjOqzFkRYAmYi+QWBijrUehKWd63HEuunafEVI8QCZQjX65RbwOgR IjX6ANNrtjr4KYq9V7gy50iLwTdnwC0fViTlurb4WGdaN7MG2Ry+fQ+zWFB6V90AlEYW 6IygQao5q8UNRZycEuYioc5BqJTW4LnwsN52TQJlaTYHiuSJ7aISnRPJG5pyRfLFoDON /1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QS6+/brC"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t8si16345133wrq.225.2020.01.28.12.17.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2020 12:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QS6+/brC"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:37212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwXId-0003d0-Ii for alex.bennee@linaro.org; Tue, 28 Jan 2020 15:17:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37270) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwXIS-0003ZQ-RM for qemu-arm@nongnu.org; Tue, 28 Jan 2020 15:17:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwXIR-0003rG-28 for qemu-arm@nongnu.org; Tue, 28 Jan 2020 15:17:16 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:49918 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwXIQ-0003oC-Td for qemu-arm@nongnu.org; Tue, 28 Jan 2020 15:17:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580242634; 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=pc8NOi0faJUWVA3FoOLpgOr2lmB7ci5vdpsvcWsKE1M=; b=QS6+/brCRmLXjgc8PnJJJl+nda7/gZqJQvx2u5zaxEUwxoYRa2JrsF+4ACBUpe79OvrAHr MVn3vmA6TDAnAM945hR6msuarQB+9XDMAELn1wkYzW6qOYj8ta3znNMiH11tf782InoKMq WdrrxexgWanD+01gwc6RR+Zb1Xi0LQY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-300-EfWOoimCOqqYqS4AhsMZJw-1; Tue, 28 Jan 2020 15:08:52 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 792A3107ACCC; Tue, 28 Jan 2020 20:08:50 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-65.gru2.redhat.com [10.97.116.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 16CD85C3F8; Tue, 28 Jan 2020 20:08:42 +0000 (UTC) Subject: Re: [PATCH v4 5/7] tests/boot_linux_console: Test booting U-Boot on the Raspberry Pi 2 To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org References: <20200120235159.18510-1-f4bug@amsat.org> <20200120235159.18510-6-f4bug@amsat.org> From: Wainer dos Santos Moschetta Message-ID: <1a512e40-36d5-0de2-2590-b580f48a5599@redhat.com> Date: Tue, 28 Jan 2020 18:08:40 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20200120235159.18510-6-f4bug@amsat.org> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: EfWOoimCOqqYqS4AhsMZJw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 207.211.31.120 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Eduardo Habkost , Alistair Francis , Andrew Baumann , qemu-arm@nongnu.org, Cleber Rosa , Laurent Bonnans , Cheng Xiang , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: VvdBW2Hp6kma On 1/20/20 9:51 PM, Philippe Mathieu-Daud=C3=A9 wrote: > This test runs U-Boot on the Raspberry Pi 2. > It is very simple and fast: > > $ avocado --show=3Dapp,console run -t raspi2 -t u-boot tests/acceptanc= e/ > JOB LOG : avocado/job-results/job-2020-01-20T23.40-2424777/job.log > (1/1) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_ar= m_raspi2_uboot: > console: MMC: sdhci@7e300000: 0 > console: Loading Environment from FAT... Card did not respond to volta= ge select! > console: In: serial > console: Out: vidconsole > console: Err: vidconsole > console: Net: No ethernet found. > console: starting USB... > console: USB0: Port not available. > console: Hit any key to stop autoboot: 0 > console: U-Boot> > console: U-Boot> bdinfo > console: arch_number =3D 0x00000000 > console: boot_params =3D 0x00000100 > console: DRAM bank =3D 0x00000000 > console: -> start =3D 0x00000000 > console: -> size =3D 0x3c000000 > console: baudrate =3D 115200 bps > console: TLB addr =3D 0x3bff0000 > console: relocaddr =3D 0x3bf64000 > console: reloc off =3D 0x3bf5c000 > console: irq_sp =3D 0x3bb5fec0 > console: sp start =3D 0x3bb5feb0 > console: Early malloc usage: 2a4 / 400 > console: fdt_blob =3D 0x3bfbdfb0 > console: U-Boot> version > console: U-Boot 2019.01+dfsg-7 (May 14 2019 - 02:07:44 +0000) > console: gcc (Debian 8.3.0-7) 8.3.0 > console: GNU ld (GNU Binutils for Debian) 2.31.1 > console: U-Boot> reset > console: resetting ... > PASS (0.46 s) > > U-Boot is built by the Debian project, see: > https://wiki.debian.org/InstallingDebianOn/Allwinner#Creating_a_bootable_= SD_Card_with_u-boot > > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > tests/acceptance/boot_linux_console.py | 28 ++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) Reviewed-by: Wainer dos Santos Moschetta > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/bo= ot_linux_console.py > index e40b84651b..682b801b4f 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py > @@ -16,6 +16,7 @@ import shutil > from avocado import skipUnless > from avocado_qemu import Test > from avocado_qemu import exec_command_and_wait_for_pattern > +from avocado_qemu import interrupt_interactive_console_until_pattern > from avocado_qemu import wait_for_console_pattern > from avocado.utils import process > from avocado.utils import archive > @@ -485,6 +486,33 @@ class BootLinuxConsole(Test): > exec_command_and_wait_for_pattern(self, 'reboot', > 'reboot: Restarting sys= tem') > =20 > + def test_arm_raspi2_uboot(self): > + """ > + :avocado: tags=3Darch:arm > + :avocado: tags=3Dmachine:raspi2 > + :avocado: tags=3Du-boot > + """ > + deb_url =3D ('https://snapshot.debian.org/archive/debian/' > + '20190514T084354Z/pool/main/u/u-boot/' > + 'u-boot-rpi_2019.01%2Bdfsg-7_armhf.deb') > + deb_hash =3D 'ad858cf3afe623b6c3fa2e20dcdd1768fcb9ae83' > + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) > + uboot_path =3D '/usr/lib/u-boot/rpi_2/uboot.elf' > + uboot_path =3D self.extract_from_deb(deb_path, uboot_path) > + > + self.vm.set_console() > + self.vm.add_args('-kernel', uboot_path, > + # VideoCore starts CPU with only 1 core enabled > + '-global', 'bcm2836.enabled-cpus=3D1', > + '-no-reboot') > + self.vm.launch() > + interrupt_interactive_console_until_pattern(self, > + 'Hit any key to stop autoboot:', > + 'Config file not found') > + exec_command_and_wait_for_pattern(self, 'bdinfo', 'U-Boot') > + exec_command_and_wait_for_pattern(self, 'version', 'U-Boot') > + exec_command_and_wait_for_pattern(self, 'reset', 'resetting ...'= ) > + > def test_s390x_s390_ccw_virtio(self): > """ > :avocado: tags=3Darch:s390x