Re: Compressed kernels currently won't boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31.07.19 23:08, Sven Schnelle wrote:
Hi,

On Wed, Jul 31, 2019 at 02:01:34PM -0700, James Bottomley wrote:
On Wed, 2019-07-31 at 21:44 +0200, Sven Schnelle wrote:
Hi James,

On Wed, Jul 31, 2019 at 12:40:12PM -0700, James Bottomley wrote:

What about causing the compressed make to build both a stripped and
a non-stripped bzImage (say sbzImage and bzImage).  That way you
always have the stripped one available for small size things like
boot from tape or DVD?  but in the usual case we use the bzImage
with full contents.

In that case we would also need to build two lifimages - how about
adding a config option option? Something like "Strip debug
information from compressed kernel images"?

Actually, I just looked at what x86 does.  It has this in the
arch/x86/boot/compressed/Makefile:

OBJCOPYFLAGS_vmlinux.bin :=  -R .comment -S
$(obj)/vmlinux.bin: vmlinux FORCE
	$(call if_changed,objcopy)

So it basically strips all the debug information from the kernel before
compressing, which argues there's no need to retain the information
because x86 doesn't bother.

Nice. So we could convince Helge by saying "Look, x86 is also stripping it"! :-)

I'm fine with doing exactly why x86 does :-)

Helge




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux