summaryrefslogtreecommitdiff
path: root/recipes-bsp
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-18tezi-metadata: replace soc overrides to also include use-mainline-bspMax Krummenacher
With use-mainline-bsp the SoC overrides mx6/mx6q/mx6ull... are filtered out of the overrides. Replace them with the specific machine name. Related-to: ELB-2805 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-12gpio-export: clean up some variablesMing Liu
- Drop NATIVE_SYSTEMD_SUPPORT, it's deprecated. - Drop do_compile, base_do_compile would be good fine enough. Signed-off-by: Ming Liu <ming.liu@toradex.com>
2020-06-08device-tree-overlays: split into a per kernel flavour recipeMax Krummenacher
Create a seperate recipe for each kernel flavour and move the recipe into the same directory as the kernel recipe. This allows to have a better control over which machine needs which device-tree-overlays. E.g. apalis-tk1 does not make use of the NXP use-mainline-bsp facility. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-06-07device-tree-overlays: add initial recipeIgor Opaniuk
Add external device tree overlays to be build outside of the main linux kernel recipe. Relates-to: ELB-2723 Signed-off-by: Ming Liu <ming.liu@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@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-04-28tezi-metadata: add new slidesMarcel Ziswiler
Related-to: ELB-2686 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 78f228b9b427972a70c91deb5b40af1f307b7246) (cherry picked from commit d02b7fd19d87eb2dffcaa36ab4427e47a8a749c4)
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-14tezi-metadata: drop compatible machine restrictionStefan Agner
We have generic prepare.sh and wrapup.sh scripts hence tezi-metadata is buildable and useable for any machine. Signed-off-by: Stefan Agner <stefan.agner@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>
2019-03-04apalis/colibri-t20 -t30: drop machinesMax Krummenacher
These machines use an old Nvidia provided downstream kernel 3.1.10. They no longer much the way more recent sysroot components, e.g. libc, xserver et. al. The maintance burden to keep the userspace components in their old version becomes simply to high. Keep using the rocko based 2.8 BSP for these machines. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04tezi-metadata: inherit nopackagesMing Liu
A main package being empty without setting ALLOW_EMPTY can lead to errors in populate_sdk task. If it does not provide any packages then we should let it inherit nopackages bbclass. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2018-06-26tezi-metadata: add new slidesColibri-iMX7_LXDE-Image_2.8b3.111-20180627Colibri-iMX6_LXDE-Image_2.8b3.111-20180627Colibri-iMX6ULL_LXDE-Image_2.8b3.111-20180627Colibri-VF_LXDE-Image_2.8b3.111-20180626Colibri-T30_LXDE-Image_2.8b3.111-20180627Colibri-T20_LXDE-Image_2.8b3.111-20180626Apalis-iMX6_LXDE-Image_2.8b3.111-20180626Apalis-TK1_LXDE-Image_2.8b3.111-20180626Apalis-TK1-Mainline_LXDE-Image_2.8b3.111-20180627Apalis-T30_LXDE-Image_2.8b3.111-20180626Stefan Agner
Update the slides shown during image installation. This updates our presence in Japan. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-06-18mwifiex: mwifiex module optionsDominik Sliwa
Add module load options for MWiFiEx driver, so the driver will create both uAP and station interfaces on boot. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-06-18tezi-metadata: add apalis-t30 to compatible machineStefan Agner
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@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>
2017-12-22recipes: fix invalid license file locationMax Krummenacher
Use '${COMMON_LICENSE_DIR} for license files fix the warning: | WARNING: packagegroup-xfce-base-1.0-r5 do_populate_lic: | ${COREBASE}/LICENSE is not a valid license file, please use |'${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. |This will become an error in the future Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-10-03tezi-metadata: add apalis-tk1 and apalis-tk-mainline to compatible machineMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
2017-10-03tezi-metadata: fix spelling mistakes in commentsMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-10-03tezi-metadata: mx6ull: add empty wrapup.sh scriptMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-06-09gpio-export: do not export gpios used for ov5640 reset and power controlBhuvanchandra DV
Toradex CSI 5MP OV5640 camera module uses two GPIOs for power and reset control, exporting them here leads to failure of OV5640 driver. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-06-09meta-toradex-bsp: add colibri imx7 to supported machinesStefan Agner
The default (empty) prepare/wrapup scripts will be used which is fine since there is no need for special scripting on Colibri iMX7 currently. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-04-07meta-toradex-bsp: clean-up whitespace useMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-02-08tezi-metadata: use wrapup.sh script for Colibri iMX6 tooStefan Agner
The wrapup.sh script updates fuses/eMMC settings on-site. The same script can be used for Apalis iMX6 as well as for Colibri iMX6. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
2017-01-11apalis-imx6: do in-field updates at the endColibri_iMX7_LinuxImageV2.7Beta1_20170112Colibri_iMX6_LinuxImageV2.7Beta1_20170112Colibri_VF_LinuxImageV2.7Beta1_20170112Colibri_T30_LinuxImageV2.7Beta1_20170112Colibri_T20_LinuxImageV2.7Beta1_20170112Apalis_iMX6_LinuxImageV2.7Beta1_20170112Apalis_TK1_LinuxImageV2.7Beta1_20170112Apalis_T30_LinuxImageV2.7Beta1_20170112Stefan Agner
The boot partition configuration needs to be done _after_ writing to the boot partition (hence after flashing SPL and U-Boot). Move the whole migration script to the end by using the wrapup.sh script. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2017-01-11tezi-metadata: initial commit of Tezi specific image metadataStefan Agner
This adds metadata files required by Toradex Easy Installer. Most notable is the Linux specific migration script which is executed before flashing an image. The script makes sure that hardware specific upgrades such as fuses/eMMC reconfiguration get executed, as our U-Boot based scripts do when using "run update". 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