From patchwork Tue Mar 8 12:19:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 12773609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D544C433EF for ; Tue, 8 Mar 2022 12:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1tAouoaHMYGKoHGCI/bbvi0MYMM3wkIJ8SyTwdlfeec=; b=nLDlCMuQa8+L9k 0RK9tneaf75WQ6Z8O1fPB5KlPt4Xxqrvrj/IMFNrqTc3nTcbDhnca9SwUF6YJlcxuJfa2/GnEMBwB 5WxE7N2aC25i3CfRfPtYJSbqRsry3P3ll4sBj5llAhn/vySjlMjFvsebr76TByrAuD9bPXLEYJmLf hxuoV/5iYfuLxSCK+hd3r+cEJymxuhHmYNpMwUH9jFTlnD27b0WaF6S0K6oReH2WyFaUZotI+9SLr aZfiwPPHVgbmB7nFtmvuMndSNU5334DMGgUl2353aoFMo7iWuIq4LRmBXY3zFVFIz4c1HaBVm9BnQ UGlxA5EcJikzdIZcX+QQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRYoe-004K0Q-5n; Tue, 08 Mar 2022 12:19:48 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRYoa-004Jz0-6E for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2022 12:19:46 +0000 Received: by mail-lf1-x132.google.com with SMTP id r4so6192419lfr.1 for ; Tue, 08 Mar 2022 04:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a949UFK8TIX5ZVNaSFCn5mxBv9wqXzD6DnUk1Klh2s4=; b=z8FevG9uFrB9OKUKwLSr+Ahd73o/R4ouLWoQxUP7MQ/b7g0dnZyHUNAzPUYYIDtOp8 Zj8Sn6ersZ/yAoiL9lN+qwF6V2vQch2ZYBXFf+OxWKdijCWfVDBFLPLeICBcNz9wyUC2 HXED8BqYlL7Ggio7Zq9iVVqwvpn6p9v/o04TjbBHTOc02Tc1Be8viNoep7F9kNAPgMoW /VROfFUN0VQYOUDobV7wtBQnuo1GLsi/SASx6GFmiKQEi+WwTEc0whI7h3mh6rkA6aGG FUD27pTvn3Sek5MsJwtNx0NdsXKmcvZUhSKwDcWZLnMlchR1i2Mwq5Afdq5ZhNQz335i Yc0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=a949UFK8TIX5ZVNaSFCn5mxBv9wqXzD6DnUk1Klh2s4=; b=AcQaCO+rI67aBoJ2YZYr4pO4cgQuOoZ/9UPeU9+dljrCqiJOgAgNtQAr9PIJwPMryt oV2XiachZD5DM+cir+k0wLfoUavvWY7+SGVyFcVV5INLxQyfCFIYOh090uUz/NiEpDCG AdGv+Oq1rWDMwn+Hl4wQ3kKex5/Axw+dzhWFs3zbzKV05EkiLmM33PFvOqR7gVmF/EhF tPcWHMEV0af58qBc3K2qW7lT/tMsLip5PsA5bs8qDgqaGREKbUhpud8v3fjn3Jl5PXXV Rv4nrTNi4MS1GymRjQwG2/83yPHxaCUYVoK25V6dc4+qsk4RC6/HqYRUtMaeYTSXJStg qJTg== X-Gm-Message-State: AOAM530SB9rUz2aZBUIe8ygequiQCnM3JoekKkGQlcdKOvBsZP17fo/Y dKXkmVeGrgc1VCPUk4v8nopaBQ== X-Google-Smtp-Source: ABdhPJzb9sc1puN0GmA4MXgyXFDkw9QbWxlgmVLXEL8OuRSoHRpzGmp0ScrueQEtlO7DiR/XOibqZw== X-Received: by 2002:a19:8c50:0:b0:448:3d35:c060 with SMTP id i16-20020a198c50000000b004483d35c060mr2304403lfj.689.1646741981449; Tue, 08 Mar 2022 04:19:41 -0800 (PST) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id j8-20020a196e08000000b0044313d10b4dsm3450250lfc.14.2022.03.08.04.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 04:19:41 -0800 (PST) From: Anders Roxell To: soc@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Anders Roxell Subject: [PATCH] arm: multi_v5: enable configs for versatile Date: Tue, 8 Mar 2022 13:19:33 +0100 Message-Id: <20220308121933.3967868-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220308_041944_281072_D1084563 X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make it possible to boot a versatile machine in qemu. Boot command: /usr/bin/qemu-system-arm -cpu arm926 -machine versatilepb \ -nographic -nic none -m 256M -monitor none -no-reboot \ -kernel zImage -dtb versatile-pb.dtb \ -append "console=ttyAMA0,115200 rootwait root=/dev/vda" \ -drive armv5_rootfs.ext4,if=none,format=raw,id=hd0 \ -device virtio-blk-pci,drive=hd0 When doing build and boot testing, it makes more sense to enable arch vesatile, serial amba_pl011 and virtio (mmio|blk|pci) to multi_v5_defconfig to make that boot out of the box, with a modern virtio (mmio|blk|pci) driver. Using the above commandline. Another way to build and boot would be to use tuxmake/tuxrun. Tuxmake [1] builds the kernel, and Tuxrun [2] boots the kernel in qemu. Both projects uses podman to do the build/tests inside. This makes both project a good tool to use when finding a regression that you would like someone else to reproduce with the exact same setup. tuxmake --runtime podman --target-arch arm \ --toolchain gcc-11 --kconfig multi_v5_defconfig tuxrun --tuxmake ~/.cache/tuxmake/builds/3072 --device qemu-armv5 [1] https://tuxmake.org/ [2] https://tuxrun.org/ Signed-off-by: Anders Roxell --- arch/arm/configs/multi_v5_defconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/configs/multi_v5_defconfig b/arch/arm/configs/multi_v5_defconfig index fe8d760256a4..db5b52e77b94 100644 --- a/arch/arm/configs/multi_v5_defconfig +++ b/arch/arm/configs/multi_v5_defconfig @@ -85,6 +85,8 @@ CONFIG_NET_PKTGEN=m CONFIG_CFG80211=y CONFIG_MAC80211=y CONFIG_PCI_MVEBU=y +CONFIG_ARCH_VERSATILE=y +CONFIG_PCI_VERSATILE=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_IMX_WEIM=y @@ -111,6 +113,9 @@ CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not set CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=m +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_MMIO=y +CONFIG_VIRTIO_BLK=y CONFIG_CHR_DEV_SG=m CONFIG_ATA=y CONFIG_SATA_AHCI=y @@ -144,6 +149,8 @@ CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_ASPEED_VUART=m CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_ATMEL=y CONFIG_SERIAL_ATMEL_CONSOLE=y CONFIG_SERIAL_ATMEL_TTYAT=y