From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932435Ab1ISDcy (ORCPT ); Sun, 18 Sep 2011 23:32:54 -0400 Received: from void.printf.net ([89.145.121.20]:42499 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754017Ab1ISDcw (ORCPT ); Sun, 18 Sep 2011 23:32:52 -0400 From: Chris Ball To: NamJae Jeon Cc: Linus Walleij , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: RFC : mmc : boot partition is set as a read-write. References: Date: Sun, 18 Sep 2011 23:32:46 -0400 In-Reply-To: (NamJae Jeon's message of "Mon, 19 Sep 2011 12:10:28 +0900") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Sep 18 2011, NamJae Jeon wrote: > mmc : boot partition is set as a read-write. > > There is a case that user directly update boot partition through mmcblk0boot0,1. > However, the current boot partition is set as a read-only. > I suggest that boot partition is set as a read-write if there is no > reason that it should be read-only. There is a reason. Documentation/mmc/mmc-dev-parts.txt: MMC Boot Partitions =================== Read and write access is provided to the two MMC boot partitions. Due to the sensitive nature of the boot partition contents, which often store a bootloader or bootloader configuration tables crucial to booting the platform, write access is disabled by default to reduce the chance of accidental bricking. To enable write access to /dev/mmcblkXbootY, disable the forced read-only access with: echo 0 > /sys/block/mmcblkXbootY/force_ro == - Chris. -- Chris Ball One Laptop Per Child