From nobody Tue Feb 10 06:58:47 2026 Delivered-To: importer@patchew.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 ARC-Seal: i=1; a=rsa-sha256; t=1614862262; cv=none; d=zohomail.com; s=zohoarc; b=n+YFGyUEde/wK7o0gT1NM+FGMCrlWiuOrlCPFRHht/S90ARJlrRf2LLM8p6se73DMJAj1z90o01/jl846HEXn6X68sAowjLI9wewqikqnykUZ0D/aKEW5X6HwD8iBv4TKHJzIyp9KVfAXvzgk0RL6eOZSez2Wgz+n7BD6hli09k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614862262; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HjzpYT7hnoEJ4x3Tu4tXNH8mLvkB1uVrp6Y4N/W4R+E=; b=cp5OjC6VuTzMMUq+m9obxUx09+gAah1T6GGudZIzJQnX5qNvAMtQZn5sVrBbkNrHruj3v5347s8HZkjxtsP9aCbg1dFL9pIJHuIX37zmKfshvsRdCsK1EVAX3VKsEIv5nHLhk1kVC69ak/lHTJ1nXbGBhp5WLc9uBwpXp31S/4c= ARC-Authentication-Results: i=1; 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 1614862262576841.164688887659; Thu, 4 Mar 2021 04:51:02 -0800 (PST) Received: from localhost ([::1]:45876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHnRV-0006PZ-0k for importer@patchew.org; Thu, 04 Mar 2021 07:51:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHnH2-00024c-TE; Thu, 04 Mar 2021 07:40:12 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:35830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHnH1-00086L-3c; Thu, 04 Mar 2021 07:40:12 -0500 Received: by mail-pj1-x102c.google.com with SMTP id h13so324171pjt.0; Thu, 04 Mar 2021 04:40:09 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id r13sm29228237pfg.37.2021.03.04.04.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 04:40:07 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=HjzpYT7hnoEJ4x3Tu4tXNH8mLvkB1uVrp6Y4N/W4R+E=; b=PdO9ccP/CWqPnsraafHp4hRBmAvsbwGzvEQORLtVaNqTXJy8BNcW0/Te7yWx9tg9RM AVgjGzgP2gmW8j0y3AdLltyFkVAhKKMWC1whLvCsk9tnXmptVjopTJD5niz6B7Iki9gR +Om2ZTD0LAVoxdbKGoT7iXX+QVI6AfJeHsBh5Ekg5XTfh6b6U0v8TOUUhdwDRACyzzQc PRSuL/CJrp6umTCgWydk+TcA0V+fDOlNv5hSCHwZkV6MIT0FYUECc0y71Za4yglLPWyK xhU+fxSVA5lheuWqqJariofg3U8g5F+ShtOVZB1Ih74vjAj0U3wWdNFcpqnePxDLIv7y Iu6g== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=HjzpYT7hnoEJ4x3Tu4tXNH8mLvkB1uVrp6Y4N/W4R+E=; b=R8QxLE9R9HlkKD0pl0JlnCfzcDjNC2one5VxtpIJQZkf9g7FTSvhf2DUkl9f/nRIEG neQASvvyDMjVc3SH6eRUCKQI5VPSOgQ3YplVKocNqPpqADSYIG2qQNzjNJhkxfE4gsCq RoyDJxtOL1wzHhX+VaFDfv0AOgh6ruNQLdHHoGQc/oulruXO0LgeawquBJ7SE3WFAQvZ X/V6i5VjiJkfAwxx5xJzFKfXFrnP2r1sog9dO7TqfbBXvOdKzRCnSZe1KE2h89Ts+Y97 5Eng9NQO+KmHQ2/mrm81nLz9kCrGX92jm81sgoVRIozDT6Z1vQp0EhuQ1jgFMSzIP9oW BzvQ== X-Gm-Message-State: AOAM533IYLtHJDb0Si6CfHagOBqgpnH/rTF40MRZM14SKyUqLY7pTMln 1DGNTp8WJHD3LwMJUexr27Q= X-Google-Smtp-Source: ABdhPJwC5Sy9Y+q+mXLixbNVS/abWBuQRxAZ6TkpbcykSXYERjf2HvbAOmqk0YQz0wQf/rvuz2ww4Q== X-Received: by 2002:a17:90a:71ca:: with SMTP id m10mr4328610pjs.2.1614861608846; Thu, 04 Mar 2021 04:40:08 -0800 (PST) From: Joel Stanley To: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta Subject: [PATCH v2 1/2] tests/acceptance: Test ast2400 and ast2500 machines Date: Thu, 4 Mar 2021 23:09:50 +1030 Message-Id: <20210304123951.163411-2-joel@jms.id.au> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210304123951.163411-1-joel@jms.id.au> References: <20210304123951.163411-1-joel@jms.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=joel.stan@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C3=A9dric Le Goater Reviewed-by: C=C3=A9dric Le Goater Tested-by: C=C3=A9dric Le Goater Signed-off-by: Joel Stanley Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa --- 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.d= tb') self.do_test_advcal_2018('16', tar_hash, 'winter.zImage') =20 + def test_arm_ast2400_palmetto_openbmc_v2_9_0(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:palmetto-bmc + """ + + image_url =3D ('https://github.com/openbmc/openbmc/releases/downlo= ad/2.9.0/' + 'obmc-phosphor-image-palmetto.static.mtd') + image_hash =3D ('3e13bbbc28e424865dc42f35ad672b10f2e82cdb11846bb28= fa625b48beafd0d') + image_path =3D self.fetch_asset(image_url, asset_hash=3Dimage_hash, + algorithm=3D'sha256') + + self.do_test_arm_aspeed(image_path) + + def test_arm_ast2500_romulus_openbmc_v2_9_0(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:romulus-bmc + """ + + image_url =3D ('https://github.com/openbmc/openbmc/releases/downlo= ad/2.9.0/' + 'obmc-phosphor-image-romulus.static.mtd') + image_hash =3D ('820341076803f1955bc31e647a512c79f9add4f5233d06976= 78bab4604c7bb25') + image_path =3D self.fetch_asset(image_url, asset_hash=3Dimage_hash, + algorithm=3D'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=3D' + image + ',if=3Dmtd,format= =3Draw', + '-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: i= rq ") + self.wait_for_console_pattern("systemd[1]: Set hostname to") + # This often takes longer than the 90s timeout + # self.wait_for_console_pattern("login:") + self.vm.shutdown() + def test_m68k_mcf5208evb(self): """ :avocado: tags=3Darch:m68k --=20 2.30.1