From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 3/3] doc: sifive: fu540: Document Boot from MMC
Date: Mon, 20 Apr 2020 19:07:35 +0530 [thread overview]
Message-ID: <20200420133735.23599-3-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200420133735.23599-1-jagan@amarulasolutions.com>
Document the Booting from MMC steps.
Detailed information about partitioning, flashing and etc.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
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.
--
2.17.1
next prev parent reply other threads:[~2020-04-20 13:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 13:37 [PATCH v2 1/3] sifive: fu540: Add sample SD gpt partition layout Jagan Teki
2020-04-20 13:37 ` [PATCH v2 2/3] sifive: fu540: Add U-Boot proper sector start Jagan Teki
2020-04-29 13:58 ` Bin Meng
2020-04-29 14:04 ` Pragnesh Patel
2020-04-29 14:37 ` Bin Meng
2020-04-29 14:30 ` Pragnesh Patel
2020-04-20 13:37 ` Jagan Teki [this message]
2020-04-29 13:56 ` [PATCH v2 3/3] doc: sifive: fu540: Document Boot from MMC Bin Meng
2020-04-29 15:47 ` Pragnesh Patel
2020-04-29 15:56 ` Jagan Teki
2020-04-29 16:02 ` Pragnesh Patel
2020-04-29 13:53 ` [PATCH v2 1/3] sifive: fu540: Add sample SD gpt partition layout Pragnesh Patel
2020-04-29 13:54 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200420133735.23599-3-jagan@amarulasolutions.com \
--to=jagan@amarulasolutions.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox