Commit Graph

776 Commits

Author SHA1 Message Date
Chris Dimich
de157f8323 nitrogen8mn: remove unneeded preferred version
Remove unneeded preferred version of linux-boundary.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
f06d7201ba nitrogen8mn: use imx-atf-boundary recipe
Use imx-atf-boundary as preferred provider of imx-atf.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
3bea1034c5 nitrogen8mn: update u-boot configuration
Use UBOOT_CONFIG instead of UBOOT_MACHINE, as per matches imx8mnevk.
Define IMAGE_BOOTLOADER and IMXBOOT_TARGETS as per imx8mnevk.
Define DDR_FIRMWARE_NAME as per imx8mnevk.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
3716c62f15 nitrogen8mn: update MACHINEOVERRIDES
Update MACHINEOVERRIDES as per imx8mnevk.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
de20a7dd36 nitrogen8mm: remove unneeded tuning
Remove unneeded aarch64 tuning.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
8670568384 nitrogen8mm: remove unneeded preferred version
Remove unneeded preferred version of linux-boundary.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
8fd6271e58 nitrogen8mm: use imx-atf-boundary recipe
Use imx-atf-boundary as preferred provider of imx-atf.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
409877ec6c nitrogen8mm: update u-boot configuration
Use UBOOT_CONFIG instead of UBOOT_MACHINE, as per imx8mmevk.
Define IMAGE_BOOTLOADER and IMXBOOT_TARGETS as per imx8mmevk.
Define DDR_FIRMWARE_NAME as per imx8mmevk.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
a465a86e35 nitrogen8mm: update MACHINEOVERRIDES
Update MACHINEOVERRIDES as per imx8mmevk.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
125d8e33e4 nitrogen8m: use imx-atf-boundary recipe
Use imx-atf-boundary as preferred provider of imx-atf.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
8bf3414ad6 imx-atf-boundary_2.3: add recipe
Add custom imx-atf applicable only to Nitrogen8m, Nitrogen8mm and
Nitrogen8mn, which pulls from Boundary's imx-atf. This is done because
meta-freescale imx-atf_2.0 sets the RDC so that UART4 is only accessible
by M4 core.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
191632825a nitrogen8m: update u-boot configuration
Use UBOOT_CONFIG instead of UBOOT_MACHINE, as per imx8mqevk.
Define IMAGE_BOOTLOADER and IMXBOOT_TARGETS as per imx8mqevk.
Define DDR_FIRMWARE_NAME as per imx8mqevk.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Chris Dimich
f659fca91a u-boot-boundary: fix u-boot-nodtb.bin deploy path
This is in response to imx-boot throwing error in do_compile for mx8
machines.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-27 09:40:31 -03:00
Carlos Rafael Giani
e55a348857 nitrogen8*: Include tune-cortexa53.inc instead of generic arch-arm64.inc
This fixes the following build error:

> Error, the PACKAGE_ARCHS variable (all any noarch ${PACKAGE_EXTRA_ARCHS_tune-cortexa53-crypto} nitrogen8m) for DEFAULTTUNE (cortexa53-crypto) does not contain TUNE_PKGARCH (${@bb.utils.contains('TUNE_FEATURES', 'aarch64', 'aarch64', '${ARMPKGARCH_tune-cortexa53-crypto}' ,d)}).Toolchain tunings invalid:
> Tuning 'cortexa53-crypto' has no defined features, and cannot be used.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2020-04-20 15:30:07 -03:00
Otavio Salvador
27757cab9f imx6sl-warp: Use mainline BSP instead of NXP one
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-11 21:40:35 -03:00
Otavio Salvador
24086161c0 Use new BSP choosing method for mainline based machines
We now choose the BSP in a generic way and this commit changes the
machines to use the new mechanism setting it to mainline one.

Following changes are changed:

 - imx6qdl-pico
 - imx6ul-pico
 - imx7d-pico
 - imx7s-warp
 - wandboard

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-11 17:07:35 -03:00
Chris Dimich
88b4ceeb62 nitrogen8mn: add machine configuration
Platform details:
https://boundarydevices.com/product/nitrogen8m-nano/

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-09 17:51:19 -03:00
Chris Dimich
7218c1ac6a u-boot-script-boundary: add nitrogen8mn as COMPATIBLE_MACHINE
Support building for nitrogen8mn

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-09 17:51:19 -03:00
Chris Dimich
4896442c20 u-boot-boundary: add nitrogen8mn as COMPATIBLE_MACHINE
Support building for nitrogen8mn

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-09 17:51:19 -03:00
Chris Dimich
cb4e89cdea u-boot-boundary: bump revision to 17fe0ef3
Add support for Nitrogen8M Nano (nitrogen8mn)

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-09 17:51:19 -03:00
Chris Dimich
5703a10283 linux-boundary: bump revision to 04026177
Add support for Nitrogen8M Nano (nitrogen8mn)

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-04-09 17:51:19 -03:00
Otavio Salvador
bd63e44319 u-boot-toradex: Remove fw_unlock_mmc.sh as libubootenv manages it
The script is not required as libubootenv handles the unlock
automatically, so we can drop it now.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-03 09:56:21 -03:00
Otavio Salvador
8d16badf0d u-boot-toradex-fw-utils: Drop recipe as libubootenv works as replacement
Now we are using libubootenv and dropped the u-boot-toradex-fw-utils, we
need to move the configuration file to the main recipe.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-03 09:56:21 -03:00
Otavio Salvador
52505a3bfa u-boot-boundary-fw-utils: Drop recipe as libubootenv works as replacement
Now we are using libubootenv and dropped the u-boot-boundary-fw-utils,
we need to move the configuration file to the main recipe.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-03 09:56:21 -03:00
Otavio Salvador
e50d80861d ccimx6ul*: Drop unbuildable boards
The recipe seems abandoned as their U-Boot is not update for ages, so we
are dropping it for now. If desired, it can be reverted once updated.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-04-02 19:15:08 -03:00
Khem Raj
c4cb26701b u-boot-script-toradex_2019.07.bb: Fix typo in COMPATIBLE_MACHINE
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-01 08:45:04 -03:00
Otavio Salvador
8d9defa57f Rename virtual/bootscript to u-boot-default-script
After discussing this in OE-Core we are renaming it so it follows same
naming pattern as u-boot-default-env.

Fixes: 80be160 (u-boot-script-toradex: Set virtual/bootscript as provider)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-03-31 17:53:37 -03:00
Khem Raj
dfce6c6105 u-boot-script-toradex: Limit visibility to toradex machines
This helps in making it layer work in multi-bsp environment
Fixes double staging errors like

DEBUG: Staging files from TOPDIR/build/tmp/work/raspberrypi4-yoe-linux-gnueabi/u-boot-script-toradex/2019.07-r0/deploy-u-boot-script-toradex to TOPDIR/build/tmp/deploy/images/raspberrypi4
ERROR: The recipe u-boot-script-toradex is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
  TOPDIR/build/tmp/deploy/images/raspberrypi4/boot.scr
    (matched in manifest-raspberrypi4-rpi-u-boot-scr.deploy)
Please verify which recipe should provide the above files.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-31 13:29:19 -03:00
Fabio Berton
80be160184 u-boot-script-toradex: Set virtual/bootscript as provider
Add virtual/bootscript to PROVIDES variable to make easier to use other
boot script just changing PREFERRED_PROVIDER_virtual/bootscript variable.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-31 10:50:39 -03:00
Fabio Berton
79d845df0d u-boot-script-toradex: Rework to use boot.scr-${MACHINE}
Rework recipe changing do_mkimage task, adding a do_install task and
changing do_deploy to output boot.scr file using machine name appended.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-31 10:50:39 -03:00
Chris Dimich
faa3c12c34 nitrogen8m: add nitrogen8m-edp dtb
build required dtb for nitrogen8m-edp

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-03-30 19:56:25 -03:00
Chris Dimich
c536f44343 linux-boundary: bump revision to 47a070fb
Fix build for GCC >= 9 and remove patches that are no longer needed
Add EDP version of Nitrogen8M
Fix PMIC voltage issue for 8M Mini

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-03-30 19:56:25 -03:00
Max Krummenacher
f67ec82839 u-boot-toradex: update to latest
8f0e253cbce configs/colibri_vf.h: drop sdboot in favour of distro_bootcmd
db553084910 colibri_vf_defconfig: enable part cmd
bc2f29bb15d colibri_vf_defconfig: refresh with savedefconfig
1a390a7be57 Fix typo in .gitlab-ci.yml
1f8c4198070 board: apalis_imx6: Add KSZ9131 phy skew settings
cc96ed419f7 drivers: net: phy: micrel_ksz90x1.c: Add basic support for KSZ9131
28491c802d3 net: phy: micrel: Use defines for PHY_IDs and MASK
eac7cda6283 gitlab-ci: Change stage name to build-uboot
677a5647d4b gitlab-ci: enable by building all toradex boards

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-30 16:07:17 -03:00
Max Krummenacher
c3cad652d9 linux-toradex_4.4: update to latest
merge stable v4.4.217 plus add:

73b51c460018 perf: Make perf able to build with latest libbfd
93bf1d7cbe98 ubifs: Limit number of xattrs per inode
795e223e5b15 ubifs: orphan: Handle xattrs like files
a3a0066bd9ce ubifs: journal: Handle xattrs like files
8f234193b8cc ARM: dts: colibri_vf: enable spi can controller by default
cb7f204ca656 ARM: dts: colibri-vf: add phy to fec
de65b53c9a14 vybrid: defconfig: Add nf_filter
09733c33a1e2 ubifs: introduce Kconfig symbol for xattr support
77d474b70b85 ubifs: Add CONFIG_UBIFS_FS_SECURITY to disable/enable security labels
ec56fedf0636 colibri-vf: atmel-mxt-ts reset gpio name change
5b755634298f Input: atmel_mxt_ts - fix reset-gpio for level based irqs
764222255422 Input: atmel_mxt_ts - add support for reset line
f66771876cb4 Input: atmel_mxt_ts - use more managed resources
f1f20d3ef5d6 Input: atmel_mxt_ts - add T100 as a readable object
8e98dd8e24f3 Input: touchscreen - use local variables consistently
d47fa1c71b16 [media] Input: v4l-touch - add copyright lines
b2388ffb318e [media] Input: atmel_mxt_ts - add support for reference data
474053a9ec91 [media] Input: atmel_mxt_ts - add diagnostic data support for mXT1386
3b3646c77fed [media] Input: atmel_mxt_ts - handle diagnostic data orientation
72093537fa08 [media] Input: atmel_mxt_ts - read touchscreen size
ee7692c54ea4 [media] Input: atmel_mxt_ts - output diagnostic debug via V4L2 device
eec93ba7e4d4 [media] Input: atmel_mxt_ts - add support for T37 diagnostic data
a55a3420f646 Input: atmel_mxt_ts - use mxt_acquire_irq in mxt_soft_reset
0e3f34335d6c Input: atmel_mxt_ts - improve touchscreen size/orientation handling
e5115e4d6fa0 Revert "input: atmel_mxt_ts: support reset gpio line"
4f5df6df46d0 tty: serial: lpuart: avoid leaking struct tty_struct
9a787b35584b tty: serial: lpuart: avoid report NULL interrupt
5f0be50f3f17 soc: fix memory leak in probe
929b34b825fd Revert "ARM: uaccess: remove put_user() code duplication"

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-30 16:07:17 -03:00
Max Krummenacher
efd834fa3c toradex machines: deploy boot script
With U-Boot 2019.07 booting from block devices is implemented with distro_bootcmd
needing an U-Boot script boot.cmd/scr.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-30 09:20:07 -03:00
Max Krummenacher
70b0915b8c u-boot-toradex: build nand padded binary
Completes 174762ee25 for colibri-vf.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-30 09:20:07 -03:00
Otavio Salvador
cda11dc260 imx7d-pico: Add ATH10K firmware
The new revisions of the SoM use the Atheros QCA9377 WiFi chip and to
allow its use out of box we need to add the firmware for the default
installation set.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-03-27 20:30:04 -03:00
Otavio Salvador
f646765836 imx6qsabrelite: Remove machine definition
We have been carrying this machine for a while to easy the transition to
the nitrogen6x and now it is time to drop it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I99b014cc5418c83fd2229645bdd76669341abf38
2020-03-27 20:24:34 -03:00
Max Krummenacher
174762ee25 u-boot-toradex: build nand padded binary
The machines using raw NAND flash need a binary which prepends u-boot.imx
with 1k byte for easier flashing.
With u-boot-toradex_2019.07 the u-boot-nand.imx target no longer exists.
so build that binary separately in do_configure.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-03-27 19:21:38 -03:00
Chris Dimich
5aa137ffe8 u-boot-boundary: bump revision to 55215c8f
Update SPL USB ID for UUU to work on 8M Mini and 8M Nano
Update flashing script to ease U-Boot upgrade
Add touch command support to prepare for 4.19 kernel

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-03-27 16:45:26 -03:00
Max Krummenacher
a5c02bf0ba u-boot-toradex-fw-utils: add colibri-imx7-emmc support
This adds a usefull fw_env.config for colibri-imx7-emmc.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 16:26:27 -03:00
Fabio Berton
0858c7fa5b colibri-imx7-nand: Rename colibri-imx7.conf -> colibri-imx7-nand.conf
The previous commit adds machine file colibri-imx7-emmc that is used for
Colibri iMX7 with eMMC device, as the current colibri-imx7 is for
Colibri iMX7 with NAND device rename machine file accordingly.

Add colibri-imx7 to MACHINEOVERRIDES to maintain compatibility with
recipes that need to handle with the old name.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 16:26:27 -03:00
Fabio Berton
9d83162060 colibri-imx7-emmc: Add machine configuration for Colibri iMX7 Dual 1GB (eMMC)
This machine configuration was copied from:

https://git.toradex.com/cgit/meta-toradex-nxp.git/tree/conf/machine/colibri-imx7-emmc.conf

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 16:26:27 -03:00
Fabio Berton
d00a08f9f3 linux-toradex: Update to version 4.14-2.0.x
Use the defconfig files from meta-toradex-nxp layer

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 15:51:30 -03:00
Fabio Berton
6ad0524b13 u-boot-script-toradex: Add recipe
Recipe based on u-boot-distro-boot from meta-toradex-bsp-common

https://git.toradex.com/cgit/meta-toradex-bsp-common.git/tree/recipes-bsp/u-boot/u-boot-distro-boot.bb

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 15:51:30 -03:00
Fabio Berton
7869887b52 u-boot-toradex: Update both u-boot and fw-utils to version 2019.07
Use u-boot-toradex-fw-utils recipe from meta-toradex-nxp layer [1]

1 - https://git.toradex.com/cgit/meta-toradex-nxp.git/tree/recipes-bsp/u-boot/u-boot-toradex-fw-utils_2019.07.bb

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 15:51:30 -03:00
Fabio Berton
ea469689c5 conf/layer.conf: Rename BBFILE_COLLECTIONS to match layer name
BBFILE_COLLECTIONS was using the old layer name, rename to match
the new name.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-27 10:54:35 -03:00
Otavio Salvador
911167728f
Merge pull request #48 from dv1/master
linux-boundary: Fix GCC9 compiler attribute related compile errors
2020-03-21 12:16:08 -03:00
Carlos Rafael Giani
13d3b9e110 linux-boundary: Fix GCC9 compiler attribute related compile errors
These patches are originally from meta-freescale, commit 075681e8 , and
were modified slightly to apply to kernel 4.14.

This fixes errors while building other modules, especially
kernel-module-imx-gpu-viv, which otherwise produces compile errors like:

| [...]tmp/work-shared/nitrogen8m/kernel-source/include/linux/module.h:131:6: error: 'init_module' specifies less restrictive attribute than its target 'gpu_init': 'cold' [-Werror=missing-attributes]
|   131 |  int init_module(void) __attribute__((alias(#initfn)));
|       |      ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1445:1: note: in expansion of macro 'module_init'
|  1445 | module_init(gpu_init);
|       | ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1411:19: note: 'init_module' target declared here
|  1411 | static int __init gpu_init(void)
|       |                   ^~~~~~~~
| In file included from [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
|                  from [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:61:
| [...]tmp/work-shared/nitrogen8m/kernel-source/include/linux/module.h:137:7: error: 'cleanup_module' specifies less restrictive attribute than its target 'gpu_exit': 'cold' [-Werror=missing-attributes]
|   137 |  void cleanup_module(void) __attribute__((alias(#exitfn)));
|       |       ^~~~~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1446:1: note: in expansion of macro 'module_exit'
|  1446 | module_exit(gpu_exit);
|       | ^~~~~~~~~~~
| [...]tmp/work/nitrogen8m-poky-linux/kernel-module-imx-gpu-viv/6.4.0.p1.0-r0/git/src/hal/os/linux/kernel/gc_hal_kernel_driver.c:1437:20: note: 'cleanup_module' target declared here
|  1437 | static void __exit gpu_exit(void)
|       |                    ^~~~~~~~

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2020-03-21 10:06:04 +01:00
Chris Dimich
57e8a171e6 nitrogen7.conf: Update maintainer
Ian Coolidge has been replaced by Chris Dimich at Boundary

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
2020-03-20 19:52:48 -03:00