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 BFA75C64EC4 for ; Sat, 4 Mar 2023 10:40:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D3E14859BA; Sat, 4 Mar 2023 11:40:10 +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="jWNUpcVd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4F29859FD; Sat, 4 Mar 2023 11:40:06 +0100 (CET) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::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 69618859BC for ; Sat, 4 Mar 2023 11:40:03 +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 sin.source.kernel.org (Postfix) with ESMTPS id B09EBCE2079; Sat, 4 Mar 2023 10:40:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8A93C433EF; Sat, 4 Mar 2023 10:39:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677926399; bh=vnqw00WXgVqKj5XvFk2AiKckYMuPRYJ9+8jTbhfpcBQ=; h=From:To:Cc:Subject:Date:From; b=jWNUpcVdzSVoi2CMwWo8YguDRzk0IWR/pgW3CqX8oFGmo+ZHZ4oDR4f/C99zGGRvZ YxLU6tNGuS8cWgvbblsCZmf3OrZHTyIBff7tBj9tuZWLkg9mn3gsWa5Smy6nLnMV22 mjIDSWvSSV2+KaLchjdOJDd618Eip9D9himRlSf9qIZ+1RZfR5rhERaZbeoMfXfV/q S6fpTBe1Y+MAz2Bkn4/vm2RGEWCpRLITlKR46hkJjLHOJDB+tWf2sD+79To7ph1Hak g6VY8ywdCXDJZoITKxlCRJEhivly1oRTI5VSLJt9XEIT80qw8NcC8ZVtawICHODPjS i3cqtrtGbguRg== Received: by pali.im (Postfix) id 501757B3; Sat, 4 Mar 2023 11:39:56 +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 0/2] arm: mvebu: Fix eMMC boot Date: Sat, 4 Mar 2023 11:38:49 +0100 Message-Id: <20230304103851.18965-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 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: https://lore.kernel.org/u-boot/CAOAjy5SYPPzWKok-BSGYwZwcKOQt_aZPgh6FTbrFd3F=8DM5ZQ@mail.gmail.com/ Reflect this eMMC booting in documentation and in the code. Martin, can you test this patch series if SPL and main U-Boot is loaded from the same eMMC HW partition? When bootloader is stored on Boot 0, then SPL should take care of loading and executing main U-Boot. When it is stored on Boot 1 or User Data then SPL should return back to BootROM and let BootROM to load and execute main U-Boot. Pali Rohár (2): tools: kwboot: Fix MMC HW boot partitions info arm: mvebu: spl: Load proper U-Boot from eMMC Boot 0 partition arch/arm/mach-mvebu/Kconfig | 1 + arch/arm/mach-mvebu/spl.c | 13 +++++++------ tools/kwboot.c | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) -- 2.20.1