From patchwork Tue Sep 18 08:49:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1471361 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6790FDF24C for ; Tue, 18 Sep 2012 08:54:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755047Ab2IRIyh (ORCPT ); Tue, 18 Sep 2012 04:54:37 -0400 Received: from na3sys009aog125.obsmtp.com ([74.125.149.153]:53765 "EHLO na3sys009aog125.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849Ab2IRIyg (ORCPT ); Tue, 18 Sep 2012 04:54:36 -0400 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]) (using TLSv1) by na3sys009aob125.postini.com ([74.125.148.12]) with SMTP ID DSNKUFg2yjpeiOoRyMMcH1rjEpiKlpZKQcf+@postini.com; Tue, 18 Sep 2012 01:54:35 PDT Received: by lagy9 with SMTP id y9so4781359lag.19 for ; Tue, 18 Sep 2012 01:54:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=+tMpX/DY1EdMCAg0asAS+7nigBp7C1l5nL21yAzDDYo=; b=BxgQrz+CNltSXbkdVcOeDmN+kS7SAPN1lsmMTA8fmI+TwEeAe+X0MLTiGLcjwfTu1u Y5XR9/X5CushpgVn0WhGlIJB6JbUQ5452klonqoWjMdouIFf3GSKokGI5cybcTzXezxS dEAE+uR3TTf/QgQzSDTXyxy8KMg+qaKfAb52fpE33gauypNBzf/SphoEgOQbhPzk35cs blxOI5rFeYpdpz2K71b/mSsVflSf13jJD3V05y18vbjz9zCLd2hUuaCRorw732N7U0Xu GLL9GRcwwqHXUOStPj0fmS6CKKsw+Oj5IbFt44PlQo7DKG2suK8r1FuFaTIlgyCjEXBM +wug== Received: by 10.112.51.228 with SMTP id n4mr13197lbo.55.1347958473264; Tue, 18 Sep 2012 01:54:33 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id d1sm3195425lbh.7.2012.09.18.01.54.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Sep 2012 01:54:32 -0700 (PDT) Date: Tue, 18 Sep 2012 11:49:52 +0300 From: Felipe Balbi To: Maximilian Schwerin Cc: linux-omap@vger.kernel.org Subject: Re: How to disable message "Uncompressing linux..." on kernel start? Message-ID: <20120918084951.GA22993@arwen.pp.htv.fi> Reply-To: balbi@ti.com References: <5448984682E7954C9BFF27F747A9C6CA56E2F0@dolphin.TIGRIS.local> <5448984682E7954C9BFF27F747A9C6CA56E308@dolphin.TIGRIS.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5448984682E7954C9BFF27F747A9C6CA56E308@dolphin.TIGRIS.local> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQk3Z2mpsTe864PJXtQwYF3ok7eOvnyybSAY6500TlY40Vu+JTI9DFEX2TcVYtnSYG11daUQ Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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"); }