summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot
AgeCommit message (Collapse)Author
2020-06-19boot.cmd: clean up the variable on "for" loopOleksandr Suvorov
In some situation "for" loop don't alterate the non-empty iteration variable [1]. Clean up the iteration var at the end of each loop. [1] ------------------ Apalis iMX6 # load ${devtype} ${devnum}:${distro_bootpart} ${loadaddr} ${overlays_file}; env import -t ${loadaddr} ${filesize} 107 bytes read in 11 ms (8.8 KiB/s) Apalis iMX6 # print fdt_overlays fdt_overlays="devicetree/apalis-imx6_parallel-rgb_overlay.dtbo devicetree/apalis-imx6_ov5640_overlay.dtbo" Apalis iMX6 # for overlay_file in ${fdt_overlays}; do echo "file=${overlay_file}"; done file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo {Add clean up} Apalis iMX6 # for overlay_file in ${fdt_overlays}; do echo "file=${overlay_file}"; setenv overlay_file; done file=devicetree/apalis-imx6_parallel-rgb_overlay.dtbo file=devicetree/apalis-imx6_ov5640_overlay.dtbo" ------------------ Related-to: ELB-2797 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
2020-06-04boot.cmd: add support for DT overlaysIgor Opaniuk
Add support for DT overlays, which are obtained from overlays.txt stored in bootfs. Relates-to: ELB-2722 Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2020-05-24u-boot-toradex-env.inc: drop fileMing Liu
Since we already have u-boot-toradex-initial-env.inc file, and no other recipes are referring u-boot-toradex-env.inc, we could drop it now. Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-02-12u-boot-distro-boot: fix serial console bootarg passingMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 3c9ed2641a6317a4fd9db77ecd508d4008cbad74)
2020-02-04u-boot-distro-boot: drop sota specific boot.cmd.inMing Liu
It should be moved to meta-toradex-torizon layer. (cherry picked from commit 064d12dfae77397c43e13a79e3b4c7db1b14aeda) Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-01-23u-boot-distro-boot: add a missing ubifsumountMing Liu
ubifs should be umounted after the uEnv.txt file loading finished. (cherry picked from commit 314e3913b03ddfe96390dc7e1665558cc8aec26b) Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-01-22u-boot-distro-boot: use lower case for ubi partition nameStefan Agner
In 2016.11 U-Boot the MTD partition name which is used in the UBI distro boot script has been fixed to capital "UBI". In newer U-Boot this can be configured. With the switch to U-Boot 2019.07 we made use of that feature to align with the BSP and named the MTD partition lower case "ubi". This changes the same in the boot script to make sure Linux looks for UBI volumes in the correct MTD partition. Related-to: TOR-237, TOR-513 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-11-28u-boot-distro-boot: do not reuse bootcmd variableStefan Agner
The bootcmd variable is the entry point for regular boot. If booting fails for some reason and one saves the environment at this point, the next boot will no longer use distro boot. Often booting works since the boot script setup all variables correctly, so one does not notice that the boot flow has been altered/hard-coded. Do not reuse bootcmd to avoid accidentally alter the boot flow. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-11-11u-boot-distro-boot: disable MSI on Apalis iMX8Stefan Agner
Add pci=nomsi to boot arguments for Apalis iMX8. We cannot safely use defargs since this variabel contains downstream specific environment variables which might not work well with upstream kernels as used by TorizonCore. Related-to: #52562 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-09-27u-boot-distro-boot: load HDMI firmware in boot scriptStefan Agner
Use the distro boot script to load the HDMI firmware. This minimizes the dependencies to the U-Boot environment and gives more control to the distribution. Related-to: #52562 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-09-27Revert "u-boot-distro-boot: run setup for torizon"Stefan Agner
This reverts commit 3ad48d3c8a8fa5a1364450ea101b839140656279. Running the machine specific setup is not how distro boot should be used. Also this breaks Colibri iMX7s (and probably Colibri iMX6ULL) PSCI support. Revert this and fix the firmware loading issue separately. Related-to: #52562 Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-09-20u-boot-distro-boot: run setup for torizonMing Liu
setup function needs to be run if it's defined in uboot environment, for instance, loadhdp is being called in it for apalis-imx8 board. Some setup functions also take care of setting bootargs, which is safe for torizon as well if we run setup function before bootcmd_args, since the later will override the bootargs. Signed-off-by: Ming Liu <ming.liu@toradex.com>
2019-09-04u-boot-distro-boot: add support for detecting UUID of rootfsIgor Opaniuk
Provide proper PARTUUID value in bootargs. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
2019-09-04u-boot-distro-boot: fix unbalanced double quoteMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-08-11u-boot-distro-boot: some clean upMing Liu
- Inherit nopackages since it does not generate any non-empty packages. - Drop do_compile, we can run mkimage directly in do_deploy task. - Drop 'S = "${WORKDIR}"', we do not have to explicitly set it, the default S would be good enough. - Do not install DEPLOYDIR, that is not necessary, it's already done in deploy.bbclass. - Do not set noexec flag to do_install, do_populate_sysroot, they are basically empty tasks, making do_populate_sysroot noexec also will cause QA warning when u-boot-distro-boot is set to DEPENDS in other recipes. Signed-off-by: Ming Liu <ming.liu@toradex.com>
2019-07-29u-boot-distro-boot: add inital distro boot scriptMax Krummenacher
This creates a distro boot script boot.scr and deploys it into the ${DEPLOYDIR}. Moved here from meta-toradex-torizon u-boot-distro-boot-ostree. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-06u-boot: add inc to generate U-Boot default environmentStefan Agner
Including u-boot-toradex-initial-env.inc will generate a uEnv.txt for newer U-Boot versions using U-Boot's u-boot-initial-env Makfile target. It essential does what u-boot-toradex-env.inc did before. Note: Since there is now support for an exported environment in upstream U-Boot, we should upstream the OE logic to the official U-Boot too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-03-28u-boot-toradex: add inc to generate U-Boot default environmentStefan Agner
Including u-boot-toradex-env.inc will generate a uEnv.txt text file containing the default environment of the U-Boot binary. This is useful for Toradex Easy Installer to write the default environment using the "u_boot_env" property. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2016-09-29u-boot: get rid of obsolete patchesMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-14Apalis/Colibri iMX6: drop in favour of meta-fsl-arm-extraMax Krummenacher
machine/u-boot/kernel files have been added to meta-fsl-arm-extra. Use them from there now. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2015-12-15Update all U-Boot versions to latestMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2015-12-15Apalis iMX6: U-Boot: change name for IT modulesMax Krummenacher
Change the name form u-boot-it.imx to u-boot.imx-it. This prepares for the upcomming move of the i.MX 6 based modules BSP to meta-fsl-arm-extra. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2015-11-03Update Linux kernel and U-Boot to latest.Marcel Ziswiler
2015-10-12Apalis iMX6: cleanup filename for V1.0 HWMax Krummenacher
Follow the rename imx6q-apalis-eval_v1_0.dtb to imx6q-apalis_v1_0-eval.dtb in the kernel. The v1_0 denotes the Apalis module version, not the evaluation board version.
2015-08-07colibri-vf: use U-Boot recipe from meta-fsl-arm-extraMax Krummenacher
2015-05-18Apalis/Colibri: update U-Boot to latestMax Krummenacher
And use 2015.04-toradex branch
2015-05-18Apalis/Colibri: update U-Boot to latest in -nextMax Krummenacher
2015-05-18Apalis iMX6 IT: u-boot: use the IT defconfig for ITMax Krummenacher
2015-05-12update to latest u-bootMax Krummenacher
2015-05-12update U-Boot and Colibri VFxx Linux to latest git revisionStefan Agner
2015-05-12update to latest u-bootMarcel Ziswiler
2015-05-12u-boot: use latest from gitMax Krummenacher
While at it remove warning about stripped fw_printenv binary when building u-boot-toradex-fsl-fw-utils.
2015-05-12Apalis/Colibri iMX6: kernel/U-Boot update to latest in -nextMax Krummenacher
Also deploy an additional device tree supporting a Colibri iMX6 with Analog Camera Module.
2015-05-12colibri_vf: update to U-Boot 2015.04/Linux 4.0Stefan Agner
2015-02-03colibri-vf: update Linux kernel and U-Boot git hashesStefan Agner
Also update default defconfig for colibri-vf.
2015-01-09u-boot: build additional binary for Apalis iMX6Q 2GB ITMax Krummenacher
The IT variant needs different RAM timings
2014-12-19u-boot/u-boot-fw-utils: update all to latestMax Krummenacher
2014-12-19colibri_vf: update U-Boot and Linux kernel git hashesStefan Agner
Two last minute fixes: Default Product/Vendor ID for USB peripheral in U-Boot and fix for the USB peripheral RNDIS freeze.
2014-12-18Update all to latest and greatest U-Boot and Linux kernel.Marcel Ziswiler
2014-12-16colibri-vf: switch to mainline kernel based on 3.18Stefan Agner
Switch default kernel recipe to linux-toradex-vf which will build a kernel based on the toradex 3.18-next branch.
2014-12-11colibri-vf: update U-BootMax Krummenacher
2014-12-11apalis/colibri-imx6: U-Boot and Kernel for V1.0/V1.1Max Krummenacher
Update to a U-Boot and Kernel which can be used for Apalis iMX6 HW version V1.0 and V1.1. Also deploy additional device tree for Apalis iMX6 V1.0 modules
2014-10-30u-boot: iMX6/VF update to latest from gitMax Krummenacher
2014-10-20colibri-vf: u-boot: switch to 2014.10Stefan Agner
Use rebased U-Boot release 2014.10. The README has a new md5sum and U-Boots new build system has default configurations ending with defconfig too.
2014-10-06colibri-imx6: refactor recipes for new moduleMax Krummenacher
2014-10-06u-boot: remove don't build the examples patchMax Krummenacher
u-boot.inc no longer builds the standalone examples by default so do patch to not do so is no longer needed. The source tree will no longer be marked as git dirty.
2014-08-04u-boot: update to latest git versionMax Krummenacher
2014-08-04u-boot-toradex: update to latest git versionMax Krummenacher
2014-05-24colibri-vf: use latest u-boot and burnflashMarcel Ziswiler
Use the latest U-Boot and burnflash.
2014-05-07u-boot: make use of shared U-Boot branchStefan Agner