All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] build hangs when building kernel
@ 2013-01-07 16:16 Sagaert Johan
  2013-01-07 23:34 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2013-01-07 16:16 UTC (permalink / raw)
  To: buildroot

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
>>> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] build hangs when building kernel
  2013-01-07 16:16 [Buildroot] build hangs when building kernel Sagaert Johan
@ 2013-01-07 23:34 ` Arnout Vandecappelle
  2013-01-07 23:35   ` [Buildroot] [PATCH] linux: fix appended dtb handling of pre/post v3.8-rc1 Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2013-01-07 23:34 UTC (permalink / raw)
  To: buildroot

On 07/01/13 17:16, Sagaert Johan wrote:
> 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.

  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]


-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] linux: fix appended dtb handling of pre/post v3.8-rc1
  2013-01-07 23:34 ` Arnout Vandecappelle
@ 2013-01-07 23:35   ` Arnout Vandecappelle
  2013-01-08 22:21     ` [Buildroot] [PATCH] linux: fix appended dtb handling of pre/postv3.8-rc1 Sagaert Johan
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2013-01-07 23:35 UTC (permalink / raw)
  To: buildroot

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Also fix duplication of 'define LINUX_APPEND_DTB' line, and refactor
the common part out.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 linux/linux.mk |   28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index 7ec9cd2..61d4267 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] linux: fix appended dtb handling of pre/postv3.8-rc1
  2013-01-07 23:35   ` [Buildroot] [PATCH] linux: fix appended dtb handling of pre/post v3.8-rc1 Arnout Vandecappelle
@ 2013-01-08 22:21     ` Sagaert Johan
  0 siblings, 0 replies; 4+ messages in thread
From: Sagaert Johan @ 2013-01-08 22:21 UTC (permalink / raw)
  To: buildroot

 
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)" <arnout@mind.be>

Also fix duplication of 'define LINUX_APPEND_DTB' line, and refactor the common part out.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 linux/linux.mk |   28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk index 7ec9cd2..61d4267 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-08 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 16:16 [Buildroot] build hangs when building kernel Sagaert Johan
2013-01-07 23:34 ` Arnout Vandecappelle
2013-01-07 23:35   ` [Buildroot] [PATCH] linux: fix appended dtb handling of pre/post v3.8-rc1 Arnout Vandecappelle
2013-01-08 22:21     ` [Buildroot] [PATCH] linux: fix appended dtb handling of pre/postv3.8-rc1 Sagaert Johan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.