Commit Graph

698 Commits

Author SHA1 Message Date
Arturo Buzarra f67b5c4355 u-boot-dey: disable support to initial environment on v2017.03
Since this feature was introduced in newer versions of U-Boot, we need
to disable it for v2017.03 to avoid several compilation issues.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 867386c5c8 gatesgarth migration: u-boot-dey: introduce UBOOT_INITIAL_ENV
This default environment is needed by packages like libubootenv.

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Gabriel Valcazar 2388e1b3f6 gatesgarth migration: Remove u-boot-fw-utils files
This package has been entirely replaced with libubootenv

https://jira.digi.com/browse/DEL-7410

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-05 19:18:11 +02:00
Hector Bujanda f6e906b625 New ccimx6 variant:
* Dual-core Consumer, 1GHz
* 4GB eMMC,
* 1GB DDR3,
* Temp grade: -20/+105C

https://jira.digi.com/browse/CCIMX6-973

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2021-04-21 11:03:14 +02:00
Hector Palacios e3f6955cc1 ccimx8m: remove quad core device tree overlay
This overlay added cooling devices for all quad cores.
On the latest BSP, the SoC device tree include contains all four
cooling devices and the newest U-Boot is able to delete the nodes
for non-existing cores, so there's no need for this overlay
anymore.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-02-17 09:23:07 +01:00
Arturo Buzarra be7de5559c imx-boot: add support to ConnectCore 8M Mini DVK platform
Both ConnectCore 8M platforms share the same U-Boot build process,
so apply the same changes for them.

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 8b01fe57a9 uboot: add support to ConnectCore 8M Mini DVK platform
Add initial support cloned from ccimx8mn-dvk

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Hector Bujanda b0e535b28c change recipes to build from 'master' branches
Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-01-26 11:51:11 +01:00
Arturo Buzarra 4265926650 u-boot: remove 2018.03 recipe, replaced by v2020.04
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-22 13:25:15 +01:00
Arturo Buzarra 61497fb2dd meta-digi: revert revisions to AUTOREV
This reverts commit bc843e239d.
2021-01-21 12:57:49 +01:00
Arturo Buzarra bc843e239d meta-digi: update revisions for dey-3.0-r3.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-21 12:56:46 +01:00
Hector Palacios ee29d0ffcd install_fw: cc6ul: erase 'update' partition unconditionally
When manually changing the partition table, it could happen that
a UBI volume already exists in the 'update' partition.
If not erased, the system may find the old UBI volume (with wrong
geometry information) and try to mount it which will result in
failure.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-01-20 18:16:49 +01:00
Arturo Buzarra de2e9e40ad meta-digi: revert revisions to AUTOREV
This reverts commit c22e8faf90.
2021-01-18 18:37:09 +01:00
Arturo Buzarra c22e8faf90 meta-digi: update revisions for dey-3.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-18 18:30:50 +01:00
Hector Palacios fddaee85b9 update-fw scripts: fix error path after sucessful update
On commit 1e5cafeb79 a fall-back
update command was introduced in case the newest command fails.
If the newest command succeeds, however, the 'test' command for
error doesn't match (there is no error) and the return code of
such test is "1". On the next check for errors, this results on
an error, when we really mean to continue because the first
command was successful.

Move the second error check inside the error path of the first
attempt.

Reported-by: Francisco Gil <francisco.gilmartinez@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-01-18 17:36:38 +01:00
Hector Palacios 1e5cafeb79 uboot: update fw install scripts to remove source fs from commands
The 'source file system' was removed as an argument from the
'update' command in U-Boot v2020.04.
For platforms using such version, remove it from the update fw
scripts.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-983
2021-01-07 19:29:06 +01:00
Gabriel Valcazar ae012f7069 ccimx8x: update USB install script with selected U-Boot for variants
A similar change was done in the dey-3.0/maint branch for the uSD installation
scripts, but since USB scripts were added in dey-3.0/master, apply the same
to them as well.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 14:54:38 +01:00
Gabriel Valcazar e0055ce0cb Merge branch 'dey-3.0/master' into dey-3.0/maint
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 12:28:39 +01:00
Hector Palacios 2caec3176a ccimx8x: update install script with selected U-Boot for variants
CC8X SOMs code the RAM size on the OTP bits so this fall-back table
shouldn't be necessary, but update it with latest variants just
in case.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-12-21 14:06:28 +01:00
Arturo Buzarra 8b3b8b5516 uboot: add script to update firmware from a USB stick
Create scripts to install DEY firmware using a USB stick.

https://jira.digi.com/browse/DEL-6802

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-12-03 15:46:22 +01:00
Hector Palacios dc663aa743 uboot: v2020.04 is now supported for ccimx8m and ccimx6ul
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-16 13:26:53 +01:00
Hector Palacios c92392ffdf uboot: add script to update firmware through uuu
U-Boot v2020.04 for the CC6UL supports the fastboot protocol.
Create scripts to install DEY firmware via USB using uuu
tool.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-16 13:26:53 +01:00
Mike Engel 18198b5c12 u-boot-dey: ccimx6ulstarter: fix typo in installer script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
(cherry picked from commit 3041f3a2f7)
2020-11-16 12:09:39 +01:00
Mike Engel 3041f3a2f7 u-boot-dey: ccimx6ulstarter: fix typo in installer script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-11-16 12:02:42 +01:00
Hector Palacios 4685664d07 u-boot: boot script: allow to disable Wi-Fi/BT overlays
Check a U-Boot env variable (disable_wifi/disable_bt) for easily
disabling Wi-Fi and/or Bluetooth overlays.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>ç

https://jira.digi.com/browse/DEL-7297
(cherry picked from commit b74a8cee54)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-04 16:10:20 +01:00
Hector Palacios 7eaa7670a7 change recipes to build from 'master' branches
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-29 12:29:48 +01:00
Hector Palacios b74a8cee54 u-boot: boot script: allow to disable Wi-Fi/BT overlays
Check a U-Boot env variable (disable_wifi/disable_bt) for easily
disabling Wi-Fi and/or Bluetooth overlays.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>ç

https://jira.digi.com/browse/DEL-7297
2020-10-29 09:56:55 +01:00
Hector Palacios 51319426f8 meta-digi: revert revisions to AUTOREV
This reverts commit 4dfdf2d435.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-23 13:09:52 +02:00
Hector Palacios 4dfdf2d435 meta-digi: update revisions for dey-3.0-r2.4
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-23 13:09:44 +02:00
Hector Palacios a64005482b meta-digi: revert revisions to AUTOREV
This reverts commit 3a299682aa.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-22 16:14:30 +02:00
Hector Palacios 3a299682aa meta-digi: update revisions for dey-3.0-r2.3
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-22 16:14:30 +02:00
Gabriel Valcazar d7d8c7aa56 ccimx6qpsbc: add support for variants 0x02 and 0x03
Build the U-Boot for variants with 1GB of memory and make the installation and
boot scripts recognize all of the current variants.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-21 14:56:15 +02:00
Hector Palacios 5a8b929694 meta-digi: revert revisions to AUTOREV
This reverts commit e1129bc8e4.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-20 17:15:59 +02:00
Hector Palacios e1129bc8e4 meta-digi: update revisions for dey-3.0-r2.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-20 17:15:59 +02:00
Arturo Buzarra 3a5d193b09 u-boot: ccimx8x-sbc-express: sync installation sd card script
This commit added support to C0/B0 variants.

https://jira.digi.com/browse/DUB-974

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-19 17:12:51 +02:00
Arturo Buzarra 6e00349b0d u-boot: ccimx8x: fix default uboot name for 512MB variants with old-style HWID
https://jira.digi.com/browse/DUB-974

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-10-19 12:26:07 +02:00
Hector Palacios 0a0f376ea6 ARM64: dts: ccimx8mn: add overlay for DVK version < 3
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7279
2020-10-19 10:53:53 +02:00
Gabriel Valcazar 666c361df2 ccimx8x-sbc-pro: add overlay for SBC versions 3 and lower
Since this overlay is only used in the SBC Pro bootscript, have a separate
bootscript for the SBC Express.

https://jira.digi.com/browse/DEL-7276

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-10-13 16:19:34 +02:00
Hector Palacios fb3c7d5e3f meta-digi: revert revisions to AUTOREV
This reverts commit 76ec96632760fd3ee6113a74b8363a688edf99c3.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 16:37:51 +02:00
Hector Palacios 519b924f12 meta-digi: update revisions for dey-3.0-r2.1
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 16:37:51 +02:00
Hector Palacios d34d9de25a u-boot: remove 2019.04 recipe, superseeded by v2020.04
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-08 13:46:04 +02:00
Hector Palacios 2ade93d8eb u-boot-dey: restore modified env vars in case of error on bootscript
The boot script appends values to certain variables such as
$extra_bootargs and $overlays.

If the final instruction of the boot script (dboot command)
fails, these variables contain the new values, plus the original
one. Since the user recovers the prompt, he may do a 'saveenv'
to save the environment, and the modified variables will be
saved, only to be enlarged again on the next boot.
This can lead to repeated strings on such variables.

Save the original value and restore it in case of failure on
the dboot command.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-10-01 16:13:46 +02:00
Hector Palacios 3786647d1c ccimx8x/mn: rename dt overlays filenames
Follow the syntax:

  _ov_<som|board>_<functionality>[_<hardware>].dts

where:
  _ov_          identifies the file as an overlay.
  som|board     identifies whether the overlay applies to the SOM
		or to the carrier board.
  functionality identifies the function of the overlay.
  hardware      identifies the hardware to which the overlay
		applies.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-29 18:06:02 +02:00
Hector Palacios b198602b0c Merge branch 'zeus' into dey-3.0/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-29 17:02:25 +02:00
Gabriel Valcazar ff756dd8f7 meta-digi: revert revisions to AUTOREV 2020-09-28 13:50:28 +02:00
Gabriel Valcazar 5cb7ecc3a5 meta-digi: update revisions for dey-3.0-r1.6
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-28 13:47:32 +02:00
Hector Palacios fe6d67ad2c u-boot: fix scripts for variants with old-style HWID
Wrapping unterminated lines doesn't work for scripts (even
if they contain the backslash).
Substitute with full non-wrapped if/elif sentences.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7252
2020-09-28 11:24:23 +02:00
Gabriel Valcazar 66471fd0c2 ccimx6qpsbc: bootscript: hardcode imx6qp soc_family for all SOC variants
In the ccimx6sbc, since each SOC has a separate set of device trees, we can use
the soc_family environment variable when generating the name of the final
device tree in the bootscript. However, for the ccimx6qpsbc, there is only one
set of device trees with the "imx6qp" prefix, even though there are SOC
variants such as the imx6dp. Running the bootscript on a ccimx6qpsbc with an
imx6dp SOC assembled will result in a failure, since it will look for a
non-existing device tree starting with a "imx6dp" prefix.

Stop using the soc_family variable and hardcode "imx6qp" instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-09-25 10:23:45 +02:00
Hector Palacios 27be059de4 digi: switch recipes to maint branches
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-09-16 10:48:08 +02:00
Mike Engel 8eedf4407e meta-digi-arm: Add new CC6UL variants
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-7169
2020-09-14 18:14:03 +02:00
Francisco Gil Martinez 9249c60c88 ccimx8mn: add support for QUAD overlay
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-09-14 16:39:57 +02:00
Francisco Gil Martinez 1306bbd3ee ccimx8mn: remove the soc type from overlays
With the previous solution we would need to generate
multiple overlays for each soc_type, so if we have a
new soc type (for example the solo), we would need
to generate 3 different overlays.

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-09-14 16:39:57 +02:00
Gonzalo Ruiz d516aa96d3 u-boot-dey: add 2020.04 recipe for ccimx8x
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-09-03 13:36:14 +02:00
Gabriel Valcazar 5ea641fc14 meta-digi: revert revisions to AUTOREV 2020-08-25 11:34:18 +02:00
Gabriel Valcazar 84d3506432 meta-digi: update revisions for dey-3.0-r1.5
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-08-25 11:34:06 +02:00
Gabriel Valcazar 51c7498af0 meta-digi: revert revisions to AUTOREV 2020-08-24 12:07:44 +02:00
Gabriel Valcazar aa63318cf1 meta-digi: update revisions for dey-3.0-r1.4
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-08-24 12:01:12 +02:00
Gonzalo Ruiz ae05d9633a u-boot-dey: add mmc partconf command to uuu scripts
Add running 'mmc partconf 0 1 1 1' command to the uuu scripts after
writing the new U-Boot into the internal eMMC.

This is required for blank eMMCs on CC8MN and CC8X SOMs where the
'update' command has never been run to be able to boot from eMMC.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-08-20 10:36:12 +02:00
Hector Palacios 5403b831df u-boot-fw-utils: update patch to support encrypted env
The encryption of the U-Boot environment uses the HWID as key
modifier. The HWID was being read using the fsl_otp driver sysfs
entries and over two words. The driver is now deprecated and also
the cc8x and cc8m platforms have different number of HWID words.

This patch modifies the function that reads the HWID words by
using new entries on the device tree 'digi,hwid_X' where X is the
index of the HWID word.

It also removes the need to select CONFIG_MD5 which is already
auto-selected on sandbox_defconfig by other config switches.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7185
(cherry picked from commit 8ced362766)
2020-07-24 13:13:40 +02:00
Hector Palacios 8ced362766 u-boot-fw-utils: update patch to support encrypted env
The encryption of the U-Boot environment uses the HWID as key
modifier. The HWID was being read using the fsl_otp driver sysfs
entries and over two words. The driver is now deprecated and also
the cc8x and cc8m platforms have different number of HWID words.

This patch modifies the function that reads the HWID words by
using new entries on the device tree 'digi,hwid_X' where X is the
index of the HWID word.

It also removes the need to select CONFIG_MD5 which is already
auto-selected on sandbox_defconfig by other config switches.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7185
2020-07-24 13:12:13 +02:00
Hector Palacios e56f201a57 Merge branch 'dey-3.0/maint' into 'dey-3.0/master'
Merge at commit right after 'dey-3.0-r1.3'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-06-29 16:41:36 +02:00
Gabriel Valcazar 332438f5b7 meta-digi: revert revisions to AUTOREV 2020-06-25 13:08:41 +02:00
Gabriel Valcazar 5ebc893b58 meta-digi: update revisions for dey-3.0-r1.3
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-25 12:15:52 +02:00
Arturo Buzarra d36bce0ee4 meta-digi: revert revisions to AUTOREV 2020-06-22 17:37:52 +02:00
Arturo Buzarra a75b801e1e meta-digi: update revisions for dey-3.0-r1.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-22 17:32:28 +02:00
Arturo Buzarra b793b3faae meta-digi: revert revisions to AUTOREV 2020-06-16 18:02:42 +02:00
Arturo Buzarra bd8955cd45 meta-digi: update revisions for dey-3.0-r1.1
https://jira.digi.com/browse/DEL-7120

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-16 17:49:11 +02:00
Gonzalo Ruiz ea2ffcfee8 trustfence: introduce AHAB container creation into script
https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz 9b4a03c14c trustfence: [cosmetic] rename script to trustfence-sign-artifact
The signing script is used for signing multiple artifacts, not just the
kernel, so rename it for a broader use.

https://jira.digi.com/browse/DEL-7047

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz ce979e9323 u-boot-dey: simplify trustfence signing process
Signing with AHAB mode only requires an additional prior step, so
reuse as much code as possible.

https://jira.digi.com/browse/DEL-7047

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Gonzalo Ruiz 1a600bcded u-boot-dey: allow bootscript signing for ccimx8mn
TRUSTFENCE_SIGN_MODE for ccimx8mn is "HAB", although the
BOOTLOADER_IMAGE_RECIPE is "imx-boot".

https://jira.digi.com/browse/DEL-7024

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-06-04 19:01:34 +02:00
Arturo Buzarra 616e2059d3 meta-digi-arm: uboot: Add kernel parameter to center custom logo
https://jira.digi.com/browse/DUB-948

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-04 08:33:51 +02:00
Gabriel Valcazar 0115fe8fa7 switch to building from maintenance branches for dey-3.0
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-06-01 13:43:29 +02:00
Arturo Buzarra da4145dd13 imx-mkimage: move recipe to native and include its binaries in the SDK
imx-mkimage is a host recipe to provide the mkimage_imx8 binaries, required
for the trustfence support with platform based on AHAB (ccimx8x). Since
these binaries are required to the sign process we need to export it in the
SDK to allow the standalone sign mode, and with that we can simplify the
mechanism to share these binaries with another recipes (u-boot, linux).

Also the do_deploy() from imx-mkimage recipe was removed to avoid overriding
the implementation from the native class and allow populating the mkimage
binaries.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-06-01 08:56:20 +02:00
Hector Palacios f42b966925 Revert "meta-digi-arm: u-boot: Add CC6UL to v2019.04 u-boot."
U-Boot v2019.04 has unresolved issues on CC6UL.
This reverts commit acf9d41388.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-29 09:56:07 +02:00
Gabriel Valcazar 222ded5a38 digi-sc-firmware: update to v1.4.0.2
This update is a cosmetic one and removes the RAM frequency from the SCFW
filenames. Reflect this change in the RAM_CONFIGS variable and in the uSD/UUU
installation scripts.

As a result, the imx-boot filenames will no longer have the RAM frequency
either.

https://jira.digi.com/browse/DEL-7096

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-28 18:15:38 +02:00
Gabriel Valcazar aa68675f45 ccimx8x-sbc-pro: add support for the C0 SOC in the fw installation scripts
The scripts need to know the SOC's revision to be able to select the correct
imx-boot image. Modify the boot-artifacts bbclass so the renamed imx-boot files
are included in the installation .zip.

Also, bypass the SECO fw check in the uSD script so it can install future
versions that aren't recognized by U-Boot's SECO fw checking logic. The UUU
script doesn't require this bypass, since it doesn't use the Digi update
command to flash the bootloader.

https://jira.digi.com/browse/DEL-7069

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-28 18:03:09 +02:00
Hector Palacios 37071483f7 u-boot: fix typo on cc8x boot script
Commit bc7320f203 introduced a double quote typo.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-27 09:51:55 +02:00
Hector Palacios f58ccb7463 boot: don't set fdt_file on bootscript; just the overlays
With the device tree overlays mechanism in place, the bootscript
doesn't need to set the fdt_file variable. Instead, it will use
the value it has (which can be changed by the user) and it will
simply update the 'overlays' variable with the device tree
overlays that apply basing on the hardware capabilities found
on the HWID, SOM version, and carrier board version.

This allows a user to override the default fdt_file to point
to his custom device tree, but still make use of the boot script
for hardware-detected overlays.

Without the need to set the base filename, the boot script is the
same for any carrier board of the ccimx8x SOM, so this commit
moves it to a common folder.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-27 07:06:29 +02:00
Hector Palacios c2d20ce86c uboot: remove need for 'sudo' on script instructions
With the appropriate udev rules, there is no need to run
the install script as root.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-26 17:10:42 +02:00
Mike Engel 31fb64b494 meta-digi-arm: uboot: Add kernel parameter to center custom logo
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-05-26 15:26:54 +02:00
Gabriel Valcazar bc7320f203 ccimx8x: add support for QXP overlay
Each platform now has only one base device tree, meant for the i.MX8DX variants
of the ccimx8x boards. Apply the QXP overlay in the bootscript if the SOC is
identified as an i.MX8QXP.

Since we want to give this overlay a higher priority than the SOM overlays
(wifi and bluetooth), prepend it to the overlay list after appending the SOM
overlays.

https://jira.digi.com/browse/DEL-7100

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-26 12:25:18 +02:00
Gabriel Valcazar 306b83eef0 ccimx8x: add support for wifi and bt overlays
Remove the old wb device trees from the ccimx8x-sbc-express and ccimx8x-sbc-pro
configuration files and add the ccimx8x wifi and bt overlays. Modify both
platforms' bootscripts to apply the overlays depending on board_id, hardware
capabilities or module variants.

https://jira.digi.com/browse/DEL-7100

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-26 12:17:34 +02:00
Hector Palacios f9eaa06e19 u-boot: fix uuu install firmware script
The function that parsed the output for a U-Boot variable value
was receiving a multi-line output, with blank lines that were
not being properly processed.

Simplify the parsing by using 'sed' command.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-951
2020-05-26 07:04:33 +02:00
Hector Palacios 716d55fadf u-boot: fix code that copies 'install_linux_fw_uuu.sh' script
The if condition expanded to nothing so the install command was
never called. Apart from that the install command was wrong and
missing the '-m' option for modifier.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-08 13:24:34 +02:00
Hector Palacios 36b9e0c656 u-boot-fw-utils: fix path where fw_env.config is located
Commit fb2e7e37f4 placed the fw_env.config in a subfolder
${STORAGE_MEDIA}.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-07 16:26:09 +02:00
Gabriel Valcazar 92788841c4 ccimx8mn-dvk: boot.txt: add missing "fi"
The end of the if block was missing when adding support for the SOM v1 overlay

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-07 12:36:57 +02:00
Hector Palacios fb2e7e37f4 u-boot-fw-utils: consolidate common files by STORAGE_MEDIA
Platform-based variable STORAGE_MEDIA, allows us to select the
correct configuration file without needing to replicate it per
platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-05-06 07:20:50 +02:00
Gabriel Valcazar 973af88c12 ccimx8mn-dvk: add support to load the v1 SOM overlay in the bootscript
Parse the hardware version from the HWID and load the overlay if and only if
the revision is "1". Also, update the board's device tree list accordingly.

https://jira.digi.com/browse/DEL-7070

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-05 12:21:12 +02:00
Gabriel Valcazar 18ac2f63c1 ccimx8mn-dvk: add support to apply wifi/bluetooth overlays in the bootscript
Instead of having two separate device trees for the non-wireless and wireless
variants of the ccimx8mn, use the non-wireless .dtb as a base and apply the
overlays in the bootscript depending on the variant's capabilities.

Also, update the board's device tree list accordingly.

https://jira.digi.com/browse/DEL-2609

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-05-05 12:16:58 +02:00
Arturo Buzarra c7e4121de8 zeus migration: imx-boot: simplify bbappend to match with the upstream version
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 9284f9df01 zeus migration: imx-mkimage: update recipe to v1.0
https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-28 11:30:26 +02:00
Arturo Buzarra 1cbe45be99 zeus migration: u-boot-fw-utils: update to version 2019.07
Update u-boot-fw-utils patches to apply on upstream version 2019.07.

https://jira.digi.com/browse/DEL-7013

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-04-27 16:01:07 +02:00
Gonzalo Ruiz ae49a255fa imx-boot: fix sign conditions
Do not evaluate TRUSTFENCE_SIGN_MODE on conditions where the sign mode
is not relevant:

1) U-Boot binary file should be signed directly after building it when simple
U-Boot images are used, but it should not be signed when imx-boot bundled
images are used.
For those, the signing process is performed later over the whole imx-boot
bundled binary file on a different recipe.
We use BOOTLOADER_IMAGE_RECIPE variable to evaluate this distinction.
BOOTLOADER_IMAGE_RECIPE is set to "u-boot" by default and is set to "imx-boot"
on ccimx8x and ccimx8mn machine configuration files.

2) For signing imx-boot images we should treat differently those images that
include the RAM configuration in their name and those that don't, as we do
for the rest of the tasks in the same recipe. We can ignore the sign mode
method in this case.

https://jira.digi.com/browse/DEL-7023

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-04-08 14:20:35 +02:00
Hector Palacios 098707b92a uboot: add install_linux_fw_uuu.sh script for ccimx8mn
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6845
2020-03-10 13:04:09 +01:00
Mike Engel e550d82c77 meta-digi-arm: uboot: Add firmware install script using fastboot support.
This commit adds a installation script that uses fastboot support to
update the target firmware.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6845
2020-03-10 10:38:59 +01:00
Mike Engel acf9d41388 meta-digi-arm: u-boot: Add CC6UL to v2019.04 u-boot.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-03-03 12:17:07 +01:00
Mike Engel 4ce67dac48 Merge tag 'dey-2.6-r3.1' into dey-2.6/master
Digi Embedded Yocto 2.6-r3.1

Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.

Signed-off-by: Mike Engel <mike.engel@digi.com>
2020-02-20 12:02:26 +01:00
Arturo Buzarra 1830798025 meta-digi: update revisions for dey-2.6-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-13 16:26:45 +01:00
Mike Engel e648d9a142 trustfence: Add dependency to include imx-mkimage package.
This commit adds some dependencies to include the imx-mkimage package
that is needed to use the mkimage_imx8 tool.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-12 18:50:19 +01:00
Mike Engel 826ca9b63d trustfence: Export variables that are needed by sign tools.
This commit exports variables that are needed by the sign tools to
select the target HAB.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-12 18:50:19 +01:00
Hector Palacios 8320168821 trustfence: homogenize SIGN_MODE variables
* prefix TRUSTFENCE_ to variable SIGN_MODE for DEY
* prefix CONFIG_ to variable SIGN_MODE for script

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-02-12 18:50:19 +01:00
Arturo Buzarra 6b51679751 switch to building from maintenance branches for dey-2.6-r3
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-06 17:14:35 +01:00
Arturo Buzarra 8185f8e884 Merge branch 'dey-2.6/master' into dey-2.6/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-06 17:14:17 +01:00
Arturo Buzarra 25c6daf9b1 meta-digi-arm: u-boot: Fix license checksum for different u-boot versions
Commit 31d8ff94 ("meta-digi-arm: u-boot: Update recipes with new u-boot version")
updates the license checksum for the new u-boot_2019.04 recipe, however this
license file is different for the other u-boot versions.
This commit reverts this change and includes the updated checksum only for the
new u-boot_2019.04 recipe.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-02-05 11:37:59 +01:00
Mike Engel 5beec04b6a trustfence: Add Trustfence support for CCMX8X
This commit adds Trustfence support for the CCMX8X
platform.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6917
2020-02-04 12:20:38 +01:00
Mike Engel 31d8ff94fe meta-digi-arm: u-boot: Update recipes with new u-boot version
This commit updates the recipes to use the new u-boot version.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-02-04 12:20:38 +01:00
Hector Palacios 92d658107f u-boot-dey: fix wrapped lines on install script
Wrapped lines must have a back-slash symbol so that U-Boot
doesn't interpret them as finished.
The missing symbol resulted in the script not being able to
determine the U-Boot image to program in some cases.

Reported-by: Leonid Makhnovskiy <leonid.makhnovskiy@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6953
2020-01-27 17:49:29 +01:00
Arturo Buzarra 712fa3f96a imx-boot: add support to ConnectCore 8M Nano platform
https://jira.digi.com/browse/DEL-6911

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 13:37:39 +01:00
Arturo Buzarra 9ce3f4730f u-boot-fw-utils: add support for ConnectCore 8M Nano DVK platform
https://jira.digi.com/browse/DEL-6806

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:39:03 +01:00
Arturo Buzarra 6130059988 uboot: add support to ConnectCore 8M Nano DVK platform
Add initial support cloned from ccimx8x-sbc-pro.

https://jira.digi.com/browse/DEL-6806

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-01-10 11:39:03 +01:00
Hector Palacios c34dcb2c74 meta-digi: revert revisions to AUTOREV
This reverts commit 750c18b99590430d7a12fe78db1c0c21942eb60c.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-26 18:16:54 +02:00
Hector Palacios 3affba5848 meta-digi: update revisions for dey-2.6-r2.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-26 18:15:46 +02:00
Hector Palacios 3e5c2eb1bf meta-digi: revert revisions to AUTOREV
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-13 18:36:20 +02:00
Hector Palacios 3b2f226b60 meta-digi: update revisions for dey-2.6-r2.1
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-09-13 18:35:13 +02:00
Hector Palacios e09c58f85b Merge branch 'dey-2.6/master' into dey-2.6/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6640
2019-09-03 13:17:56 +02:00
Gonzalo Ruiz 9c065b39c2 u-boot-dey: move symlinks to imx-boot-folder
Move symlinks to u-boot artifacts created on u-boot.inc to
imx-boot-tools folder.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-08-30 18:06:13 +02:00
Gabriel Valcazar 9047e00bf1 Use https protocol instead of git protocol when fetching from github
Otherwise, users that are behind corporate firewalls might not be able to
obtain the package sources.

https://jira.digi.com/browse/DEL-6663

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-08-26 15:52:53 +02:00
Hector Palacios fd3f3ba413 uboot: update scripts to consider 'soc_type' var starts with "imx"
The 'soc_type' variable was already set by fastboot to "imx8qxp"
so the U-Boot board code that was setting this to just "8qxp" has
been changed to set it to "imx8qxp".

Update the scripts accordingly.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-901
2019-08-21 11:03:25 +02:00
Arturo Buzarra f0024862cd u-boot: ccimx8x: fix comparison of the 'if' clause in the install_fw script
This commit fixes two issues:
- Comparison clause uses only one equal sign
- Fix soc_type for Dual variants because the supported soc types
  for the imx8 processor are: 8qm, 8qxp, and 8dx

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-07-24 16:31:23 +02:00
Hector Palacios 6eb3bd001c ccimx8x: change bootable artifacts filenames on U-Boot install script
After the recent changes to generate the bootable artifacts, these are
now formed using the ${MACHINE} variable rather than the string in
${UBOOT_CONFIG} array, so the underscores must be changed with dashes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-07-12 12:49:03 +02:00
Hector Palacios 7d64118a94 u-boot: fix wrongly finished 'if' clause on install_fw script
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-07-12 11:04:47 +02:00
Mike Engel 3c39395a66 meta-digi-arm: add Trustfence boot script for MX8X platform.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6652
2019-07-08 17:41:01 +02:00
Hector Palacios 852cf8a570 u-boot-dey: update install scripts to handle variants
Now the U-Boot binaries contain the RAM frequency and bus width, not just
only the RAM size.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6641
2019-07-08 16:42:28 +02:00
Hector Palacios 7508d58d4d ccimx8x: u-boot: fix SDRAM denomination on install_linux_fw script
The SDRAM is an LPDDR4, not DDR3.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-07-03 10:58:55 +02:00
Hector Palacios 964b8eff2c ccimx8x: u-boot: add support for variant 0x06 in U-Boot scripts
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6641
2019-07-02 12:05:44 +02:00
Hector Palacios 4167ab1769 ccimx8x: u-boot: use 'soc_type' variable when determining device tree file
With the arrival of DualX variants, the device tree files have been renamed
to contain the SOC type (8qxp, or 8dx). This is determined by a new U-Boot
variable 'soc_type'.
Default to "8qxp" if the variable is not defined (old U-Boots).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6641
2019-07-02 11:58:05 +02:00
Hector Palacios 4351db1677 uboot: add support for new HWID fields to install fw scripts
The new HWID fields make U-Boot create new variable 'module_ram'.

If it exists use it to select the U-Boot file to use during
firmware update. If not, fall back to old method of using the
variant code and the hard-coded table of variants.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6598
2019-05-20 15:47:53 +02:00
Hector Palacios 702bc57cae uboot: add support for new HWID fields to boot scripts
The new HWID fields make U-Boot create new variable 'module_ram'.

If it exists calculate new HWID fields to check if the SOM has
Wi-Fi, Bluetooth, etc. in order to select the device tree file.
If not, fall back to old method of using the variant code and
the hard-coded table of variants.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6598
2019-05-20 15:47:53 +02:00
Arturo Buzarra 21b09d616d Merge tag 'dey-2.6-r1.3' into dey-2.6/master
Digi Embedded Yocto 2.6-r1.3

Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-04-24 12:37:13 +02:00
Gabriel Valcazar a3c190dfff meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:45:26 +02:00
Gabriel Valcazar 0078da95cb meta-digi: update revisions for dey-2.6-r1.3
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-16 17:44:36 +02:00
Gabriel Valcazar fce0809b47 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-15 17:56:55 +02:00
Hector Palacios 7c6871bf07 meta-digi: update revisions for dey-2.6-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-04-15 17:55:17 +02:00
Gabriel Valcazar 263818846f u-boot-dey: add support for new ccimx6ul variant 0x06
This variant is exactly the same as variant 0x02, but with a new revision
of the i.MX6UL silicon.

https://jira.digi.com/browse/DEL-6555

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-11 16:42:59 +02:00
Gabriel Valcazar 3bc0da87b0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Gabriel Valcazar 9fae56c116 meta-digi: update revisions for dey-2.6-r1.1
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-04-02 09:42:47 +02:00
Hector Palacios 47f88d1d24 switch to building from maintenance branches for dey-2.6
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2019-03-27 17:47:32 +01:00
Gonzalo Ruiz 5ff26164c3 u-boot-dey: remove support for U-Boot v2015.04
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz c0065f64e3 u-boot-fw-utils: update to version 2018.07
Update u-boot-fw-utils patches to apply on current upstream version. Remove
recipe for version 2017.09 since both U-Boot v2017.03 and v2018.03 work fine
with the newer version.

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Gonzalo Ruiz 5f302013f9 u-boot-dey: add support for U-Boot v2018.03
This adds support for U-Boot v2018.03 for CC8X platforms only.

Create 'digi-u-boot.inc' with the common definitions for both v2017.03
and v2018.03.

https://jira.digi.com/browse/DUB-881

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2019-03-21 15:44:54 +01:00
Arturo Buzarra 47eb2ce646 u-boot: fix patch to unlock emmc boot partitions
Fix write operation by moving the re-lock of the mmc partition
after performing the system synchronization, if not the mmc
driver throws read-only errors. Also, improved the code
to avoid compilation warnings because the return values were
not managed in write operations.

https://jira.digi.com/browse/DEL-6449

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-15 14:36:27 +01:00
Arturo Buzarra 7a358fc25f u-boot: remove unnecessary patches for Digi platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-15 14:27:05 +01:00
Arturo Buzarra e508231683 thud migration: u-boot: remove kernel image type from device tree files
Device tree file names won't have the kernel image type like a
prefix anymore, since thud uses the original file names.

https://jira.digi.com/browse/DEL-6443

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-08 12:13:11 +01:00
Arturo Buzarra 7122f5fef1 u-boot-dey: remove gcc patch for python binary
This patch is not longer needed because it was integrated
in the U-Boot source code.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-22 14:06:28 +01:00
Arturo Buzarra 303106cce1 sumo migration: use pkg_postinst_ontarget() to delayed operation on first boot
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-16 11:31:00 +01:00
Arturo Buzarra ee8c67ea66 u-boot: move forward the u-boot version 2017.03
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-11 13:26:44 +01:00
Arturo Buzarra 5eb88b8c5d sumo migration: meta-digi: replace the deprecated base_conditional function
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-11 13:26:44 +01:00
Gabriel Valcazar 055c333c5e Merge tag 'dey-2.4-r2.2' into dey-2.4/master
Digi Embedded Yocto 2.4-r2.2

Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-01-04 12:01:20 +01:00
Mike Engel 943bd218ea meta-digi: update revisions for dey-2.4-r2.2
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2018-12-13 16:35:08 +01:00
Gabriel Valcazar eaf2a9b7ea u-boot-dey: have the v2017.03 recipe create additional symlinks
Without these symlinks, U-Boot images will be left out of the installer .zip
file. Unlike the v2015.04 recipe, the default symlinks aren't removed, because
they're needed in the imx-boot recipe for the ccimx8x.

https://jira.digi.com/browse/DEL-6333

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-12-10 17:36:32 +01:00
Mike Engel dd5ba676ff meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2018-12-04 16:45:01 +01:00
Mike Engel 29d7aa0c41 meta-digi: update revisions for dey-2.4-r2.1
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2018-12-04 16:45:01 +01:00
Gabriel Valcazar b16a7db8a4 ccimx6sbc: add support for variant 0x15
New ccimx6 variant:

    * Dual-lite industrial, 800MHz
    * 4GB eMMC,
    * 1GB DDR3,
    * Temp grade: -40/+85C

https://jira.digi.com/browse/DEL-6273

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-11-29 13:03:42 +01:00
Hector Palacios 9daca40854 Merge branch 'dey-2.4/master' into dey-2.4/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-11-12 16:11:02 +01:00
Arturo Buzarra 557c2735c2 uboot: add support to ConnectCore 8X SBC Pro platform
Add initial support cloned from ccimx8x-sbc-express.

https://jira.digi.com/browse/DEL-6205

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-10-15 09:10:04 +02:00
Alex Gonzalez 7aff3ee169 meta-digi-arm: u-boot-dey: Modify boot script for mainline kernel use
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2018-10-09 14:57:59 +02:00
Gabriel Valcazar f9427d1641 ccimx8x: u-boot: deploy all u-boot files to the imx-boot-tools directory
This way, customers are less likely to flash the plain u-boot by accident
instead of imx-boot. Also, have the imx-boot recipe look for the u-boot files
in the imx-boot-tools directory.

https://jira.digi.com/browse/DEL-6185

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-09-26 10:34:34 +02:00
Hector Palacios 37f6262bd3 Merge tag 'dey-2.4-r2.4-beta' into dey-2.4/master
Digi Embedded Yocto 2.4-r2.4-beta

Manually changed recipes to use the master branches instead of the
fixed SHA1 from the last release.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-24 16:57:31 +02:00
Hector Palacios 12aba85571 meta-digi: update revisions for dey-2.4-r2.4-beta
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-14 13:40:48 +02:00
Hector Palacios 65ac281615 meta-digi: revert revisions to AUTOREV
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-14 13:40:48 +02:00
Gabriel Valcazar a7fdb72a46 ccimx8x-sbc-express: force otf-update in the install_linux_fw_sd script
We have seen errors when verifying the rootfs update on 2 GiB variants. Forcing
otf-update prevents these errors from happening.

https://jira.digi.com/browse/DUB-855

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-09-14 13:34:46 +02:00
Gabriel Valcazar b014572474 ccimx8x-sbc-express: adapt install_linux_fw_sd script for imx-boot images
Also, make the script recognize the different SOM variants.

https://jira.digi.com/browse/DEL-6175

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-09-13 18:35:40 +02:00
Hector Palacios 4ac6a5e0f3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-12 16:50:51 +02:00
Hector Palacios 948b079985 meta-digi: update revisions for dey-2.4-r2.3-beta
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-12 16:50:51 +02:00
Hector Palacios 284a34deac meta-digi: revert revisions to AUTOREV
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-11 16:53:09 +02:00
Hector Palacios 2f55bb8fb6 meta-digi: update revisions for dey-2.4-r2.2-beta
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-09-11 16:52:27 +02:00
Gonzalo Ruiz d61081a02c meta-digi: revert revisions to AUTOREV
This reverts commit ad9d2e5bdc.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2018-09-05 18:27:58 +02:00
Gonzalo Ruiz ad9d2e5bdc meta-digi: update revisions for dey-2.4-r2.1-beta
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2018-09-05 18:27:36 +02:00
Hector Palacios 0e2a5a6b1c uboot/kernel: change to build from maintainance branches
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-08-31 13:31:25 +02:00
Hector Palacios 8e246b98be Merge branch 'dey-2.4/master' into 'dey-2.4/maint'
Conflicts:
	meta-digi-arm/recipes-bsp/u-boot/u-boot-dey_2015.04.bb
	meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb
	meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm.bb
	meta-digi-arm/recipes-kernel/linux/linux-dey.inc
	meta-digi-arm/recipes-kernel/linux/linux-dey_4.9.bb
	meta-digi-dey/recipes-digi/dey-examples/awsiotsdk-demo_git.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-cryptochip.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-digiapix.bb
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.4.0.bb

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-08-31 13:18:29 +02:00
Hector Palacios f67e16160d u-boot-fw-tools: fix script to account for more than 9 parts
When grepping for the mtd index "1" the script was also returning
partitions 10, 11, and so on.

Reported-by: Leonid Makhnovskiy <leonid.maknovskiy@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit a2a8491140)
2018-08-13 12:57:33 +02:00
Hector Palacios a2a8491140 u-boot-fw-tools: fix script to account for more than 9 parts
When grepping for the mtd index "1" the script was also returning
partitions 10, 11, and so on.

Reported-by: Leonid Makhnovskiy <leonid.maknovskiy@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-08-13 11:21:56 +02:00
Hector Palacios fb765741a5 ccimx8x: change kernel to Image.gz and support all SOM variants in DT
U-Boot's 'dboot' command now supports uncompressing Image.gz.
This will be the default kernel image type for the CC8X.

This also changes the names of the device tree artifacts, that must be
updated on the boot script. While on it, add support for all the SOM
variants (wireless and non-wireless).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-07-06 16:20:47 +02:00
Hector Palacios 9b4884166c u-boot-fw-utils: add support for ccimx8x platform
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-19 11:02:08 +02:00
Hector Palacios 8af8817796 u-boot: add support for U-Boot v2017.03
This adds support for U-Boot v2017.03 for all platforms (including CC8X).

For legacy v2015.04:
  - Renames u-boot.inc as a versioned file only for v2015.04.
  - Moves boot/install scripts from versioned folder into non-versioned
    folder (since the scripts remain the same between versions).

For new v2017.03:
  - Re-uses poky's u-boot.inc in rocko for v2017.03
  - DEY recipe re-writes the do_compile for special U-Boot configuration
    required for TrustFence.
  - DEY recipe appends the do_deploy, for U-Boot scripts and deploy of
    special TrustFence artifacts.
  - Adds u-boot-dtb.xxx to UBOOT_CONFIG, required for new U-Boots.
  - Adds CC8X scripts.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5936
2018-05-31 12:06:37 +02:00
hbujanda 58bbd78efe ccimx6ulstarter/sbc: add support for variant 0x05
Variant 0x05 is a non-wireless with 1 GiB DDR3

boot.txt: Select zImage-imx6ul-ccimx6ulsbc.dtb fdt_file.
install_linux_fw_sd: Use u-boot-ccimx6ulsbc1GB.imx bootloader.

Signed-off-by: Hector bujanda <hector.bujanda@digi.com>

https://jira.digi.com/browse/DEL-5684
2018-04-12 12:13:50 +02:00
Hector Palacios 47f42f7606 meta-digi: revert revisions to AUTOREV
This reverts commit 1246ecff2c.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 17:19:48 +01:00
Hector Palacios 1246ecff2c meta-digi: update revisions for dey-2.4-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 10:33:55 +01:00
Arturo Buzarra e3d086c472 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 16:05:38 +01:00
Arturo Buzarra 42d43ff5fb meta-digi: update revisions for dey-2.4-r1.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 15:56:19 +01:00
Arturo Buzarra f7625f0026 meta-digi: configure recipes to use maintenance branches
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 11:33:45 +01:00
Gonzalo Ruiz 8b610ea212 install_linux_fw_sd: Removed hard-coded SD partition index
Under certain circumstances I was able to create a microSD card with
the FAT file system but corrupt partition table like this one:

Device      Boot      Start        End    Sectors   Size Id Type
/dev/sdf1p1       778135908 1919645538 1141509631 544,3G 72 unknown
/dev/sdf1p2       168689522 2104717761 1936028240 923,2G 65 Novell Netware 386
/dev/sdf1p3      1869881465 3805909656 1936028192 923,2G 79 unknown
/dev/sdf1p4      2885681152 2885736650      55499  27,1M  d unknown

Specifying the partition index made the install script to fail, but
not specifying it makes it work, although it also falls back to use
the first partition in the table.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2018-02-20 17:01:50 +01:00
Jose Diaz de Grenu 4895148009 u-boot-fw-utils: fix environment access functions
In the old u-boot-fw-utils 2016.x the function 'fw_env_close' wrote
the environment to the media. That is no longer the case, now that
function only frees the memory used, and 'fw_env_flush' is used
to write the environment.

This was causing that userspace application using this library were not
able to write changes to the environment.

https://jira.digi.com/browse/DEL-5644

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-31 13:57:09 +01:00
Hector Palacios 5eb436f152 u-boot-fw-utils: forward port support for dynamic environment
Support for dynamic location of U-Boot environment was added in
commit 2b5017956b. This forward ports
the patch to Yocto 2.4.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5574
2018-01-22 12:18:48 +01:00
Hector Palacios 02504c6730 ccimx6: default kernel image to zImage
As a side effect, remove U-Boot entry point variable and LOADADDR
extra parameter from the kernel recipe.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5554
2018-01-18 18:50:18 +01:00
Jose Diaz de Grenu 0307d0c975 rocko migration: u-boot-fw-utils: update patches
Pending to update the patch for dynamic environment location in NAND.

https://jira.digi.com/browse/DEL-5518

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-12 15:59:13 +01:00
Jose Diaz de Grenu 8a81b2cb25 rocko migration: trustfence: fix dependencies
https://jira.digi.com/browse/DEL-5518

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-12 15:59:04 +01:00
Hector Palacios 5d18ee6731 ccimx6/ccimx6ul: default kernel image to zImage, except for CC6
U-Boot has been able to boot kernel zImage for a long time so make this
the default kernel image.
For the CC6 we still want to use uImage for compatibility reasons.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5237
2017-11-21 10:14:39 +01:00
Arturo Buzarra 8c14ae877f meta-digi recipes: adjust machine overrides for new platform
This commit modifies different recipes to support the new platform
ccimx6qpsbc and adapt it to maintain the support to ccimx6sbc.

https://jira.digi.com/browse/DEL-5082

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Arturo Buzarra 1a3f22c9e4 u-boot-dey: add support for ccimx6qpsbc platform
This commit includes ccimx6qpsbc platform in the recipe and adds
U-Boot scripts for deploying and booting the system.

https://jira.digi.com/browse/DEL-5082

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-10-18 09:20:11 +02:00
Javier Viguera 6a2699967c ccardimx28js removal: delete recipes not used by other platforms
https://jira.digi.com/browse/DEL-4771

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-08-04 17:38:30 +02:00
Hector Palacios 5126a6049b u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms
A mechanism was introduced in U-Boot to dynamically locate the environment
copies within a NAND partition, skipping bad blocks and making full use of
the partition blocks.
To trigger this mechanism in Linux tools (fw_printenv/fw_setenv) the
configuration file /etc/fw_env.config must have both copies entries
pointing to the same offset.

This commit substitutes the hardcoded configuration file for CC6UL with a
stub and generates one on an RPM post-script basing on:

- Supplied DEY variables (with default values per platform):
  - UBOOT_ENV_OFFSET: starting offset of the environment within the
    partition.
  - UBOOT_ENV_SIZE: size of each copy of the environment.
  - UBOOT_ENV_RANGE: size in the partition that the environment copies may
    occupy, starting from UBOOT_ENV_OFFSET. If undefined, the whole
    partition is used.

- Calculated values:
  - NAND Erase block size
  - Number of blocks available for the environment copies

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-4256
2017-06-16 11:59:30 +02:00
Hector Palacios 2b5017956b u-boot-fw-utils: added support for dynamic env location
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-741
2017-06-02 17:22:56 +02:00
Arturo Buzarra a1e84ca437 meta-digi-arm: add support for CC6 variant 0x14
This is a Consumer dual-core 1GHz, 4GB eMMC, 1GB DDR3, 0/+70C variant
without bluetooth, no wireless, no kinetis.

https://jira.digi.com/browse/DEL-4280

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2017-05-30 13:27:24 +02:00
Javier Viguera 3fa939fdc3 Merge tag 'dey-2.2-r1.4' into dey-2.2/master
Tweaked to maintain some recipes' revisions to AUTOREV instead of the
fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-04 13:58:33 +02:00
Mike Engel 29e3d0de40 meta-digi: update revisions for dey-2.2-r1.4
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-28 17:10:48 +02:00
Mike Engel d3bb596732 meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-26 13:51:58 +02:00
Mike Engel 9fed79fd45 meta-digi: update revisions for dey-2.2-r1.3
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-26 13:48:57 +02:00
Mike Engel 247df66459 meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Mike Engel 4ba24391c2 meta-digi: update revisions for dey-2.2-r1.2
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Hector Palacios 68a1940d7f ccimx6ulstarter/sbc: select correct fdt_file for variant 0x04
Variant 0x04 has wireless and must select the '-wb' device tree.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-4100
2017-04-10 11:27:22 +02:00
Hector Palacios 80e5756770 ccimx6ulstarter/sbc: add support for CC6UL 1GB DDR3 variants
Add support to build U-Boot for variants with 1GB DDR3.
Add support in U-Boot install firmware script to select the
U-Boot artifact to use basing on variant.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3970
2017-04-06 10:32:39 +02:00
Tatiana Leon c1709e4fd3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 18:54:25 +02:00
Tatiana Leon 28bc61a089 meta-digi: update revisions for dey-2.2-r1.1
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 18:20:52 +02:00
Tatiana Leon 432844a3a8 meta-digi: configure recipes to use maintenance branches
Updated recipes for linux, u-boot, trustfence-sign-tools, and
kernel-module-qualcomm.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-28 11:30:06 +02:00
David Escalona 42856f87aa boot-script: merge 'recovery' and 'boot' scripts into 'boot'
- Instead of using a different boot script when booting from linux
  and from recovery, merge them into one script that checks the
  boot source.

https://jira.digi.com/browse/DEL-3836

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-14 18:45:53 +01:00
Javier Viguera 01ee764fcf u-boot-fw-utils: rework patches to fix broken build
Patches added in 'meta-swupdate' (backported from U-Boot) broke our
layer. We also had those patches, so remove them and make sure the
rest or our patches are applied after the ones from 'meta-swupdate'
by using an anonymous python function instead of appending to the
SRC_URI variable.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-06 12:18:37 +01:00
Javier Viguera 989e9585f9 morty migration: u-boot-fw-utils: update package
https://jira.digi.com/browse/DEL-3451

Also backport patch to fix:

https://jira.digi.com/browse/DEL-3770

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Javier Viguera c8d17d4a93 Merge tag 'dey-2.0-r5.3' into dey-2.0/master
Tweaked to maintain the u-boot and linux revisions to AUTOREV instead of
the fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-15 13:25:35 +01:00
Javier Viguera 99afac66f4 meta-digi: update revisions for dey-2.0-r5.3
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-13 12:05:13 +01:00
Javier Viguera 2e003d8385 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 17:00:47 +01:00
Javier Viguera c4643eaf0f meta-digi: update revisions for dey-2.0-r5.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-03 16:58:40 +01:00
Javier Viguera 161117caf0 install_linux: fix failure to boot into recovery
On a CC6, the 'env default -a' command deletes the 'soc_family' variable
that is used on the U-Boot boot scripts to configure the name of the
device tree file to load.

Then if we try to boot into recovery directly (without a reset) because
the variable is not available, it fails to compose the correct name for
the fdt, and gives the error:

  reading uImage--ccimx6sbc-id129.dtb
  ** Unable to read file uImage--ccimx6sbc-id129.dtb **

Force a reset, so the 'soc_family' variable is available again and the
correct fdt_file is loaded.

While on it, add some blank lines to the 'recovery reboot' message, so
it's easier to read.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 13:32:18 +01:00
Javier Viguera 165f7097e4 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-02 12:47:05 +01:00
Diaz de Grenu, Jose 6a431c5363 meta-digi-arm: fix encrypted env support when using ubootenv
The caam encryption check was only done from fw_env_write and fw_env_read
functions, which are not called when using the functions exported as a library.

Move the check_caam_encryption() call to fw_env_open(), which is called from
all code paths. A similar check for AES encryption cannot be moved because it
requires the AES key as an argument.

https://jira.digi.com/browse/DEL-3616

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-02-01 16:29:50 +01:00
Alex Gonzalez 26187f47c6 meta-digi-arm: Add weak assignment for Linux and U-Boot
This will allow to override the variable easily.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-31 17:47:32 +01:00
Hector Palacios 50dc84d949 uboot: install_script: add missing semicolons
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3603
2017-01-31 11:37:37 +01:00
Javier Viguera 1b387bbe5d meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-27 12:01:55 +01:00
Javier Viguera 615350dd26 meta-digi: update revisions for dey-2.0-r5.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-27 11:58:29 +01:00
Javier Viguera 7005b0a330 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-26 18:17:12 +01:00
Hector Palacios 9ea7568d8d install_linux_fw_sd: erase NAND partitions before update
NAND partitions may have pre-existing UBI volume information
and that will tell U-Boot to use 'ubiwrite' to keep UBI wear
leveling information instead of erasing the NAND partition
beforehand. Given that the UBI support in U-Boot is not
particularly complete and stable, and specially if the NAND
partition table has been changed, this could result into
problems during the UBI volume initialization or during the
update process. To prevent such problems it is better that
the NAND partitions are erased.

This loses the UBI wear leveling information but provides
a more reliable deployment install script.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-718
2017-01-26 18:09:59 +01:00
Javier Viguera 85efbb87e2 u-boot-fw-utils: clean compiler warning
Modify patch to clean compiler warning:

warning: passing argument 1 of 'sysfs_mmcboot_set_protection' discards
'const' qualifier from pointer target type

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-24 13:55:19 +01:00
David Escalona 2771549da3 uboot: install_script: add recovery image and wipe_update to DEY install script
https://jira.digi.com/browse/DEL-3513

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-20 13:25:36 +01:00
Javier Viguera f787a22ef1 u-boot-fw-utils: add patch with minimal U-Boot environment API
Implements functions to get and set variables from U-Boot's environment.

https://jira.digi.com/browse/DEL-3358

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-11 15:00:16 +01:00
David Escalona a7ab3e7fa5 recovery: add new bootscript for the recovery image
Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +01:00
Javier Viguera 93db03bad7 u-boot-fw-utils: rework patch from meta-swupdate with higher precedence
The patch with the same name in 'meta-swupdate' fails to apply cleanly
after the patches we have done in meta-digi. So add here a version of
the patch that applies cleanly and with higher precedence in the search
path (using 'dey' distro override).

https://jira.digi.com/browse/DEL-3355

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-12-19 19:15:31 +01:00
Diaz de Grenu, Jose 66c85d94b1 Merge tag 'dey-2.0-r4.2' into dey-2.0/master
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-29 13:39:12 +01:00
Diaz de Grenu, Jose ede7b9b6c0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-25 11:43:09 +01:00
Diaz de Grenu, Jose 6efd9263f3 meta-digi: update revisions for dey-2.0-r4.2
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-25 11:40:48 +01:00
Diaz de Grenu, Jose ac54b0ec7e meta-digi: revert revisions to AUTOREV
This reverts commit 67aa4966ea.
2016-11-18 12:17:42 +01:00
Diaz de Grenu, Jose 67aa4966ea meta-digi: update revisions for dey-2.0-r4.1
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-18 12:14:37 +01:00
Diaz de Grenu, Jose 4b1f84e49b Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-18 11:54:01 +01:00
Alex Gonzalez b3e5837cf4 trustfence-initramfs: Extend for the ccimx6ul
https://jira.digi.com/browse/DEL-3173

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-11-14 18:40:30 +01:00
Hector Palacios 86cb5b15ae install script: do a saveenv before reset
A corner case requires to save the environment so that the
boot command works after reset.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-681
2016-10-19 15:54:17 +02:00
Diaz de Grenu, Jose 934c819fd9 meta-digi-arm: sign/encrypt bootscript
https://jira.digi.com/browse/DUB-679

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:47:09 +02:00
Diaz de Grenu, Jose 7a02e1b00a trustfence: define new type of image for signed/encrypted ramdisks
Also change the image type of dey-image-trustfence-initramfs.

https://jira.digi.com/browse/DUB-615

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:34 +02:00
Hector Palacios ec8555f936 ccimx6ulsbc: update install script to match default recipe
The default DEY image recipe for ccimx6ulsbc builds dey-image-qt.
The graphical backend is determined dynamically.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-10-03 12:01:24 +02:00
Javier Viguera ab5f50e16a meta-digi: trailing whitespace cleanup
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-31 13:52:15 +02:00
Diaz de Grenu, Jose 3a2c35d850 meta-digi: meta-digi-arm: add environment encryption support to fw_* utils
This patch adds the functionality to automatically detect if the enviroment
is encrypted (through the device tree). If it is, the environment is encrypted
and decrypted as required in a transparent way for the user.

https://jira.digi.com/browse/DEL-2836

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-26 10:13:17 +02:00
Isaac Hermida b952cdce8b ccimx6ulsbc: add U-Boot scripts for deploying and booting the system
- boot.txt
    Sets the device tree filename basing on the SOM variant read from
    the HWID and boots from NAND.
- install_linux_fw_sd
    Deploys a full system (as generated by Digi Embedded Yocto) from
    a FAT formatted micro SD card into the NAND flash.

https://jira.digi.com/browse/DEL-2925

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 13:24:01 +02:00
Javier Viguera a7400b47f4 Merge tag 'dey-2.0-r3.2' into dey-2.0/master
Tweaked to maintain the u-boot and linux revisions to AUTOREV instead of
the fixed SHA1s from the tag.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-16 12:30:29 +02:00
Javier Viguera d19e9196a0 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-11 16:26:21 +02:00
Javier Viguera c92db49554 meta-digi: update revisions for dey-2.0-r3.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-11 16:24:58 +02:00
Javier Viguera 45763aec39 u-boot-dey: cosmetic, add quotes to warning message
So the warning message shows the TF variable setting in the correct
syntax that they should be written in the project's local.conf

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 16:45:38 +02:00
Alex Gonzalez 35271a8dc9 Merge branch 'dey-2.0/master' into dey-2.0/maint
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-04 19:13:00 +02:00
Diaz de Grenu, Jose 4070d9efae meta-digi: meta-digi-arm: u-boot: copy the new artifact u-boot-usb-signed
https://jira.digi.com/browse/DEL-2843

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-04 10:34:42 +02:00
Diaz de Grenu, Jose 9e5ee61851 meta-digi: use CAAM for environment encryption
https://jira.digi.com/browse/DUB-652

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-01 20:00:11 +02:00
Javier Viguera 5726d97702 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 12:11:54 +02:00
Javier Viguera 3957edbb0b meta-digi: update revisions for dey-2.0-r3.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 11:48:23 +02:00
Javier Viguera fdf8978e57 linux, u-boot: configure recipes to use maintenance branches
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-22 10:32:00 +02:00
Diaz de Grenu, Jose 5ee4340942 meta-digi-arm: u-boot: [cosmetic] correct DEY macro name
https://jira.digi.com/browse/DEL-2804

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-21 11:20:03 +02:00
Diaz de Grenu, Jose ebbe0e6d3e Revert "meta-digi-arm: u-boot: use v2015.04 maintenance branch"
The correct U-Boot branch to be used with dey-2.0/master is v2015.04/master, as
it contains the latest development changes (just like dey-2.0/master).

This reverts commit 728619a5bc.
2016-07-19 18:38:12 +02:00
Diaz de Grenu, Jose 3f25006148 meta-digi-arm: u-boot: copy signed and encrypted artifacts
After commit b0a766eafc8 in the U-Boot repository, both signed and
encrypted images will be generated. Copy both of them to the deploy folder

https://jira.digi.com/browse/DUB-642

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 18:38:05 +02:00
Diaz de Grenu, Jose f23d8c6abb trustfence: simplify TRUSTFENCE_ configuration macros
Adapt the U-Boot recipe to the last U-Boot Kconfig entries changes.

Simplify the name of some TRUSTFENCE_ configuration macros. These were
used to configure U-Boot, but they will also configure the uImage signature
and encryption processes.

https://jira.digi.com/browse/DUB-602
https://jira.digi.com/browse/DUB-618
https://jira.digi.com/browse/DUB-534

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose 8ac7da51ef meta-digi-arm: add recipe for the Code Signing Tools
NXP Code signing Tool for the High Assurance Boot library is needed for
signing and encrypting different artifacts (U-Boot image, uImage, ...).

As the CST cannot be included in DEY, the user needs to download the
tarball and add it to the recipe folder.

https://jira.digi.com/browse/DUB-618

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Hector Palacios b71f2dacb5 u-boot-fw-utils: add support and config file for CC6UL platform
U-Boot environment on the CC6UL NAND is located at partition /dev/mtd1:
 - original copy is located at offset 0 in the partition
 - redundant copy is located 1 erase block (128K) after the original copy

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2552
2016-07-19 11:47:42 +02:00
Javier Viguera 8ccafb9492 u-boot: disable TF initramfs for CC6UL
At the moment there is no support for rootfs encryption for the CC6UL,
so there is not a ramdisk in the boot image. But with the initial
addition of TF support, the u-boot boot script was being on-the-fly
updated for TF regardless of the platform, making the CC6UL unable to
boot when TF was enabled.

This commit fixes the problem, by just changing the u-boot boot script
when TF is enabled only for the CC6.

https://jira.digi.com/browse/DEL-2754

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-18 11:35:09 +02:00
Isaac Hermida 728619a5bc meta-digi-arm: u-boot: use v2015.04 maintenance branch
Use the maintenance branch for the compatible platforms (ccimx6 and ccimx6ul)

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-15 16:16:32 +02:00
Alex Gonzalez 9585e313af meta-digi-arm: u-boot-dey: Do not use external compilation unless multiple
u-boots are being build.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez da92e2f07d meta-digi-arm: u-boot: Do not override defconfig targets on multiple u-boot
builds.

When building multiple u-boots they get compiled externally into a
directory named after machine defconfigs.

Once there is a directory with the same name as a defconfig it is not
possible to run the defconfig make target.

Fixes https://jira.digi.com/browse/DEL-2644

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez c43c9897ad meta-digi-arm: u-boot.inc: Do not override defconfig targets on multiple u-boot
builds.

When building multiple u-boots they get compiled externally into a
directory named after machine defconfigs.

Once there is a directory with the same name as a defconfig it is not
possible to run the defconfig make target.

This change should be only temporary until it gets upstream.

Fixes https://jira.digi.com/browse/DEL-2644

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Alex Gonzalez e22244edde meta-digi-arm: Add u-boot.inc from poky's meta layer.
Moving this file into meta-digi should be temporary until a patch is
upstreamed.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-07-13 14:14:45 +02:00
Javier Viguera 6f8c58291e meta-digi: add support for Trustfence secure rootfs
When Trustfence is enabled, this adds a dependence on the TF initramfs,
so it's built and added to the boot image.

It also modifies the u-boot boot script on the fly, to boot correctly
using the Trustfence initramfs.

https://jira.digi.com/browse/DEL-2278

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-07 18:04:08 +02:00
Hector Palacios ff59bf653d ccimx6ulstarter: add U-Boot scripts for deploying and booting the system
- boot.txt
	Sets the device tree filename basing on the SOM variant read from
	the HWID and boots from NAND.
- install_linux_fw_sd
	Deploys a full system (as generated by Digi Embedded Yocto) from
	a FAT formatted micro SD card into the NAND flash.

The u-boot-dey recipe is now fully shared by ccimx6 and ccimx6ul platforms
so we can remove the platform-specific appends.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios 6f2acb17c6 install_linux_fw_sd: parametrize the mmc device index containing the firmware
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios a32cea139b install_linux_fw_sd: expand variables when setting bootcmd to avoid redefining them
The setting of 'bootcmd' in the script was done using single quotes, which
doesn't expand variables. As a consequence the following variables must
be defined again (during the execution of the second part of the script):
 - mmcdev
 - INSTALL_LINUX_FILENAME
 - INSTALL_ROOTFS_FILENAME

This patch changes the single quotes with double quotes, so that these
variables are expanded during the setting of 'bootcmd' with the values
assigned at the begining of the installation script (notice these are
not dynamically generated so there is no risk to expand them).

At the same time we need to escape with a backslash:
 - double quotes containing strings
 - variables that we don't want to expand (like the return value $?)

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Hector Palacios 052775a34c install_linux_fw_sd: fix semi-colons in script
- Add semi-colons to instructions inside 'setenv' commands
- Remove semi-colons in instructions where they are not needed (for
  consistency with the rest of instructions)

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-06 16:26:49 +02:00
Diaz de Grenu, Jose d7a26cc3e6 meta-digi-arm: u-boot: change name of encrypted artifacts for clarity
https://jira.digi.com/browse/DEL-2663

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-01 16:26:53 +02:00
Jose Diaz de Grenu de Pedro 62e0e1c6c6 meta-digi-arm: u-boot: fix trustfence checks logic
There are several possible values for TRUSTFENCE_UBOOT_ENV_DEK:
 * Not defined: if the trustfence support is not included.
                Should not include the feature.
 * 32 characters: when defining a valid key.
                Should include the feature.
 * "0": when explicetily disabling the feature.
                Should not include the feature
 * <other>: Invalid value, should trigger the error.

This commits fixes the logic so that 'None' (no defined) is taken as a valid
value.

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 15:04:47 +02:00
Jose Diaz de Grenu de Pedro ba6b5ffd8c meta-digi-arm: u-boot: add secure boot configuration checks
https://jira.digi.com/browse/DEL-2618

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 09:39:04 +02:00
Jose Diaz de Grenu de Pedro 5c6de74288 meta-digi-dey: trustfence: Explicitely check for "1" for variable enable.
https://jira.digi.com/browse/DEL-2603

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-20 09:39:04 +02:00
Jose Diaz de Grenu de Pedro 64c488a821 meta-digi-arm: u-boot: fix syntax error in U-Boot recipe
Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-06 10:06:22 +02:00
Jose Diaz de Grenu de Pedro 5f45a87ebd meta-digi-arm: trustfence: implement Yocto secure boot configuration
Implement the set of TRUSTFENCE_ macros to configure each secure boot feature
available in U-Boot.

https://jira.digi.com/browse/DUB-570

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2016-06-03 17:46:52 +02:00
Alex Gonzalez 12b196bc0f meta-digi-arm: u-boot-dey: Add secure console trustfence configuration
support.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-05-31 17:51:00 +02:00
Javier Viguera 49f55ce7d0 u-boot: u-boot: use v2015.04 master branch
'v2015.04/master' is the branch with Trustfence support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-05-27 18:25:35 +02:00
Isaac Hermida 68d5f7d536 recipes-bsp: u-boot: Support for ccimx6ul
https://jira.digi.com/browse/DEL-2381
https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:13 +02:00
Isaac Hermida 620f94596f meta-digi: Replace COMPATIBLE_MACHINE string for ccimx6
COMPATIBLE_MACHINE is a regular expression, so we need to update the current
pattern for ccimx6 due to it will also match with ccimx6ul.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-11 10:22:25 +02:00
Javier Viguera 25e37ca007 install_linux_fw_sd: cosmetic, remove comma and add newline
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-18 18:13:44 +01:00
Javier Viguera 1db41c8473 install_linux_fw_sd: workaround bad behavior of 'test' command
Old versions of u-boot 'v2013.0x' have a bug in the shell's test command
that makes structures like:

if test "${not-existing}" = "0x01"; then ...
if test -z "${not-existing}"; then ...

to fail when the checked variable does not exist.

So implement workarounds in the updater script to overcome this problem.

This is needed because the script may be used in modules with an old
pre-installed u-boot.

https://jira.digi.com/browse/DEL-2231

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-18 11:32:39 +01:00
Javier Viguera 792d214927 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-15 18:02:34 +01:00
Javier Viguera 5ca0bf76c9 meta-digi: update revisions for dey-2.0-r1.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-15 17:51:17 +01:00
Javier Viguera e627bfb1b1 u-boot: use v2015.04 maintenance branch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-12 13:51:21 +01:00
Hector Palacios e9481ecd19 meta-digi-arm: add DEY firmware install U-Boot script
The install script allows for an easy deployment of the DEY firmware
artifacts into the eMMC of the ConnectCore 6 by using a micro SD card.
The install script:
	- updates U-Boot
	- resets the U-Boot environmnet to default values
	- formats the User Data partition of the eMMC
	- installs the firmware images (linux and rootfs partitions)
	- resets/starts the system

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2192
2016-02-12 12:41:43 +01:00
Hector Palacios d59fab0cc9 u-boot-dey: remove canonical symlinks and add new ones (per U-Boot config)
The canonical symlinks created by poky's U-Boot class in u-boot.inc for
the different U-Boot configs are in the form:
	u-boot.imx-<config>
	u-boot-<machine>.imx-<config>

These symlinks have the .imx file extension hidden in the middle of the
file name, which looks ugly.
For DEY, remove these unused symlinks and generate new ones in the form:
	u-boot-<config>.imx

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2192
2016-02-12 12:15:45 +01:00
Hector Palacios 308c5c337d u-boot-dey: [cosmetic] add comment to DEY boot script
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-02-12 12:10:47 +01:00
Javier Viguera 76415ed99e meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-02 17:45:16 +01:00
Javier Viguera 842c17a9b2 meta-digi: update revisions for dey-2.0-r1.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-02 17:16:14 +01:00
Javier Viguera 7915cc9c3f meta-digi: update to new github account 'digi-embedded'
As the plan is to use the same git objects (SHA1) in the internal and
github repos, also remove that internal/external SRCREV infrastructure.

https://jira.digi.com/browse/DEL-2205

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-01 18:52:45 +01:00
Hector Palacios 607d703246 u-boot: select $fdt_file basing on $board_id (if defined)
Carrier board version is determined by U-Boot variable $board_id
which will be defined if a board ID has been burned on certain
OTP bits.
Use the value in this variable to create the $fdt_file variable
using the suffix "-id${board_id}" to point to the device tree
file that matches that board ID.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2160
2016-01-29 13:26:12 +01:00
Javier Viguera 83a80bb9ce meta-digi: add support for CC6 variant 0x13
https://jira.digi.com/browse/DEL-2100

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-15 18:05:23 +01:00
Javier Viguera 79cca553e5 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-04 14:43:05 +01:00
Javier Viguera cd2e929c92 meta-digi: update revisions for dey-2.0.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-04 14:28:05 +01:00
Javier Viguera 20c2fbd8ba meta-digi-arm: fix u-boot license md5sum
ERROR: u-boot-dey: md5 data is not matching for file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95
ERROR: u-boot-dey: The new md5 checksum is c7383a594871c03da76b3707929d2919

https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:31 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Alex Gonzalez a81a7d586c meta-digi: revert revisions to AUTOREV
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-10-15 15:36:10 +02:00
Alex Gonzalez f032e1a132 meta-digi: update SRCREVs for dey-1.8.0.2
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-10-15 15:35:36 +02:00
Javier Viguera 6fdcbf5f40 meta-digi-arm: use u-boot fw-utils from Poky
Instead of creating a new recipe for u-boot fw-utils (fw_printenv) just
bbappend the recipe in Poky.

https://jira.digi.com/browse/DEL-1829

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-06 10:30:00 +02:00
Javier Viguera 3b0d4e1797 meta-digi-arm: rework u-boot 2015.04 recipe
* Merge u-boot-dey-rev_2015.04.inc into the recipe. There is no need to
  split the recipe, as there is no other recipe using this u-boot code.

* Update uboot configurations to the new format '_defconfig'. Also add
  the new 2GB variant.

* Remove PREFERRED_VERSION_u-boot-dey for CC6, as there is only one
  version available for this platform.

https://jira.digi.com/browse/DEL-1829

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-05 17:27:11 +02:00
Alex Gonzalez f33afc53b4 meta-digi-arm: update uboot to v2015.04 and make default for CC6
https://jira.digi.com/browse/DEL-1829

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-05 16:04:04 +02:00
Javier Viguera 48f62a6e6b u-boot: use maintenance branch for ccardimx28js
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-09-11 12:01:40 +02:00
Alex Gonzalez fec876dfb9 meta-digi: revert revisions to AUTOREV
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-18 19:28:43 +02:00
Alex Gonzalez a37674d4a1 meta-digi: update SRCREVs for dey-1.8.0.1
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-18 19:26:54 +02:00
Alex Gonzalez e19e80ae15 meta-digi-arm: u-boot-dey: boot.txt: Add support for variant 0x12.
This is a Consumer quad-core 1.2GHz, 4GB eMMC, 2GB DDR3, -20/+85C variant
with bluetooth and wireless, no kinetis.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-10 13:14:49 +02:00
Alex Gonzalez f6852b1bf9 meta-digi-arm: u-boot-dey: boot.txt: Remove 0x7 and 0x9 variants.
These eMMC-less variants have been cancelled.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-10 13:12:32 +02:00
Javier Viguera db5ab5f048 meta-digi-arm: remove support for u-boot 2009.08 on ccardimx28js
https://jira.digi.com/browse/DEL-1747

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:55:37 +02:00
Javier Viguera 7409ad875c meta-digi-arm: fix u-boot boot script
Adapt u-boot bootscript after latest changes in 'mmcdev' variable
semantics. Now the boot media device is stored in 'mmcbootdev' variable.

Also set the device tree filename depending on the hardware variant.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-06-25 18:48:49 +02:00
Javier Viguera ed251520b5 u-boot-fw-utils: reconfigure u-boot env depending on boot media
Add post-installation script that runs on first boot to reconfigure the
u-boot environment depending on the media (EMMC,SD) the target is
booting from.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8486d120355d80ea8ad5864596c8486a1d3c0db2)
2015-06-25 18:48:33 +02:00
Javier Viguera 6b31e716a5 meta-digi-arm: rework SD card generation class
This is needed in the context of CC6 variants 0x7 and 0x9 (EMMC-less).

Changes:

* Do not use 'meta-fsl-arm' image generation class: removed include and
  override SDCARD generation function
* Use same VFAT boot image for EMMC and SD card. The u-boot bootscript
  has been adapted to be able to boot Linux from both SD and EMMC.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8b8456b8fd90facd92dfc87632effa582ca60475)
2015-06-25 18:44:13 +02:00
Javier Viguera 9048ab3477 meta-digi-arm: build all CC6 u-boot variants
https://jira.digi.com/browse/DEL-1569

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:14:31 +02:00
Javier Viguera 20671e874d meta-digi: remove current variants support for CC6
Remove the current DEY variants support and framework for CC6 because in
following commits we will add support for all *hardware* variants in
just one set of DEY images for CC6.

https://jira.digi.com/browse/DEL-1569

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:12:45 +02:00
Javier Viguera 8dee301e7d u-boot-dey: remove redundant PACKAGE_ARCH
It's already set in the included 'u-boot.inc' (in poky)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-04-16 18:10:20 +02:00
Javier Viguera 276cfa58f5 u-boot: add native mkimage dependence
The SD card images support added a dependence to mkimage native tool.
Otherwise the build may fail with:

mkimage: not found

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-31 12:23:47 +02:00
Javier Viguera f3dfa6a3b6 meta-digi-arm: support variants for ccimx6sbc
This completes the support for ccimx6sbc variants:

* support device tree variants
* split variants '0x01,0x02,0x04' group in two different groups (with or
  without kinetis)

https://jira.digi.com/browse/DEL-1359

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 3f20015411f4e270b2e2c8faf292678c75ff2aff)
2015-02-05 16:37:42 +01:00
Javier Viguera e814742ebd meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:22:07 +01:00
Javier Viguera 1cd75a0a30 meta-digi: update revisions for dey-1.7.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:19:32 +01:00
Javier Viguera e42a291557 meta-digi: support ccardimx28js SD images based on kernel 2.6.35
Notes:

  * This version of u-boot does not support comments in scripts
  * Enabled EXT4 in kernel config (for the SDCARD rootfs)

https://jira.digi.com/browse/DEL-197

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-12 16:45:04 +01:00
Javier Viguera 0a5aa1c24d meta-digi: support generation of sdcard images for ccardimx28js
https://jira.digi.com/browse/DEL-197

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-09 19:13:33 +01:00
Javier Viguera 1c5d54a4c3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-17 20:03:08 +02:00
Javier Viguera a3c1aa7626 meta-digi: update revisions for dey-1.6.2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 17:16:56 +02:00
Javier Viguera 3b6835ac1b meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 11:17:21 +02:00
Javier Viguera fb1da18ea1 meta-digi: update revisions for dey-1.6.2.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-07 14:26:48 +02:00
Javier Viguera 036fdf88ad u-boot: use dub-1.6 maintenance branch
This is the branch used for platforms using kernel 2.6.35 (at the moment
MX5 and ccardimx28)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 15:48:53 +02:00
Javier Viguera 84d0775eb1 u-boot: generalize using platform family
https://jira.digi.com/browse/DEL-1105

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-07-16 14:41:17 +02:00
Alex Gonzalez 1f7093e4b3 meta-digi-arm: ccimx6: change default DTS file name
This has changed on the kernel tree.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-24 10:42:08 +02:00
Javier Viguera 4cb49ab09d meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:13:23 +02:00
Javier Viguera 8514398726 meta-digi: update revisions for dey-1.6.1.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:09:32 +02:00
Javier Viguera bc267130c9 meta-digi-arm: make u-boot boot script platform specific
https://jira.digi.com/browse/DEL-1061

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-13 18:18:37 +02:00
Alex Gonzalez 954a356d7d meta-digi-arm: u-boot-dey: ccimx6sbc: Add environment configuration.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 10:29:19 +02:00
Javier Viguera e639db7ebf meta-digi-arm: rename kernel and fdt files to uboot defaults
https://jira.digi.com/browse/DEL-1057

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-06 14:09:03 +02:00
Javier Viguera 2fd13737cb meta-digi-arm: remove SRCBRANCH support for external repos
Needing to set the branch where a specific SHA1 revision is contained is
a unnecessary constraint that can be bypassed setting 'nobranch=1' in
the SRC_URI.

We do that for all the external repos (GitHub) plus the internal ones
for the im-xbootlets and the atheros kernel module (as those two repos
are stable enough and we are not developing actively on them).

For U-Boot and Linux we keep the SRCBRANCH framework for internal repos
as this is needed for the AUTOREV yocto feature.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-25 16:56:27 +02:00
Javier Viguera 2769c4b7e4 meta-digi: revert internal repos to AUTOREV revision
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-22 12:53:02 +02:00
Javier Viguera c9c048a036 meta-digi: update revisions for dey-1.6.0.3
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-11 17:27:25 +02:00
Javier Viguera 99b153e30b meta-digi: revert internal repos to AUTOREV revision
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-09 12:34:20 +02:00
Javier Viguera d3e268dd53 meta-digi: update revisions for dey-1.6.0.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-07 17:23:55 +02:00
Javier Viguera 65993e1e50 meta-digi-arm: add framework to set external branches for git repos
Starting with Yocto 1.6 there is a need to configure in which branch a
specific SHA1 revision is included. We need a framework to set such
branches both for internal git repos and for external ones (Github).

If the branch is not specified in the SRC_URI, the do_fetch task may
fail even though the SHA1 revision exists in the repository.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-04 19:22:55 +02:00
Javier Viguera f2dcb7fea0 u-boot-fw-utils: support unlocking EMMC boot partition
By default EMMC boot partition is locked. This prevents fw_setenv
utility to configure the u-boot environment from Linux.

This commit adds a patch that unlocks the EMMC boot partition just
before writing into it and then locks it again once the environment is
written.

https://jira.digi.com/browse/DEL-1021

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-01 19:14:22 +02:00
Javier Viguera 5b9cb62599 u-boot: fix build of version 2009.08 for MX5
The setlocalversion script in u-boot 2009.08 did not have the
'--save-scmversion' parameter so the build was failing.

But for that version the whole do_compile_prepend can be removed because
it's not needed at all.

While on it, update the revisions for versions 2009.08 and 2013.01 to
include a fix done in 'setlocalversion' script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-31 17:25:45 +02:00
Javier Viguera c8d1f48a9a meta-digi-arm: specify branch for git-based SRC_URI
This fix an error building 'nvram' for ccardimx28js:

ERROR: Fetcher failure: Unable to find revision ... in branch master even from
upstream

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-31 11:16:36 +02:00
Javier Viguera cb1818f7b6 meta-digi-arm: add u-boot script to boot from SD card
https://jira.digi.com/browse/DEL-980

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-26 19:53:08 +01:00
Javier Viguera 3f17dd091e meta-digi-arm: fix u-boot version string
Building u-boot with Yocto does not show the version string in the
u-boot header. This is due to how Yocto compiles u-boot. It creates a
.scmversion file which may contain LOCALVERSION strings but in our case
it's empty. Later at build time u-boot's setlocalversion script detects
that file exists and exits with no further action (because it assumes
the file contains the version string).

https://jira.digi.com/browse/DEL-1007

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-25 15:42:12 +01:00
Javier Viguera 26a3cef1b2 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-24 17:43:52 +01:00
Javier Viguera 838ba4b920 meta-digi: update revisions for dey-1.6.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-24 17:38:53 +01:00
Javier Viguera 9a83dcaad0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-28 14:46:51 +01:00
Javier Viguera f53848364a meta-digi: update revisions for dey-1.5.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-28 14:36:05 +01:00
Javier Viguera 77be150871 meta-digi-arm: add new package u-boot-dey-fw-utils
Provides fw_printenv/fw_setenv utilities to read/write the u-boot
environment from Linux.

https://jira.digi.com/browse/DEL-800

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-27 13:43:02 +01:00
Alex Gonzalez 011460565f Revert "meta-digi-arm: Update SRCREVs for dey-1.5.0.0"
Go back to the AUTOINC SRCREVs.

This reverts commit 2b8d3197a8.
2014-02-26 19:22:01 +01:00
Alex Gonzalez 2b8d3197a8 meta-digi-arm: Update SRCREVs for dey-1.5.0.0
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-02-26 19:21:27 +01:00
Alex Gonzalez 3110e93ef1 meta-digi-arm: add u-boot-dey v2013.04
This is the u-boot used for i.MX6

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-21 14:33:51 +01:00
Javier Viguera 1466a3ff79 meta-digi-arm: move UBOOT_SUFFIX to the machine config files
So it can be used out of the u-boot recipe (for example to create
bootable sdcard images).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-01-16 10:37:04 +01:00