From mboxrd@z Thu Jan 1 00:00:00 1970 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 1C0DEC678DB for ; Sat, 4 Mar 2023 10:40:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C042859F2; Sat, 4 Mar 2023 11:40:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="WnPOJ6Mz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11BBA859AC; Sat, 4 Mar 2023 11:40:06 +0100 (CET) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E5C7F859AC for ; Sat, 4 Mar 2023 11:40:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 71B56B816A0; Sat, 4 Mar 2023 10:40:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F264EC4339B; Sat, 4 Mar 2023 10:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677926401; bh=sUlJVzRpqCCE0cMQC1/VZdKNv1Pj+iQwdMIdzv6pdew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WnPOJ6MzIq79K0RgfXYhfYu42POAPGNUHoeYuQaLG5tmZmlgVTXWfUKrzXUmRWDPY dv05eMSxQgodrPtERDTdSaiQmCjQdJqzwbjCC6W20lRERBKtSeWBMF5rjBEpHUtoEW T4tezGHHFkbDTABscIPLBzhFil0aks+ODPplXVhlJb8Nc+qYXHNcaaSlBLrzwzBJTo mdXuyzXUag5YfMa2fv6KcvjPqhYoxseY+ia9mF2sTe6oc9yHdXqaeT4RvU33Uq6apj 2RtJeayzXl0s4WGAMldknB5aOSqcy5pETnYZkcTu9XZIMWHpMB4Z+bycuAspOQI4HX 0Cn7jql/ox9aw== Received: by pali.im (Postfix) id 23BFFE2D; Sat, 4 Mar 2023 11:39:58 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Martin Rowe Cc: u-boot@lists.denx.de Subject: [PATCH RFC u-boot-mvebu 1/2] tools: kwboot: Fix MMC HW boot partitions info Date: Sat, 4 Mar 2023 11:38:50 +0100 Message-Id: <20230304103851.18965-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230304103851.18965-1-pali@kernel.org> References: <20230304103851.18965-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.6 at phobos.denx.de X-Virus-Status: Clean Boot configuration stored in EXT_CSC register is completely ignored by BootROM. Fixes: fa03279e198d ("tools: kwboot: Add image type documentation") Signed-off-by: Pali Rohár --- tools/kwboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index 7c666486f31f..1844d7291fe0 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -106,9 +106,9 @@ * 1024 bytes long sector sizes and also can be changed at runtime. * * For MMC-compatible devices, image can be stored at offset 0 or at offset - * 2 MB. If MMC device supports HW boot partitions then image must be stored - * on the HW partition as is configured in the EXT_CSC register (it can be - * either boot or user data). + * 2 MB. If MMC device supports HW boot partitions then image is read from + * partitions in following order: Boot 0, Boot 1, User Data partition. + * Boot configuration stored in EXT_CSC register is completely ignored. * * Note that source address for SDIO image is stored in byte unit, like for * any other images (except SATA). Marvell Functional Specifications for -- 2.20.1