ARM: dts: Makefile: build arm64 device tree
PATCH 1/1 ARM: dts: Makefile: build arm64 device tree
From: Peng Fan <[email protected]>
To support aarch32 mode linux on aarch64 hardware, we need build the device tree, so include the arm64 device tree path.
---
V1:
This is just the device tree part. Besides this,
I am not sure whether need to create a standalone defconfig under arm32 for aarch32 mode linux on aarch64 hardware, or use multi_v7_defconfig. multi_v7_defconfig should be ok, need to include LPAE config.
arch/arm/boot/dts/Makefile | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/Makefile +2 -0
@@ -1341,3 +1341,5 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-opp-zaius.dtb \ aspeed-bmc-portwell-neptune.dtb \ aspeed-bmc-quanta-q71l.dtb + +subdir-y += ../../../../arch/arm64/boot/dts
Signature · 1 line
2.16.4
Arnd Bergmann
maintainerQuoted 8 lines · On Fri, Mar 13, 2020 at 4:38 AM <[email protected]> wrote:
From: Peng Fan <[email protected]>
To support aarch32 mode linux on aarch64 hardware, we need build the device tree, so include the arm64 device tree path.
Signed-off-by Peng Fan <[email protected]>---
There are a few other platforms with similar requirements, in particular bcm2837,
so maybe try doing it the same way they do, see arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
Quoted 5 lines
V1:
This is just the device tree part. Besides this,
I am not sure whether need to create a standalone defconfig under arm32 for aarch32 mode linux on aarch64 hardware, or usemulti_v7_defconfig.multi_v7_defconfigshould be ok, need to include LPAE config.
I'd rather not have a standalone defconfig for it, given that we have a single defconfig for all armv6/armv7/armv7hf i.mx machines.
There was a suggestion to use a fragment for enabling an LPAE multi_v7_defconfig recently, which I think is still under discussion but should also help here, both with imx_v6_v7_defconfig and multi_v7_defconfig.
Can you remind us why this platform needs LPAE? Is it only needed to support more than 4GB of RAM, or something else on top of that? Note that users that actually have 4GB or more on i.mx8 should really run a 64-bit kernel anyway, even if they prefer using 32-bit user space.
Turning on LPAE not only disables imx3 and imx5 but also the Cortex-A9 based imx6 variants.
Arnd
Quoted 8 lines · Arnd Bergmann
Quoted 6 lines · On Fri, Mar 13, 2020 at 4:38 AM <[email protected]> wrote:
From: Peng Fan <[email protected]>
To support aarch32 mode linux on aarch64 hardware, we need build the device tree, so include the arm64 device tree path.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Peng Fan <[email protected]>---
There are a few other platforms with similar requirements, in particular bcm2837,
so maybe try doing it the same way they do, seearch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
I think this was discussed over again, but it is odd to tightly couple DT and Linux arch.
Maybe, a long time solution might be to create a new directory, dts/
and collect all DT stuff into it.
dts/<vendor>/<board>.dts
Then, also move like follows:
Documentation/devicetree/bindings/
-> dts/Bindings/
include/dt-bingins/
-> dts/include/dt-bindings/
Quoted 24 lines
Quoted 6 lines
V1:
This is just the device tree part. Besides this,
I am not sure whether need to create a standalone defconfig under arm32 for aarch32 mode linux on aarch64 hardware, or usemulti_v7_defconfig.multi_v7_defconfigshould be ok, need to include LPAE config.I'd rather not have a standalone defconfig for it, given that we have a single defconfig for all armv6/armv7/armv7hf i.mx machines.
There was a suggestion to use a fragment for enabling an LPAE
multi_v7_defconfigrecently, which I think is still under discussion but should also help here, both withimx_v6_v7_defconfigandmulti_v7_defconfig.Can you remind us why this platform needs LPAE? Is it only needed to support more than 4GB of RAM, or something else on top of that? Note that users that actually have 4GB or more on i.mx8 should really run a 64-bit kernel anyway, even if they prefer using 32-bit user space.
Turning on LPAE not only disables imx3 and imx5 but also the Cortex-A9 based imx6 variants.
Arnd
Signature · 2 lines
Best Regards Masahiro Yamada
Hi Arnd,
Quoted 25 lines
Subject: Re: [PATCH] ARM: dts:
Makefile: build arm64 device treeQuoted 8 lines · On Fri, Mar 13, 2020 at 4:38 AM <[email protected]> wrote:
From: Peng Fan <[email protected]>
To support aarch32 mode linux on aarch64 hardware, we need build the device tree, so include the arm64 device tree path.
Signed-off-by Peng Fan <[email protected]>---
There are a few other platforms with similar requirements, in particular bcm2837, so maybe try doing it the same way they do, see
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtsQuoted 5 lines
V1:
This is just the device tree part. Besides this, I am not sure
whether need to create a standalone defconfig under arm32 for aarch32 mode linux on aarch64 hardware, or usemulti_v7_defconfig.
multi_v7_defconfigshould be ok, need to include LPAE config.I'd rather not have a standalone defconfig for it, given that we have a single defconfig for all armv6/armv7/armv7hf i.mx machines.
Quoted 6 lines
There was a suggestion to use a fragment for enabling an LPAE
multi_v7_defconfigrecently, which I think is still under discussion but should also help here, both withimx_v6_v7_defconfigandmulti_v7_defconfig.Can you remind us why this platform needs LPAE? Is it only needed to support more than 4GB of RAM, or something else on top of that?
Currently I only tested LPAE enabled arm32 kernel, I'll give a try with LPAE disabled later.
Thanks,
Peng.
Quoted 7 lines
Note that users that actually have 4GB or more on i.mx8 should really run a 64-bit kernel anyway, even if they prefer using 32-bit user space.
Turning on LPAE not only disables imx3 and imx5 but also the Cortex-A9 based imx6 variants.
Arnd
Hi Arnd,
Quoted 32 lines
Subject: RE: [PATCH] ARM: dts:
Makefile: build arm64 device treeHi Arnd,
Quoted 22 lines
Subject: Re: [PATCH] ARM: dts:
Makefile: build arm64 device treeQuoted 8 lines · On Fri, Mar 13, 2020 at 4:38 AM <[email protected]> wrote:
From: Peng Fan <[email protected]>
To support aarch32 mode linux on aarch64 hardware, we need build the device tree, so include the arm64 device tree path.
Signed-off-by Peng Fan <[email protected]>---
There are a few other platforms with similar requirements, in particular bcm2837, so maybe try doing it the same way they do, see
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtsQuoted 5 lines
V1:
This is just the device tree part. Besides this, I am not sure
whether need to create a standalone defconfig under arm32 for aarch32 mode linux on aarch64 hardware, or usemulti_v7_defconfig.
multi_v7_defconfigshould be ok, need to include LPAE config.Quoted 6 lines
I'd rather not have a standalone defconfig for it, given that we have a single defconfig for all armv6/armv7/armv7hf i.mx machines.
There was a suggestion to use a fragment for enabling an LPAE
multi_v7_defconfigrecently, which I think is still under discussion but should also help here, both withimx_v6_v7_defconfigand
Quoted 7 lines
multi_v7_defconfig.Quoted 3 lines
Can you remind us why this platform needs LPAE? Is it only needed to support more than 4GB of RAM, or something else on top of that?
Currently I only tested LPAE enabled arm32 kernel, I'll give a try with LPAE disabled later.
Tested with imx_v6_v7_defconfig without LPAE, smp boots up with nfsroot.
Thanks,
Peng.
Quoted 11 lines
Thanks,
Peng.Quoted 8 lines
Note that users that actually have 4GB or more on i.mx8 should really run a 64-bit kernel anyway, even if they prefer using 32-bit user space.
Turning on LPAE not only disables imx3 and imx5 but also the Cortex-A9 based
imx6 variants.Arnd