From patchwork Tue Jun 2 15:55:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Krottmayer X-Patchwork-Id: 241560 List-Id: U-Boot discussion From: krjdev at gmail.com (Johannes Krottmayer) Date: Tue, 2 Jun 2020 17:55:42 +0200 Subject: [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card Message-ID: <20200602155536.30594-1-krjdev@gmail.com> Add a short description in the ZYNQ documentation how to prepare a SD card and copy the related images to SD card. I think, it's necessary for the documentation to avoid such user questions (like mine) in this list. Okay? Signed-off-by: Johannes Krottmayer --- 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..e5f002af85 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/sdx /mnt + sudo cp spl/boot.bin /mnt + sudo cp u-boot.img /mnt + Mainline status ---------------