Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [bug] bootwrapper runs before linking initrd
@ 2015-09-03 22:00 Hollis Blanchard
  2015-09-04  8:54 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2015-09-03 22:00 UTC (permalink / raw)
  To: buildroot

I have a BR config that includes the following:
BR2_LINUX_KERNEL=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_BOOT_WRAPPER_AARCH64=y

I expect that Buildroot will:

 1. build the kernel
 2. build rootfs.cpio
 3. link rootfs.cpio into the kernel as an initrd
 4. run boot-wrapper-aarch64 on the kernel+initrd

When I do a build, however, I can clearly see that step 4 happens before 
step 3. In fact, "Rebuilding kernel with initramfs" is the very last 
step of the build. "boot-wrapper-aarch64 Installing to images directory" 
happened much earlier.

(Side note: the error is far more catastrophic than a simple "couldn't 
find root filesystem" panic; it looks like big chunks of the kernel's 
data section are zeroed, so that kernel messages aren't even logged, to 
say nothing of no serial output. I don't know why this is.)

A workaround is to remember to manually "make 
boot-wrapper-aarch64-rebuild" after a regular build has completed.

What's the real solution? Thanks!

-- 
Hollis Blanchard
Mentor Graphics Emulation Division

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

end of thread, other threads:[~2015-09-04 19:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 22:00 [Buildroot] [bug] bootwrapper runs before linking initrd Hollis Blanchard
2015-09-04  8:54 ` Thomas Petazzoni
2015-09-04  9:51   ` Peter Korsgaard
2015-09-04 10:39     ` Thomas Petazzoni
2015-09-04 19:52   ` Arnout Vandecappelle

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