From nobody Tue Nov 18 10:40:14 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) client-ip=209.85.128.49; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f49.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1609707193; cv=none; d=zohomail.com; s=zohoarc; b=iPsYTMg3z6abr3By4f1YqO44TLRhnQmd6qaB71V0gh4ICvNBl/LezXTZNf5Bojmoy4tEsLlfja1f1ppRnkY11r/DUT2DvltS2uuztA3WI6tXyv95pgI/i18xAMwQzbXKniS4L06Yb2DEpTD4TIqeWfnYD9Jbc3UQFpWXfpb1NS8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609707193; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=my6K0NqjNxjwesMHeWH/nrBf3hS8ACbQAhuQ5qNjI9U=; b=FfbUi8sIXNczUnuaNC+imxOTirVUXc1YpSMHU9CXCmils/dsUh3aB77Gb+4NjfNsfuSyhr+T42DfwedCp10RCp+hLIB8xkxmzwioPaDECWACQTlPVqb2EFunxWE2IMmoPHjr9CcFrdFrwhQZurSFZMDZhGZ/szamS+6lYpA+jWA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.49 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.zohomail.com with SMTPS id 1609707193988537.8161064253243; Sun, 3 Jan 2021 12:53:13 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id 3so16647558wmg.4 for ; Sun, 03 Jan 2021 12:53:13 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (194.red-83-57-172.dynamicip.rima-tde.net. [83.57.172.194]) by smtp.gmail.com with ESMTPSA id u66sm30239300wmg.30.2021.01.03.12.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 12:53:11 -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=my6K0NqjNxjwesMHeWH/nrBf3hS8ACbQAhuQ5qNjI9U=; b=BaBLUCrnYR+B4v33nLFz8D8IMXxaQbgN46mPqbG8l3aAVRbmU6HDzWGc8jqObTvUQD f4RWNBwpqIpwaXk2NAc0/laA5iZEqPCK4UYRHPEVOgesWXSwMXeaIDuu2GUr+UedsZBq 3Z2EHIpGdfenRkyGpQCfLjBHD6CmLVNiiZG3zbl6egEiSI067FAhN13eAjaDxu0LzxDR Z2ro/qq8WPFOj3GULnUsAGm82LSLl6bB47zZL764lwXX8cNfBrXx9+A07aI+0ezEbIeZ 3LJ9b/tZ1Nz70+ci8YXazPM5pJTk6PGnx8ap5mOmSXWjG20KiEsI9UNzuzhJ5kXsEKun A93A== 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=my6K0NqjNxjwesMHeWH/nrBf3hS8ACbQAhuQ5qNjI9U=; b=aqOB+UtenJjSmBYtzPb44lUf0qfSdLlDi/3D6vam3kamVjECoMaCwvv9KFRfcrwz4N C2YBQkuK5vjXnzUnH6Jc7vIQk97IJAO7aKjgSfoz/iT14fXUr2oAc1SFZ08Ql8H9LrAm avtyVOhSBUUnazAE9L47LJakeTUGIvtr1W563lD3ii1m+5XqD06+SPFkaRic03FPxWcT e1SPNcEWfS198k3/1MF0w39lNpBFoIRhBlLo6iCqLBjfaUEbs7y2ir+L0EPgRuv/vJNO zGVrVNii7b3rrJnBxwRrrJonxLLrNa2cvxdxw+WQf/opsovXbV7vjiDWfhJTUe9aiiIP lehw== X-Gm-Message-State: AOAM530eNXfDfB58IL75+gZj+mZ7xA6P+lZxS4qtJ+rtPEj8EU+sl/o1 pBkeBvCkElQcgN9eSeWtBc4= X-Google-Smtp-Source: ABdhPJz0kwQk7cscAxNXjjxIj23ALFIM9Mf3WzW5tIIuCf+iZ8cIOS4Y9xCUuWx2kBQ1/Mf3iTZjkg== X-Received: by 2002:a7b:c145:: with SMTP id z5mr23909157wmi.164.1609707192192; Sun, 03 Jan 2021 12:53:12 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Huacai Chen , Jiaxun Yang , Wainer dos Santos Moschetta , Willian Rampazzo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 35/35] tests/acceptance: Test boot_linux_console for fuloong2e Date: Sun, 3 Jan 2021 21:50:21 +0100 Message-Id: <20210103205021.2837760-36-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210103205021.2837760-1-f4bug@amsat.org> References: <20210103205021.2837760-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) From: Jiaxun Yang The kernel comes from debian archive so it's trusted. Invoking the test can be done as follows: $ avocado --show=3Dapp,console run -t machine:fuloong2e tests/acceptance/ (1/1) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_mips6= 4el_fuloong2e: console: [ 0.000000] Initializing cgroup subsys cpuset console: [ 0.000000] Initializing cgroup subsys cpu console: [ 0.000000] Initializing cgroup subsys cpuacct console: [ 0.000000] Linux version 3.16.0-6-loongson-2e (debian-kernel= @lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-= 1+deb8u1 (2018-05-08) console: [ 0.000000] memsize=3D256, highmemsize=3D0 console: [ 0.000000] CpuClock =3D 533080000 console: [ 0.000000] bootconsole [early0] enabled console: [ 0.000000] CPU0 revision is: 00006302 (ICT Loongson-2) console: [ 0.000000] FPU revision is: 00000501 console: [ 0.000000] Checking for the multiply/shift bug... no. console: [ 0.000000] Checking for the daddiu bug... no. console: [ 0.000000] Determined physical RAM map: console: [ 0.000000] memory: 0000000010000000 @ 0000000000000000 (usa= ble) console: [ 0.000000] memory: 0000000004000000 @ 0000000010000000 (res= erved) console: [ 0.000000] memory: 0000000003ffffff @ 000000001c000001 (res= erved) console: [ 0.000000] Initrd not found or empty - disabling initrd console: [ 0.000000] Zone ranges: console: [ 0.000000] DMA [mem 0x00000000-0x00ffffff] console: [ 0.000000] Normal [mem 0x01000000-0x0fffffff] console: [ 0.000000] Movable zone start for each node console: [ 0.000000] Early memory node ranges console: [ 0.000000] node 0: [mem 0x00000000-0x0fffffff] console: [ 0.000000] Reserving 0MB of memory at 0MB for crashkernel console: [ 0.000000] Primary instruction cache 64kB, VIPT, direct mapp= ed, linesize 32 bytes. console: [ 0.000000] Primary data cache 64kB, 4-way, VIPT, no aliases,= linesize 32 bytes console: [ 0.000000] Unified secondary cache 512kB 4-way, linesize 32 = bytes. console: [ 0.000000] Built 1 zonelists in Zone order, mobility groupin= g on. Total pages: 16327 console: [ 0.000000] Kernel command line: printk.time=3D0 console=3Dtt= yS0 PASS (2.27 s) Signed-off-by: Jiaxun Yang Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Willian Rampazzo Reviewed-by: Huacai Chen Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20201224031750.52146-9-jiaxun.yang@flygoat.com> [PMD: Added command line example] Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/boot_linux_console.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index cc6ec0f8c15..fb41bb7144b 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -170,6 +170,27 @@ def test_mips64el_malta(self): console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) =20 + def test_mips64el_fuloong2e(self): + """ + :avocado: tags=3Darch:mips64el + :avocado: tags=3Dmachine:fuloong2e + :avocado: tags=3Dendian:little + """ + deb_url =3D ('http://archive.debian.org/debian/pool/main/l/linux/' + 'linux-image-3.16.0-6-loongson-2e_3.16.56-1+deb8u1_mips= el.deb') + deb_hash =3D 'd04d446045deecf7b755ef576551de0c4184dd44' + deb_path =3D self.fetch_asset(deb_url, asset_hash=3Ddeb_hash) + kernel_path =3D self.extract_from_deb(deb_path, + '/boot/vmlinux-3.16.0-6-loongs= on-2e') + + self.vm.set_console() + kernel_command_line =3D self.KERNEL_COMMON_COMMAND_LINE + 'console= =3DttyS0' + self.vm.add_args('-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.launch() + console_pattern =3D 'Kernel command line: %s' % kernel_command_line + self.wait_for_console_pattern(console_pattern) + def test_mips_malta_cpio(self): """ :avocado: tags=3Darch:mips --=20 2.26.2