From patchwork Thu May 7 06:53:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 22248 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n476s2xv013521 for ; Thu, 7 May 2009 06:54:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757900AbZEGGw6 (ORCPT ); Thu, 7 May 2009 02:52:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757405AbZEGGw6 (ORCPT ); Thu, 7 May 2009 02:52:58 -0400 Received: from smtp.nokia.com ([192.100.122.233]:20547 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757900AbZEGGw5 (ORCPT ); Thu, 7 May 2009 02:52:57 -0400 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n476qkWL027515; Thu, 7 May 2009 09:52:47 +0300 Received: from vaepf101.NOE.Nokia.com ([10.160.244.86]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 May 2009 09:52:47 +0300 Received: from [10.162.252.245] ([10.162.252.245]) by vaepf101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 May 2009 09:52:47 +0300 Message-ID: <4A02857D.4000301@nokia.com> Date: Thu, 07 May 2009 09:53:49 +0300 From: Adrian Hunter User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Tony Lindgren CC: linux-omap Mailing List Subject: [PATCH] OMAP: RX51: Add log partition X-OriginalArrivalTime: 07 May 2009 06:52:47.0450 (UTC) FILETIME=[6E40B3A0:01C9CEE0] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From 22d5b418dd2535f326d7f3ee5661db8159b9845d Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Thu, 7 May 2009 09:45:32 +0300 Subject: [PATCH] OMAP: RX51: Add log partition Signed-off-by: Adrian Hunter --- arch/arm/configs/rx51_defconfig | 2 +- arch/arm/mach-omap2/board-rx51-peripherals.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/rx51_defconfig b/arch/arm/configs/rx51_defconfig index 2672a70..7ee4b6a 100644 --- a/arch/arm/configs/rx51_defconfig +++ b/arch/arm/configs/rx51_defconfig @@ -288,7 +288,7 @@ CONFIG_ALIGNMENT_TRAP=y # CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 -CONFIG_CMDLINE="init=/sbin/preinit ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs rw console=ttyMTD5" +CONFIG_CMDLINE="init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw console=ttyMTD,log console=tty0" # CONFIG_XIP_KERNEL is not set # CONFIG_KEXEC is not set diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 55e8568..4d10f5c 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -494,6 +494,11 @@ static struct mtd_partition onenand_partitions[] = { .size = 0x60000, }, { + .name = "log", + .offset = MTDPART_OFS_APPEND, + .size = 0x40000, + }, + { .name = "kernel", .offset = MTDPART_OFS_APPEND, .size = 0x200000,