All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Krottmayer <krjdev@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2] doc: board: xilinx: zynq.rst: add description how to flash a SD card
Date: Wed,  3 Jun 2020 11:50:06 +0200	[thread overview]
Message-ID: <20200603095004.27108-1-krjdev@gmail.com> (raw)
In-Reply-To: <972dfeb1-fea2-1dcd-88ef-80dc0c524ea5@xilinx.com>

Add a short description in the ZYNQ documentation how to prepare a SD card and
copy the related images to SD card.

Signed-off-by: Johannes Krottmayer <krjdev@gmail.com>
Cc: Michal Simek <michal.simek@xilinx.com>
---
Changes for v2
    - added missing partition number in mount command

I think, it's necessary for the documentation to avoid such user questions
(like mine) in this list.

Okay?

 doc/board/xilinx/zynq.rst | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/doc/board/xilinx/zynq.rst b/doc/board/xilinx/zynq.rst
index 6a09df1d15..f564434b69 100644
--- a/doc/board/xilinx/zynq.rst
+++ b/doc/board/xilinx/zynq.rst
@@ -60,6 +60,25 @@ SLCR bootmode register Bit[3:0] values
 "modeboot" variable can assign any of "norboot", "sdboot" or "jtagboot"
 bootmode strings at runtime.
 
+Flashing
+--------
+
+SD Card
+^^^^^^^
+
+To write an image that boots from a SD card first create a FAT32 partition
+and a FAT32 filesystem on the SD card::
+
+        sudo fdisk /dev/sdx
+        sudo mkfs.vfat -F 32 /dev/sdx1
+
+Mount the SD card and copy the SPL and U-Boot to the root directory of the
+SD card::
+
+        sudo mount -t vfat /dev/sdx1 /mnt
+        sudo cp spl/boot.bin /mnt
+        sudo cp u-boot.img /mnt
+
 Mainline status
 ---------------
 
-- 
2.26.2

  reply	other threads:[~2020-06-03  9:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02 15:55 [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card Johannes Krottmayer
2020-06-03  6:23 ` Michal Simek
2020-06-03  9:01   ` Johannes Krottmayer
2020-06-03  9:06     ` Michal Simek
2020-06-03  9:50       ` Johannes Krottmayer [this message]
2020-06-04  8:55         ` [PATCH v2] " Michal Simek

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=20200603095004.27108-1-krjdev@gmail.com \
    --to=krjdev@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.