I am trying to build linux kernel for my MCF5485(Freescale board). I downloaded LTIB from www.ltib.org. I want to use custom toolchain for building. But when I select MCF5485 in the LTIB settings there is no option to select custom toolchain.
So i changed the main.lkc file in /config/platform/mcf547x-8x.
After this it starts building. At
Processing: kernel-2.6.24-m547x-8x
it waits for a long time at Try linux-2.6.24.tar.bz2 from the GPP
so I checked if that file is available at http://bitshrine.org/gpp/ I couldnt find linux-2.6.24.tar.bz2 there.
at the end it gives the followong error message:
Processing: kernel-2.6.24-m547x_8x
==================================== Build path taken because: directory build, build key set, no prebuilt rpm,
rpmbuild --dbpath /home/rohit/ltib/ltib/rootfs//var/lib/rpm --target m68k --define '_unpackaged_files_terminate_build
0' --define '_target_cpu m68k' --define '__strip strip' --define
'_topdir /home/rohit/ltib/ltib/rpm' --define '_prefix /usr' --define
'_tmppath /home/rohit/ltib/ltib/tmp' --define '_rpmdir
/home/rohit/ltib/ltib/rpm/RPMS' --define '_mandir /usr/share/man'
--define '_sysconfdir /etc' --define '_localstatedir /var' -bc
--short-circuit /home/rohit/ltib/ltib/tmp/kernel-2.6.24-m547x_8x.spec
Building target platforms: m68k Building for target m68k Executing(%build): /bin/sh -e /home/rohit/ltib/ltib/tmp/rpm-tmp.90376 + umask 022 + cd /home/rohit/ltib/ltib/rpm/BUILD + cd linux-2.6.24 ++ eval echo
+++ echo + PKG_KERNEL_PATH_PRECONFIG= ++ eval echo +++ echo + PKG_KERNEL_KBUILD_PRECONFIG= ++ eval echo linux-2.6.x.config +++ echo linux-2.6.x.config + PKG_KERNEL_PRECONFIG=linux-2.6.x.config + KSRC_DIR=/home/rohit/ltib/ltib/rpm/BUILD/linux-2.6.24
+ : m68k + : ccache /usr/bin/gcc -B/usr/bin// + : linux-2.6.x.config + : /home/rohit/ltib/ltib/config/platform/mcf547x_8x + : /home/rohit/ltib/ltib/rpm/BUILD/linux-2.6.24 + rm -f /home/rohit/ltib/ltib/rpm/BUILD/linux
+ ln -s /home/rohit/ltib/ltib/rpm/BUILD/linux-2.6.24 /home/rohit/ltib/ltib/rpm/BUILD/linux + cd /home/rohit/ltib/ltib/rpm/BUILD/linux-2.6.24 + KBOUT= + '[' -n '' -a '' '!=' . ']'
+ KBOUT=. + case $LINTARCH in + KTARG=uImage + SYSCFG_KTARG=uImage + '[' linux-2.6.x.config = defconfig ']' + for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"'
+ '[' -f /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev ']' + CFG_PATH=/home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev + break + '[' -z /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev ']'
+ '[' m68k = ppc -a -f arch/powerpc/Kconfig ']' + '[' -n y ']' + make ARCH=m68k 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin//' mrproper rm -f vmlinux.gz vmlinux.bz2 CLEAN scripts/basic
CLEAN scripts/kconfig CLEAN include/config CLEAN .config .config.old include/linux/autoconf.h + '[' -n /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev ']' + cp -f /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev ./.config
+ '[' -z '' -a -n y -o -n '' ']' + make ARCH=m68k 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin//' menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function 'conf_askvalue': scripts/kconfig/conf.c:112: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:363: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o SHIPPED scripts/kconfig/zconf.tab.c
HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o scripts/kconfig/lex.zconf.c:1642: warning: 'input' defined but not used
HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf arch/m68k/Kconfig
*** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'.
+ '[' -f /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev ']'
+ diff -q ./.config /home/rohit/ltib/ltib/config/platform/mcf547x_8x/linux-2.6.x.config.dev + '[' -n '' ']' + '[' '%{kernel_series}' = 2.4 ']' + make ARCH=m68k 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin//' uImage
HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/m68k/Kconfig make: *** No rule to make target `uImage'. Stop. error: Bad exit status from /home/rohit/ltib/ltib/tmp/rpm-tmp.90376 (%build)
RPM build errors: Bad exit status from /home/rohit/ltib/ltib/tmp/rpm-tmp.90376 (%build) Build time for kernel-2.6.24-m547x_8x: 8 seconds
Failed building kernel-2.6.24-m547x_8x
f_buildrpms() returned an error, exiting
traceback: main:555
These packages failed to build: kernel-2.6.24-m547x_8x
Build Failed
Exiting on error or interrupt
----------------------------------------------------------------- I checked the archives and in a post i read that doing 'cvs up' may update few files. I tried that but it still gives me the same error. I am using CodeSourcery toolchain for building the kernel. Please help me out.