Commit Graph

273 Commits

Author SHA1 Message Date
Otavio Salvador
2a50e505d4 imx6ul-pico: Use 'use-mainline-bsp' override
We are using the mainline BSP so we ought to opt-out the NXP-specific
changes as well.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-14 11:37:43 -03:00
Max Krummenacher
4cf1272b94 colibri-imx6ull: add machine configuration
The Toradex Colibri iMX6ULL computer module is based on i.MX 6ULL.

The Colibri iMX6 is a member of the pincompatible Colibri family.

They feature on module RAM and NAND, Ethernet PHY, Resistive Touch
Controller and optional Wi-Fi module.

For additional specifications please visit:
https://www.toradex.com/de/computer-on-modules/colibri-arm-family/nxp-imx6ull

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-07-19 16:52:07 -03:00
Max Krummenacher
ccd17aa400 apalis/colibri-imx6.conf: remove inactive SERIAL_CONSOLE assignment
imx-base.inc unconditionally sets SERIAL_CONSOLE to ttymxc0.
So assigning with ?= here to the same value does nothing and may
confuse if someone wants to assign to a different UART.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-07-18 13:16:30 -03:00
Max Krummenacher
eb4cc5937f apalis/colibri machines: update RDEPENDS to match kernel naming
The kernel class now sets RDEPENDS_${KERNEL_PACKAGE_NAME}-base, follow this in
the config files, otherwise bitbake emits a warning and the kernel isn't
removed.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-07-18 13:16:30 -03:00
Max Krummenacher
e345432a34 u-boot-toradex: update to latest git
This updates to latest git which among others adds the new configurations
for Colibri iMX6ULL and moves to use a zImage kernel.

Change machine config to use zImage.

Also use 'older' 1.4.5 DTC which does not conflict with the fdt headers
used in U-boot.

The following commits since b121c6ab (minux non NXP related stuff):
eb660075db colibri-imx6ull: set module variant depending on config block
24db10ece3 tdx-cfg-block: simplify i.MX 6 module detection
bfe8950834 tdx-cfg-block: add support for new Colibri iMX6ULL SKUs
017ec39780 colibri_imx7_emmc: add fatwrite support
b5cc69a7e8 colibri-vf: use leveling evaluated by DDR validation tools
e2d5257acd colibri-vf: adjust timing according to data sheet
63d856627d ARM: vf610: ddrmc: do not write CR79 by default
743e081f34 ARM: vf610: ddrmc: fix CR138 preprocessor define
2881fc12d9 ARM: vf610: fix initialization completion detection
3ad050d4e4 arm: vf610: add UART2 pinmux/clock support
cd3e271cc5 colibri-imx6: added nreset gpio on reboot
addb87df8d cmd: ubi: print load size after establishing volume size
d507d86f8f cmd: set filesize variable in ubi read
9b02ad9e5d colibri-imx6ull: fix card detect GPIO of SD card
8890602daf colibri-imx6ull: Set the DDR RAM ASR bit
4c96a4f64d tdx-cfg-block: fix off by one issue
087e95a2dc colibri_t20: fix passing mac address via dt
a1c2045034 colibri_t20: integrate mtd partitions via dt
0940b3480a tools/env: allow equal sign as key value separation
0a9da66891 apalis/colibri_imx6: remove white space after string end
8a98158f8b script: Make the get_default_envs.sh script working with newest u-boot
d58b8057a7 colibri_vf_defconfig: enable MTD partitions via dt
04c6b570f7 arm: dts: imx7: add UART2/UART3
2fbebc49b5 apalis/colibri: switch to zimage
189e6ea804 tdx-cfg-block: add new SKUs
f05c11cd42 imx: initialize and use generic timer on i.MX 6UL/ULL
88b1209ca9 imx: introduce CONFIG_GPT_TIMER
e7a9e5a76b imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig
393811db8e colibri-imx6ull: add MTD fixup compatible for mainline kernels
307a465108 colibri_imx7: do not mux SODIMM 169 as NAND chip select
30a1208727 apalis/colibri: disable undefined instruction events in user debug
980e216a8a colibri_imx6ull: add sensible default DFU configuration
af4cb91695 apalis/colibri: enable user debug by default
52259cf22a apalis: unify configs
48efc7c6be toradex apalis/colibri: set version variable for all modules
abec6c5697 colibri_imx6ull: add dtb for wifi variant
5e54aedd1c colibri_imx6ull.c: remove dead code
284ac523dd imx: imx6ull: correct get_cpu_speed_grade_hz
8d3bb7ea49 MLK-14839-2 imx: clean up print info for thermal and reset cause
1d4ece729e MLK-14839-1 mx6: Fix wrong CPU frequency
e2215315d9 envtools: make sure version/timestamp header file are available
19177c390e tools: env: allow to print U-Boot version

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2018-07-18 13:16:29 -03:00
Otavio Salvador
6d79ae9eda imx6ul-pico: Rework machine configuration
This reworks the machine configuration so:

 - it uses a generic name, as it works with multiple baseboards;
 - make use of extlinux configuration support

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-11 14:16:12 -03:00
Otavio Salvador
2f04b01bed imx7d-pico: Update settings to use U-Boot SPL
This updates the machine settings so it makes use of the SPL support
and also adds the extra machine U-Boot config, so it allows for a
direct booting in pico-pi baseboard if needed.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-11 14:16:12 -03:00
Otavio Salvador
cc89a9b637 imx7d-pico: Enable the UBOOT_EXTLINUX support
The U-Boot environment has been reworked to use the common distro
configuration, provided by UBOOT_EXTLINUX support.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-11 14:16:12 -03:00
Gary Bisson
33cb0b1255 nitrogen8m: add machine configuration
Platform details:
https://boundarydevices.com/product/nitrogen8m-imx8/

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
2018-07-11 14:16:07 -03:00
Gary Bisson
6146c7020a nitrogen*.conf: fix u-boot preferred provider
And switch to defconfig as now supported in v2017.07 release.

The missing virtual/bootloader variable was generating the following
error:
 $ bitbake u-boot-boundary
...
ERROR: Nothing PROVIDES 'u-boot-boundary'
u-boot-boundary was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-fslc, not u-boot-boundary
u-boot-boundary was skipped: incompatible with machine nitrogen6x (not in COMPATIBLE_MACHINE)

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-10 13:51:59 -03:00
Gary Bisson
b63043d4e0 nitrogen*.conf: switch to standard boot.scr script
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-10 13:51:43 -03:00
Fabio Berton
7ac85ccf27 imx7s-warp: Migrate to use mainline BSP
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2018-07-06 15:11:40 -03:00
Fabio Berton
5025245fbc wandboard: Add use-mainline-bsp to MACHINEOVERRIDES
Use mainline bsp support as default.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-06 10:55:23 -03:00
Otavio Salvador
ba286d4226 cfa10xxx: Drop unbuildable machines
Those machines are unbuildable as we removed the barebox (which was
not building for ages) so it seems nobody care about those boards.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-03 18:47:13 -03:00
Otavio Salvador
9ff6e19962 wandboard: Add UBOOT_EXTLINUX_CONSOLE to pass ${baudrate} to bootparam
We are passing ${baudrate} for the bootparam so the bootargs are
handled properly.

Change-Id: I8084ff18a8d8ec63709554540687a79511b1162a
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-11 16:36:29 -03:00
Otavio Salvador
38f1a0f91c imx7d-pico: Update Linux kernel device tree name
The 4.17 kernel includes the split of imx7d-pico (the SoM) and
imx7d-pico-pi (the SoM + baseboard) split, thus we need to update it
here as well.

Change-Id: Ie9e6aed357af055d906073284d1faba02f84d8e5
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-11 16:36:29 -03:00
texierp
9d674c4556 imx7s-warp: update u-boot configuration
The 'secure_defconfig' was removed, see [1].

[1] 8273209bd9

Signed-off-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-06 10:52:54 -03:00
Otavio Salvador
44ce402484 conf/layer.conf: Add LAYERSERIES_COMPAT info
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-04-16 16:21:04 -03:00
Fabio Berton
d5b9e9570d imx7s-warp: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" and WKS_FILE = "imx-uboot-bootpart.wks" are
already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:30 -03:00
Fabio Berton
d60cb77eb8 imx7d-pico: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" is already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:25 -03:00
Fabio Berton
30cb947080 colibri-vf: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" is already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:20 -03:00
Fabio Berton
1bcdad9a33 colibri-imx7: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" is already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:16 -03:00
Fabio Berton
f52ddb7e91 colibri-imx6: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" is already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:11 -03:00
Fabio Berton
3094682971 apalis-imx6: Remove imx-base.inc duplicate code
IMAGE_FSTYPES = "wic.gz" is already set in imx-base.inc

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:04 -03:00
Fabio Berton
6cdec74938 Remove --no-fstab-update option from WIC_CREATE_EXTRA_ARG for all machines
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" was add to imx-base.inc
and we can remove from all machines that includes imx-base.inc file.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-02-28 13:36:01 -03:00
Otavio Salvador
c2fcaeadf5
Merge pull request #6 from prof7bit/colibri-fix-serial-console
colibri-vf: use strong assignment of SERIAL_CONSOLE, fixes #5
2018-02-21 15:20:26 -03:00
Bernd Kreuss
4cc42f5105 colibri-vf: use strong assignment of SERIAL_CONSOLE, fixes #5
SERIAL_CONSOLE would otherwise stay at the default setting as defined in imx-base.inc but this setting would make it try to spawn a getty on a non-existing device on the colibri-vf and login on the UART console would not work.

Signed-off-by: Bernd Kreuss <prof7bit@gmail.com>
2018-02-21 18:54:25 +01:00
texierp
1883357f1d imx7s-warp: Add option to not modify fstab
Add "--no-fstab-update" to WIC_CREATE_EXTRA_ARGS avoid wic change fstab
in final image.

Signed-off-by: Pierre-Jean TEXIER <texier.pj2@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-01-25 16:56:29 -02:00
Stefan Agner
fcc529237f apalis-imx6.conf: remove Apalis iMX6 V1.0 module support
Remove Apalis iMX6 V1.0 device trees. Newer kernel versions will
no longer provide device trees for those early sample devices.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-12-19 14:31:12 -02:00
Max Krummenacher
3fc4458fd8 colibri-vf.conf: add a wic image in favour of sdcard image
The wic image can be used to boot kernel/dtb/rootfs from an SD card.
U-Boot gets booted from the on module NAND, the image from the prepared
SD card.

zcat XXX.rootfs.wic.gz | dd of=/dev/sdX bs=1M

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
26bec0011d colibri-vf.conf: add a device tree for the aster carrier board
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
c44904d9c8 colibri-imx7.conf: add a wic image in favour of sdcard image
The wic image can be used to boot kernel/dtb/rootfs from an SD card.
U-Boot gets booted from the on module NAND, the image from the prepared
SD card can be started with 'run sdboot'.

zcat XXX.rootfs.wic.gz | dd of=/dev/sdX bs=1M

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
9202f5fa7f colibri-imx7.conf: add device tree for the aster carrier board
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
0b9af1e059 colibri-imx6.conf: add a wic image in favour of sdcard image
The wic image can be used to boot kernel/dtb/rootfs from an SD card.
U-Boot gets booted from the on module eMMC, the image from the prepared
SD card can be started with 'run sdboot'.

zcat XXX.rootfs.wic.gz | dd of=/dev/sdX bs=1M

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
8e30e89454 colibri-imx6.conf: add device trees for aster and use-mainline-bsp
Add a device tree for the Aster carrier board.

Add the device tree available in mainline for use with the
use-mainline-bsp override.

While at it unify the @SOC description variable with other boards.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
f570748952 colibri-imx6.conf: do not deploy the kernel in the rootfs
The kernel is taken from a separate fat partition in the regular
boot process, so there is no need to deploy it in the rootfs.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
5e2b946de0 colibri-imx6.conf: build a spl u-boot
U-Boot is now used with SPL, set the machine conf file accordingly.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
c0036cd746 apalis-imx6.conf: add a wic image in favour of sdcard image
The wic image can be used to boot kernel/dtb/rootfs from an SD card.
U-Boot gets booted from the on module eMMC, the image from the prepared
SD card can be started with 'run sdboot'.

zcat XXX.rootfs.wic.gz | dd of=/dev/sdX bs=1M

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
bbc134ef5d apalis-imx6.conf: add device trees for ixora and use-mainline-bsp
Add a device tree for the Ixora carrier board.

Add the device tree available in mainline for use with the
use-mainline-bsp override.

While at it unify the @SOC description variable with other boards.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
e1e53bf544 apalis-imx6.conf: do not deploy the kernel in the rootfs
The kernel is taken from a separate fat partition in the regular
boot process, so there is no need to deploy it in the rootfs.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Max Krummenacher
b5f9ee90d8 apalis-imx6.conf: build a spl based u-boot
U-Boot is now used with SPL, set the machine conf file accordingly.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-08 14:16:02 -02:00
Otavio Salvador
46916bbd74 Rework machines to use wic support
This rework existing machines to use the wic support. It allows for a
lot of code removal as the image dependencies can be defined in a more
accurate way.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-05 13:56:56 -03:00
texierp
cb8eb56f37 imx7s-warp: Add wic image support
Signed-off-by: Pierre-Jean TEXIER <texier.pj2@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-05 13:51:45 -03:00
Otavio Salvador
23df7dcb75 wandboard: Add Wandboard revision D1 support
Latest Wandboard hardware revision is D1, which brings the following
new features:

 - PFUZE100 PMIC
 - AR8035 Ethernet PHY
 - Upgrade Wifi/BT chip to BCM4339/BCM43430

The new revision also adds support for QuadPlus SoC so the new Device
Tree is also added.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-05 13:51:39 -03:00
Otavio Salvador
fb6ead9fc3 wandboard: Revert device tree name change
There is no reason to diverge from mainline so we revert the device
tree name change.

This patch changes the machine definition and the Linux kernel recipe
so the tree is kept buildable.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-05 13:51:37 -03:00
Vanessa Maegima
87223f2cc9 imx7d-pico: Add machine configuration
Add machine definition for imx7d-pico board.

For more information about this reference design, please visit:

https://www.wandboard.org/products/android-things/PICO-PI-IMX7/

The machine configuration file used to include Yocto Project support to the
board is a consolidation work only.

It only reflects the work done in Linux kernel, U-Boot and FSL Community BSP,
where the hard work is actually done.

Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-09-22 17:13:35 -03:00
Fabio Berton
b2a36b06e5 cgtqmx6: Fix PREFERRED_PROVIDER for u-boot and virtual/bootloader
Set u-boot-congatec for both  u-boot and virtual/bootloader
PREFERRED_PROVIDER and use a softer assignment for these variable.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-08-30 10:13:49 -03:00
Fabio Berton
c9f33e664d cfa10036: Fix IMAGE_FSTYPES barebox-mxsboot-sdcard
>From OE-Core commit 8a9f249a9166347cc0468191ce130003e3d306e1:

If image type "foo" depends on image type "bar.xz", then dependencies
should be collected from the base image type (ie "IMAGE_DEPENDS_bar")
not from "IMAGE_DEPENDS_bar.xz".

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-08-24 11:29:34 -03:00
Fabio Berton
3fb59e4d6f Replace deprecated IMAGE_DEPENDS_wic with WKS_FILE_DEPENDS
IMAGE_DEPENDS_wic_append is deprecated and to install wic dependencies
we need to set WKS_FILE_DEPENDS variable. We don't need to add u-boot
to WKS_FILE_DEPENDS for machines that has u-boot in
MACHINE_ESSENTIAL_EXTRA_RDEPENDS variable. The only dependency to create
wic images is parted-native and is already provided by image_types_wic
class, we can set WKS_FILE_DEPENDS to void and don't build any dependency.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Tested-by: Eric Nelson <eric@nelint.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-08-24 11:28:42 -03:00
Trevor Woerner
a73a14247a wandboard: fix deprecated notation
The previous "IMAGE_DEPENDS..." notation has been deprecated for the newer
"do_image...[depends]" notation.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-07-01 15:39:12 -03:00