Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B923C77B70 for ; Fri, 14 Apr 2023 06:06:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8645285C03; Fri, 14 Apr 2023 08:06:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1681452376; bh=tB2D9ujDmJzAdXT6Xh7dTHBKuffSqZP4wX2ntTANC40=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Weag7nHSBP0Qa0GCoWwys1l9lgEEkQoY5ahfJyUKYps0rY5wlUKDglIRTW4n/K9gM f3kMQRg7bT0y/eenNSDfeRIpM777ZpGcnn5Ok8VDVrz0QmxfGOqaKCMVQvRFGU1hYt KKJDH1UUmIWV/ecKqeL2hLynMLBtwC09o0I78Xp3uWouKY3/ouzl4JOFpdad98bXV6 eAuuLOu6B1JXesYcXMSeQhbpoqrk+bOWAaosu/AUPtUc/r1QdccGnGzKl+x3VrwOso 9zbIO5tTYixwY76l/VAvgF5mnaFVIQ4VkSdOcEzAJhhgZg4waCBAZFDeU0rdtJyPFe ICrNhS/tTP2CA== Received: by phobos.denx.de (Postfix, from userid 109) id B014D85D13; Fri, 14 Apr 2023 08:06:14 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [80.241.59.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1E78C85B6E for ; Fri, 14 Apr 2023 08:06:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (unknown [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4PyQtV1GmQz9sSw; Fri, 14 Apr 2023 08:06:10 +0200 (CEST) Message-ID: <2e142218-77a2-e66b-397d-958670fae678@denx.de> Date: Fri, 14 Apr 2023 08:06:08 +0200 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-mvebu 0/7] arm: mvebu: Boot support for 4K Native disks To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Martin Rowe , Tony Dinh , Chris Packham , Baruch Siach Cc: u-boot@lists.denx.de References: <20230329192558.12417-1-pali@kernel.org> Content-Language: en-US From: Stefan Roese In-Reply-To: <20230329192558.12417-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 3/29/23 21:25, Pali Rohár wrote: > This patch series allows to build SATA kwbimage for disks which do not > have sector size 512 bytes long. For example 4K Native disks. > > SATA kwbimage differs from other kwbimage types in that way, that offset > in its header is stored in SATA sectors units instead of byte units. > Therefore image generator needs to know sector size of the target SATA > disk. Currently both kwbimage and mkimage has hardcoded SATA sector size > to 512 bytes. > > This patch series allows to specify custom SATA sector size via a new > config option CONFIG_MVEBU_SPL_SATA_BLKSZ. And add autodetection of the > sector size into kwboot to allow parsing such images. > > Maximal theoretical sector size is 32 kB because ATA IDENTIFY command > returns sector size as 16-bit number and sector size should be power > of two. > > Pali Rohár (7): > arm: mvebu: spl: Do not hardcode SATA block size to 512 > cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512 > tools: imagetool: Extend print_header() by params argument > tools: kwbimage: Simplify align code > tools: kwbimage: Add support for SATA images with non-512 byte block > size > tools: kwboot: Add support for parsing SATA images with non-512 block > size > arm: mvebu: spl: Allow to build SATA kwbimage for 4K Native disks > > arch/arm/mach-mvebu/Kconfig | 10 ++ > arch/arm/mach-mvebu/Makefile | 5 + > arch/arm/mach-mvebu/kwbimage.cfg.in | 3 + > arch/arm/mach-mvebu/spl.c | 11 ++- > cmd/mvebu/bubt.c | 7 +- > tools/aisimage.c | 2 +- > tools/atmelimage.c | 2 +- > tools/default_image.c | 7 +- > tools/fit_common.c | 5 + > tools/fit_common.h | 2 + > tools/fit_image.c | 2 +- > tools/gpimage.c | 2 +- > tools/imagetool.c | 4 +- > tools/imagetool.h | 2 +- > tools/imx8image.c | 2 +- > tools/imx8mimage.c | 2 +- > tools/imximage.c | 2 +- > tools/kwbimage.c | 144 ++++++++++++++++++---------- > tools/kwboot.c | 35 ++++++- > tools/lpc32xximage.c | 2 +- > tools/mkimage.c | 2 +- > tools/mtk_image.c | 2 +- > tools/mxsimage.c | 2 +- > tools/omapimage.c | 2 +- > tools/pblimage.c | 2 +- > tools/rkcommon.c | 2 +- > tools/rkcommon.h | 2 +- > tools/socfpgaimage.c | 2 +- > tools/stm32image.c | 2 +- > tools/sunxi_egon.c | 2 +- > tools/sunxi_toc0.c | 2 +- > tools/ublimage.c | 2 +- > tools/vybridimage.c | 2 +- > tools/zynqimage.c | 2 +- > tools/zynqmpimage.c | 2 +- > tools/zynqmpimage.h | 2 +- > 36 files changed, 199 insertions(+), 84 deletions(-) > Applied to u-boot-marvell/master Thanks, Stefan