From patchwork Thu Jan 8 07:02:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Siamashka X-Patchwork-Id: 426526 X-Patchwork-Delegate: hdegoede@redhat.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 6BCCA1400F1 for ; Thu, 8 Jan 2015 18:02:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 55F714B65D; Thu, 8 Jan 2015 08:02:47 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F59BYQ3LwXe0; Thu, 8 Jan 2015 08:02:47 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 37FBD4B65F; Thu, 8 Jan 2015 08:02:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A0824B62C for ; Thu, 8 Jan 2015 08:02:40 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OGVF5dXMsHHu for ; Thu, 8 Jan 2015 08:02:40 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by theia.denx.de (Postfix) with ESMTPS id 49F914B627 for ; Thu, 8 Jan 2015 08:02:37 +0100 (CET) Received: by mail-lb0-f177.google.com with SMTP id b6so1340952lbj.8 for ; Wed, 07 Jan 2015 23:02:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=km4gUmWH1wyHE2AVOTOSphbv2oaYqiofiu732iF3II0=; b=pagVTbzZbaBVer8eo4ElTe2ePd+LoJetUMF3ezlnGZm0ZnupC0nYs4L9QXBtMVESq+ LbqcEkscuK9vnm3K3v8b12dJ5IDGPjAjGGsuFKYbch0BSwoK58zLh/ju8EWOSd3p6jT7 6NXSEocxkldlIvCEX/PRUgHY9UxOradbf7g9NOu5Pt/KrQB+L18JiNLSNiRKnHyCpOJU aihvRrXwpFbqrS1GpMNQkZn0es7S+nov/+512McIuhR7LW9cn5TGyEOyOdYSGAIR8DlR qVIs1iEpW+excMARscTtSHkC1I7ZDuVq3r4LB64TdPLI6xCOghb6xPMwklYQeOlevqbB Zz9Q== X-Received: by 10.112.154.70 with SMTP id vm6mr10668933lbb.18.1420700556611; Wed, 07 Jan 2015 23:02:36 -0800 (PST) Received: from localhost.localdomain ([212.16.98.80]) by mx.google.com with ESMTPSA id qg5sm926472lbb.42.2015.01.07.23.02.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jan 2015 23:02:35 -0800 (PST) From: Siarhei Siamashka To: u-boot@lists.denx.de Date: Thu, 8 Jan 2015 09:02:32 +0200 Message-Id: <1420700552-17474-2-git-send-email-siarhei.siamashka@gmail.com> X-Mailer: git-send-email 2.0.5 In-Reply-To: <1420700552-17474-1-git-send-email-siarhei.siamashka@gmail.com> References: <1420700552-17474-1-git-send-email-siarhei.siamashka@gmail.com> Cc: Ian Campbell Subject: [U-Boot] [PATCH 2/2] sunxi: Enable pre-console buffer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This allows to always have a complete log on the VGA/HDMI/LCD console. Signed-off-by: Siarhei Siamashka --- include/configs/sunxi-common.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index b4324ee..5ddcc42 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -272,10 +272,15 @@ #ifndef CONFIG_SPL_BUILD #include +/* Enable pre-console buffer to get complete log on the VGA console */ +#define CONFIG_PRE_CONSOLE_BUFFER +#define CONFIG_PRE_CON_BUF_SZ (1024 * 1024) +#define CONFIG_PRE_CON_BUF_ADDR (0x43000000 - CONFIG_PRE_CON_BUF_SZ) + /* * 240M RAM (256M minimum minus space for the framebuffer), - * 32M uncompressed kernel, 16M compressed kernel, 1M fdt, - * 1M script, 1M pxe and the ramdisk at the end. + * 32M uncompressed kernel, 15M compressed kernel, 1M pre-console + * buffer, 1M fdt, 1M script, 1M pxe and the ramdisk at the end. */ #define MEM_LAYOUT_ENV_SETTINGS \ "bootm_size=0xf000000\0" \