summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
Commit message (Collapse)AuthorAgeFilesLines
* Initial restructure/split of meta-xilinx-bspMark Hatle2022-01-141-238/+0
| | | | | | | | | | Create a new meta-xilinx-core, move core functionality to the core, keeping board specific files in the bsp layer. zynqmp-generic changed from require <board> to include, so if meta-xilinx-bsp is not available it will not fail. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* manual changes for overrides syntax fixesSai Hari Chandana Kalluri2021-09-281-2/+2
| | | | Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* Convert to new override syntaxSai Hari Chandana Kalluri2021-09-281-57/+57
| | | | | | | | | | This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr: Sync with zynqmp-dr PACKAGE_ARCH mechanismMark Hatle2021-09-281-8/+6
| | | | | | | Use the same approach as fsbl and pmufw. The previous implementation could have picked the wrong PACKAGE_ARCH in some cases. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* u-boot-zynq-scr: Remove fdt_high env from boot.scrRaju Kumar Pothuraju2021-09-281-21/+0
| | | | | | | | | | | As per the U-boot fdt_high and initrd_high got deprecated and need to use the bootm_low/bootm_size instead. to increase bootm_low address use the config value(CONFIG_SYS_BOOTMAPSZ) or define bootm_low in the boot script since this is a boot time generated values. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* u-boot-zyqn-scr: Update KERNEL OFFSET for versalSandeep Gundlupet Raju2021-09-271-2/+2
| | | | | | | | | | | | | While booting aarch64 kernel it warns with below message. [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader! Update KERNEL OFFSET for versal to 0x200000. There is a 2MB enforcement for aarch64 boot images. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* uboot: These recipes are machine or board specificMark Hatle2021-07-141-1/+11
| | | | | | | | | Issue: CR-1096936 It's possible that the user is NOT using a machine that defines a board, so we need to either use the board(board_variant) or MACHINE outselves. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* u-boot-zynq-scr: update QSPI/NAND commandsRaju Kumar Pothuraju2021-07-141-6/+4
| | | | | | | | | | | In past using the if check in qspi/nand to check if user wants to use fitimage/separate images default is fitimage, this leads to rebuild the boot.scr if user wants to use separate images. This patch will remove if check and use direct commands if proper image found bootm will run and boots the kernel. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr: Add env variable support to skip loading ramdisk imagesRaju Kumar Pothuraju2021-07-141-0/+1
| | | | | | | | | | | Having ramdisk images in FAT, rootfs extracted into EXT4 and want to boot direct EXT4 boot without pivot is not working since the bootscript is loading the ramdisk image from FAT. To avoid this adding env variables to skip loading ramdisk images. These can be part of uEnv.txt or uboot. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr: Add uEnv.txt support in bootscriptRaju Kumar Pothuraju2021-07-141-1/+9
| | | | | | | This patch will add uEnv.txt support in bootscript. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* various: Ensure that DATETIME is no usedMark Hatle2021-07-141-0/+2
| | | | | | | We should be using IMAGE_VERSION_SUFFIX instead, but this requires that the user either directory or indirectly inher image-artifact-names. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* u-boot-zynq-scr.bb: Use ramdisk.cpio image when switch_root enabledRaju Kumar Pothuraju2021-07-141-1/+3
| | | | | | | | Use the ramdisk.cpio.gz.u-boot image for pxeboot when INITRAMFS_IMAGE has the image name *initramfs*. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr.bb: Add PRE_BOOTENV variableRaju Kumar Pothuraju2021-07-141-3/+6
| | | | | | | | | Add PRE_BOOTENV in uboot-zynq-scr to add boot commands into boot.scr. Defining FIT_IMAGE_OFFSET variables for QSPI and NAND. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* u-boot-zynq-scr: Add microblaze support for boot.scrRaju Kumar Pothuraju2021-07-141-10/+7
| | | | | | | | | | Adding microblaze support for boot.scr and moving the generic boot script from petalinux to yocto layers. The generic boot script will read the boot_target variable on uboot and based on the bootmode it will execute the boot commands. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
* Updating machine overrides to match new formatJaewon Lee2021-07-141-4/+4
| | | | | | | | | Previously machine override for a soc variant was SOC_VARIANT appended to SOC_FAMILY. A '-' was included in between to align with how versal handles machine overrides. Updating machine overrides to match this format Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
* u-boot-zynq-scr.bb: Add PRE_BOOTENV variableRaju Kumar Pothuraju2021-07-141-3/+6
| | | | | | | | Add PRE_BOOTENV in uboot-zynq-scr to add boot commands into boot.scr. Defining FIT_IMAGE_OFFSET variables for QSPI and NAND. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr: Add microblaze support for boot.scrRaju Kumar Pothuraju2021-07-141-9/+150
| | | | | | | | | Adding microblaze support for boot.scr and moving the generic boot script from petalinux to yocto layers. The generic boot script will read the boot_target variable on uboot and based on the bootmode it will execute the boot commands. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>
* Add FPGA bitfile download support in the u-boot.scr.Adrian Fiergolski2020-09-301-1/+14
| | | | | | | It is inspired by u-boot-zynq-uenv.bb Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr.bb: use IMAGE_VERSION_SUFFIX instead of DATETIMEJoerg Hofrichter2020-09-301-4/+2
| | | | | | | | | | | | | | | Use variable IMAGE_VERSION_SUFFIX variable instead of DATETIME. Using IMAGE_VERSION_SUFFIX allows easier and more direct changes. The variable is available since Yocto 2.6 and it is used also for other name variables, e.g. IMAGE_NAME. It is set to "-${DATETIME}" per default, so the naming does not change as long as IMAGE_VERSION_SUFFIX is not overridden. For more details, see: https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-2.6-image-kernel-artifact-naming-changes Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* Assign a proper SD device to SDBOOTDEV variable.Adrian Fiergolski2020-08-111-0/+3
| | | | | | In case two SD controllers are used, the user can define a proper SDBOOTDEV variable in the machine configuration. Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
* u-boot-zyqn-scr.bb: Update DEVICETREE and KERNEL LOAD ADDRESS for zynqmp ↵Sai Hari Chandana Kalluri2020-02-071-2/+2
| | | | | | | | | | | | machines Update DEVICETREE LOAD ADDRESS for zynqmp machines from 0x4000000 to at 0x100000. Update KERNEL LOAD ADDRESS for zynqmp to 0x200000. Modify boot.scr to not load dtb during u-boot as dtb will be loaded to ddr directly from boot.bin. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
* u-boot-zynq-scr:Add initrd label to pxe configSwagath Gadde2019-12-171-0/+1
| | | | | | | | | | | | This patch adds the initrd label command to pxe config file which is required to boot linux in pxeboot with initrd image. initrd <path> - if this label is chosen, use tftp to retrieve the initrd at <path>. it will be stored at the address indicated in the initrd_addr_r environment variable, and that address will be passed to bootm Signed-off-by: Swagath Gadde <swagathg@xilinx.com>
* u-boot-zynq-scr: Add pxeboot support in u-boot-scrSwagath Gadde2019-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds pxeboot support for versal platform by adding default config file in pxelinux.cfg directory with below minimal mandatory information forbooting. label <name> - begin a label definition. labels continue until a command not recognized as a label command is seen, or EOF is reached. kernel <path> - if this label is chosen, use tftp to retrieve the kernel at <path>. it will be stored at the address indicated in the kernel_addr_r environment variable, and that address will be passed to bootm to boot this kernel. fdt <path> - if this label is chosen, it will load dtb at fdt_addr and that location of a fdt_addr will be passed to bootm when booting a kernel. Generally after u-boot bootup in jtag mode after autoboot time it scans usb and then ethernet and checks for pxelinux.cfg directory with default config file, if found it will load and boot linux. Steps to test: 1.acquire the board 2.in systest point the tftpd <path> 3.open serial terminal and connect com0 4.load the pdi from xsdb 5.stop at uboot promt and set serverip 6.dhcp 7.pxe get 8.pxe boot Signed-off-by: Swagath Gadde <swagathg@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
* u-boot-zynq-scr.bb: Recipe to create u-boot.scr for Xilinx devicesManjukumar Matha2019-08-151-0/+81
Xilinx u-boot supports distrocmd, this required u-boot.scr from distro to provide the required default boot instead of scanning through the list of available boot devices. This patch enables SD boot mode by default for ZU+ and Versal devices. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>