Message ID | 31715e2c954475df1b5873b15b8ee096f740cea6.1568185386.git.michal.simek@xilinx.com |
---|---|
State | Accepted |
Commit | 3796d133a0cba265ec7995f1143af44b672da63e |
Delegated to: | Michal Simek |
Headers | show |
Series | xilinx: Add some example scripts for bootmodes | expand |
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
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