Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53])
@ 2012-10-19 15:02 Sagaert Johan
  2012-10-19 20:46 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2012-10-19 15:02 UTC (permalink / raw)
  To: buildroot

 
Hi all

I am trying to build the Kernel from within buildroot but fails starting.

When I build the kernel from the commandline en append the dts file then it works :

This is giving me a working kernel:

#The DT configuration data needs to be converted to a binary blob and
#appended to the kernel zImage:
#1. Compile the kernel (including modules and DT data):
make ARCH=arm CROSS_COMPILE=arm-linux- zImage dtbs modules

#2. Concatenate the kernel with the generated DT blob:
cat arch/arm/boot/zImage arch/arm/boot/tx53.dtb > arch/arm/boot/zImage_tx53

When I look under output/images I see only zImage, not the kernel with the appended dts blob (zImge_tx53).
So is there something I am overlooking ?

Regards
Sagaert Johan

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

* [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53])
  2012-10-19 15:02 [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53]) Sagaert Johan
@ 2012-10-19 20:46 ` Arnout Vandecappelle
  2012-10-20  9:25   ` Sagaert Johan
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-10-19 20:46 UTC (permalink / raw)
  To: buildroot

On 19/10/12 17:02, Sagaert Johan wrote:
> #2. Concatenate the kernel with the generated DT blob:
> cat arch/arm/boot/zImage arch/arm/boot/tx53.dtb>  arch/arm/boot/zImage_tx53
>
> When I look under output/images I see only zImage, not the kernel with the appended dts blob (zImge_tx53).

  This is what buildroot does, except it goes to images/zImage.
Can you verify that buildroot builds arch/arm/boot/tx53.dtb correctly?  It builds
just one specific dtb, not all dtbs, so that should be easy to verify.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
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] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53])
  2012-10-19 20:46 ` Arnout Vandecappelle
@ 2012-10-20  9:25   ` Sagaert Johan
  2012-10-20 12:33     ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2012-10-20  9:25 UTC (permalink / raw)
  To: buildroot

 
Hi Arnout

After logging the output of make i found that if you have build the kernel without the dtb appended and switch on the option
afterwards then buildroot does not do the appending when make is run again...
Would it need some .dtb_appended stamp in the linux.mk makefile ?


-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Arnout Vandecappelle
Verzonden: vrijdag 19 oktober 2012 22:47
Aan: Sagaert Johan
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53])

On 19/10/12 17:02, Sagaert Johan wrote:
> #2. Concatenate the kernel with the generated DT blob:
> cat arch/arm/boot/zImage arch/arm/boot/tx53.dtb>  
> arch/arm/boot/zImage_tx53
>
> When I look under output/images I see only zImage, not the kernel with the appended dts blob (zImge_tx53).

  This is what buildroot does, except it goes to images/zImage.
Can you verify that buildroot builds arch/arm/boot/tx53.dtb correctly?  It builds just one specific dtb, not all dtbs, so that
should be easy to verify.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
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 _______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53])
  2012-10-20  9:25   ` Sagaert Johan
@ 2012-10-20 12:33     ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-10-20 12:33 UTC (permalink / raw)
  To: buildroot

On 20/10/12 11:25, Sagaert Johan wrote:
>
> Hi Arnout
>
> After logging the output of make i found that if you have build the kernel without the dtb appended and switch on the option
> afterwards then buildroot does not do the appending when make is run again...
> Would it need some .dtb_appended stamp in the linux.mk makefile ?

  Buildroot never rebuilds things automatically when you change the
configuration.  E.g. if you change the "kernel config file to use", this
will not trigger a reconfigure.  Or if you change from zImage to bzImage,
it is not rebuilt.  Sometimes it does rebuild, but that's more by accident
than anything else.

  Automatically detecting changes in the config would be possible, but messy.
I don't think we want to add that complexity to buildroot.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
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

end of thread, other threads:[~2012-10-20 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-19 15:02 [Buildroot] Kernel does not boot : dts is not appended to the kernel (Karo TX53 [imx53]) Sagaert Johan
2012-10-19 20:46 ` Arnout Vandecappelle
2012-10-20  9:25   ` Sagaert Johan
2012-10-20 12:33     ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox