From patchwork Mon Apr 20 13:37:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1094 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6BB9A3F086 for ; Mon, 20 Apr 2020 15:37:58 +0200 (CEST) Received: by mail-oi1-f197.google.com with SMTP id 191sf9224621oii.7 for ; Mon, 20 Apr 2020 06:37:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587389876; cv=pass; d=google.com; s=arc-20160816; b=EyioCtun1Sn7iqNUf9we924v3UUTg6FXNQHrlyzWaTQhZNAF2DfNdTDbX+0CD3F0ct FDVU6sGZK44QQgP96DnIdG5nWXFgI0ashuOBFQ8x4ds/m5KQpPIGCt/j87OK1fFai1gU rbxThW3hve/VIZHmGafGkMiqKbBRw7HAp+sJNhXVeu8gigpTMThJMGL08wJ3AunWqBDq lHEY/RQQ4d543oicUrMeBnT4BefVOr7nVuV0dwzhb+S7TeqV46ReJdHKV+/yaTmp1kCS DQK7Vg/fP0uydgYb0x8OCB395fC+HaU6oBScrkr8C67P3bps+KYpLbD00W0XAo/KkWyO vr3w== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=7TC82cYX+uiNtrteHqtIKmyoyZMbPwQbzMWEsJPuVYk=; b=J5BCx8AMesW/fE3Yg9Yvsixg0hazRc1WdarPRqBbdvkTur6jRM52+wXj9El6dS0ZmN 6N3c1O6t2Q7+NN75HePpYuVUxev6RnpSbggaeTPxXDnYkLaU2gH5jEoBx4fl7mpFgX3U m1nvbaylge5+oP04zI28jUxqQQgCqTn4xlVQgKTaXYRPo4OV6d2R8uhG1w/76j7aZkSm dt9ezDwfyXnESNJgOjd9sasaGhsfGSlVWEWXa13jnzjVscOD0dxiJCHoV1Ujb+FfeiQo e8hB7rzKtgYkCCnWaQ8h+PAahqII9JbeCVDYH7i2XMEQZ3jC/CgBFbCcs/6EfLuCmn3b RQqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TctLYu2R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=7TC82cYX+uiNtrteHqtIKmyoyZMbPwQbzMWEsJPuVYk=; b=FNHolfOc+ERDFI0HkZlWsACLveXnsdYvIr2q7nmjLLd8eTEvobb6JMqMTN2WZ6a+1b VKBMAeQwqMDEdiRvSqVroBLkb4NGtHE/4CnQir2bOZ8Rj9h2KL9JXx1vYc6jjNpu1Nug gfkpULr0KKv94+R6tCj7WHz+MdbeQ6EHAzNtQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=7TC82cYX+uiNtrteHqtIKmyoyZMbPwQbzMWEsJPuVYk=; b=XEckpYpNCRmaTzP6aX4gdNjliQQiTm1Cia40KzLya7oS5BxYOV1xKCH6wz58XBYpko 3zK1VQu/dhfMbAF50oR2JxIYLfKAG10DDqnfCV4aGpDZ9SQlj1CrdtjIsOZcwNz5YONZ aG64r2kTWzyhDgrtZX7bZ0zRKpOeFqKoDo253qHrrfWyFaGOHE5jwAyaqjALU5Lyd1o6 8etQ9s9xSwsTqgCCoJQjwee2xtgigdOgwaOUd6lyXY2+5tI5+n3XgE5i5VAIjjmtb/Id kg9xqwJOblx479Jl+JBbi1HTJEy+alP9iG0uD3fUfQ+gVSF9+IRzkBtxr6CTrOz1EwHa /x5A== X-Gm-Message-State: AGi0PuZUSijt4MdcDe9rFkqX0mca84zrQy3QgXgsdElw/lq5qfg47I8V e2T3muc0qpCq17HIiRZfVpX0mMG+ X-Google-Smtp-Source: APiQypIX81UURRABYS6F7W71gXw+uQNUDXa9I7Uq28QDUbvy4T1ef2JDQavZidR3tyVOcGWyPKZgpA== X-Received: by 2002:a9d:4113:: with SMTP id o19mr796122ote.354.1587389876475; Mon, 20 Apr 2020 06:37:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a9d:75cd:: with SMTP id c13ls2001309otl.10.gmail; Mon, 20 Apr 2020 06:37:56 -0700 (PDT) X-Received: by 2002:a05:6830:1c65:: with SMTP id s5mr9397923otg.60.1587389875947; Mon, 20 Apr 2020 06:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587389875; cv=none; d=google.com; s=arc-20160816; b=FeBnPrZXThlbOgK5pBpDceGJpcDudFtQ1PRkVawy84i5G6yHoIEWJ2T+L4FGGIySwU YtSedvF2RIkgsyoBbPn4dpPofcRkOKfnDCMliKaE6Zak7jbJx2d8t/gsT/f41gpt2jCH /yJyJSzS3EfbZelIQxpKLie7m5RwK4BIg9xEMEaJRrlEMAbPxTLztB2+5XSMkLkhIvz+ a32U12pVBUcGSeQEPltqKYQ3i/CZvA51UJ3Jgm4JEsLJ3TGfFzZHIOTnuLocg0JgjSnR B65bERoNiqq6Aih0yM+uSt7w22KSv29AR36R3vCeNnmsnYGj3KiGrAqJp96xAeDy40/e 04KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=J01CQ2lFYcleYA3BcrSX/MjqGjH7PzVAlLtgecU+S8k=; b=w10FlqfmjcZiFnG9nPQjo34YbTPw4ZRp0GN+bA0OwnfuwPEmLwFIBt5BN0C7q6YYwj UAn8p2H825nO2aNdCwbdh/4rMGO5+b985y1sufdh3JAtWod7nrsKnMCMLXdIKMRC3sPg MIFl1IH4CADkGqgS4vvhjBxe3xWvVj0GMRkxf4uTNyBPzHBpE7gepyvn807V4GM6hqa2 Ixo+j/fpW82z7ijFz3BqLS0Jekn67FX0vlD6NZlx3TPZiNnEC9WEjycBxNgFVfde3b0z oSBNDV3qwZaWSq1tzSRw+V1/WSRzNDxkPp4aI3vkJbP5WREnATeInb3E4er4mG8Ze2e5 7AOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TctLYu2R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 4sor723313oii.114.2020.04.20.06.37.55 for (Google Transport Security); Mon, 20 Apr 2020 06:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:8d02:: with SMTP id c2mr18912761pjo.113.1587389875653; Mon, 20 Apr 2020 06:37:55 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:7ddc:e17b:a9b3:404]) by smtp.gmail.com with ESMTPSA id 141sm1118976pfz.171.2020.04.20.06.37.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 06:37:55 -0700 (PDT) From: Jagan Teki To: pragnesh.patel@sifive.com, rick@andestech.com, u-boot@lists.denx.de Cc: bmeng.cn@gmail.com, sagar.kadam@sifive.com, paul.walmsley@sifive.com, troy.benjegerdes@sifive.com, palmerdabbelt@google.com, anup.patel@wdc.com, atish.patra@wdc.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 3/3] doc: sifive: fu540: Document Boot from MMC Date: Mon, 20 Apr 2020 19:07:35 +0530 Message-Id: <20200420133735.23599-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200420133735.23599-1-jagan@amarulasolutions.com> References: <20200420133735.23599-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TctLYu2R; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , Document the Booting from MMC steps. Detailed information about partitioning, flashing and etc. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng --- Changes for v2: - new patch doc/board/sifive/fu540.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst index 3937222c6c..691ef232e2 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst @@ -363,3 +363,31 @@ load uImage. Please press Enter to activate this console. / # + +Booting from MMC +---------------- + +Use steps from "Building" section for building the U-Boot + +Format the SD card (make sure the disk has GPT, otherwise use gdisk to switch) + +.. code-block:: none + + # sudo sgdisk --clear \ + > --set-alignment=2 \ + > --new=1:34:2081 --change-name=1:loader1 --typecode=1:5B193300-FC78-40CD-8002-E86C45580B47 \ + > --new=2:2082:10273 --change-name=2:loader2 --typecode=2:2E54B353-1271-4842-806F-E436D6AF6985 \ + > --new=3:10274: --change-name=3:rootfs --typecode=3:0FC63DAF-8483-4772-8E79-3D69D8477DE4 \ + > /dev/sda + +Program the SD card + +.. code-block:: none + + sudo dd if=spl/u-boot-spl.bin of=/dev/sda seek=34 + sudo dd if=u-boot.itb of=/dev/sda seek=2082 + sync + +Change DIP switches MSEL[3:0] are set to 1011 + +Insert the SD card and power up the board.