[Buildroot] buildroot support for OrangePI PC

Eelco Chaudron echaudron at xiot.nl
Sun Dec 20 18:17:59 UTC 2015


Hi Thomas,

Thanks for pointing this out...

I wanted to do some bench marking in big endian to see performance 
difference in a heavy networking environment.
However when I saw the endian errors I "thought" I reverted back, and 
retried. But for some reason make savedefconfig, did not reflect the 
change, and I did not pay attention to the output :(

Doing a make distclean, and reconfigure, it worked fine without any 
build errors.


//Eelco
> Thomas Petazzoni <mailto:thomas.petazzoni at free-electrons.com>
> December 20, 2015 at 13:45
> Dear Eelco Chaudron,
>
>
> Seems like you are hitting bug
> https://sourceware.org/bugzilla/show_bug.cgi?id=16698. It seems to be
> fixed in the 2.24.90 snapshot, though it is not clear which specific
> commit fixed it, so it's hard to backport it.
>
> Can you try with with binutils 2.25 ?
>
> Also, you have selected ARM big endian as the architecture, which is
> almost certainly not what you want. If you're new to ARM and have no
> reason to use big endian, then use ARM little endian, which is what
> 99.9999% of the people use.
>
> Best regards,
>
> Thomas
> Eelco Chaudron <mailto:echaudron at xiot.nl>
> December 20, 2015 at 13:32
> Hi All,
>
> I decided to give this a shot, but I already get stuck at doing the 
> u-boot part...
> Looks like some toolchain issue, so before I dig into it more let me 
> see if some one here has ran into something similar.
>
> This is my config:
>
> BR2_armeb=y
> BR2_cortex_a7=y
> BR2_ARM_EABI=y
> BR2_ARM_FPU_NEON_VFPV4=y
> BR2_TARGET_UBOOT=y
> BR2_TARGET_UBOOT_BOARDNAME="orangepi_pc"
> BR2_TARGET_UBOOT_CUSTOM_GIT=y
> BR2_TARGET_UBOOT_CUSTOM_REPO_URL="http://git.denx.de/u-boot.git"
> BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="4832e17787acb29734d895751bc7a594908aecc6"
> BR2_TARGET_UBOOT_SPL=y
>
> It all goes wrong when linking u-boot. Here are some snippets from the 
> output:
>   LD      u-boot
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> Warning: size of symbol `invalidate_dcache_range' changed from 168 in 
> arch/arm/cpu/armv7/built-in.o to 4 in arch/arm/lib/built-in.o
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> Warning: size of symbol `enable_caches' changed from 4 in 
> arch/arm/cpu/armv7/built-in.o to 12 in arch/arm/lib/built-in.o
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> Warning: size of symbol `arm_init_before_mmu' changed from 40 in 
> arch/arm/cpu/armv7/built-in.o to 4 in arch/arm/lib/built-in.o
> ...
> ...
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> /home/echaudron/buildroot_opi/output/host/usr/lib/gcc/armeb-buildroot-linux-uclibcgnueabi/4.9.3/libgcc.a(_dvmd_lnx.o): 
> compiled for a big endian system and target is little endian
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> failed to merge target specific data of file 
> /home/echaudron/buildroot_opi/output/host/usr/lib/gcc/armeb-buildroot-linux-uclibcgnueabi/4.9.3/libgcc.a(_dvmd_lnx.o)
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
> ...
> ...
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
> /home/echaudron/buildroot_opi/output/host/usr/bin/armeb-buildroot-linux-uclibcgnueabi-ld.bfd: 
> BFD (GNU Binutils) 2.24 assertion fail elf32-arm.c:12387
> Segmentation fault (core dumped)
> Makefile:1193: recipe for target 'u-boot' failed
> make[2]: *** [u-boot] Error 139
>
> When I build the same u-boot version using the ubuntu provided 
> "arm-linux-gnueabihf-" toolchain it works fine.
> I'm using the following to build it;
>
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- orangepi_pc_defconfig
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>
> Any ideas?
>
> //Eelco
>
>
>
> Arnout Vandecappelle <mailto:arnout at mind.be>
> December 18, 2015 at 23:23
>
> Not that I know of. But it should be quite similar to the cubieboard I 
> think.
>
> If you make a defconfig for it, consider using genimage rather than a 
> custom
> script like mkcubiecard.
>
> Regards,
> Arnout
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151220/1044dbef/attachment.html>


More information about the buildroot mailing list