LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Ltib recompiling kernel in fedora 14 (https://www.linuxquestions.org/questions/fedora-35/ltib-recompiling-kernel-in-fedora-14-a-4175471804/)

answerme 08-01-2013 11:07 PM

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 .

John VV 08-02-2013 03:17 PM

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


All times are GMT -5. The time now is 05:04 AM.