From patchwork Thu Mar 4 12:39:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1447295 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=PdO9ccP/; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4DrrKq0nwdz9sSC for ; Thu, 4 Mar 2021 23:49:35 +1100 (AEDT) Received: from localhost ([::1]:44860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHnQ4-0005sK-By for incoming@patchwork.ozlabs.org; Thu, 04 Mar 2021 07:49:32 -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) 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) 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) From: Joel Stanley To: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-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 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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 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.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:") + self.vm.shutdown() + def test_m68k_mcf5208evb(self): """ :avocado: tags=arch:m68k From patchwork Thu Mar 4 12:39:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1447289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VwJ3dc/H; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Drr9L2WnSz9sRf for ; Thu, 4 Mar 2021 23:42:14 +1100 (AEDT) Received: from localhost ([::1]:37310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHnIy-0002BK-7f for incoming@patchwork.ozlabs.org; Thu, 04 Mar 2021 07:42:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHnH8-000274-2C; Thu, 04 Mar 2021 07:40:19 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:40790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHnH4-00088J-V0; Thu, 04 Mar 2021 07:40:16 -0500 Received: by mail-pl1-x632.google.com with SMTP id z7so16063273plk.7; Thu, 04 Mar 2021 04:40:14 -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=M3igz7jopzXfWJ6+eBF3vNO5uEjoqswrCPxUBIjqFVM=; b=VwJ3dc/Ho3D1HzPwK77isIgBzhp49GCGc8yn5fJ2XlV24spK62Nk/4BFGT8XoMjq2y 3BBy82trL6ThW4Y1YvaJsSwru18Y9xSkBv3noRcMuzjN6LC99qXxpkPMdiXjhp1XQN6k 4kcroNPhiC2CyeztEaue8BEbCGDQWN/L4fofd9FCSZZ//xwZ47ACXmqI8Q0RecRynJp1 REefcEjFeEIDiwV/6rJ/uJ9lW6Dt4DB/cmdOqojt7Sufy9JQ6nXrVfAJCFnDtag2yt0Z Kzbg+PM41A9Qg2vh6sAAQrBt+7zdm0ijgBSEZRfi3mNXImYSrWgUiTdAEI7C3sNKMeQg 5dKw== 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=M3igz7jopzXfWJ6+eBF3vNO5uEjoqswrCPxUBIjqFVM=; b=ZyRBaBfkX3NS1ilOuyDz7FKVTgA/stw0LfRndBovwRnPxzf8Dystci8Ws/90oOSo/K 6LrTfVRv49uFf6luutscY1kGwz7UZrI7H5IAFjHT6Y84ycFhwgIIHFgJLKg2lEES4d9h H1hq2TUE5KTMIpZ13/NGjF4s4GqkhuzS+dJIS4H1TsvOfmCWpi/wSp7Zm8nFYkdNPYH4 ufqGIcDaZFT0EKMwLjYIlX2vQBNBUu9HTS0yyePJZU0OS3v7V4v0tm7oT6TfJ7Oj+lKY U5lh5jPAG7oeIYq3k8LNdieWtNLDeO3pDFSVE24sfz/YNuPr5MjwjFERHmUwTmCaf96W ACng== X-Gm-Message-State: AOAM533kL0A57rtgMeRcgwzk6+XlVaNTWBhcC38gjeaO+TswEv6y8qcc DgMoELUQ3FFfHfOYGcKrUog= X-Google-Smtp-Source: ABdhPJyM8UUCl4sd3VQY6A3GzAYKBue/jqk0m6uvUcjKNQkxwjKpg+jo1e/k3ExuPVTvCYNe+oN/Sg== X-Received: by 2002:a17:90a:9f83:: with SMTP id o3mr4321325pjp.133.1614861613433; Thu, 04 Mar 2021 04:40:13 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id r13sm29228237pfg.37.2021.03.04.04.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 04:40:12 -0800 (PST) From: Joel Stanley To: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta Subject: [PATCH v2 2/2] tests/acceptance: Test ast2600 machine Date: Thu, 4 Mar 2021 23:09:51 +1030 Message-Id: <20210304123951.163411-3-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=joel.stan@gmail.com; helo=mail-pl1-x632.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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This tests a Debian multi-soc arm32 Linux kernel on the AST2600 based Tacoma BMC machine. There is no root file system so the test terminates when boot reaches the stage where it attempts and fails to mount something. Signed-off-by: Joel Stanley Reviewed-by: Cédric Le Goater Tested-by: Cédric Le Goater --- v2: Update expected strings so test passes --- tests/acceptance/boot_linux_console.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 2f46a08fdc10..4f1df69bc75c 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -1094,6 +1094,32 @@ def do_test_arm_aspeed(self, image): # self.wait_for_console_pattern("login:") self.vm.shutdown() + def test_arm_ast2600_debian(self): + """ + :avocado: tags=arch:arm + :avocado: tags=machine:tacoma-bmc + """ + deb_url = ('http://snapshot.debian.org/archive/debian/' + '20210302T203551Z/' + 'pool/main/l/linux/' + 'linux-image-5.10.0-3-armmp_5.10.13-1_armhf.deb') + deb_hash = 'db40d32fe39255d05482bea48d72467b67d6225bb2a2a4d6f618cb8976f1e09e' + deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash, + algorithm='sha256') + kernel_path = self.extract_from_deb(deb_path, '/boot/vmlinuz-5.10.0-3-armmp') + dtb_path = self.extract_from_deb(deb_path, + '/usr/lib/linux-image-5.10.0-3-armmp/aspeed-bmc-opp-tacoma.dtb') + + self.vm.set_console() + self.vm.add_args('-kernel', kernel_path, + '-dtb', dtb_path, + '-net', 'nic') + self.vm.launch() + self.wait_for_console_pattern("Booting Linux on physical CPU 0xf00") + self.wait_for_console_pattern("SMP: Total of 2 processors activated") + self.wait_for_console_pattern("No filesystem could mount root") + self.vm.shutdown() + def test_m68k_mcf5208evb(self): """ :avocado: tags=arch:m68k