ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Building a external kernel using LTIB


From: G.Muruganandam
Subject: Re: [Ltib] Building a external kernel using LTIB
Date: Fri, 03 Apr 2009 12:00:09 -0700


Hi Stuart,

Thanks for the steps. I did try your steps and also I went through the docs dir inside ltib installation. But during the build, ltib still looks at the old kernel's ( kernel inside the ltib) config file instead of the one mentioned in ltib configuration for the external kernel and failed with build errors.

So I went through "LtibCreateNewTarget" file and followed the steps to include the new kernel inside the ltib. I am able to partially build the kernel and it failed during the parsing of .dts file.

BTW linux kernel version 2.6.23 came with ltib 7.2.1 (1.305)
I am trying to build linux version 2.6.27.18 downloaded from kernel.org using the same ltib

My understanding, after going through .dts file from 2.6.23 and 2.6.27.18, is that there are some syntax differences that the current version of ltib unable to parse. This could/may be the cause.

For eg: The error message below indicates that it failed at the following

 /dts-v1/;

This line was not there in the kernel 2.6.23 .dts file.

So my guess is that it is more of ltib specific than the freescale.


Pl let me know, if you have any suggestion to fix this build error.

Thanks
G.Muruganandam



Build error message
===============
Processing: kernel-2.6.27.18-sbc8548
======================================
rpmbuild --dbpath /home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpmdb
--define '_unpackaged_files_terminate_build 0' --define '_target_cpu
powerpc' --define '__strip strip' --define '_topdir
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm' --define '_prefix /usr'
--define '_tmppath /home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp'
--define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
'_localstatedir /var' -bi --short-circuit
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel-2.6.27.18-sbc8548.spec
Executing(%install): /bin/sh -e
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/rpm-tmp.15869
+ umask 022
+ cd /home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD
+ cd linux-2.6.27.18
+
KSRC_DIR=/home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.27.18
+ cd /home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.27.18
++ pwd
+
KSRC_DIR=/home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.27.18
++ eval echo
+++ echo
+ KBOUT=
+ KBOUT=.
+ '[' . '!=' . ']'
+ grep -q CONFIG_PPC_MERGE=y ./.config
+ LINTARCH=powerpc
+ case $LINTARCH in
+ BOOT_KERNEL=arch/powerpc/boot/uImage
+ rm -rf /home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel
+ mkdir -p
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot
+ cd .
+ SYSCFG_BOOT_KERNEL=arch/powerpc/boot/uImage
+ '[' -n '' ']'
+ for i in vmlinux System.map '$SYSCFG_BOOT_KERNEL'
+ cp vmlinux
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot/
+ for i in vmlinux System.map '$SYSCFG_BOOT_KERNEL'
+ cp System.map
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot/
+ for i in vmlinux System.map '$SYSCFG_BOOT_KERNEL'
+ cp arch/powerpc/boot/uImage
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot/
++ basename arch/powerpc/boot/uImage
+ ln -s uImage
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot/bootable_kernel
+ cp .config
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/kernel//opt/freescale/rootfs/powerpc/boot/linux.config
+ grep -q '^CONFIG_MODULES=' .config
+ '[' powerpc = m68k ']'
+ DTC_PATH=arch/powerpc/boot/dts
+ '[' powerpc = powerpc -a -d
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.27.18/arch/powerpc/boot/dts
']'
+ '[' -z sbc8548 ']'
+ for PER_SYSCFG_DTC_NAME in '$SYSCFG_DTC_NAME'
+ DTC_NAME=sbc8548
+ DTC_LOAD_ADDR=0x300000
+ '[' %dtc_name '!=' %dtc_name ']'
+ cd
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/rpm/BUILD/linux-2.6.27.18/arch/powerpc/boot/dts
+ dtc -f -I dts -O dtb -R 8 -S 0x3000 sbc8548.dts
DTC: dts->dtb  on file "sbc8548.dts"
sbc8548.dts:15 syntax error
FATAL ERROR: Couldn't read input tree
error: Bad exit status from
/home/gmuruga/ltib/ltib-mpc8548cds-20071214/tmp/rpm-tmp.15869 (%install)



At 07:39 AM 4/2/2009, Stuart Hughes wrote:
Hi G,

For Freescale BSPs, you need to contact them for help. I can't recall what was in that version, but normally what you need to do (in recent versions and possibly that one) is to setup your kernel somewhere and then in "./ltib -c" select from the list of kernels " Local Linux directory build", from there enter the path for the kernel source and that should be it.

Regards, Stuart

G.Muruganandam wrote:
Hello,

I am using the LTIB that came with MPC8548 LSB.
I would like to build latest kernel that is outside the dir structure of
LTIB.
The kernel version is 2.6.27.18. I am able to build using Freescale provided
cross-tool. Now I wanted to use the LTIB to build this kernel.
Current LTIB version that I have ltib 7.2.1 (1.305)
I would like to know the steps to build external kernel using LTIB.
Pl let me know, if there is a pointer and docs.
Thanks
G.Muruganandam

_______________________________________________
LTIB home page: http://bitshrine.org
Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]