Skip to contentSkip to conversation

config/raspberrypi3: use correct CPU

PATCH New Yann E. MORIN 3 participants 3 messages May 1, 2017 – May 2, 2017 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config/raspberrypi3: use correct CPU

We so far were using a Cortex-A7 as the CPU for the rpi3, as this was the closest we had available, in 32-bit mode, to the real CPU used in the rpi3.

But now we can also use the Cortex-A53 in 32-bit mode, so we use that, which makes for an optimised build (A53 has an improved instruction set, as compared to the A7).

Also drop the DTB overlay option, it defaults to 'y'.

Cc Martin Bark <[email protected]>
Cc Peter Seiderer <[email protected]>

---
Martin, Peter, you are the last ones to have touched this defconfig, and I lack a rpi3. Would you be kind enough to test this on your hw, please?

---
 configs/raspberrypi3_defconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
configs/raspberrypi3_defconfig +1 -3
index 1b2134e0bb..f5bfebcb83 100644
@@ -1,6 +1,5 @@
 BR2_arm=y
-BR2_cortex_a7=y
-BR2_ARM_EABIHF=y
+BR2_cortex_a53=y
 BR2_ARM_FPU_NEON_VFPV4=y
 
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
@@ -21,7 +20,6 @@ BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-cm3"
 
 BR2_PACKAGE_RPI_FIRMWARE=y
-BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS=y
 
 # Required tools to create the SD image
 BR2_PACKAGE_HOST_DOSFSTOOLS=y
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 config/raspberrypi3: use correct CPU

Hello,

Quoted 11 lines · Yann E. MORIN

We so far were using a Cortex-A7 as the CPU for the rpi3, as this was the closest we had available, in 32-bit mode, to the real CPU used in the rpi3.

But now we can also use the Cortex-A53 in 32-bit mode, so we use that, which makes for an optimised build (A53 has an improved instruction set, as compared to the A7).

Also drop the DTB overlay option, it defaults to 'y'.

[boot-tested: I can login using the HDMI console]

but see comment below...

[snip]

configs/raspberrypi3_defconfig line 2

Quoted 6 lines

+++ b/configs/raspberrypi3_defconfig

configs/raspberrypi3_defconfig +1 -2
@@ -1,6 +1,5 @@
 BR2_arm=y
-BR2_cortex_a7=y
-BR2_ARM_EABIHF=y
+BR2_cortex_a53=y

This patch is very similar to:
http://patchwork.ozlabs.org/patch/751142/

I applied 751142 and 757022 to separate git trees above 289137ed61. The resulting .config are the same (except for the sha1, of course).

Regards,
Ricardo

#2 lore raw

PATCH 1/1 config/raspberrypi3: use correct CPU

In reply to Yann E. MORIN

Hello,

Quoted 14 lines · Yann E. MORIN

We so far were using a Cortex-A7 as the CPU for the rpi3, as this was the closest we had available, in 32-bit mode, to the real CPU used in the rpi3.

But now we can also use the Cortex-A53 in 32-bit mode, so we use that, which makes for an optimised build (A53 has an improved instruction set, as compared to the A7).

Also drop the DTB overlay option, it defaults to 'y'.

Cc Martin Bark <[email protected]>
Cc Peter Seiderer <[email protected]>
Quoted 6 lines

---
Martin, Peter, you are the last ones to have touched this defconfig, and I lack a rpi3. Would you be kind enough to test this on your hw, please?

---
 configs/raspberrypi3_defconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com