Re: How to disable message "Uncompressing linux..." on kernel start?

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

 



Hi,

On Tue, Sep 18, 2012 at 08:39:53AM +0200, Maximilian Schwerin wrote:
> I have been convinced that my patch for disabling the message
> "Uncompressing linux..." on kernel start was not all that good an idea.
> As the problem still remains an issue for me and I'd like to find a fix
> for everyone I'd like to ask for pointers where or how to fix this.
> 
> To sum up my problem: I'm using the primary serial port on an OMAP3 as a
> debug console for development. In production we set the u-boot silent
> option which disables all kernel logging to this serial port. The only
> kernel message that remains is "Uncompressing linux..." at the very
> beginning. As we connect an external device via this port in production
> environments this is not acceptable.

I don't think that would be an acceptable patch upstream, but you can
hold a local patch to remove that print from your own kernel. I'd still
try to get the production environment to ignore that "Uncompressing
Linux..." string, otherwise you will have to keep patching the kernel
for every release you try to use. Anyway, this should do:

diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c
index 8e2a8fc..e7c8ff3 100644
--- a/arch/arm/boot/compressed/misc.c
+++ b/arch/arm/boot/compressed/misc.c
@@ -144,11 +144,8 @@ decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
 
 	arch_decomp_setup();
 
-	putstr("Uncompressing Linux...");
 	ret = do_decompress(input_data, input_data_end - input_data,
 			    output_data, error);
 	if (ret)
 		error("decompressor returned an error");
-	else
-		putstr(" done, booting the kernel.\n");
 }

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux