* [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card
@ 2020-06-02 15:55 Johannes Krottmayer
2020-06-03 6:23 ` Michal Simek
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Krottmayer @ 2020-06-02 15:55 UTC (permalink / raw)
To: u-boot
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 <krjdev@gmail.com>
---
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
---------------
--
2.26.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card
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
0 siblings, 1 reply; 6+ messages in thread
From: Michal Simek @ 2020-06-03 6:23 UTC (permalink / raw)
To: u-boot
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.
>
> Signed-off-by: Johannes Krottmayer <krjdev@gmail.com>
> ---
> 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
> + sudo cp spl/boot.bin /mnt
> + sudo cp u-boot.img /mnt
> +
> Mainline status
> ---------------
>
>
Thanks,
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card
2020-06-03 6:23 ` Michal Simek
@ 2020-06-03 9:01 ` Johannes Krottmayer
2020-06-03 9:06 ` Michal Simek
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Krottmayer @ 2020-06-03 9:01 UTC (permalink / raw)
To: u-boot
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 <krjdev@gmail.com>
>> ---
>> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] doc: board: xilinx: zynq.rst: add description how to flash a SD card
2020-06-03 9:01 ` Johannes Krottmayer
@ 2020-06-03 9:06 ` Michal Simek
2020-06-03 9:50 ` [PATCH v2] " Johannes Krottmayer
0 siblings, 1 reply; 6+ messages in thread
From: Michal Simek @ 2020-06-03 9:06 UTC (permalink / raw)
To: u-boot
On 03. 06. 20 11:01, Johannes Krottmayer wrote:
> 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 <krjdev@gmail.com>
>>> ---
>>> 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?
grr. yes 1 of course.
M
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2] doc: board: xilinx: zynq.rst: add description how to flash a SD card
2020-06-03 9:06 ` Michal Simek
@ 2020-06-03 9:50 ` Johannes Krottmayer
2020-06-04 8:55 ` Michal Simek
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Krottmayer @ 2020-06-03 9:50 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2] doc: board: xilinx: zynq.rst: add description how to flash a SD card
2020-06-03 9:50 ` [PATCH v2] " Johannes Krottmayer
@ 2020-06-04 8:55 ` Michal Simek
0 siblings, 0 replies; 6+ messages in thread
From: Michal Simek @ 2020-06-04 8:55 UTC (permalink / raw)
To: u-boot
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 <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
> ---------------
>
>
Applied.
M
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-06-04 8:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v2] " Johannes Krottmayer
2020-06-04 8:55 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox