U-boot for Banana Pi
TooMeeK Admin
maps at toomeek.waw.pl
Wed Aug 13 10:40:57 UTC 2014
Thank You for fast response :)
root at freebsd:/usr/src/u-boot-sunxi # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
it is in my path
I've tried this already earlier:
gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes clean
gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes
Bananapi_config
gmake -j4 ARCH=arm CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes
But didn't know about this HOSTCC, so:
root at freebsd:/usr/src/u-boot-sunxi # echo $HOSTCC
HOSTCC: Undefined variable.
but if:
set HOSTCC=gcc
then:
root at freebsd:/usr/src/u-boot-sunxi # gmake -j4 ARCH=arm
CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes
GEN include/autoconf.mk.dep
GEN include/autoconf.mk
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC scripts/basic/fixdep
gcc: not found
gmake[1]: *** [scripts/basic/fixdep] Error 127
gmake: *** [scripts_basic] Error 2
gmake: *** Waiting for unfinished jobs....
GCC not found.. because I've deleted symlinks.
> You don’t need these symlinks. To use arm-eabi-gcc as your cross
> compiler, you want to use gmake … CROSS_COMPILE=arm-eabi- ... and make
> sure /usr/local/bin is part of your PATH. U-Boot build scripts use
> ${CROSS_COMPILE}gcc to run the cross-compiler GCC, so if you set CROSS
> to arm-eabi-, U-Boot will use arm-eabi-gcc as the cross compiler.
>> gcc --version
>> gcc (GCC) 4.5.4
So again:
root at freebsd:/usr/src/u-boot-sunxi # set HOSTCC=arm-eabi-gcc
root at freebsd:/usr/src/u-boot-sunxi # gmake -j4 ARCH=arm
CROSS_COMPILE=arm-eabi- USE_PRIVATE_LIBGCC=yes
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC scripts/basic/fixdep
gcc: not found
gmake[1]: *** [scripts/basic/fixdep] Error 127
gmake: *** [scripts_basic] Error 2
gmake: *** Waiting for unfinished jobs....
> This is bad. U-Boot by default uses HOSTCC=gcc to run a compiler that can build tools to run on the host machine. But you’ve set up ‘gcc’ to run the cross-compiler, which is why HOSTCC builds are failing.
>
> No. scripts/basic/fixdep requires sys/mman.h when it is compiled using
> HOSTCC. But you’ve broken HOSTCC. Cheers, Tim
Still don't work.
HOSTCC=arm-eabi-gcc
HOSTCC=gcc
with or without symlink.
Am I missing something?
The problem is there is no gcc executable in system.
Cheers,
TooMeeK
More information about the freebsd-arm
mailing list