Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1655929imc; Fri, 22 Feb 2019 08:51:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IYGLbL5ET6rwNPdriwqxGIZwhcGAxMcMtvWsg9PsScpcBDmbejhlpkyQRDkNvyca/S5UO/B X-Received: by 2002:a65:46cd:: with SMTP id n13mr4746886pgr.221.1550854304146; Fri, 22 Feb 2019 08:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550854304; cv=none; d=google.com; s=arc-20160816; b=DVYtB53WwiiRNcUWh6sO07hAUPY3OcffiVKUgH7ImgQ3Vix/+behcZcwpOE+k7QQRf BQRYusOgP0CcfuaIvp7gRx2Zkrr+y0x7BNsko6eaYNHF5L3yaa3y9cWN8PXCmamtzsq9 pobZHxUBcM4/QGoU2c4rAoe3Vfksq8Lb6TscwfRXw1JDmH2D4Pot8fEGK1CsapWj+i8i 5mF57EA+bJZjz+hJNRbir5CONlUjjEJyJ17SMfTOM3yWgy3QVJwrcvBTrtEpXVxlOKGM 78o1S3cXTw8v59bWvNuaZuFc32Bz537/E2Wz1WvkEAO/sA/WD9PVNDXlSG/fGfHEJ7WB 8gyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r+ptFvJ18N0UnrAzJS/StVWMlNtZYWTc8hvWf6ejkBs=; b=DJJaU9iPic2afi/wfe17MN5lkvoXtrFEFXfpRK9monTZ0qG24+i136et+OfqEwtI2T ljEqbvVF/XJphQLv7dgcg8XQqiqvejSCUw+zkupKdzGsr74TMFx3UR3UahTvYqVgH23v UsyZutZJ71DL9yiiFixnP2Fdq+WSpzoRLeGoZMN0Ke00Oxfb/pEcrY3mcS+QuBC3Enw1 2RYt5NwnoClZD2VE0hUbLLayKZYTNktXwUjzEjlawB4g/5ngcXpVaHjZk7++erd9by2l yTamfDNA/5j8+XxvG8Oy/ACSU786aKV5D8eQbDkW2hVgopl5ZvgA3F8FtZ3H+Dpc2XvN k9DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=We65ejXb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si1702437pls.330.2019.02.22.08.51.29; Fri, 22 Feb 2019 08:51:44 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=We65ejXb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727249AbfBVQuu (ORCPT + 99 others); Fri, 22 Feb 2019 11:50:50 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:37197 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfBVQus (ORCPT ); Fri, 22 Feb 2019 11:50:48 -0500 Received: by mail-vk1-f196.google.com with SMTP id 17so641172vkf.4 for ; Fri, 22 Feb 2019 08:50:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r+ptFvJ18N0UnrAzJS/StVWMlNtZYWTc8hvWf6ejkBs=; b=We65ejXbgJU3m0qEqWdZ5pkgpwzViF7OafNrhV1Fu+TJ6nid9Fq/eOuhV1Myp65GvN 9halQAbpVVdhVo4Lqnc7zataJNvTlR/h15ECHkgErA/AOLXa8gEQyxyu8XdP+T4zAMos RiyA9iEL3xBQNHbxaNElyxPKYjq+K/pPTpfWUcgEECihXGU9DNN3tYV+mj5OgH2NC++2 to8ReVSG3DJsozn7TzPJ/jQ1I6G2ZnNKRVGKBMAuGi+Fs0daqOBKXvWfUnBjqDHMk0bF z+f3lkKHnGgiVt/hesbj1ez1OoBegWQuKJmoTVGtIuex382aUQGKzLXW7UYyaxYL2bNT uaBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r+ptFvJ18N0UnrAzJS/StVWMlNtZYWTc8hvWf6ejkBs=; b=Ou/2uEDuDJtJaLKx5jWgu4OYiBvbR1dpF3OQIzCeEkIP6kVoCnkZAJ+TMW3J2IZ2/g UxsabNihz4msJxO290O2cAL4gbuqCAdMXNMv1Y0Tkr3Xf7iYOjAZ/KMbu6Vw1+UVbjox XIf03BprIaw3drrBkwQZr/gJg3/YS/wNkN7nnutxRVradkBaXghT/1HL9VB3aCfcA8ie i8h1z3Ia4OCD+LwEQCDhozQISWPoZoYKcLPHfqCIa9VuOiqNPULMryWteRTBctjGhaXl FUmU5CDI7AFhJu8N1WxdHNaL4+tp9CbSkU9pBjQQpJFCwP1AkhzUmsABFDA3CHhVv3Ui ce4g== X-Gm-Message-State: AHQUAuZc9rJmoN2AAFycSqcvsJCsh+YzFW/TAW9nGWmGgHT3IT6cNcyU BzgvoLCXaAWSAyuTsrtQ8IhcKGoOUCz2JPi5pRA= X-Received: by 2002:a1f:a986:: with SMTP id s128mr2668480vke.53.1550854246377; Fri, 22 Feb 2019 08:50:46 -0800 (PST) MIME-Version: 1.0 References: <20190222141059.GJ42419@lakrids.cambridge.arm.com> In-Reply-To: <20190222141059.GJ42419@lakrids.cambridge.arm.com> From: Pintu Agarwal Date: Fri, 22 Feb 2019 22:20:35 +0530 Message-ID: Subject: Re: arm64 Kernel build for qemu-system-aarch64 ? To: Mark Rutland Cc: open list , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kernelnewbies@kernelnewbies.org Content-Type: text/plain; charset="UTF-8" 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 7:41 PM Mark Rutland wrote: > > 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. oh thank you so much for your information. I was exactly looking for this option. Let me try it on Monday. Thanks