From: Dmitry Osipenko Subject: Re: [PATCH v1] partitions/efi: Add 'gpt_sector' kernel cmdline parameter Date: Wed, 19 Feb 2020 19:36:32 +0300 Message-ID: References: <20200219162339.16192-1-digetx@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-block-owner@vger.kernel.org To: Ard Biesheuvel Cc: Jens Axboe , Davidlohr Bueso , Colin Cross , Thierry Reding , Jonathan Hunter , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , David Heidelberg , Peter Geis , linux-efi , linux-tegra@vger.kernel.org, linux-block@vger.kernel.org, Linux Doc Mailing List , Linux Kernel Mailing List List-Id: linux-tegra@vger.kernel.org 19.02.2020 19:26, Ard Biesheuvel пишет: > On Wed, 19 Feb 2020 at 17:25, Dmitry Osipenko wrote: >> >> The gpt_sector= causes the GPT partition search to look at the >> specified sector for a valid GPT header if the GPT is not found at the >> beginning or the end of block device. >> >> In particular this is needed for NVIDIA Tegra consumer-grade Android >> devices in order to make them usable with the upstream kernel because >> these devices use a proprietary / closed-source partition table format >> for the EMMC and it's impossible to change the partition's format. Luckily >> there is a GPT table in addition to the proprietary table, which is placed >> in uncommon location of the EMMC storage and bootloader passes the >> location to kernel using "gpt gpt_sector=" cmdline parameters. >> >> This patch is based on the original work done by Colin Cross for the >> downstream Android kernel. >> >> Cc: Colin Cross >> Signed-off-by: Dmitry Osipenko > > Which block device is this parameter applied to? All available devices.