diff mbox series

[U-Boot,2/2] xilinx: Add sd boot command script for reference

Message ID 890f37234f1c46454149e761c54148e74fb5054a.1568185386.git.michal.simek@xilinx.com
State Deferred
Headers show
Series xilinx: Add some example scripts for bootmodes | expand

Commit Message

Michal Simek Sept. 11, 2019, 7:03 a.m. UTC
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

Comments

Michal Simek Oct. 8, 2019, 7:24 a.m. UTC | #1
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
diff mbox series

Patch

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