From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_RHS_DOB,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD962C33CAF for ; Sun, 19 Jan 2020 22:31:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9ECFE206D7 for ; Sun, 19 Jan 2020 22:31:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OLpSn/Tf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9ECFE206D7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itJ6F-0000BT-4D for qemu-devel@archiver.kernel.org; Sun, 19 Jan 2020 17:31:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51270) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itJ58-0007wl-Nc for qemu-devel@nongnu.org; Sun, 19 Jan 2020 17:30:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itJ57-00033t-6F for qemu-devel@nongnu.org; Sun, 19 Jan 2020 17:30:10 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:40098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itJ53-00031e-Hr; Sun, 19 Jan 2020 17:30:05 -0500 Received: by mail-wm1-x343.google.com with SMTP id t14so12814939wmi.5; Sun, 19 Jan 2020 14:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pzpUsFZLFxF+C5FuMJ2XDSXvUsBCMODgN+5k2ahrgYc=; b=OLpSn/TfAFTFh7OTGZuFaD6SYDihV8s+AqYAtAFmxK9FP7Ibvj9TIvVB9lMCmxGlCD K6miMd/Z+CmU7GDdo6ErAfuOyZ9dXx9mj1UIGGzZkbBzmZ0tfICGoxMGBJ6617lTMCda AcODe0ISIOU7r3eI0FeMn9CCJvTW/JHfDBkEGhIYjKEbvVtzs9G+J9eztUyK60RsgxVH s7dvMQJHoc7pGFmLdx7PoWwewQLQtiUgTFOkP0/2NL+PNeSjyk1oll0N+p2eWFU2PXPm 0WeZniHeblWeJbfUbITNZvtWnJnGKSG0GK72d+Mjd/z/2aXvnXqQ0NnA0D/cyAAeO7iS G5Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=pzpUsFZLFxF+C5FuMJ2XDSXvUsBCMODgN+5k2ahrgYc=; b=d02knyARkj/fk+tgYUe8M07oaDUXT3sT5EnUyQoRrbHN3eQ1dOE0xR/RyQrG2pCyjT Xhv8U6eYn6dH8uN+ymf9/UpJw2nH8LECVUACwfVZx5rCIK40szzpj0qJoCF6zsPeIfdi UKexPswt6fy8B50sLFqdS9YNsgHKzzMZOmEdOlz5PY9WEozTvlDMw5aBy4YK2bfG43Dq WdfguFGMm6gHrEH1xH7bRUh/4cltXHiUFZPF+/1Is+y8/wnNpXzPn9asH/7WknFGKOy4 IqklPFQ88/8zNqlegxTpVB8UZWUnhK7g+qt8P4gN21ar3ozpIotLj5sDSSF2dz7bKF3L vcug== X-Gm-Message-State: APjAAAWWJWpeoYD4XXGJKGsupFvCedbnzHfQl206Zctcr12KVhbKNkZp hbVVmyQ6gCiUEutjmeMV7nk= X-Google-Smtp-Source: APXvYqzwis/RDPeXG5Ad5ksON9kzdd3HdhkflWM6sic+r6OihsXlVbKs45DHVHCyUyx9Ay1ahrk2GA== X-Received: by 2002:a7b:c5d8:: with SMTP id n24mr15707408wmk.124.1579473004062; Sun, 19 Jan 2020 14:30:04 -0800 (PST) Received: from [192.168.1.35] (113.red-83-57-172.dynamicip.rima-tde.net. [83.57.172.113]) by smtp.gmail.com with ESMTPSA id b18sm45625081wru.50.2020.01.19.14.30.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jan 2020 14:30:03 -0800 (PST) Subject: Re: [PATCH v4 16/20] tests/boot_linux_console: Add a SLOW test booting Ubuntu on OrangePi PC To: Niek Linnenbank , qemu-devel@nongnu.org, Cleber Rosa References: <20200119005102.3847-1-nieklinnenbank@gmail.com> <20200119005102.3847-17-nieklinnenbank@gmail.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Autocrypt: addr=f4bug@amsat.org; keydata= mQINBDU8rLoBEADb5b5dyglKgWF9uDbIjFXU4gDtcwiga9wJ/wX6xdhBqU8tlQ4BroH7AeRl u4zXP0QnBDAG7EetxlQzcfYbPmxFISWjckDBFvDbFsojrZmwF2/LkFSzlvKiN5KLghzzJhLO HhjGlF8deEZz/d/G8qzO9mIw8GIBS8uuWh6SIcG/q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fJtSM0qbX32cSXMAStDVnS4U+H2vCVCWnfNug2TdY 7v4NtdpaCi4CBBa3ZtqYVOU05IoLnlx0miKTBMqmI05kpgX98pi2QUPJBYi/+yNu3fjjcuS9 K5WmpNFTNi6yiBbNjJA5E2qUKbIT/RwQFQvhrxBUcRCuK4x/5uOZrysjFvhtR8YGm08h+8vS n0JCnJD5aBhiVdkohEFAz7e5YNrAg6kOA5IVRHB44lTBOatLqz7ntwdGD0rteKuHaUuXpTYy CRqCVAKqFJtxhvJvaX0vLS1Z2dwtDwhjfIdgPiKEGOgCNGH7R8l+aaM4OPOd Message-ID: <6dd1ab52-3a75-c439-f26b-fa04d797059c@amsat.org> Date: Sun, 19 Jan 2020 23:30:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200119005102.3847-17-nieklinnenbank@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 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: peter.maydell@linaro.org, alex.bennee@linaro.org, jasowang@redhat.com, b.galvani@gmail.com, qemu-arm@nongnu.org, imammedo@redhat.com, philmd@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 1/19/20 1:50 AM, Niek Linnenbank wrote: > From: Philippe Mathieu-Daudé > > This test boots Ubuntu Bionic on a OrangePi PC board. > > As it requires 1GB of storage, and is slow, this test is disabled > on automatic CI testing. > > It is useful for workstation testing. Currently Avocado timeouts too > quickly, so we can't run userland commands. > > The kernel image and DeviceTree blob are built by the Armbian > project (based on Debian): > https://www.armbian.com/orange-pi-pc/ > > The Ubuntu image is downloaded from: > https://dl.armbian.com/orangepipc/Bionic_current I forgot the image is compressed is compressed with 7z, which is not provided by avocado.utils.archive. This patch requires more checks, see inlined... > > This test can be run using: > > $ AVOCADO_ALLOW_LARGE_STORAGE=yes \ > avocado --show=app,console run -t machine:orangepi-pc \ > tests/acceptance/boot_linux_console.py > console: U-Boot SPL 2019.04-armbian (Nov 18 2019 - 23:08:35 +0100) > console: DRAM: 1024 MiB > console: Failed to set core voltage! Can't set CPU frequency > console: Trying to boot from MMC1 > console: U-Boot 2019.04-armbian (Nov 18 2019 - 23:08:35 +0100) Allwinner Technology > console: CPU: Allwinner H3 (SUN8I 0000) > console: Model: Xunlong Orange Pi PC > console: DRAM: 1 GiB > console: MMC: mmc@1c0f000: 0 > [...] > console: Uncompressing Linux... done, booting the kernel. > console: Booting Linux on physical CPU 0x0 > console: Linux version 5.3.9-sunxi (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #19.11.3 SMP Mon Nov 18 18:49:43 CET 2019 > console: CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d > console: CPU: div instructions available: patching division code > console: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache > console: OF: fdt: Machine model: Xunlong Orange Pi PC > [...] > console: EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) > console: done. > console: Begin: Running /scripts/local-bottom ... done. > console: Begin: Running /scripts/init-bottom ... done. > console: systemd[1]: systemd 237 running in system mode. (...) > console: systemd[1]: Detected architecture arm. > console: Welcome to Ubuntu 18.04.3 LTS! > console: systemd[1]: Set hostname to . > > Signed-off-by: Philippe Mathieu-Daudé > [NL: rename in commit message Raspbian to Armbian, remove vm.set_machine()] > [NL: changed test to boot from SD card via BootROM] > Signed-off-by: Niek Linnenbank > --- > tests/acceptance/boot_linux_console.py | 41 ++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py > index 50294e1675..399d5062db 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py This patch needs: from avocado.utils.path import find_command P7ZIP_AVAILABLE = True try: find_command('7z') except CmdNotFoundError: P7ZIP_AVAILABLE = False > @@ -591,6 +591,47 @@ class BootLinuxConsole(Test): > exec_command_and_wait_for_pattern(self, 'reboot', > 'reboot: Restarting system') > > + @skipUnless(os.getenv('AVOCADO_ALLOW_LARGE_STORAGE'), 'storage limited') @skipUnless(P7ZIP_AVAILABLE, '7z not installed') > + def test_arm_orangepi_bionic(self): > + """ > + :avocado: tags=arch:arm > + :avocado: tags=machine:orangepi-pc > + """ > + > + # This test download a 196MB compressed image and expand it to 932MB... > + image_url = ('https://dl.armbian.com/orangepipc/archive/' > + 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.7z') > + image_hash = '196a8ffb72b0123d92cea4a070894813d305c71e' > + image_path_7z = self.fetch_asset(image_url, asset_hash=image_hash) > + image_name = 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.img' > + image_path = os.path.join(self.workdir, image_name) > + process.run("7z e -o%s %s" % (self.workdir, image_path_7z)) Because here 7z is called ^ > + > + self.vm.set_console() > + self.vm.add_args('-drive', 'file=' + image_path + ',if=sd,format=raw', > + '-nic', 'user', > + '-no-reboot') > + self.vm.launch() > + > + kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + > + 'console=ttyS0,115200 ' > + 'loglevel=7 ' > + 'nosmp ' > + 'systemd.default_timeout_start_sec=9000 ' > + 'systemd.mask=armbian-zram-config.service ' > + 'systemd.mask=armbian-ramlog.service') > + > + self.wait_for_console_pattern('U-Boot SPL') > + self.wait_for_console_pattern('Autoboot in ') > + exec_command_and_wait_for_pattern(self, ' ', '=>') > + exec_command_and_wait_for_pattern(self, "setenv extraargs '" + > + kernel_command_line + "'", '=>') > + exec_command_and_wait_for_pattern(self, 'boot', 'Starting kernel ...'); > + > + self.wait_for_console_pattern('systemd[1]: Set hostname ' + > + 'to ') > + self.wait_for_console_pattern('Starting Load Kernel Modules...') > + > def test_s390x_s390_ccw_virtio(self): > """ > :avocado: tags=arch:s390x >