From: Michal Simek Date: Thu, 4 Jun 2020 10:55:48 +0200 Subject: [PATCH v2] doc: board: xilinx: zynq.rst: add description how to flash a SD card In-Reply-To: <20200603095004.27108-1-krjdev@gmail.com> References: <972dfeb1-fea2-1dcd-88ef-80dc0c524ea5@xilinx.com> <20200603095004.27108-1-krjdev@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03. 06. 20 11:50, Johannes Krottmayer wrote: > 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 > Cc: Michal Simek > --- > 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 > --------------- > > Applied. M