From patchwork Fri May 20 08:26:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1974 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CBCD93F039 for ; Fri, 20 May 2022 10:26:33 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id p13-20020aa7c4cd000000b0042ab847aba8sf5230386edr.0 for ; Fri, 20 May 2022 01:26:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653035193; cv=pass; d=google.com; s=arc-20160816; b=YXrGx4hqM9u6ZM1WvczCoLODhKMd5ZW2sZZfUGIyVcO9wykUPQPjYbdGl18WThFhmX 1ZWiom44yDpta98P1PYCUMd3FTBURI5XKVXNoJtdCXpAnmcTbCRUHzLRTluEqurKFkL6 LYxw5s0Td5vkvLTwDZ7+N3NTe9LOtwr33+ap2F3kBS92JlDxDRe6RUU8kDmHw4Q2/8r9 JYc0ROjbQR8j19hX+2JUm9dsmlrJ3ENs4FSNCxFTBQwYRRhFzqFQSEyAdupcyfwU43Qd pMaZb+DFd+xJcXr8ULXcaYqIJbjdJhg5WLB7etnX4es1NP1NzEKTVZq/zx8oPrPL4BaM UQwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wULe+23DL5Q7W7fc/XIWGLZaD/6qjH/rRYEI7rOlvAA=; b=CWnBrAAMJUByrPTD2b1ktFbMYHmH2sqvc6tIDV6lgLYpllNh54VxlfSnFaX01e2y32 7lQXrAs/x2J2q6z4FMcPBykkR80ouHsiS+OqBGF7mz0Epv3zwZCISLWt7hTsI5kEslMN /FdzXxqZ3pzWTZ1bqxFCyKE4iUjQwx72ZmeiAWJV4HwjR6VxqMYYjVFCKsl3B/id9R/T l+iZQP4JKcyy0CtSbeOu8rW2lTan4SSWxH8JTkB/aUwVSObeuBPbUJXR/tfX7BqnQq3W hZZ/dXjArFZNn7MTd5SOuVKO0OQxIwHVMTtE49pyXBbpjDyfv1FPLvu5ULJo230RUUoO GC0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DcGKR9Z1; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wULe+23DL5Q7W7fc/XIWGLZaD/6qjH/rRYEI7rOlvAA=; b=SQZlJGNspjPf5vBk/uYQXUE/pzAGpghHO/pr4V7Q8LBTCbcy1aQEU6a0cFs9vHk8m8 N/VPu5izOzlYhM+o3aibAF17c5tOBbQgkqsS6Ojb38QCl81A9pnpY25E64AuNAFBojmB zLLSWoxZ3LIq0ox+suj72/DriXN7GM5oYMgKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=wULe+23DL5Q7W7fc/XIWGLZaD/6qjH/rRYEI7rOlvAA=; b=Ee0UpCmFvNqC8Zfu11RkHCUMej0eNRN2R/liVukf28N0fMh+M+RmmxLCPLq4VM9jj0 uaIOHkml6OqlFw4R0pCh9b0bPeeFeizqWS6RtXwZvmeuR8E4vhidHUPY53lVDAKF8JPL fUaL21b0XQobOhSFzEBVYKVUznfuSsuqCN6M6SCg6hZ3IWfe7bmc5Ult0Se5yzQHdadV xCP+Ozl77RUr/q/9b8Oza7Ni2UABqv5hHmlv4g3JIK433P2dRAnxhCRRMa9op4aEaGOR i97h/MB0RY22otuaJ4Qh2se1szVWa4FqaV3fj4+T4xZ3p05mWTDcjrWLoU0eVltkb/yo 9t1w== X-Gm-Message-State: AOAM531qSFH1ecaU0hfTBsP66Cauqg4I2Tdlbh7ju7gsh61wTvvLu+XR GMf5zMjJ0DPbeTpFdCcASIORfzEw X-Google-Smtp-Source: ABdhPJzgMmE1etvUyAGfCeMlNedUlYil5IkIqzlsAsD8mV4LgrPhHTnGpJL2AMj75KP1QQZHDhUqWg== X-Received: by 2002:a17:907:7f25:b0:6f4:c553:c73c with SMTP id qf37-20020a1709077f2500b006f4c553c73cmr7580412ejc.119.1653035193676; Fri, 20 May 2022 01:26:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5205:b0:42a:c2bb:3d7f with SMTP id s5-20020a056402520500b0042ac2bb3d7fls388765edd.1.gmail; Fri, 20 May 2022 01:26:32 -0700 (PDT) X-Received: by 2002:aa7:d817:0:b0:42a:fc10:7f89 with SMTP id v23-20020aa7d817000000b0042afc107f89mr7670335edq.417.1653035192571; Fri, 20 May 2022 01:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653035192; cv=none; d=google.com; s=arc-20160816; b=a/3Nigs4IdkUCSvaAW8GQHsoexOdQehu2YGMeN7aQoGu52emT4LhyrrtdYv+DQL/qQ QaGu3h29xdHVPjd3H5YE6AtmGOu+fWmKvMRYx+6ZTxnMO4sFb5YAyS3aBSK+2mluJ+Ga eBup5oK9sP2xsX5DJmZSfZS22WPc+nqdq2HJyBk6s9+jU9NfeJ+VtKflD+2CQ9DTu6mv 8JIuk/0II9bFJvu8S8xZ9lOz11jUvQha148Op+yYoBti78N16SVAMKUohxmnSyP8nToT fVSpZall2CHU4evEASUM5bcvVzHA4lkC0BdDfRirtMgo2o124BiMklaxHwNnWsX8EwCk 0E6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YQ/d+Vybd7TxwqLVsTkrjDrdrI2kC6DCgDAhlq+BWYQ=; b=R1yu24WowvxRHKShBhcDwTQjhar+b8Oai+dR6T/d0x2kspnQiPyzYmiIFr1lt9uEz6 /pYT9QHLsCl7Cu+4MaOhHHmRa8VIFsM4CaGJ1DF+OIfqNGSTk/LohMgjzf2W5dElnsbH poxqHrbxy3yhAKKdUoKdAa+LklSHx10V7mWm9WW/WPCmQUfj/G2dn/cfBH54/LgVQhmH EHoaDOZX/o4plJ6S0cPrdElD4yto0nS8P9ZMYyWN+Ygqh/TTXjU5cvYkaQ7tJW4NN0H9 lC9jApSl6F5jJXAUNTan3zbSmh8g7XtTKSZXfiSs9476fwGjCsXw+twdB4RK6C7+fsBp PqlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DcGKR9Z1; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id y7-20020a50eb87000000b00425e6e44fe7sor4407593edr.2.2022.05.20.01.26.32 for (Google Transport Security); Fri, 20 May 2022 01:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:aa7:d3c5:0:b0:42a:ab58:1e50 with SMTP id o5-20020aa7d3c5000000b0042aab581e50mr9384583edr.320.1653035192176; Fri, 20 May 2022 01:26:32 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id el9-20020a170907284900b006f3ef214e55sm2896544ejc.187.2022.05.20.01.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 01:26:31 -0700 (PDT) From: Tommaso Merciai To: Cc: linux-amarula@amarulasolutions.com, Tommaso Merciai , Fabio Estevam Subject: [PATCH 8/8] doc: imx8mm_evk: Add instructions for eMMC boot Date: Fri, 20 May 2022 10:26:23 +0200 Message-Id: <20220520082623.1788887-9-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> References: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DcGKR9Z1; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Improve the readme by adding instructions on how to load U-Boot via USB and flash the eMMC. Signed-off-by: Fabio Estevam Signed-off-by: Tommaso Merciai --- doc/board/nxp/imx8mm_evk.rst | 42 ++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/doc/board/nxp/imx8mm_evk.rst b/doc/board/nxp/imx8mm_evk.rst index b9e67b954f..7c233be8a4 100644 --- a/doc/board/nxp/imx8mm_evk.rst +++ b/doc/board/nxp/imx8mm_evk.rst @@ -44,12 +44,46 @@ Build U-Boot $ make imx8mm_evk_defconfig $ 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 -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.