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

Marie Maurer marie.maurer at pixida.de
Tue Aug 25 07:53:39 UTC 2020


Hello,

as requested:

pi at raspberrypi:~/buildroot/buildroot-2020.08-rc2 $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
pi at raspberrypi:~/buildroot/buildroot-2020.08-rc2 $

Best regards,

Marie

-----Ursprüngliche Nachricht-----
Von: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Gesendet: Dienstag, 25. August 2020 09:50
An: Marie Maurer <marie.maurer at pixida.de>
Cc: Aaron Dewes <aaron.dewes at web.de>; buildroot at busybox.net
Betreff: Re: [Buildroot] Building for Raspberry Pi on Pi (in Ubuntu WSL same is working)

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


Pixida GmbH
Ungererstr. 129
80805 München

Amtsgericht München - HRB 173520
Geschäftsführer Johann Neubauer, Panagiota Dimou



www.pixida.de<http://www.pixida.de/>

[PIXIDA]



Unsere Datenschutzgrundsätze<http://www.pixida.com/grundsaetze.html>



More information about the buildroot mailing list