AnsweredAssumed Answered

fails to build kernel-3.0.35

Question asked by cody ou on Mar 6, 2014
Latest reply on Apr 26, 2014 by jin ming

I have  setted up the LTIB host  by reading  Setting_Up_LTIB_host.pdf.

 

1.Select platform to Freescale i.MX reference boards and select platform type as imx6q.

 

2.  select "Choose your board   for U-Boot" as "mx6dl_sabresd".

 

I download the  code  from :i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite and i.MX 6Solo Linux BSP Source Code Files

 

And u-boot  have been built.

 

But failed to build kernel-3.0.35.

 

my board is MX6DL-SDP.

 

ENV:

aaron@aaron:~/4.0/ltib/rpm/BUILD/linux-3.0.35$ uname -a

Linux aaron 2.6.28-19-generic #66-Ubuntu SMP Sat Oct 16 17:39:04 UTC 2010 i686 GNU/Linux

 

 

 

log is like  this:

 

aaron@aaron:~$ ls

4.0                                 L3.0.35_4.1.0_130816_source.tar.gz  模板

examples.desktop                    L3.0.35_4.1.0_docs                  视频

host-setup.sh                       ltib                                图片

L3.0.35_4.0.0_130424_source         new file~                           文档

L3.0.35_4.0.0_130424_source.tar.gz  vmware-tools-distrib                音乐

L3.0.35_4.1.0_130816_source         公共的                              桌面

aaron@aaron:~$ cd  4.0/

aaron@aaron:~/4.0$ ls

ltib

aaron@aaron:~/4.0$

aaron@aaron:~/4.0$ cd ltib/

aaron@aaron:~/4.0/ltib$ ./ltib -m config

+ [ -n  ]

+ [ -f /home/aaron/4.0/ltib/config/.config ]

+ cat /home/aaron/4.0/ltib/config/.config

+ perl -ne print if m,^CONFIG_(?!PCF),

+ [ ! -f config/platform/imx/.config -a -f config/platform/imx/defconfig ]

+ [ -n  ]

+ cd config/platform/imx

+ mconf main.lkc .config

 

 

 

 

*** End of configuration.

*** Check the top-level Makefile for additional configuration options.

 

 

+ cp .config defconfig.dev

aaron@aaron:~/4.0/ltib$

aaron@aaron:~/4.0/ltib$ ./ltib

 

 

Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config

 

 

Processing: fake-provides

===========================

 

 

Processing: u-boot-v2009.08

=============================

 

 

Processing: kernel-3.0.35

===========================

Build path taken because: no prebuilt rpm,

 

 

rpmbuild --dbpath /home/aaron/4.0/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/aaron/4.0/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/aaron/4.0/ltib/tmp' --define '_rpmdir /home/aaron/4.0/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb  /home/aaron/4.0/ltib/tmp/kernel-3.0.35.spec

Building target platforms: arm

Building for target arm

Executing(%prep): /bin/sh -e /home/aaron/4.0/ltib/tmp/rpm-tmp.78903

+ umask 022

+ cd /home/aaron/4.0/ltib/rpm/BUILD

+ echo imx_4.0.0

+ cut -d_ -f2

+ rel_ver=4.0.0

+ echo imx_4.0.0

+ cut -d. -f3

+ cut -c2

+ zz=

+ git_tag=rel_imx_3.0.35_4.0.0

+ [  != 0 ]

+ git_br=imx_3.0.35_4.0.0

+ KSRC_DIR=/home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35

+ [ -z y ]

+ [ ! -d /home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35 ]

+ exit 0

Executing(%build): /bin/sh -e /home/aaron/4.0/ltib/tmp/rpm-tmp.12663

+ umask 022

+ cd /home/aaron/4.0/ltib/rpm/BUILD

+ cd linux-3.0.35

+ eval echo

+ echo

+ PKG_KERNEL_PATH_PRECONFIG=

+ eval echo

+ echo

+ PKG_KERNEL_KBUILD_PRECONFIG=

+ eval echo imx6_defconfig

+ echo imx6_defconfig

+ PKG_KERNEL_PRECONFIG=imx6_defconfig

+ KSRC_DIR=/home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35

+ : arm

+ : ccache /usr/bin/gcc -B/usr/bin/

+ : imx6_defconfig

+ : /home/aaron/4.0/ltib/config/platform/imx

+ : /home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35

+ rm -f /home/aaron/4.0/ltib/rpm/BUILD/linux

+ ln -s /home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35 /home/aaron/4.0/ltib/rpm/BUILD/linux

+ cd /home/aaron/4.0/ltib/rpm/BUILD/linux-3.0.35

+ KBOUT=

+ [ -n  -a  != . ]

+ KBOUT=.

+ KTARG=zImage

+ SYSCFG_KTARG=uImage

+ [ imx6_defconfig = defconfig ]

+ [ -f /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev ]

+ CFG_PATH=/home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev

+ break

+ [ -z /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev ]

+ [ arm = ppc -a -f arch/powerpc/Kconfig ]

+ [ -n  ]

+ [ -n /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev ]

+ cp -f /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev ./.config

+ [ -z  -a -n y -o -n  ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ menuconfig

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/mconf

scripts/kconfig/mconf Kconfig

 

 

 

 

*** End of the configuration.

*** Execute 'make' to start the build or try 'make help'.

 

 

+ [ -f /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev ]

+ diff -q ./.config /home/aaron/4.0/ltib/config/platform/imx/imx6_defconfig.dev

+ [ -n  ]

+ grep -q VERSION = 2 Makefile

+ [ %{kernel_series} = 2.4 ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ uImage

  HOSTLD  scripts/kconfig/conf

scripts/kconfig/conf --silentoldconfig Kconfig

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

  HOSTCC  scripts/genksyms/lex.o

  HOSTCC  scripts/genksyms/genksyms.o

  HOSTCC  scripts/genksyms/parse.o

  HOSTCC  scripts/conmakehash

  HOSTCC  scripts/kallsyms

make[1]: `include/generated/mach-types.h' is up to date.

  HOSTCC  scripts/bin2c

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/mod/modpost.o

  HOSTCC  scripts/mod/sumversion.o

  CC      kernel/bounds.s

  HOSTLD  scripts/mod/modpost

  HOSTLD  scripts/genksyms/genksyms

  GEN     include/generated/bounds.h

  CC      arch/arm/kernel/asm-offsets.s

  GEN     include/generated/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  CC      init/main.o

  CHK     include/generated/compile.h

  LD      usr/built-in.o

  CC      init/do_mounts.o

  CC      init/noinitramfs.o

  CC      init/calibrate.o

  CC      arch/arm/vfp/vfpmodule.o

  AS      arch/arm/vfp/entry.o

  CC      arch/arm/kernel/elf.o

  CC      init/version.o

  AS      arch/arm/vfp/vfphw.o

  AS      arch/arm/kernel/entry-armv.o

  CC      arch/arm/vfp/vfpsingle.o

  AS      arch/arm/kernel/entry-common.o

  CC      arch/arm/vfp/vfpdouble.o

  LD      init/mounts.o

  CC      arch/arm/kernel/process.o

  CC      arch/arm/kernel/ptrace.o

  CC      arch/arm/kernel/irq.o

  LD      arch/arm/vfp/vfp.o

  LD      arch/arm/vfp/built-in.o

  CC      arch/arm/kernel/return_address.o

  CC      arch/arm/kernel/setup.o

  CC      arch/arm/kernel/signal.o

  LD      init/built-in.o

arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]

  CC      arch/arm/kernel/sys_arm.o

  CC      arch/arm/kernel/stacktrace.o

  CC      arch/arm/mm/dma-mapping.o

  CC      arch/arm/common/gic.o

arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]

  CC      arch/arm/kernel/time.o

  CC      arch/arm/kernel/traps.o

  CC      arch/arm/kernel/etm.o

  LD      arch/arm/common/built-in.o

  CC      arch/arm/kernel/armksyms.o

  CC      arch/arm/kernel/module.o

  AS      arch/arm/kernel/sleep.o

  CC      arch/arm/kernel/sched_clock.o

  CC      arch/arm/plat-mxc/clock.o

  CC      arch/arm/mach-mx6/cpu.o

  CC      arch/arm/mm/extable.o

  CC      arch/arm/mm/fault.o

  CC      arch/arm/mach-mx6/mm.o

  CC      arch/arm/plat-mxc/gpio.o

arch/arm/plat-mxc/clock.c: In function '__clk_disable':

arch/arm/plat-mxc/clock.c:63:175: error: 'struct clk' has no member named 'name'

  CC      arch/arm/mach-mx6/system.o

  CC      arch/arm/kernel/smp.o

  CC      arch/arm/mach-mx6/devices.o

make[1]: *** [arch/arm/plat-mxc/clock.o] Error 1

make[1]: *** Waiting for unfinished jobs....

  CC      arch/arm/mm/init.o

make: *** [arch/arm/plat-mxc] Error 2

make: *** Waiting for unfinished jobs....

  CC      arch/arm/kernel/smp_tlb.o

  CC      arch/arm/mach-mx6/dummy_gpio.o

  CC      arch/arm/kernel/smp_scu.o

  CC      arch/arm/kernel/smp_twd.o

  CC      arch/arm/mm/iomap.o

  CC      kernel/sched.o

  CC      arch/arm/mach-mx6/irq.o

  CC      arch/arm/mach-mx6/bus_freq.o

  CC      arch/arm/mach-mx6/usb_h2.o

  CC      arch/arm/kernel/unwind.o

  CC      kernel/fork.o

  CC      arch/arm/mach-mx6/usb_h3.o

  CC      arch/arm/kernel/pmu.o

  CC      arch/arm/mm/fault-armv.o

  CC      arch/arm/mach-mx6/pm.o

  CC      arch/arm/kernel/io.o

  AS      arch/arm/kernel/head.o

  CC      arch/arm/mach-mx6/cpu_op-mx6.o

  CC      arch/arm/mm/flush.o

  CC      kernel/exec_domain.o

  AS      arch/arm/mach-mx6/mx6_wfi.o

  CC      arch/arm/mm/idmap.o

  CC      kernel/panic.o

  CC      arch/arm/kernel/init_task.o

  CC      arch/arm/mach-mx6/mx6_fec.o

  LDS     arch/arm/kernel/vmlinux.lds

  CC      arch/arm/mach-mx6/mx6_anatop_regulator.o

  LD      arch/arm/kernel/built-in.o

  CC      arch/arm/mm/ioremap.o

  CC      kernel/printk.o

  CC      arch/arm/mm/mmap.o

  CC      arch/arm/mach-mx6/cpu_regulator-mx6.o

  CC      arch/arm/mm/pgd.o

  CC      kernel/cpu.o

  CC      arch/arm/mach-mx6/mx6_mmdc.o

  CC      arch/arm/mm/mmu.o

  AS      arch/arm/mach-mx6/mx6_ddr_freq.o

  CC      arch/arm/mm/vmregion.o

  AS      arch/arm/mach-mx6/mx6sl_ddr.o

  AS      arch/arm/mach-mx6/mx6sl_wfi.o

  CC      arch/arm/mach-mx6/etm.o

  CC      kernel/exit.o

  CC      arch/arm/mm/proc-syms.o

  CC      arch/arm/mach-mx6/clock.o

  CC      arch/arm/mm/alignment.o

arch/arm/mm/alignment.c: In function 'do_alignment':

arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]

arch/arm/mm/alignment.c:720:21: note: 'offset.un' was declared here

  CC      kernel/itimer.o

  CC      arch/arm/mm/highmem.o

  AS      arch/arm/mach-mx6/mx6_suspend.o

  CC      arch/arm/mach-mx6/clock_mx6sl.o

  AS      arch/arm/mm/abort-ev7.o

  CC      arch/arm/mach-mx6/board-mx6q_sabreauto.o

  CC      kernel/time.o

  AS      arch/arm/mm/pabort-v7.o

  CC      kernel/softirq.o

  AS      arch/arm/mm/cache-v7.o

  CC      arch/arm/mm/copypage-v6.o

  CC      arch/arm/mach-mx6/mx6q_sabreauto_pmic_pfuze100.o

  CC      arch/arm/mm/context.o

  AS      arch/arm/mm/tlb-v7.o

  AS      arch/arm/mm/proc-v7.o

  CC      kernel/resource.o

  CC      arch/arm/mach-mx6/plat_hotplug.o

  CC      kernel/sysctl.o

  CC      arch/arm/mm/cache-l2x0.o

  CC      arch/arm/mach-mx6/platsmp.o

  CC      kernel/sysctl_binary.o

  AS      arch/arm/mach-mx6/headsmp.o

  LD      arch/arm/mm/built-in.o

  CC      arch/arm/mach-mx6/localtimer.o

  CC      kernel/capability.o

  CC      kernel/ptrace.o

  CC      kernel/timer.o

  CC      kernel/user.o

  CC      kernel/signal.o

  CC      kernel/sys.o

  CC      kernel/kmod.o

  LD      arch/arm/mach-mx6/built-in.o

  CC      kernel/workqueue.o

  CC      kernel/pid.o

  CC      kernel/rcupdate.o

  CC      kernel/extable.o

  CC      kernel/params.o

  CC      kernel/posix-timers.o

  CC      kernel/kthread.o

  CC      kernel/wait.o

  CC      kernel/kfifo.o

  CC      kernel/posix-cpu-timers.o

  CC      kernel/mutex.o

  CC      kernel/rwsem.o

  CC      kernel/hrtimer.o

  CC      kernel/nsproxy.o

  CC      kernel/srcu.o

  CC      kernel/semaphore.o

  CC      kernel/notifier.o

  CC      kernel/ksysfs.o

  CC      kernel/pm_qos_params.o

  CC      kernel/sched_clock.o

  CC      kernel/cred.o

  CC      kernel/async.o

  CC      kernel/range.o

  CC      kernel/jump_label.o

  CC      kernel/groups.o

  CC      kernel/freezer.o

  CC      kernel/sysctl_check.o

  CC      kernel/power/main.o

  CC      kernel/irq/irqdesc.o

  CC      kernel/time/timekeeping.o

  CC      kernel/power/console.o

  CC      kernel/futex.o

  CC      kernel/rtmutex.o

  CC      kernel/smp.o

  CC      kernel/power/process.o

  CC      kernel/irq/handle.o

  CC      kernel/power/suspend.o

  CC      kernel/irq/manage.o

  CC      kernel/time/ntp.o

  CC      kernel/spinlock.o

  CC      kernel/time/clocksource.o

  CC      kernel/irq/spurious.o

  CC      kernel/uid16.o

  CC      kernel/irq/resend.o

  CC      kernel/time/jiffies.o

  CC      kernel/irq/chip.o

  LD      kernel/power/built-in.o

  CC      kernel/module.o

  CC      kernel/irq/dummychip.o

  CC      kernel/irq/devres.o

  CC      kernel/kallsyms.o

  CC      kernel/time/timer_list.o

  CC      kernel/irq/autoprobe.o

  GZIP    kernel/config_data.gz

  CC      kernel/time/timecompare.o

  CC      kernel/time/timeconv.o

  CC      kernel/irq/proc.o

  CC      kernel/time/posix-clock.o

  CC      kernel/time/alarmtimer.o

  CC      kernel/irq/pm.o

  CC      kernel/time/clockevents.o

  CC      kernel/stop_machine.o

  CC      kernel/time/tick-common.o

  CC      kernel/rcutree.o

  CC      kernel/utsname_sysctl.o

  CC      kernel/time/tick-broadcast.o

  CC      kernel/time/tick-oneshot.o

  LD      kernel/irq/built-in.o

  CC      kernel/elfcore.o

  CC      kernel/time/tick-sched.o

  CC      kernel/sched_cpupri.o

  IKCFG   kernel/config_data.h

  CC      kernel/configs.o

  LD      kernel/time/built-in.o

  LD      kernel/built-in.o

error: Bad exit status from /home/aaron/4.0/ltib/tmp/rpm-tmp.12663 (%build)

 

 

 

 

RPM build errors:

    Bad exit status from /home/aaron/4.0/ltib/tmp/rpm-tmp.12663 (%build)

Build time for kernel-3.0.35: 96 seconds

 

 

Failed building kernel-3.0.35

 

 

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

 

 

Started: Thu Mar  6 16:32:30 2014

Ended:   Thu Mar  6 16:34:07 2014

Elapsed: 97 seconds

 

 

These packages failed to build:

kernel-3.0.35

 

 

Build Failed

 

 

Exiting on error or interrupt

aaron@aaron:~/4.0/ltib$

Outcomes