From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Krottmayer Date: Wed, 3 Jun 2020 11:01:35 +0200 Subject: [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card In-Reply-To: <6c67c17c-38c9-ac59-dc1d-3466f157074c@xilinx.com> References: <20200602155536.30594-1-krjdev@gmail.com> <6c67c17c-38c9-ac59-dc1d-3466f157074c@xilinx.com> Message-ID: <281fb517-1ad7-2add-8cc7-e12bb0a9468d@gmail.com> 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 at 08:23, Michal Simek wrote: > On 02. 06. 20 17:55, 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. >> >> I think, it's necessary for the documentation to avoid such user questions >> (like mine) in this list. >> >> Okay? > > remove these 4 lines above from commit message and move it below ---. > > And no problem to extend documentation for newcomers. Thanks! >> >> 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 > > here should be /dev/sdx0 > Oops, sorry! But "/dev/sdx1" should be correct according to command "sudo mkfs.vfat -F 32 /dev/sdx1". At least on my used system. Typo? >> + sudo cp spl/boot.bin /mnt >> + sudo cp u-boot.img /mnt >> + >> Mainline status >> --------------- >> >> > > Thanks, > Michal > Kind regards, Johannes K.