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 X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 609ECC07E97 for ; Sat, 3 Jul 2021 20:00:13 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DADBA61462 for ; Sat, 3 Jul 2021 20:00:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DADBA61462 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A88482BE5; Sat, 3 Jul 2021 21:59:20 +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=1625342360; bh=Jw0szf163P/wRgLeNhTL/y5+IvAiSp+Hfo9UQK6abm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=nZhEL1pbQN38/U+F8XzF4PVPeg9nEdVbSLrzOMmp7cUE1rLGc6pYHG0ywvb3K0DYy 2n3PeLHfvkIlTQwzQqmpauGOxODmmsAO+23UDkcnfWGzXtXhzDQ5cWGuonc2Nrj50s UEZzu1iJDzl0Y5TEwB8vXnCTKUOaUrvUguy2poMmX82V9OEr8rqdOcwofIjaYM8cLG XBKMvAipUu9m39MdHDL77DDO89QPaMSklpXUtc43zMRtX7Wc7ACG+EYySlJC2u6LsQ 1wLZhcS7e8kyo1Srjg8EQfHlPr6ft/nqNKM44QkCfPi//H89qvUalJ1KrOioJsM+6H 4nbkyQHSuNl4w== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:abf0:6b86:fce4:4efb]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7B5E882BC4; Sat, 3 Jul 2021 21:59:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625342357; bh=Jw0szf163P/wRgLeNhTL/y5+IvAiSp+Hfo9UQK6abm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jkEtWnoz8TolXMe2Z7Ejvi+8zm7oW0TwaDQPC29r6beAPPE0XIrwfFoozoawoBr+4 Q8ATL4/NTO8uVbp+mCd3E2++avFdQ1BbFFz3EPe7BR3wPQJyQMDyebimxaR3PZ/6++ vmMILxige0L+edYU1SKyrTWaK+jJ9eAlu1nhiNtJwpd5zX9e1POiYZNreboDC6ByUK MN1UA1/1Ca1XRZCRuRHCULqrO7Od8cyjpOz/HvYNXO6DUsGLu03z9djLQ7AoLIvUay 2/qRpXkLA/AXWyeModeYFyHPWXlQBwAxZifIi1R3wqgeWWaBwwjoV7N6v1x2TLkKtu ZARjIl/30b3rA== From: Fabio Estevam To: sbabic@denx.de Cc: marex@denx.de, u-boot@lists.denx.de, frieder.schrempf@kontron.de, tharvey@gateworks.com, uboot-imx@nxp.com, Fabio Estevam Subject: [PATCH 8/8] doc: imx8mm_evk: Add instructions for eMMC boot Date: Sat, 3 Jul 2021 16:58:37 -0300 Message-Id: <20210703195837.28153-9-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210703195837.28153-1-festevam@denx.de> References: <20210703195837.28153-1-festevam@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Improve the readme by adding instructions on how to load U-Boot via USB and flash the eMMC. Signed-off-by: Fabio Estevam --- doc/board/freescale/imx8mm_evk.rst | 42 +++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/doc/board/freescale/imx8mm_evk.rst b/doc/board/freescale/imx8mm_evk.rst index 7fd3d7256490..7d77f6d354f6 100644 --- a/doc/board/freescale/imx8mm_evk.rst +++ b/doc/board/freescale/imx8mm_evk.rst @@ -45,13 +45,47 @@ Build U-Boot $ export ATF_LOAD_ADDR=0x920000 $ make -Burn the flash.bin to MicroSD card offset 33KB: +Booting from the SD card +------------------------ + +Burn the flash.bin to MicroSD card offset 33KB and u-boot.itb to +offset 384kB. .. code-block:: bash $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc $sudo dd if=u-boot.itb of=/dev/sdc bs=1024 seek=384 conv=sync -Boot ----- -Set Boot switch to SD boot +Booting from the eMMC +--------------------- + +Power off the board and put the boot mode switches +to Download Mode. + +Connect a USB cable between the TypeC port 1 and the host PC. + +Load flash.bin via the 'uuu' tool: + +.. code-block:: bash + + $ sudo uuu flash.bin + +Load u-boot.itb via the 'uuu' tool: + +.. code-block:: bash + + $ sudo uuu SDPV: write -f u-boot.itb -addr 0x42000000 + $ sudo uuu SDPV: jump -addr 0x42000000 + +Then U-Boot will be launched. + +Run the ums tool to flash the eMMC: + +.. code-block:: bash + + => ums 0 mmc 2 + => sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33; sync + => sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384; sync + +Power off the board. Put the boot switches to eMMC boot mode +and power it on. -- 2.25.1