[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a19FPc_=RK3_NthZEhryx6t1PmFvj2h_Gzo2M2rJEehhg@mail.gmail.com>
Date: Fri, 24 Jan 2020 17:44:30 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Adam Ford <aford173@...il.com>
Cc: Peng Fan <peng.fan@....com>, Abel Vesa <abel.vesa@....com>,
Anson Huang <anson.huang@....com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"s.hauer@...gutronix.de" <s.hauer@...gutronix.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
dl-linux-imx <linux-imx@....com>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Leonard Crestez <leonard.crestez@....com>,
"festevam@...il.com" <festevam@...il.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] soc: imx: Makefile: only build soc-imx8 when CONFIG_ARM64
On Fri, Jan 24, 2020 at 4:54 PM Adam Ford <aford173@...il.com> wrote:
> On Wed, Jan 15, 2020 at 4:39 AM Arnd Bergmann <arnd@...db.de> wrote:
> > On Wed, Jan 15, 2020 at 3:38 AM Peng Fan <peng.fan@....com> 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
Powered by blists - more mailing lists