build/config/bootscripts/boot-zynq.cmd

39 lines
1.3 KiB
Batchfile
Raw Normal View History

# DO NOT EDIT THIS FILE
#
# Please edit /boot/armbianEnv.txt to set supported parameters
#
setenv load_addr "0x9000000"
setenv loadbit_addr "0x100000"
# default values
setenv rootdev "/dev/mmcblk0p2"
setenv verbosity "1"
setenv consoleargs "console=ttyPS0,115200n8"
setenv bootlogo "false"
setenv rootfstype "ext4"
setenv earlycon "off"
echo "Boot script loaded from ${devtype} ${devnum}"
if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then
load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt
env import -t ${load_addr} ${filesize}
fi
if test -e ${devtype} ${devnum} ${prefix}${fpga_bin}; then
echo "Loading FPGA Bitstream from ${prefix}${fpga_bin}"
load ${devtype} ${devnum} ${loadbit_addr} ${prefix}${fpga_bin}
fpga load 0 ${loadbit_addr} ${filesize}
fi
setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}zImage
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
# Recompile with:
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr