[BSP][UBOOT][ADD] add bootscript
Add a boot script and boot environment common to all boards.
The bootscript is in boot.scr.in, which is then compiled into a U-boot image and installed in the /boot partition. The script imports the variables in boot.env (which is supposed to be overridden by the architecture-specific layers and is provided in this layer only for reference).
boot.env contains variables used to configure the boot script:
* custom_boot_script: a custom script to run before everything else (optional)
* cmdline: command line args for kernel (optional). The script automatically appends: root=/dev/mmcblk${mmcdev}p${root_part} rw rootwait
* devicetree: dtb file used as root to construct FDT (optional)
* overlays: list of overlay (dtbo) to apply to FDT (optional)
* initramfs: initramfs file (optional)
* kernel: kernel image file (defaults to linuximage if not set)
* boot_part: id of partition containing kernel, dtbs, boot.scr and boot.env
* root_part: id of root partition, passed to kernel via cmdline args These files are expected to be in the first partition of the boot media (eMMC/uSD). The script expects the variable mmcdev to be set as the id of the mmc device to boot from.
CLEAOS-530
Signed-off-by: Alessandro Pecugi alessandro.pecugi@seco.com