Linaro Toolchain for RPI and OABI Issues
Hello,
I am new on Buildroot and I am trying to build linux with buildroot for rpi zero w.
I have successfully build a first version using the buildroot toolchain but now I would like to use the rpi's one.
(https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64)
My host is running Ubuntu 16.04 on a 64-btis system.
The problem is that when building I get :
"External toolchain uses the unsuported OABI"
I am confused. I thought the rpi's toolchain is using the eabihf, is not?
Find attached my _defconfig.
Thanks in advance,
Rafa cp4_defconfig.cp4_defconfig
<http://buildroot-busybox.2317881.n4.nabble.com/file/t2824/cp4_defconfig.cp4_defconfig>
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Hello rscr,
Quoted 15 lines · rscr
Hello,
I am new on Buildroot and I am trying to build linux with buildroot for rpi zero w.
I have successfully build a first version using the buildroot toolchain but now I would like to use the rpi's one.
(https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64)My host is running Ubuntu 16.04 on a 64-btis system.
The problem is that when building I get :
"External toolchain uses the unsuported OABI"
Quoted 8 lines
I am confused. I thought the rpi's toolchain is using the eabihf, is not?
Find attached my
_defconfig.Thanks in advance,
Rafa cp4_defconfig.cp4_defconfig
<http://buildroot-busybox.2317881.n4.nabble.com/file/t2824/cp4_defconfig.cp4_defconfig>
Could not reproduce your build problem using your given defconfig, did a fresh checkout of
$ cd my_toolchain_patch $ git clone https://github.com/raspberrypi/tools.git
And adjusted
BR2_TOOLCHAIN_EXTERNAL_PATH="<my_toolchain_path>/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64"
Builds fine here (openSUSE Tumbleweed)
Regards,
Peter
Quoted 13 lines
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Hi Peter,
Keeps not working.
I have changed to new recommended cross-compiler for x64 (arm-rpi-4.9.3-linux-gnueabihf) and I get the same error too.
Thanks
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Hello rscr,
Quoted 6 lines · rscr
Hi Peter,
Keeps not working.
I have changed to new recommended cross-compiler for x64 (arm-rpi-4.9.3-linux-gnueabihf) and I get the same error too.
Are your sure buildroot uses your configured compiler?
Take a look at toolchain/helpers.mk and the check for OABI, the check is (simpliefied):
$ <yout_path_to_toolchain>/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc -v 2>&1 | grep ^Target | cut -f2 -d ' ' arm-bcm2708-linux-gnueabi
$ echo arm-bcm2708-linux-gnueabi | grep -E 'eabi(hf)?$$' arm-bcm2708-linux-gnueabi
Regards,
Peter
Quoted 11 lines
Thanks
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Hi Peter,
I have checked if the toolchain was correctly installed and I have used the checks that you suggested and I got this:
<http://buildroot-busybox.2317881.n4.nabble.com/file/t2824/Linaro_rpi_toolchain.jpg>
The path that I am using on BR2_TOOLCHAIN_EXTERNAL_PATH is:
~/rcr/tools/toolchains/linaro/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf
Maybe I should have said this before, but I am using Ubuntu in dual boot mode, along with Windows 10. Could this affect?
Kind Regards,
Rafa
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
Hello rscr,
Quoted 6 lines · rscr
Hi Peter,
I have checked if the toolchain was correctly installed and I have used the checks that you suggested and I got this:
<http://buildroot-busybox.2317881.n4.nabble.com/file/t2824/Linaro_rpi_toolchain.jpg>
Looks good....
Quoted 4 lines
The path that I am using on
BR2_TOOLCHAIN_EXTERNAL_PATHis:~/rcr/tools/toolchains/linaro/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf
Last try, use a absolute path here e.g. /home/<your login>/rcr/tools/toolchaines/linaro/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf
Quoted 3 lines
Maybe I should have said this before, but I am using Ubuntu in dual boot mode, along with Windows 10. Could this affect?
Should not...
Regards,
Peter
Quoted 14 lines
Kind Regards,
Rafa--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Hi Peter,
With BR2_TOOLCHAIN_EXTERNAL_PATH = /home/<your login>/rcr/tools/toolchaines/linaro/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf worked!
Thanks a lot,
Rafa
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/