Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1562590imp; Fri, 22 Feb 2019 06:12:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRJ7ehrTKum6VW3rMxWUA6zWpTSY6QmoZSTYskyPWQEu3WaOtAUMtKqC1XUD2Fy7Vfl+9d X-Received: by 2002:a62:6383:: with SMTP id x125mr4324116pfb.239.1550844731675; Fri, 22 Feb 2019 06:12:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550844731; cv=none; d=google.com; s=arc-20160816; b=NQPUnevzA4KoyLiEYC4f87lrNqaalaXL3HlVrec6w+9XqQM+eJ7Vy8EYAPijgDKeFo VuRobeG9c80ZnZwNe24SNOvdbbcYbWxUAZaWRNf0K+rqOxEMEO64WAL4mRWwURxBxiNP OYGTE5q88uocNEBbAgg+uwTysgNLZGFQT8hPLaH9JR7lyVt7f+R75xFVUK7r0jiIvdf+ aiLowc7bBh6/rwucCS4VRURQxvZ85IkzrJqEunYeL9jyYvPIrDaJOU/iiKKHWmLvixZ5 51f/OrIXNffu5rJUkF4fkajuD2P4oS4Gl/7LXRc4Cmg/SY0Glg3Eog5aLMWjMvbtaxfY 2N9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kL+UqODq0s6IHuwbBxnYwp2kliRubXNtRPCc6QAA08c=; b=NxmZxwm0nFEmKDq+tHneFFbzwC8oG0FoTSJS2O+9amPY327zdsUkk8j1MQn2DOcBRy gGt+gZffAcanQ2Fgq4DFGQfhFgxcU7S/0k68gheaZuHVaxMbaJsRBo2G0n7HCeVCdW2M Vff83Co/snmWm+U8WBwaWOO2GcvDVzONsy5PJFd2mvMdMvGUDDwuUjRcAczeTZxRiffx ZF7oOFY97iQGZ5VkHpmJT/vh8D7P5hVuvPcYiGajSuXey5L+4aoNrq+wxCHbwaFUYc5s PuApS+xByJrrFo37cBX3SZkUIp5NeTpMNl3rfp/stCkwvbcCHUCpxvux8YBwSbkFwPdr nNlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si1444940pfb.191.2019.02.22.06.11.56; Fri, 22 Feb 2019 06:12:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbfBVOLD (ORCPT + 99 others); Fri, 22 Feb 2019 09:11:03 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33092 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfBVOLD (ORCPT ); Fri, 22 Feb 2019 09:11:03 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D8DF1A78; Fri, 22 Feb 2019 06:11:02 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C82FA3F690; Fri, 22 Feb 2019 06:11:01 -0800 (PST) Date: Fri, 22 Feb 2019 14:10:59 +0000 From: Mark Rutland To: Pintu Agarwal Cc: open list , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kernelnewbies@kernelnewbies.org Subject: Re: arm64 Kernel build for qemu-system-aarch64 ? Message-ID: <20190222141059.GJ42419@lakrids.cambridge.arm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 22, 2019 at 07:17:00PM +0530, Pintu Agarwal wrote: > Hi All, Hi, > I want to build Linux Kernel 4.20 for arm64 and use it on qemu-arm64. > I see that there is a defconfig available in arch/arm64/configs/defconfig > But I am not sure whether it will work for qemu-arm64, and by default > which machine type is supported. > > I already have working setup for qemu-arm for both versatile and > vexpress machine. There is already a defconfig available for these > under arch/arm. > So I can build the kernel for it. > > But, whether these defconfig are supported for arm64 ? > If anybody have setup for qemu-arm64 kernel, please share the steps. > About rootfs, I am planning to use the arm32 version of busybox itself. The arm64 defconfig is intended to work for all platforms. I use that with qemu's '-machine virt'. Assuming you use virtio-net and virtio-block, no additional drivers are required. For example, I can boot a defconfig kernel using the followign QEMU options: qemu-system-aarch64 \ -m 2048 -smp 4 \ -net nic \ -net user,host=10.0.2.10,hostfwd=tcp::65022-:22 \ -nographic \ -no-reboot \ -machine virt,accel=kvm,gic_version=host \ -cpu host \ -hda ${FILESYSTEM} \ -snapshot \ -kernel ${KERNEL} \ -append "earlycon root=/dev/vda panic_on_warn" Thanks, Mark.