build hangs when building kernel
Hi
Using the latest pull:
The build hangs when it is building the kernel
snip....
LD [M] fs/fuse/cuse.ko LD [M] fs/fuse/fuse.ko LD [M] lib/crc-ccitt.ko LD [M] fs/nls/nls_iso8859-15.ko
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24' PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin/:/usr/ local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/buildroot12git/output/host/usr/bin" PERLLIB="/home/buildroot12git/output/host/usr/lib/perl" /usr/bin/make -j8 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/buildroot12git/output/target CROSS_COMPILE=" /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-" DEPMOD=/home/buildroot12git/output/host/usr/sbin/depmod -C /home/buildroot12git/output/build/linux-3.4.24 tx53.dtb
make[1]: Entering directory `/home/buildroot12git/output/build/linux-3.4.24'
DTC arch/arm/boot/tx53.dtb
DTC: dts->dtb on file "arch/arm/boot/dts/tx53.dts"
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24'
# dtbs moved from arch/RCH/boot to arch/RCH/boot/dts since 3.8-rc1 cat >> /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/zImage
It looks like the missing cat parameter is causing this.
When I break (ctrl-c) and restart make then the cat parameter is present :
Snip..
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24'
make[1]: Entering directory `/home/buildroot12git/output/build/linux-3.4.24'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 93 modules
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24' PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin/:/usr/ local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/buildroot12git/output/host/usr/bin" PERLLIB="/home/buildroot12git/output/host/usr/lib/perl" /usr/bin/make -j8 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/buildroot12git/output/target CROSS_COMPILE=" /home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-" DEPMOD=/home/buildroot12git/output/host/usr/sbin/depmod -C /home/buildroot12git/output/build/linux-3.4.24 tx53.dtb
make[1]: Entering directory `/home/buildroot12git/output/build/linux-3.4.24'
make[2]: `arch/arm/boot/tx53.dtb' is up to date.
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24'
# dtbs moved from arch/RCH/boot to arch/RCH/boot/dts since 3.8-rc1 ####----------->>>>>>>>> cat /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/tx53.dtb >> /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/zImage rm -f targetkernel ln -s /home/buildroot12git/output/build/linux-3.4.24 targetkernel
Quoted 1 line
Quoted 1 line
Quoted 1 line
linux 3.4.24 Installing to target
install -m 0644 -D /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/zImage /home/buildroot12git/output/target/boot/zImage
# dtbs moved from arch/RCH/boot to arch/RCH/boot/dts since 3.8-rc1 cp /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/tx53.dtb /home/buildroot12git/output/images/ # Install modules and remove symbolic links pointing to build # directories, not relevant on the target make[1]: Entering directory `/home/buildroot12git/output/build/linux-3.4.24' INSTALL crypto/aead.ko INSTALL crypto/aes_generic.ko INSTALL crypto/ansi_cprng.ko
Snip
Regards johan
Quoted 23 lines · Sagaert Johan
Hi
Using the latest pull:
The build hangs when it is building the kernel
snip....
LD [M] fs/fuse/cuse.ko LD [M] fs/fuse/fuse.ko LD [M] lib/crc-ccitt.ko LD [M] fs/nls/nls_iso8859-15.komake[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24' PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin/:/usr/ local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/buildroot12git/output/host/usr/bin" PERLLIB="/home/buildroot12git/output/host/usr/lib/perl"
/usr/bin/make-j8 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/home/buildroot12git/output/target CROSS_COMPILE="/home/buildroot12git/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-" DEPMOD=/home/buildroot12git/output/host/usr/sbin/depmod -C/home/buildroot12git/output/build/linux-3.4.24tx53.dtb
make[1]: Entering directory `/home/buildroot12git/output/build/linux-3.4.24'
DTCarch/arm/boot/tx53.dtb
DTC:dts->dtbon file "arch/arm/boot/dts/tx53.dts"
make[1]: Leaving directory `/home/buildroot12git/output/build/linux-3.4.24'
Quoted 6 lines
# dtbs moved from arch/RCH/boot to arch/RCH/boot/dts since 3.8-rc1 cat>> /home/buildroot12git/output/build/linux-3.4.24/arch/arm/boot/zImageIt looks like the missing cat parameter is causing this.
Peter,
The $(wildcard ) doesn't work for LINUX_APPEND_DTB, because the .dtb
doesn't exist yet at that point.
It works for LINUX_INSTALL_DTB because that one is only expanded after
the kernel (and the .dtb) has already been built.
Simplest option is to change it into a shell condition. Untested patch
follows.
Regards,
Arnout
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 1/1 linux: fix appended dtb handling of pre/post v3.8-rc1
From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
Also fix duplication of 'define LINUX_APPEND_DTB' line, and refactor the common part out.
--- linux/linux.mk | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-)
linux/linux.mk +12 -16
@@ -201,24 +201,20 @@ endef endif endif -ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y) -define LINUX_APPEND_DTB -define LINUX_APPEND_DTB - # dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 - cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\ - $(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \ - >> $(KERNEL_ARCH_PATH)/boot/zImage - # We need to generate the uImage here after that so that the uImage is - # generated with the right image size. - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) uImage -endef -else ifeq ($(BR2_LINUX_KERNEL_APPENDED_ZIMAGE),y) +ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),y) +# dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 define LINUX_APPEND_DTB - # dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 - cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\ - $(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \ - >> $(KERNEL_ARCH_PATH)/boot/zImage + if [ -e $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb ]; then \ + cat $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb; \ + else \ + cat $(KERNEL_ARCH_PATH)/boot/dts/$(KERNEL_DTS_NAME).dtb; \ + fi >> $(KERNEL_ARCH_PATH)/boot/zImage endef +ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y) +# We need to generate the uImage here after that so that the uImage is +# generated with the right image size. +LINUX_APPEND_DTB += $(sep)$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) uImage +endif endif # Compilation. We make sure the kernel gets rebuilt when the
Signature · 1 line
1.7.10.4
PATCH 1/1 linux: fix appended dtb handling of pre/postv3.8-rc1
Hi Arnout;
Just did a new build with this patch and it did'nt hang on the cat when the kernel was build.
Thanks.
Johan
-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Arnout Vandecappelle (Essensium/Mind)
Verzonden: dinsdag 8 januari 2013 0:35
Aan: buildroot at busybox.net
Onderwerp: [Buildroot] [PATCH] linux: fix appended dtb handling of pre/postv3.8-rc1
From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>
Also fix duplication of 'define LINUX_APPEND_DTB' line, and refactor the common part out.
--- linux/linux.mk | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-)
linux/linux.mk +12 -16
@@ -201,24 +201,20 @@ endef endif endif -ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y) -define LINUX_APPEND_DTB -define LINUX_APPEND_DTB - # dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 - cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\ - $(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \ - >> $(KERNEL_ARCH_PATH)/boot/zImage - # We need to generate the uImage here after that so that the uImage is - # generated with the right image size. - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) uImage -endef -else ifeq ($(BR2_LINUX_KERNEL_APPENDED_ZIMAGE),y) +ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),y) +# dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 define LINUX_APPEND_DTB - # dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1 - cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\ - $(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \ - >> $(KERNEL_ARCH_PATH)/boot/zImage + if [ -e $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb ]; then \ + cat $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb; \ + else \ + cat $(KERNEL_ARCH_PATH)/boot/dts/$(KERNEL_DTS_NAME).dtb; \ + fi >> $(KERNEL_ARCH_PATH)/boot/zImage endef +ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y) +# We need to generate the uImage here after that so that the uImage is +# generated with the right image size. +LINUX_APPEND_DTB += $(sep)$(TARGET_MAKE_ENV) $(MAKE) +$(LINUX_MAKE_FLAGS) -C $(@D) uImage endif endif # Compilation. We make sure the kernel gets rebuilt when the
--
1.7.10.4
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot