Received: by 10.192.165.148 with SMTP id m20csp2316224imm; Sun, 6 May 2018 11:50:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbU60qpJO7Skx4+o3/9L18dzZGUnqobZsxfmwAT2rIMojV/lC7oFkENqD0V879HwVEEcHx X-Received: by 2002:a17:902:bcc4:: with SMTP id o4-v6mr23895561pls.308.1525632659715; Sun, 06 May 2018 11:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525632659; cv=none; d=google.com; s=arc-20160816; b=MJjroopWVzQ4ex8ui36RpXml0TzjO+cMKEa0wKWhOHyASjdjCnP95F2yEgputiSBNT VGenRqc20SAV3Hryfkr52CsMkjCykbXEXuxnH1LLE+s4uAS94re03rkPXexKzwck3WE5 XafOxYO2d7+RTotLoPA4OAtvHViIbJkBr5WtZPCIEQaaFKCBgumLyjkR5x7NrIP9hDDS BxwBvLri2XXh1QKV2K8pot0o7rLEh/UtSkk+9rl6LUWegY2IzPBeryaKPiaqW7uAGeqq lLQB1OkG/qrD5ykmm5BQtgxJjQzr+afe3lCb40JdL1pCj0AjFiJJ/l/IbvVomkgECwJ4 sgFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature:arc-authentication-results; bh=owF4dZH0KGCKt3x+8k+Y4CqdMqn89fSwy63TcGrt464=; b=QAsdasgBcduSHuL4S6NOCUDugmdlVLP6iJvZsfBhYB0KD5OquGKBHF0JwlhjVdbf+I FwwxRWgZ4ESEK6D/bjyl8t0VMatQixF6IWkZHoI4RSy0V7hTqLtfnoh4tP8i463BN16w AGOCEOUWSsTnn2aF8v1ZjuVrtMsmbwMjHzOQQ2fts8wlhDR9ggviskMtiamRN8WLhd+o J7MDN5DUHJHG1xRkjtkE6sTbE6u0to3rd/4qwYa8UKsJdndfQj3ubjCRb81rjdOwxC/k +dTetmJwTHcerUBBwYgRXHMgehuiuGHJ8WbENtuHLVWzijrW5j3ZH8J0ugQSW6nZ9Txr Yr0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HjiyLkFj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si20487621plb.77.2018.05.06.11.50.44; Sun, 06 May 2018 11:50:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=HjiyLkFj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751834AbeEFSui (ORCPT + 99 others); Sun, 6 May 2018 14:50:38 -0400 Received: from merlin.infradead.org ([205.233.59.134]:43232 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbeEFSug (ORCPT ); Sun, 6 May 2018 14:50:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=owF4dZH0KGCKt3x+8k+Y4CqdMqn89fSwy63TcGrt464=; b=HjiyLkFjKSKaXCogVXuNXXoRtS xq6up81iQvtVTJq1kuVCsiNl5rmKPNHP2nFXHwOYgn7K55mm3vO8FN06Ey0vQZfQ7lGsZZB7oJdif JKWcTSU08Zf144ddi/pfTtjIsGe5ZG4BZJd9NeppvYLHbRdJWZeh8/EVHzjwgkA4JF3Ip3uN8Xcup W6yuAfzkvc95Op/PzPbaQaHFuwxxbVQAJKHl8ubRjvXtmbHQ6FnLK9t6DojWm46c8AYU2cev+6nNe H8LlooyMlDrLuEhoR3jKPWXc/nGjQZuaGRJetpAZNlUjT8p2ZoGCe5QaIgy2t8ZuTWgAfmINq9GAX SzFZ5OsQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFOjv-0006gr-Of; Sun, 06 May 2018 18:50:32 +0000 To: "linux-block@vger.kernel.org" , axboe Cc: LKML , Cai Zhiyong , Andrew Morton , "linux-doc@vger.kernel.org" , Jonathan Corbet From: Randy Dunlap Subject: [PATCH] Documentation: block: cmdline-partition.txt fixes and additions Message-ID: Date: Sun, 6 May 2018 11:50:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Make the description of the kernel command line option "blkdevparts" a bit more flowing and readable. Fix a few typos. Add the optional and suffixes. Note that size can be "-" to indicate all of the remaining space. Signed-off-by: Randy Dunlap Cc: Cai Zhiyong --- Should the "ro" and "lk" flags options be described? Documentation/block/cmdline-partition.txt | 21 +++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) --- linux-next-20180504.orig/Documentation/block/cmdline-partition.txt +++ linux-next-20180504/Documentation/block/cmdline-partition.txt @@ -1,7 +1,9 @@ Embedded device command line partition parsing ===================================================================== -Support for reading the block device partition table from the command line. +The "blkdevparts" command line option adds support for reading the +block device partition table from the kernel command line. + It is typically used for fixed block (eMMC) embedded devices. It has no MBR, so saves storage space. Bootloader can be easily accessed by absolute address of data on the block device. @@ -14,22 +16,27 @@ blkdevparts=[;] := [@](part-name) - block device disk name, embedded device used fixed block device, - it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0. + block device disk name. Embedded device uses fixed block device. + Its disk name is also fixed, such as: mmcblk0, mmcblk1, mmcblk0boot0. partition size, in bytes, such as: 512, 1m, 1G. + size may contain an optional suffix of (upper or lower case): + K, M, G, T, P, E. + "-" is used to denote all remaining space. partition start address, in bytes. + offset may contain an optional suffix of (upper or lower case): + K, M, G, T, P, E. (part-name) - partition name, kernel send uevent with "PARTNAME". application can create - a link to block device partition with the name "PARTNAME". - user space application can access partition by partition name. + partition name. Kernel sends uevent with "PARTNAME". Application can + create a link to block device partition with the name "PARTNAME". + User space application can access partition by partition name. Example: - eMMC disk name is "mmcblk0" and "mmcblk0boot0" + eMMC disk names are "mmcblk0" and "mmcblk0boot0". bootargs: 'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)'