[Buildroot] Building for Raspberry Pi on Pi (in Ubuntu WSL same is working)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 25 07:49:42 UTC 2020


Hello,

On Tue, 25 Aug 2020 07:43:06 +0000
Marie Maurer <marie.maurer at pixida.de> wrote:

> it is a Raspberry Pi Compute Module 3 Plus. This is the output during startup:
> 
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Linux version 5.4.51-v7+ (dom at buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1333 SMP Mon Aug 10 16:4
> 5:19 BST 2020
> [    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
> [    0.000000] CPU: div instructions available: patching division code
> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
> [    0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 3 Plus Rev 1.0
> [    0.000000] Memory policy: Data cache writealloc
> [    0.000000] Reserved memory: created CMA memory pool at 0x37400000, size 64 MiB
> [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
> [    0.000000] On node 0 totalpages: 242688
> [    0.000000]   Normal zone: 2133 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 242688 pages, LIFO batch:63
> [    0.000000] percpu: Embedded 20 pages/cpu s49856 r8192 d23872 u81920
> [    0.000000] pcpu-alloc: s49856 r8192 d23872 u81920 alloc=20*4096
> [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
> 
> pi at raspberrypi:~/buildroot/buildroot-2020.08-rc1 $ uname -a
> Linux raspberrypi 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux

OK, this is really an ARMv7 system. Could you also provide the output
of "gcc -v" on this platform ?

> First it was just a mistake, I took the wrong windows to compile buildroot
> and thought if this is the only bug, it is worth reporting.

I think in general there is no reason for Buildroot to not work on
non-x86 systems. We even used to have an autobuilder running on a
PowerPC64 system. However, since using Buildroot on non-x86 systems is
not that common, it is pretty likely that there will be a few issues
here and there, like you're experiencing.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list