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=-22.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,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 B9F96C433DB for ; Fri, 5 Mar 2021 20:50:52 +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 6056D6509B for ; Fri, 5 Mar 2021 20:50:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6056D6509B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:46068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIHPP-00089S-Fw for qemu-devel@archiver.kernel.org; Fri, 05 Mar 2021 15:50:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIHNw-0006hI-C7 for qemu-devel@nongnu.org; Fri, 05 Mar 2021 15:49:20 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lIHNu-0000qx-3f for qemu-devel@nongnu.org; Fri, 05 Mar 2021 15:49:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614977354; 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=ln6FVFENwJzOW8sfJeAn5TYTwUJKP6rmMRmKBU9wElM=; b=CFsOdZu23d8eMQy/BCl6/61a25p6HZUuyXZ2pYRRkzKLjUwkv6yxluifBeadm5CkPkT5aR vAQdul/6OnsjVspKNwLMjWNLJb0SHt6UpKj55k6C5ietwf/IQQ3XcO4Ux3ToepL+EmFyQD MxVA4B5KodReF1b29jVgaLf0m1t+pPw= 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-477-2cJh-h-pMZqbxRrvoM54_g-1; Fri, 05 Mar 2021 15:49:12 -0500 X-MC-Unique: 2cJh-h-pMZqbxRrvoM54_g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B9D76881276; Fri, 5 Mar 2021 20:49:10 +0000 (UTC) Received: from wainer-laptop.localdomain (ovpn-116-126.gru2.redhat.com [10.97.116.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53D835D9C0; Fri, 5 Mar 2021 20:49:04 +0000 (UTC) Subject: Re: [PATCH v2 1/2] tests/acceptance: Test ast2400 and ast2500 machines To: Joel Stanley , =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Cleber Rosa , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= References: <20210304123951.163411-1-joel@jms.id.au> <20210304123951.163411-2-joel@jms.id.au> From: Wainer dos Santos Moschetta Message-ID: <340b24ff-006b-3934-c0ef-31be3b7057d7@redhat.com> Date: Fri, 5 Mar 2021 17:49:02 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210304123951.163411-2-joel@jms.id.au> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=wainersm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=216.205.24.124; envelope-from=wainersm@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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: Andrew Jeffery , Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, On 3/4/21 9:39 AM, Joel Stanley wrote: > Test MTD images from the OpenBMC project on AST2400 and AST2500 SoCs > from ASPEED, by booting Palmetto and Romulus BMC machines. > > The images are fetched from OpenBMC's release directory on github. > > Co-developed-by: Cédric Le Goater > Reviewed-by: Cédric Le Goater > Tested-by: Cédric Le Goater > Signed-off-by: Joel Stanley > --- > tests/acceptance/boot_linux_console.py | 46 ++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py > index eb012867997f..2f46a08fdc10 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py > @@ -1048,6 +1048,52 @@ def test_arm_vexpressa9(self): > self.vm.add_args('-dtb', self.workdir + '/day16/vexpress-v2p-ca9.dtb') > self.do_test_advcal_2018('16', tar_hash, 'winter.zImage') > > + def test_arm_ast2400_palmetto_openbmc_v2_9_0(self): > + """ > + :avocado: tags=arch:arm > + :avocado: tags=machine:palmetto-bmc > + """ > + > + image_url = ('https://github.com/openbmc/openbmc/releases/download/2.9.0/' > + 'obmc-phosphor-image-palmetto.static.mtd') > + image_hash = ('3e13bbbc28e424865dc42f35ad672b10f2e82cdb11846bb28fa625b48beafd0d') > + image_path = self.fetch_asset(image_url, asset_hash=image_hash, > + algorithm='sha256') > + > + self.do_test_arm_aspeed(image_path) > + > + def test_arm_ast2500_romulus_openbmc_v2_9_0(self): > + """ > + :avocado: tags=arch:arm > + :avocado: tags=machine:romulus-bmc > + """ > + > + image_url = ('https://github.com/openbmc/openbmc/releases/download/2.9.0/' > + 'obmc-phosphor-image-romulus.static.mtd') > + image_hash = ('820341076803f1955bc31e647a512c79f9add4f5233d0697678bab4604c7bb25') > + image_path = self.fetch_asset(image_url, asset_hash=image_hash, > + algorithm='sha256') > + > + self.do_test_arm_aspeed(image_path) > + > + def do_test_arm_aspeed(self, image): > + self.vm.set_console() > + self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw', > + '-net', 'nic') > + self.vm.launch() > + > + self.wait_for_console_pattern("U-Boot 2016.07") > + self.wait_for_console_pattern("## Loading kernel from FIT Image at 20080000") > + self.wait_for_console_pattern("Starting kernel ...") > + self.wait_for_console_pattern("Booting Linux on physical CPU 0x0") > + self.wait_for_console_pattern( > + "aspeed-smc 1e620000.spi: read control register: 203b0641") > + self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ") > + self.wait_for_console_pattern("systemd[1]: Set hostname to") > + # This often takes longer than the 90s timeout > + # self.wait_for_console_pattern("login:") Maybe remove those commented lines? > + self.vm.shutdown() Not needed explicit shutdown as I said on patch 02. - Wainer > + > def test_m68k_mcf5208evb(self): > """ > :avocado: tags=arch:m68k