Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp969778ybl; Fri, 24 Jan 2020 12:56:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyCpwmQYTAscdH8TY92xeqKf9UEgVRrsYkaHyc777YGa+x2QfJM01+3J3IRJiyDyIn6LENQ X-Received: by 2002:a05:6830:2009:: with SMTP id e9mr4205471otp.160.1579899371199; Fri, 24 Jan 2020 12:56:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899371; cv=none; d=google.com; s=arc-20160816; b=czbZPbrXJXd6rb/qWRrN2b3vkwOPinx8pJGShMQnauGzqdY/KG/eX1wHQvtyiW0m2L UE041N6OIehc0uOcD9bNFyVji2JckMuB6TK/+O/rRJRcXsX5jl4s9HXUyKJ/ky7m4Cwx YKMTbTKO1pMUA9KeLQNZfdqKFvjcETMg721FgN+BNnpafSNE3GF7uxgmOxMDA2il5XZC Slt82WqmlnwtsQS3In+5DC1OkJmS53ufcHBlEvN80qh+zbMSaC1eDpSlC2D4Ui5HSrTT vvLWMzneElOah+dFH2t/5fZfKfOzh9QRiCAZdrBV1ECmr4Q0n1UDAQHg2DTPuq44FfUG EqdA== 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; bh=qomWiA3bLZGIU78n26yAOL/pUJMRJRKUojYeGENlUtM=; b=ZrRDHonGhQEOXLTe4x46Y8pizSPrlv62JqehVQUiATLNN9xBOqFUa0i/aVa8IJd/d0 qMrD9G3cXWbLReWMBqu8x4NlvR2nprxleZFgoOuL4M1hZJTVdYWlEYAyXHTvZdH0v76a JqyElUqrY1UDzI790xMzsioh7KbuBPTiLKYPhutRbFlrB3x3T5zAiCnCngdjbsw+bOTo Cdwuu5a2qDxuMaQPJzb75rjeYAS8l1Qg68ZajGvUpZos1i8b04TXNy0WLoZ6Gd1T5aGH U0kdeaDD2oxsOrLnjTgKNvl3rRSe3PaOI33q1VNOymnX8n7rvWEo3tOVK8i+FS57STHZ 52nA== 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 q6si3265433oth.26.2020.01.24.12.55.59; Fri, 24 Jan 2020 12:56: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 S2388953AbgAXQou (ORCPT + 99 others); Fri, 24 Jan 2020 11:44:50 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:34419 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388149AbgAXQot (ORCPT ); Fri, 24 Jan 2020 11:44:49 -0500 Received: from mail-qv1-f42.google.com ([209.85.219.42]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1M42zo-1iv24d2g1g-0007eb for ; Fri, 24 Jan 2020 17:44:47 +0100 Received: by mail-qv1-f42.google.com with SMTP id dp13so1196585qvb.7 for ; Fri, 24 Jan 2020 08:44:47 -0800 (PST) X-Gm-Message-State: APjAAAVYSHHm0rKFRCgTQG9sv9cAm+epx3Uu4g4aBntl3NPp6xZwqHlT aDO++NcFOWR74SKa57HJYNGjML+9bfsxYqASoZg= X-Received: by 2002:a0c:8e08:: with SMTP id v8mr3741766qvb.4.1579884286531; Fri, 24 Jan 2020 08:44:46 -0800 (PST) MIME-Version: 1.0 References: <1578989048-10162-1-git-send-email-peng.fan@nxp.com> <20200114081751.3wjbbnaem7lbnn3v@pengutronix.de> In-Reply-To: From: Arnd Bergmann Date: Fri, 24 Jan 2020 17:44:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when CONFIG_ARM64 To: Adam Ford Cc: Peng Fan , Abel Vesa , Anson Huang , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Leonard Crestez , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:aZ8+IY535Qz09L1Pe9qksn7zMhv31SOa0t1GTq28E7+GW/2giM0 LxVwCmmgMAa75dcqIVyN62n2g0uPqjmW+qOOca+O3mBGB779SGz5exD9g4Y2RK0gh2R8XqD UWX+veNuHrJmTUVDuWmqveEMV3OalSDmP864IFtjLABsaMv61ViTNCvRXwANYkKPLxNSd+1 EQy36gjTNEnLsiCnRcqWw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vQ85UnL42NY=:AOQHpmVd3VBc5oQIkDSW4p NcpdWHb4U3ZlZQHuJPoxd4mzi3ijtjwoISDOVwXBg4ivq1RhLT4COkbYKxsrI/1PFKq3jtNvN un5MLp68zAuUf250HVNzBcMNkYw/B0iqbYtVBCSOHn4yc6O3OmqM6t251qAM4EtD/1hBUQFmt 15rEy2O5YTJaP8nzLM26skTZZ5LgA9pt5LuCRTGGModVAxPi0t4B1+tS3flrUBuDI6agoazpQ srRggeA6oTIVB2sVRmG1XTn2sBWfiudlGt3iycSLaesqHdAoNCqApbYKgpXfazRQD+Vc+a/NI vEBrySzmTHg6YSRp5sFzF702RkFHeVjMjE/cH67CA2ey36j7mQpBoqq8aV4z6u/BpN95ZvyY1 0PkGMu0uq7DrRzhtjFSalYky6AjRc4eLL9IZrvCy7HSe3Kh4CoszjSdIQ9HmvpeRjy9bZlBJH D9etvoGsIBuuMT987eQJrNarxDOLEH6/rBE7AuUVFXelzRMspZzupMbHvHnhR8RwdP7La8PIs x3Yx8Fmz3EX68OomrnyJgFOTn+UVUdZ8Rj6N8c9JGsS9AJ92B3ZbejsOIMonBaWSxk7pj9gqT dgqzbihgu0LvYz6Dz0v9TRTrerviR8ib2sGlp2dLdKeQbDxhM53ULY4DBkx0cBZyPhog8zYlb cAse9v+A+8y/NpnTVsVey1kZAeTAMJm7O6vZpXIQKjvNN9Zv8hMFNOwmsIrIKJK5vVCAcTAkT B4QdYtP3Up4zgHZ23aBdKXG2GmpewXOy8h5D/v0z855RxFjOogt2xomInU3KGtvPwcZ1vJdel S5D1VtAyBJOnxy42stcSl63x+J6P5c2rFQnwXnnO0MdXq9b05M= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 24, 2020 at 4:54 PM Adam Ford wrote: > On Wed, Jan 15, 2020 at 4:39 AM Arnd Bergmann wrote: > > On Wed, Jan 15, 2020 at 3:38 AM Peng Fan wrote: > > I would be interested in learning more about running the i.MX8M in > 32-bit mode. I'm looking at running Linux on a device with < 1GB of > RAM, so having 32-bit pointers and instructions would be preferred. > My preference would be to run as ARMv7 for migration purposes, but I'm > open to alternatives. > > Does anyone have any suggestions on where I might find some generic > stuff for either iMX8M or generic ARMv8 docs for doing something like > this? By far the easiest way is to just run a 64-bit kernel and 32-bit user space, which should give you 90% of the space savings. This requires no further work, just pick the 32-bit distro of your choice. The get the last few percent of memory savings and run a 64-bit kernel, at least a bit of porting effort should be needed. In principle you should be able to pass the dtb file for your machine to a 32-bit kernel, but all drivers have to be there and you need to adjust a few dependencies to allow 32-bit builds such as config CLK_IMX8MM bool "IMX8MM CCM Clock Driver" - depends on ARCH_MXC && ARM64 + depends on ARCH_MXC && ARM64 help Build the driver for i.MX8MM CCM Clock Driver and then there will likely be a few bugs. Arnd