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 1B4B4C77B60 for ; Wed, 26 Apr 2023 23:44:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 45549862ED; Thu, 27 Apr 2023 01:44:34 +0200 (CEST) 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="EDePW5Xe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 531F28575B; Thu, 27 Apr 2023 01:44:32 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::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 0CF2385B6E for ; Thu, 27 Apr 2023 01:44:29 +0200 (CEST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4FED9638A9; Wed, 26 Apr 2023 23:44:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9347BC433EF; Wed, 26 Apr 2023 23:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682552666; bh=Y/YM3PPlZ7oyZCrn2s9jON559epoMhGjf6UiHnyfT38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EDePW5XekDT3gm1wGRrZEGDUF58xdA4p7zhpYjaFjmKnkZuYz3uyrlHxHKFRlVBC1 VkCOg48J58qtpb1rdlwU+jp2s6902r4RtNTPivn5mbwDl/uboYzm9QfjhiEjntnJRv eQNASzW8+bMBU+eY1ZVF7EIRkJtT2iH7iMPLTNLR53DyjnKv3eGDV2g91WRlEdCRET KdjJClh83vMCdA3esCNpTfD2J2Ir7cTXLvH9xs5lUSTc9vRybLBNkGtXE3aJD8yuAu KTZFGkKGVyNqOGz3ssRHpG7IUBEkcynGc3mQ0EDdHvj6a++yYVac/LZgbhGO4Naai9 mHKUQa3DJl04Q== Received: by pali.im (Postfix) id C50AC832; Thu, 27 Apr 2023 01:44:23 +0200 (CEST) Date: Thu, 27 Apr 2023 01:44:23 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Martin Rowe Cc: Stefan Roese , u-boot@lists.denx.de Subject: Re: [PATCH v2 u-boot-mvebu 4/4] arm: mvebu: clearfog: Update eMMC/SD/SATA instructions Message-ID: <20230426234423.gsitkyax7j3kqpac@pali> References: <20230413205750.10641-1-pali@kernel.org> <20230413205750.10641-5-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 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 Thursday 13 April 2023 22:43:25 Martin Rowe wrote: > On Thu, 13 Apr 2023 at 20:58, Pali Rohár wrote: > > > > BootROM and neither SPL does not use eMMC boot acknowledgement or boot > > enable bits in EXT_CSD_PART_CONF eMMC register. And also fixed SATA disk > > sector 0x141 is not used at all. > > > > Signed-off-by: Pali Rohár > > SPL successfully loads u-boot from the same partition as SPL. SD card > and UART continue to boot. > > Thanks Pali! > > Tested-by: Martin Rowe Ok, is something more needed for this patch series? > > --- > > board/solidrun/clearfog/README | 20 ++++++++++---------- > > 1 file changed, 10 insertions(+), 10 deletions(-) > > > > diff --git a/board/solidrun/clearfog/README b/board/solidrun/clearfog/README > > index ed4a712c5aa2..c86b37061a30 100644 > > --- a/board/solidrun/clearfog/README > > +++ b/board/solidrun/clearfog/README > > @@ -1,7 +1,7 @@ > > Update from original Marvell U-Boot to mainline U-Boot: > > ------------------------------------------------------- > > > > -Generate the U-Boot image with these commands: > > +Generate the U-Boot image for eMMC/SD with these commands: > > > > $ make clearfog_defconfig > > $ make > > @@ -9,7 +9,7 @@ $ make > > The resulting image including the SPL binary with the > > full DDR setup is "u-boot-with-spl.kwb". > > > > -Now all you need to do is copy this image on a SD card. > > +Now all you need to do is copy this image on a SD card's sector 1. > > For example with this command: > > > > $ sudo dd if=u-boot-with-spl.kwb of=/dev/sdX bs=512 seek=1 > > @@ -20,12 +20,6 @@ of "/dev/sdX" here! > > Install U-Boot on eMMC: > > ----------------------- > > > > -To make SPL load the main U-Boot image from the eMMC boot partition enable > > -eMMC boot acknowledgement and boot partition with the following U-Boot > > -command: > > - > > - mmc partconf 0 1 1 0 > > - > > Install U-Boot on eMMC boot partition from Linux running on Clearfog: > > > > echo 0 > /sys/block/mmcblk0boot0/force_ro > > @@ -37,8 +31,14 @@ Consider initial boot from UART (see below). > > Install U-Boot on SATA: > > ----------------------- > > > > -When loading the main U-Boot image from raw SATA sector, set > > -CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR to 0x141. > > +Generate the U-Boot image for SATA with these commands: > > + > > +$ make clearfog_sata_defconfig > > +$ make > > + > > +Copy image on a SATA disk's sector 1: > > + > > +$ sudo dd if=u-boot-with-spl.kwb of=/dev/sdX bs=512 seek=1 > > > > Boot selection: > > --------------- > > -- > > 2.20.1 > >