LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-01-2013, 11:07 PM   #1
answerme
Member
 
Registered: Apr 2008
Posts: 85

Rep: Reputation: 24
Ltib recompiling kernel in fedora 14


Hi All

I want to recompiling LTIB for my board MPC 8548 in my Linux (FEDORA 14) host machine . Once LTIB is build I can recompile uboot easily but when it comes to compiling kernel 2.6.23 & I give ./ltib --configure command & select any package I get error
Code:
LTIB> ./ltib            

Processing platform: Freescale MPC8548CDS PPC development board
=================================================================
using config/platform/mpc8548cds/.config

Processing: fake-provides
===========================

Processing: u-boot-1.3.0-mpc8548cds
=====================================

Processing: kernel-2.6.23-mpc8548
===================================

Cowardly refusing to clobber existing directory:
     /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.23
Remove this by hand if you really want to rebuild this package from scratch

scbuild/scdeploy already unpacked package

Processing: kernel-2.6.23-mpc8548
===================================
rpmbuild --dbpath /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu powerpc' --define '__strip strip' --define '_topdir /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm' --define '_prefix /usr' --define '_tmppath /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp/kernel-2.6.23-mpc8548.spec
Executing(%build): /bin/sh -e /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp/rpm-tmp.5255
+ umask 022
+ cd /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD
+ cd linux-2.6.23
+ '[' -n linux-2.6.23 ']'
+ rm -f /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux
+ ln -s linux-2.6.23 /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux
+ KSRC_DIR=/home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.23
+ : powerpc
+ : /usr/bin/gcc -B/usr/bin//
+ : linux_2.6.23_mpc8548_cds_def.config
+ : /home/RF/MPC8548/ltib-mpc8548cds-20071214/config/platform/mpc8548cds
+ : /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.23
+ cd /home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.23
++ eval echo
+++ echo
+ KBOUT=
+ KBOUT=.
+ '[' . '!=' . ']'
+ test -d .
+ case $LINTARCH in
+ KTARG=uImage
+ SYSCFG_KTARG=uImage
+ for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"' '"$KSRC_DIR/arch/$GNUTARCH/configs/$PKG_KERNEL_PRECONFIG"' '"$KSRC_DIR/arch/$LINTARCH/configs/$PKG_KERNEL_PRECONFIG"' notfound
+ '[' -f /home/RF/MPC8548/ltib-mpc8548cds-20071214/config/platform/mpc8548cds/linux_2.6.23_mpc8548_cds_def.config.dev ']'
+ for CFG in '"$PLATFORM_PATH/${PKG_KERNEL_PRECONFIG}.dev"' '"$PLATFORM_PATH/$PKG_KERNEL_PRECONFIG"' '"$KSRC_DIR/arch/$GNUTARCH/configs/$PKG_KERNEL_PRECONFIG"' '"$KSRC_DIR/arch/$LINTARCH/configs/$PKG_KERNEL_PRECONFIG"' notfound
+ '[' -f /home/RF/MPC8548/ltib-mpc8548cds-20071214/config/platform/mpc8548cds/linux_2.6.23_mpc8548_cds_def.config ']'
+ cp -f /home/RF/MPC8548/ltib-mpc8548cds-20071214/config/platform/mpc8548cds/linux_2.6.23_mpc8548_cds_def.config ./.config
+ break
+ '[' '!' -f ./.config ']'
+ grep -q CONFIG_PPC_MERGE=y ./.config
+ LINTARCH=powerpc
+ '[' -n '' ']'
+ '[' -n '' -o -n '' ']'
+ yes ''
+ make ARCH=powerpc CROSS_COMPILE= 'HOSTCC=/usr/bin/gcc -B/usr/bin//' oldconfig
make: *** No rule to make target `oldconfig'.  Stop.
error: Bad exit status from /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp/rpm-tmp.5255 (%build)


RPM build errors:
    Bad exit status from /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp/rpm-tmp.5255 (%build)
Build time for kernel-2.6.23-mpc8548: 1 seconds

Failed building kernel-2.6.23-mpc8548


f_buildrpms() returned an error, exiting

Started: Thu Aug  1 10:51:27 2013
Ended:   Thu Aug  1 10:51:29 2013
Elapsed: 2 seconds

These packages failed to build:
kernel-2.6.23-mpc8548 
Build Failed

Exiting on error or interrupt

I checked /home/RF/MPC8548/ltib-mpc8548cds-20071214/tmp/rpm-tmp.5255 file also where I find

Code:
KSRC_DIR=${PKG_KERNEL_PATH_PRECONFIG:-/home/RF/MPC8548/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.23}
: ${LINTARCH:?must be set to the kernel architecture name}
: ${BUILDCC:?must be set to the token for your build machines compiler}
: ${PKG_KERNEL_PRECONFIG:?must be set to the name of your .config file}
: ${PLATFORM_PATH:?must be set to your ltib platform path}
: ${KSRC_DIR:?cannot find source directory (PKG_KERNEL_PATH_PRECONFIG)}
cd $KSRC_DIR
KBOUT="$(eval echo $PKG_KERNEL_KBUILD_PRECONFIG)"
KBOUT=${KBOUT:-"."}
if [ "$KBOUT" != '.' ]
then
    export KBUILD_OUTPUT="$KBOUT"
my gcc -v is
Code:
 gcc -v
Using built-in specs.
Target: powerpc-linux-gnuspe
Configured with: ../gcc-4.1/configure --target=powerpc-linux-gnuspe --host=i686-pc-linux-gnu --prefix=/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-dp-1/powerpc-linux-gnuspe --with-sysroot=/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-dp-1/powerpc-linux-gnuspe/powerpc-linux-gnuspe/libc --disable-libssp --disable-libgomp --disable-libmudflap --enable-shared --enable-threads --enable-languages=c,c++ --disable-nls --with-cpu=8548 --enable-__cxa_atexit --enable-cxx-flags=-mcpu=8548 --disable-multilib --disable-libstdcxx-pch --with-long-double-128 --enable-e500_double
Thread model: posix
gcc version 4.1.2
Dont know how resolve this problem ,any idea .
 
Old 08-02-2013, 03:17 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,851

Rep: Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712Reputation: 1712
You are aware that fedora 14 is now 5 versions OUT OF DATE
and that fedora 15,16 and 17 are ALSO unsupported
please install a supported version of fedora before you continue
Fedora 19

Last edited by John VV; 08-02-2013 at 03:20 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] hi i tried to build LTIB 2008 on fedora 12 , am got error regarding endianess sreeharsha Fedora 1 02-22-2012 11:30 PM
Rebuilding Linux kernel in Fedora 7 without recompiling everything JoeyAdams Programming 2 09-12-2007 10:11 PM
recompiling new kernel in fedora 3 x2aws Fedora 12 02-14-2005 07:36 AM
Recompiling a fedora core 2 kernel for ntfs support fettouhi Fedora 2 08-07-2004 10:07 PM
facing problems recompiling kernel 2.6.5 in Fedora Core 2 fawkes.phoenix Linux - Newbie 4 07-02-2004 09:43 PM


All times are GMT -5. The time now is 11:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration