* [U-Boot] [PATCH 0/2] xilinx: Add some example scripts for bootmodes
@ 2019-09-11 7:03 Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 2/2] xilinx: Add sd " Michal Simek
0 siblings, 2 replies; 5+ messages in thread
From: Michal Simek @ 2019-09-11 7:03 UTC (permalink / raw)
To: u-boot
Hi,
mostly yocto guys asked us to provide default scripts for supporting
distribution boot mode which is done by these 2 patches.
Thanks,
Michal
Siva Durga Prasad Paladugu (2):
xilinx: Add qspi boot command script for reference
xilinx: Add sd boot command script for reference
board/xilinx/bootscripts/qspiboot.cmd | 10 ++++++++++
board/xilinx/bootscripts/sdboot.cmd | 10 ++++++++++
2 files changed, 20 insertions(+)
create mode 100644 board/xilinx/bootscripts/qspiboot.cmd
create mode 100644 board/xilinx/bootscripts/sdboot.cmd
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference
2019-09-11 7:03 [U-Boot] [PATCH 0/2] xilinx: Add some example scripts for bootmodes Michal Simek
@ 2019-09-11 7:03 ` Michal Simek
2019-10-08 7:24 ` Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 2/2] xilinx: Add sd " Michal Simek
1 sibling, 1 reply; 5+ messages in thread
From: Michal Simek @ 2019-09-11 7:03 UTC (permalink / raw)
To: u-boot
From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thsi patch adds qspiboot command script for reference.
This can be converetd into uboot script using mkimage and
use for booting.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
board/xilinx/bootscripts/qspiboot.cmd | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 board/xilinx/bootscripts/qspiboot.cmd
diff --git a/board/xilinx/bootscripts/qspiboot.cmd b/board/xilinx/bootscripts/qspiboot.cmd
new file mode 100644
index 000000000000..c10341c4d6ea
--- /dev/null
+++ b/board/xilinx/bootscripts/qspiboot.cmd
@@ -0,0 +1,10 @@
+# This is an example file to generate boot.scr - a boot script for U-Boot
+# This example only target for qspi boot, sameway it can be created for boot
+# devices like nand.
+# Generate boot.scr:
+# ./tools/mkimage -c none -A arm -T script -d qspiboot.cmd boot.scr
+#
+# It requires a list of environment variables to be defined before load:
+# fdt_addr, fdt_offset, fdt_size, kernel_addr, kernel_offset, kernel_size
+#
+sf probe 0 0 0 && sf read $fdt_addr $fdt_offset $fdt_size && sf read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] xilinx: Add sd boot command script for reference
2019-09-11 7:03 [U-Boot] [PATCH 0/2] xilinx: Add some example scripts for bootmodes Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference Michal Simek
@ 2019-09-11 7:03 ` Michal Simek
2019-10-08 7:24 ` Michal Simek
1 sibling, 1 reply; 5+ messages in thread
From: Michal Simek @ 2019-09-11 7:03 UTC (permalink / raw)
To: u-boot
From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
This patch adds sdboot command script for reference.
This can be converetd into uboot script using mkimage and
use for booting.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
board/xilinx/bootscripts/sdboot.cmd | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 board/xilinx/bootscripts/sdboot.cmd
diff --git a/board/xilinx/bootscripts/sdboot.cmd b/board/xilinx/bootscripts/sdboot.cmd
new file mode 100644
index 000000000000..54667d7dca00
--- /dev/null
+++ b/board/xilinx/bootscripts/sdboot.cmd
@@ -0,0 +1,10 @@
+# This is an example file to generate boot.scr - a boot script for U-Boot
+# This example only target for qspi boot, sameway it can be created for boot
+# devices like nand.
+# Generate boot.scr:
+# ./tools/mkimage -c none -A arm -T script -d sdboot.cmd boot.scr
+#
+# It requires a list of environment variables used below to be defined
+# before load
+#
+mmc dev $sdbootdev && mmcinfo && run uenvboot || run sdroot$sdbootdev;load mmc $sdbootdev:$partid $fdt_addr system.dtb && load mmc $sdbootdev:$partid $kernel_addr Image && booti $kernel_addr - $fdt_addr
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference
2019-09-11 7:03 ` [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference Michal Simek
@ 2019-10-08 7:24 ` Michal Simek
0 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2019-10-08 7:24 UTC (permalink / raw)
To: u-boot
Hi,
st 11. 9. 2019 v 9:03 odesÃlatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>
> Thsi patch adds qspiboot command script for reference.
> This can be converetd into uboot script using mkimage and
> use for booting.
>
> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> board/xilinx/bootscripts/qspiboot.cmd | 10 ++++++++++
> 1 file changed, 10 insertions(+)
> create mode 100644 board/xilinx/bootscripts/qspiboot.cmd
>
> diff --git a/board/xilinx/bootscripts/qspiboot.cmd b/board/xilinx/bootscripts/qspiboot.cmd
> new file mode 100644
> index 000000000000..c10341c4d6ea
> --- /dev/null
> +++ b/board/xilinx/bootscripts/qspiboot.cmd
> @@ -0,0 +1,10 @@
> +# This is an example file to generate boot.scr - a boot script for U-Boot
> +# This example only target for qspi boot, sameway it can be created for boot
> +# devices like nand.
> +# Generate boot.scr:
> +# ./tools/mkimage -c none -A arm -T script -d qspiboot.cmd boot.scr
> +#
> +# It requires a list of environment variables to be defined before load:
> +# fdt_addr, fdt_offset, fdt_size, kernel_addr, kernel_offset, kernel_size
> +#
> +sf probe 0 0 0 && sf read $fdt_addr $fdt_offset $fdt_size && sf read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr
> --
> 2.17.1
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] xilinx: Add sd boot command script for reference
2019-09-11 7:03 ` [U-Boot] [PATCH 2/2] xilinx: Add sd " Michal Simek
@ 2019-10-08 7:24 ` Michal Simek
0 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2019-10-08 7:24 UTC (permalink / raw)
To: u-boot
Hi,
st 11. 9. 2019 v 9:03 odesÃlatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>
> This patch adds sdboot command script for reference.
> This can be converetd into uboot script using mkimage and
> use for booting.
>
> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> board/xilinx/bootscripts/sdboot.cmd | 10 ++++++++++
> 1 file changed, 10 insertions(+)
> create mode 100644 board/xilinx/bootscripts/sdboot.cmd
>
> diff --git a/board/xilinx/bootscripts/sdboot.cmd b/board/xilinx/bootscripts/sdboot.cmd
> new file mode 100644
> index 000000000000..54667d7dca00
> --- /dev/null
> +++ b/board/xilinx/bootscripts/sdboot.cmd
> @@ -0,0 +1,10 @@
> +# This is an example file to generate boot.scr - a boot script for U-Boot
> +# This example only target for qspi boot, sameway it can be created for boot
> +# devices like nand.
> +# Generate boot.scr:
> +# ./tools/mkimage -c none -A arm -T script -d sdboot.cmd boot.scr
> +#
> +# It requires a list of environment variables used below to be defined
> +# before load
> +#
> +mmc dev $sdbootdev && mmcinfo && run uenvboot || run sdroot$sdbootdev;load mmc $sdbootdev:$partid $fdt_addr system.dtb && load mmc $sdbootdev:$partid $kernel_addr Image && booti $kernel_addr - $fdt_addr
> --
> 2.17.1
>
Applied but with using devnum instead of sdbootdev.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-10-08 7:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-11 7:03 [U-Boot] [PATCH 0/2] xilinx: Add some example scripts for bootmodes Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference Michal Simek
2019-10-08 7:24 ` Michal Simek
2019-09-11 7:03 ` [U-Boot] [PATCH 2/2] xilinx: Add sd " Michal Simek
2019-10-08 7:24 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox