Hello Stuart,
I tried using the LTIB from Freescale. I am using a custom toolchain. I
made the necessary changes in the LTIB settings to build it using my
toolchain. Everything runs fine until I get this error:
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/modutils/insmod.c:
In function 'arch_apply_relocation':
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/modutils/insmod.c:864:
warning: unused variable 'got'
CC modutils/modprobe.o
CC modutils/rmmod.o
CC networking/ftpgetput.o
CC networking/hostname.o
CC networking/ifconfig.o
CC networking/ifupdown.o
CC networking/inetd.o
CC networking/interface.o
CC networking/ip.o
CC networking/ipaddr.o
CC networking/iplink.o
CC networking/iproute.o
CC networking/nc.o
CC networking/netstat.o
CC networking/ping.o
CC networking/route.o
CC networking/telnet.o
CC networking/telnetd.o
CC networking/tftp.o
CC networking/traceroute.o
CC networking/vconfig.o
CC networking/wget.o
CC networking/libiproute/ip_parse_common_args.o
CC networking/libiproute/ipaddress.o
CC networking/libiproute/iplink.o
CC networking/libiproute/iproute.o
CC networking/libiproute/iptunnel.o
In file included from
/home/rohit/CodeSourcery_free/Sourcery_G++_Lite/bin/../m68k-linux-gnu/libc/usr/include/linux/if_tunnel.h:5,
from
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/networking/libiproute/iptunnel.c:34:
/home/rohit/CodeSourcery_free/Sourcery_G++_Lite/bin/../m68k-linux-gnu/libc/usr/include/linux/ip.h:85:
error: redefinition of 'struct iphdr'
CC networking/libiproute/libnetlink.o
make[1]: ***
[/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/rpm/BUILD/busybox-1.1.3/networking/libiproute/iptunnel.o]
Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
make: *** [_all] Error 2
error: Bad exit status from
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/tmp/rpm-tmp.19617 (%build)
RPM build errors:
Bad exit status from
/home/rohit/Programs/LTIB/ltib-m5475evb-20080808/tmp/rpm-tmp.19617 (%build)
Build time for busybox: 20 seconds
Failed building busybox
f_buildrpms() returned an error, exiting
traceback:
main:501
Started: Tue Jul 28 14:15:22 2009
Ended: Tue Jul 28 14:21:27 2009
Elapsed: 365 seconds
*These packages failed to build:
busybox *
Build Failed
Exiting on error or interrupt
I checked the make files but couldnt find anything. Can you help me out
with this? What do I need to do to successfully complete build?
Thank you for your time. I am grateful.
Thanks,
Rohit
On Tue, Jul 28, 2009 at 2:28 AM, Stuart Hughes <address@hidden
<mailto:address@hidden>> wrote:
Hi Rohit,
I've looked into this and unfortunately the mcf547x_8x and mcf5445x
platforms are were broken by the last merge out from Freescale. It
looks like they were in the process of moving to a platform style
around this time. What is at Savannah right now should probably be
removed. To help fix this, could you ask Freescale support to
submit a patch to this list for the latest Coldfire platforms
(mcfv4, mcfv4e, mcfv4m) when they're ready.
At the moment from what I can see your best option is to download
the Freescale BSP from here:
https://www.freescale.com/webapp/search/Serp.jsp?QueryText=coldfire&fsrch=1&isAdvanceSearch=false&showCustomCollateral=false&RELEVANCE=true&fromTrng=false&showAllCategories=false&Downloads=Downloads%2F020Run-time+Software%2F030Board+Support+Packages&fromPSP=false&SelectedAsset=Downloads&assetLocked=false&assetLockedForNavigation=false&isResult=false&searchSessionId=17e48f61248771653452.0&fromDAP=false&fromWebPages=false&isTree=false&isFromFlex=false&isComparison=false
<https://www.freescale.com/webapp/search/Serp.jsp?QueryText=coldfire&fsrch=1&isAdvanceSearch=false&showCustomCollateral=false&RELEVANCE=true&fromTrng=false&showAllCategories=false&Downloads=Downloads%2F020Run-time+Software%2F030Board+Support+Packages&fromPSP=false&SelectedAsset=Downloads&assetLocked=false&assetLockedForNavigation=false&isResult=false&searchSessionId=17e48f61248771653452.0&fromDAP=false&fromWebPages=false&isTree=false&isFromFlex=false&isComparison=false>
Regards, Stuart
Rohit Girme wrote:
Hello,
I am trying to build linux kernel for my MCF5485(Freescale
board). I downloaded LTIB from www.ltib.org
<http://www.ltib.org> <http://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
Started: Mon Jul 27 13:36:57 2009
Ended: Mon Jul 27 13:37:16 2009
Elapsed: 19 seconds
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.
Thank You,
Rohit