2010-01-22 05:04:28     Compilation problem with BF548

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-22 05:04:28     Compilation problem with BF548

Cedric Marin (FRANCE)

Message: 84987   


Hi everybody,




I downloaded the 2009R1_RC10 toolchain as well as the 2009R1-RC6 uClinux and I want to compile the kernel for the BF548 Bluetechnix module. So, I use the default configuration of the kernel and when I starts compiling, I get this error:


make -C tools/sg-cksum

make[1]: entrant dans le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/tools/sg-cksum »

cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc32.c

make[1]: quittant le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/tools/sg-cksum »

ln -sf /home/bgt/Desktop/Video_BF548/uClinux-dist/tools/sg-cksum/cksum tools/cksum

ln -sf staging-compiler tools/bfin-uclinux-gcc

ln -sf staging-compiler tools/bfin-uclinux-g++

ln -sf staging-compiler tools/bfin-uclinux-cpp

ln -sf staging-compiler tools/bfin-uclinux-ld

ln -sf cross-pkg-config tools/bfin-uclinux-pkg-config

chmod +x tools/romfs-inst.sh tools/modules-alias.sh

. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then \

                mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; \

                touch $CONFIG_INITRAMFS_SOURCE || exit 1; \


rm -f linux-2.6.x/usr/initramfs_data.cpio.gz

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x  || exit 1

make[1]: entrant dans le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x »

scripts/kconfig/conf -s arch/blackfin/Kconfig

make[1]: quittant le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x »

make[1]: entrant dans le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x »

  CHK     include/linux/version.h

  UPD     include/linux/version.h

  CHK     include/linux/utsrelease.h

  UPD     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  HOSTCC  scripts/kallsyms

  CC      scripts/mod/empty.o

  HOSTCC  scripts/bin2c

  HOSTCC  scripts/mod/mk_elfconfig

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/mod/modpost.o

  HOSTCC  scripts/mod/sumversion.o

  HOSTLD  scripts/mod/modpost

  CC      kernel/bounds.s

  GEN     include/linux/bounds.h

  CC      arch/blackfin/kernel/asm-offsets.s

In file included from /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x/arch/blackfin/include/asm/system.h:39,

                 from /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x/arch/blackfin/include/asm/bitops.h:84,

                 from include/linux/bitops.h:17,

                 from include/linux/kernel.h:15,

                 from include/linux/sched.h:52,

                 from arch/blackfin/kernel/asm-offsets.c:31:

/home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x/arch/blackfin/mach-bf548/include/mach/anomaly.h:18:3: error: #error will not work on BF548 silicon version 0.0, or 0.1

make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Erreur 1

make[1]: *** [prepare0] Erreur 2

make[1]: quittant le répertoire « /home/bgt/Desktop/Video_BF548/uClinux-dist/linux-2.6.x »

make: *** [linux] Erreur 1



I don't understand this type of error (silicon version)... What is the matter ?




Thanks in advance.








2010-01-22 05:50:01     Re: Compilation problem with BF548

Mike Frysinger (UNITED STATES)

Message: 84991   


you need to modify your kernel configuration to target a newer BF54x cpu




2010-01-22 10:12:38     Re: Compilation problem with BF548

Cedric Marin (FRANCE)

Message: 84994   


Thanks Mike !




I set the CPU version to 0.2 and the error is resolved. But, after few minutes, I get the following error:




make[3]: entrant dans le répertoire « /home/bgt/Desktop/Video_BF548_uClinux09/uClinux-dist/user/busybox »

make -C build-busybox-1.13.4

        TEXI2DVI libext2fs.dvi

make[4]: entrant dans le répertoire « /home/bgt/Desktop/Video_BF548_uClinux09/uClinux-dist/user/busybox/build-busybox-1.13.4 »

make -C /home/bgt/Desktop/Video_BF548/uClinux-dist/user/busybox/busybox-1.13.4 O=/home/bgt/Desktop/Video_BF548/uClinux-dist/user/busybox/build-busybox-1.13.4make: entrant dans un répertoire inconnu

make: *** /home/bgt/Desktop/Video_BF548/uClinux-dist/user/busybox/busybox-1.13.4: Aucun fichier ou répertoire de ce type. Arrêt.

make: quittant un répertoire inconnu

make[4]: *** [all] Erreur 2

make[4]: quittant le répertoire « /home/bgt/Desktop/Video_BF548_uClinux09/uClinux-dist/user/busybox/build-busybox-1.13.4 »

make[3]: *** [all] Erreur 2

make[3]: quittant le répertoire « /home/bgt/Desktop/Video_BF548_uClinux09/uClinux-dist/user/busybox »

make[2]: *** [busybox] Erreur 2



Apparently, It cannot compile busybox but I don't understand why. Is anybody known this error ? How may I resolve this problem ?












2010-01-22 14:42:56     Re: Compilation problem with BF548

Mike Frysinger (UNITED STATES)

Message: 84996   


however you installed the dist didnt work correctly.  there is supposed to be a busybox-1.13.4 directory in user/busybox/ ...