From patchwork Thu Mar 7 15:15:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 225868 X-Patchwork-Delegate: agust@denx.de 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 CA3272C03BB for ; Fri, 8 Mar 2013 02:15:33 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 08A524A300; Thu, 7 Mar 2013 16:15:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 qQNO-V7zjkYt; Thu, 7 Mar 2013 16:15:31 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D33CE4A2F6; Thu, 7 Mar 2013 16:15:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 65D394A2F6 for ; Thu, 7 Mar 2013 16:15:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 y9S57pjVGl49 for ; Thu, 7 Mar 2013 16:15:25 +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-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by theia.denx.de (Postfix) with ESMTPS id 331E04A2F4 for ; Thu, 7 Mar 2013 16:15:23 +0100 (CET) Received: by mail-ee0-f53.google.com with SMTP id e53so415145eek.40 for ; Thu, 07 Mar 2013 07:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=xh9Ka2b3lRd/qqfuhQhEnD1PUQAtY2FVftWmFplwcVU=; b=gUwFSDrGOeoDrhwP/DtM55FJ9JRlkXJ+et7UX1AaH48FYZr8tktZXKiKSBQXzGqEDJ 5hBZxAzr95BYNtz2um4MX5aQVVWpE+EnyLGSsa5yd/73plnjN7B1cxjkj4o/ggHLS2v7 hrALVziCmXKS73BPQMOzZVe67HVD3YviltSrXffMMMl1jjDRX2N8M1Q7SihXP3ma+fzQ Uwde+2NvBNn0XTlhe/S7oHokAIQQgJTpzKb4hUwLoqLBEswtNPQXepuCQa0XGj+42mBb x0hZwmF9J3EeonKSiRNrL7gtGF1ZbS00XLcti+M/fFVn4gb/Ti/ZmDFDRWP7snwV1GgR 0AUA== X-Received: by 10.14.225.72 with SMTP id y48mr73882141eep.45.1362669323053; Thu, 07 Mar 2013 07:15:23 -0800 (PST) Received: from pali-elitebook.localnet ([2001:718:1e03:a01::1ca]) by mx.google.com with ESMTPS id a1sm2695153eep.2.2013.03.07.07.15.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 07:15:21 -0800 (PST) From: Pali =?utf-8?q?Roh=C3=A1r?= To: u-boot@lists.denx.de Date: Thu, 7 Mar 2013 16:15:19 +0100 User-Agent: KMail/1.13.7 (Linux/3.5.0-26-generic; KDE/4.10.1; x86_64; ; ) References: <1338136729-3907-1-git-send-email-pali.rohar@gmail.com> <1359731279-22431-1-git-send-email-pali.rohar@gmail.com> <1359731279-22431-5-git-send-email-pali.rohar@gmail.com> In-Reply-To: <1359731279-22431-5-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Message-Id: <201303071615.19379@pali> Subject: Re: [U-Boot] [PATCH v3 4/4] RX-51: Add support for bootmenu X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Hi, I'm sending new version of patch which try to use also ext filesystem (not only fat) From 4798e0c932577012ccde38f6b23413109f4b2fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sat, 14 Jan 2012 18:57:31 +0100 Subject: [PATCH] RX-51: Add support for bootmenu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * default bootmenu entries: attached kernel, internal eMMC memory, external SD card, u-boot boot order * in CONFIG_PREBOOT try load bootmenu.scr from first partition of internal eMMC memory (also known as MyDocs) which (should) overwrite default bootmenu entries * when keyboard slide is closed boot first menu entry * when keyborad slide is open show bootmenu Signed-off-by: Pali Rohár --- include/configs/nokia_rx51.h | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/include/configs/nokia_rx51.h b/include/configs/nokia_rx51.h index 8506604..965330a 100644 --- a/include/configs/nokia_rx51.h +++ b/include/configs/nokia_rx51.h @@ -148,6 +148,7 @@ #define CONFIG_CMDLINE_EDITING /* add command line history */ #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ +#define CONFIG_CMD_BOOTMENU /* ANSI terminal Boot Menu */ #define CONFIG_CMD_CLEAR /* ANSI terminal clear screen command */ #ifdef ONENAND_SUPPORT @@ -287,8 +288,6 @@ int rx51_kp_getc(void); #endif /* Environment information */ -#define CONFIG_BOOTDELAY 3 - #define CONFIG_EXTRA_ENV_SETTINGS \ "mtdparts=" MTDPARTS_DEFAULT "\0" \ "usbtty=cdc_acm\0" \ @@ -360,10 +359,40 @@ int rx51_kp_getc(void); "fi\0" \ "emmcboot=setenv mmcnum 1; run trymmcboot\0" \ "sdboot=setenv mmcnum 0; run trymmcboot\0" \ + "menucmd=bootmenu\0" \ + "bootmenu_0=Attached kernel=run attachboot\0" \ + "bootmenu_1=Internal eMMC=run emmcboot\0" \ + "bootmenu_2=External SD card=run sdboot\0" \ + "bootmenu_3=U-Boot boot order=boot\0" \ + "bootmenu_delay=30\0" \ "" #define CONFIG_PREBOOT \ - "if run slide; then true; else run attachboot; fi;" \ + "setenv mmcnum 1; setenv mmcpart 1;" \ + "setenv mmcscriptfile bootmenu.scr;" \ + "if run switchmmc; then " \ + "setenv mmcdone true;" \ + "setenv mmctype fat;" \ + "if run scriptload; then true; else " \ + "setenv mmctype ext2;" \ + "if run scriptload; then true; else " \ + "setenv mmctype ext4;" \ + "if run scriptload; then true; else " \ + "setenv mmcdone false;" \ + "fi;" \ + "fi;" \ + "fi;" \ + "if ${mmcdone}; then " \ + "run scriptboot;" \ + "fi;" \ + "fi;" \ + "if run slide; then true; else " \ + "setenv bootmenu_delay 0;" \ + "setenv bootdelay 0;" \ + "fi" + +#define CONFIG_POSTBOOTMENU \ + "echo;" \ "echo Extra commands:;" \ "echo run sercon - Use serial port for control.;" \ "echo run usbcon - Use usbtty for control.;" \ @@ -379,6 +408,11 @@ int rx51_kp_getc(void); "run attachboot;" \ "echo" +#define CONFIG_BOOTDELAY 30 +#define CONFIG_AUTOBOOT_KEYED +#define CONFIG_MENU +#define CONFIG_MENU_SHOW + /* * Miscellaneous configurable options */