Commit Graph

1028 Commits

Author SHA1 Message Date
Alex Gonzalez 99c8eb2980 meta-digi-arm: firmware-qualcomm: Update WiFi US board data file
The new bdf has the following checksum:

cf55643c0c65987f2a46701f9f23f1f7  bdwlan30_US.bin

Details at:
https://confluence.digi.com/pages/viewpage.action?spaceKey=CCUL&title=BIN+File+2017.07.07

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-11 10:04:13 +02:00
Diaz de Grenu, Jose c9bee750f1 ccimx6ul: synchronize kernel defconfig
Re-add USB gadget Ethernet.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-07-10 13:47:36 +02:00
Javier Viguera 594e7fbf55 Merge branch 'dey-2.2/master' into dey-2.2/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 18:34:56 +02:00
Javier Viguera 6ffd69da82 kernel-module-qualcomm: use kernel log buffer for logging
At the point this script is run (from udev) the system log is not yet
available, so use the kernel log buffer instead.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera a5ae6a5b3c kernel-module-qualcomm: create wlan virtual interface
Use the same udev script that loads the qualcomm wireless module to
create the 'wlan1' virtual interface.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Javier Viguera 9329e5681b kernel-module-qualcomm: fix two udev rules managing qcom wireless driver
Udev comes with a bunch of generic rules for the hardware. One of them:

/lib/udev/rules.d/80-drivers.rules

is able to load the qualcomm wireless module.

At the same time our new rule is needed, so it prepares the firmware
before the module is loaded.

Both rules running collide with following error message:

udevd[181]: '/etc/udev/scripts/qualcomm.sh' [184] terminated by signal 1 (Hangup)

So to fix this, we rename the specific rule so it's parsed later, and
then we use the hard assignation '=' instead of '+=' to override the
values that come from the previous parsed rule.

Also clean-up a bit the 'qualcomm.sh' script and the modprobe file,
given that now we know the standard drivers rule won't run for this
interface.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-07 17:02:45 +02:00
Mike Engel 27138c9838 kernel-module-qualcomm: let udev load wireless module
NetworkManager is not able to detect and manage the wireless interface
until is actually created, so let udev load the kernel module and create
the interface on boot.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-07-07 17:02:45 +02:00
Alex Gonzalez e15dc30800 meta-digi-arm: firmware-atheros: Update fw-4.bin for RED certification
The new fw-4.bin (v3.4.0.236) with md5sum e2fc33daba2c35fe2c4f62492a44f8b6
was used to pass RED (Radio Equipment Directive) certification on the CC6
module.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-05 13:43:28 +02:00
Alex Gonzalez a5a09bdeff firmware-qualcomm: Remove cfg.dat and qcom_cfg.ini
These are now provided from the kernel-module-qualcomm recipe.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-07-05 13:43:28 +02:00
Javier Viguera a046ede89b kernel-module-gpio: remove recipe
Nothing is using this. It does not even compile with the kernel versions
we support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-07-05 13:43:28 +02:00
Sebastian Pastor 146db45215 mca_tool: update checksums for build 1.7
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-07-05 13:43:28 +02:00
Hector Palacios f439506eb8 ccimx6ul/ccimx6: synchronize kernel defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-07-05 13:43:28 +02:00
Alex Gonzalez 14a7d127f0 meta-digi-arm: Remove worldwide board data file.
https://jira.digi.com/browse/DEL-4291

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-06-21 12:30:08 +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 3d4f6dffd0 digi-defaults.inc: add kernel v4.1 for CC6 in comment
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-06-16 11:59:30 +02:00
Mike Engel 38dccefc9c meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-06-14 13:53:15 +02:00
Mike Engel aa2d5fd346 meta-digi: update revisions for dey-2.2-r1.5
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-4364
2017-06-14 13:53:15 +02:00
Javier Viguera 1eccad50b7 image_types class: fix build error due to missing images dependencies
A couple of commits in poky.git broke the dependence from our boot and
recovery images to the trustfence and recovery initramfs images:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=6c3d10ea62ad282a764da83aa701f92c6d3db6cb
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=99c6c878ee122a04f23ef49ea653208ca1c7aa77

This commit fixes the dependencies again, so when you build those images,
it builds first the required initramfs images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit efba5b5e7c)
2017-06-13 17:34:25 +02:00
Sebastian Pastor f853e3a3df mca_tool: update checksums for build 1.7
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-06-08 20:36:03 +02:00
Diaz de Grenu, Jose ff93cd2b28 recipes-digi: add cryptoauthlib
This library adds support to use the Atmel CryptoAuth device available
in the ConnectCore 6UL.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-06-05 13:10:02 +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
Tatiana Leon 180649013d ccimx6sbc_defconfig: sync defconfig with kernel
This commit adds the required configuration to run Greengrass Core:
  * Overlay filesystem support
  * Cgroups:
      * Freezer cgroup subsystem
      * Device controller for cgroups
      * Cpuset support
      * Simple CPU accounting cgroup subsystem
      * Memory Resource Controller for Control Groups
      * Enable perf_event per-cpu per-container group (cgroup) monitoring
      * CPU scheduler
      * Block IO controller
  * Namespaces support
      * UTS namespace
      * IPC namespace
      * User namespace
      * PID Namespaces
      * Network namespace
  * POSIX Message Queues
  * Support multiple instances of devpts
  * Enable seccomp to safely compute untrusted bytecode

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-31 17:44:29 +02:00
Tatiana Leon eafffc0cce ccimx6ul_defconfig: sync defconfig with kernel
This commit adds the required configuration to run Greengrass Core:
  * Overlay filesystem support
  * Cgroups:
      * Freezer cgroup subsystem
      * Device controller for cgroups
      * Cpuset support
      * Simple CPU accounting cgroup subsystem
      * Memory Resource Controller for Control Groups
      * Enable perf_event per-cpu per-container group (cgroup) monitoring
      * CPU scheduler
      * Block IO controller
  * Namespaces support
      * UTS namespace
      * IPC namespace
      * User namespace
      * PID Namespaces
      * Network namespace
  * POSIX Message Queues
  * Support multiple instances of devpts
  * Enable seccomp to safely compute untrusted bytecode

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-31 17:44:14 +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 efba5b5e7c image_types class: fix build error due to missing images dependencies
A couple of commits in poky.git broke the dependence from our boot and
recovery images to the trustfence and recovery initramfs images:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=6c3d10ea62ad282a764da83aa701f92c6d3db6cb
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=morty&id=99c6c878ee122a04f23ef49ea653208ca1c7aa77

This commit fixes the dependencies again, so when you build those images,
it builds first the required initramfs images.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-05-26 18:32:34 +02:00
Diaz de Grenu, Jose f9acd0af7c kernel-module-qualcomm: remove patches
Since 30c253e108 the module is compiled from a repository which already
includes the patches, so we can remove them from DEY.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-05-22 17:47:41 +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 dfc71d40eb meta-digi: revert revisions to AUTOREV
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-28 17:11:21 +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
Sebastian Pastor 8a9e333086 mca_tool: update checksums for build 1.6
Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-04-25 18:37:04 +02:00
Hector Palacios 71323796fd mca_tool: update checksums for v1.5
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-04-20 20:30:18 +02:00
Diaz de Grenu, Jose 1974e5a73e ccimx6sbc: linux-dey: add defconfig for v4.1
Imported from the kernel branch.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-20 16:24:34 +02:00
Diaz de Grenu, Jose 4180320e1a ccimx6: update kernel to v4.1
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-04-18 11:48:39 +02:00
Mike Engel 2f47dfb48c meta-digi-arm:gpu: Add GPU memory reserved configuration.
This commit adds support to read the GPU reserved memory
from the DT.

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

https://jira.digi.com/browse/DEL-3868
2017-04-12 11:54:07 +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
Mike Engel fae66340dd mca: Fix build error when binary is already-stripped.
This commit fixes a build error issue for the MCA because the
binary is stripped.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2017-04-12 11:45:47 +02:00
Alejandro Navarro ff82ecdf87 mca_tool: update checksums for build 1.5
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-04-11 14:11:34 +02:00
Hector Palacios 07d11072d2 ccimx6ul_defconfig: sync defconfig with kernel
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-04-11 11:47:18 +02:00
Alex Gonzalez 6377c0c13d meta-digi-arm: firmware-qualcomm: Update board data files.
These new US and world board data files contain new settings updated
with the latest certification results including the 2 dB power reduction
from DVT.

md5sums:

a5635e39aaaa220094e0d07f7a4f4567  bdwlan30_US.bin
cabebad84a6afc1c2a7d795d31dda480  bdwlan30_World.bin

https://jira.digi.com/browse/CC6UL-740

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-04-11 10:40:13 +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
Alex Gonzalez 5d2d0011d0 meta-digi-arm: qualcomm: Move cfg.dat and qcom_cfg.ini to module recipe
The firmware configuration and the driver configuration are part of the
driver repository. Stop duplicating the content in meta-digi so they
are updated with the driver itself.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-31 18:29:00 +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
Alex Gonzalez 4b5fe291f0 meta-digi-arm: kernel-module-qualcomm: Use single SRCREV for both external
and internal compilation.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-24 09:45:52 +01:00
David Escalona 748ffed314 trustfence-sign-kernel: fix the IVT table address padding
- The IVT table address inside the kernel image must be aligned at 0x1000
  bytes. The calculation of this offset was not working when the kernel image
  size was multiple of 0x1000 bytes. In this case the IVT table was moved an
  extra offset of 0x1000 bytes, causing U-Boot to fail to validate the image
  as the IVT table was not in the expected location.

  This fix uses the same offset calculation algorithm as U-Boot, ensuring both,
  the sign script and U-Boot will look for the IVT at the same address.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-23 14:16:33 +01:00
Alex Gonzalez 70f7c013da meta-digi-arm: firmware-qualcomm: Update board data files.
These new US and world board data files contain new settings updated
with the latest certification results.

md5sums:

386475740ad0e41f4387eebdf2931c16  bdwlan30_US.bin
d349985b51353f430183f1bf9f6d90d1  bdwlan30_World.bin

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-23 13:04:49 +01:00
Javier Viguera 116d532813 trustfence-cst-native: add premirror for CST package
This will allow to get the package from a premirror in case it is not
already downloaded in the DL_DIR.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-23 12:36:57 +01:00
Javier Viguera 165f58e9df trustfence-cst-native: coding style, no functional change
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-23 12:36:57 +01:00
Javier Viguera 846f07b7ac meta-digi: change Freescale references to NXP
Mostly in config templates and readme files.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-22 19:58:32 +01:00
Diaz de Grenu, Jose 4850d0ffa9 conf: machine: use weak assignment for SERIAL_CONSOLES
This allows to override the console using the local.conf.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-03-22 11:36:46 +01:00
Tatiana Leon a1eeb71f24 automount: add rule not to automount 'recovery' partition
https://jira.digi.com/browse/DEL-3934

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-20 14:57:11 +01:00
Tatiana Leon 3aeb49cce1 meta-digi-arm: use DHCP IPs by default
The main purpose is to improve our kits usability. This way users do not need
to follow the steps in the documentation to change from static to DHCP IPs.

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

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-03-20 14:47:21 +01:00
Alex Gonzalez 30c253e108 meta-digi-arm: kernel-module-qualcomm: Build from Digi source repositories
The amount of patches to this driver maintained in meta-digi is
substantial, so we are moving to a git repository release model.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-20 10:43:24 +01:00
Alex Gonzalez fd7239da8a meta-digi-dey: Add LDFLAGS to do_compile override
This is to avoid the following QA error:

ERROR: fbtest-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/usr/local/ssd/dey-2.2/workspace/ccimx6ulstarter/tmp/work/cortexa7hf-neon-dey-linux-gnueabi/fbtest/1.0-r0/packages-split/fbtest/usr/bin/fbtest' [ldflags]
ERROR: fbtest-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: fbtest-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /usr/local/ssd/dey-2.2/workspace/ccimx6ulstarter/tmp/work/cortexa7hf-neon-dey-linux-gnueabi/fbtest/1.0-r0/temp/log.do_package_qa.6755
ERROR: Task (/usr/local/ssd/dey-2.2/sources/meta-digi/meta-digi-dey/recipes-digi/fbtest/fbtest.bb:do_package_qa) failed with exit code '1'

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-17 19:15:27 +01:00
Alex Gonzalez 395f047493 meta-digi-arm: firmware-qualcomm: Update QCA binary
Update to tag r110055.1 from
https://chipmaster2.qti.qualcomm.com/home2/git/digi-international-inc/qca6564-le-1-0-3_qca_device.git

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-03-17 19:15:27 +01:00
Sebastian Pastor 4637c01c4a meta-digi-arm: Enable MCA_IOEXP in ccimx6ul defconfig
Note: the CONFIG_INPUT_EVBUG line has been removed as a result of savedefconfig

Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
2017-03-15 18:06:32 +01: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
Diaz de Grenu, Jose 1e93277819 ccimx6ul: synchronize kernel defconfig
Remove default kernel command line.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2017-03-14 16:57:47 +01:00
Javier Viguera 5cccb22389 ccimx6ul: enable CONFIG_FIRMWARE_IN_KERNEL in kernel defconfig
Seems that this is needed for the bluetooth interface to work. Without
this options, the interface is not able to initialice (hciattach command
fails).

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-13 19:35:59 +01:00
David Escalona 4c8ae78e88 ccimx6ul: synchronize kernel defconfig
- Remove input event debug messages.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-03-10 18:50:16 +01:00
Mike Engel 19563821d2 ccim6ul_sbc: Add wireless concurrent as default setup
This commit adds the wireless concurrent mode as a default
configuration to the CC6UL machine.

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

https://jira.digi.com/browse/DEL-3818
2017-03-07 17:20:12 +01:00
Javier Viguera 2cc93b353c ccimx6ul: synchronize kernel defconfig
Loading firmware by userspace helpers has been deprecated from device
managers (like udev, eudev, etc). Firmware loading is supposed to be
performed by the kernel.

This fixes the loading of an external kernel module (qualcomm wlan.ko)
that was failing to load because of a missing firmware file.

In that case the kernel was requesting the firmware load from userspace:

ar6k_wlan mmc0:0001:1: Direct firmware load for qsetup30.bin failed with error -2
ar6k_wlan mmc0:0001:1: Falling back to user helper

The device manager we are using in DEY-2.2 (eudev) does not support
firmware loading and is not giving an error return value to the kernel
either, so at one point the kernel throws an oops:

Hardware name: Freescale i.MX6 Ultralite (Device Tree)
task: 88228000 ti: 88cbe000 task.ti: 88cbe000
PC is at 0x7f183758
LR is at request_firmware+0x38/0x40
pc : [<7f183758>]    lr : [<802f80bc>]    psr: 600f0013
sp : 88cbfdb8  ip : 00000000  fp : 88644c00
r10: 0000dac0  r9 : 88cbfefc  r8 : 0000000c
r7 : 00007d08  r6 : 88cbfde4  r5 : 88644ea2  r4 : 00000005
r3 : 88cbfde4  r2 : 00000080  r1 : 00000000  r0 : fffffff5

and the wireless driver is not loaded.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-07 17:01:29 +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 372a063ac4 linux-dey: adapt trustfence_sign function after migration
The way the kernel artifacts are generated has change as of Yocto 2.2.
Also some of the variables (e.g. KERNEL_IMAGE_SYMLINK_NAME) have changed
their default values.

Thus the trustfence_sign function needed some tweaks to continue working
properly.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-02 16:25:09 +01:00
Javier Viguera 9701cd9494 morty migration: kernel-module-imx-gpu-viv: refresh patches
https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Javier Viguera fc488b7f1b linux-dey: fix 'do_deploy' failure by removing not needed symlink
KERNEL_IMAGE_BASE_NAME and KERNEL_IMAGE_SYMLINK_NAME default values have
changed in Yocto 2.2, so now this appended command is failing because
it's translated to:

ln -sf -4.1-r0.2-ccimx6ulstarter-20170216122147.bin ccimx6ulstarter

which fails with:

ln: invalid option -- '4'

Just remove it, because we don't need that symlink anymore. New U-Boot's
'zimage' and 'uimage' environment variables have default values ending in
'.bin' which is what Yocto provides.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Javier Viguera 0cb35907cd morty migration: meta-digi-arm: update image_types bbclass
* Transfer dependences from base types 'boot' and 'recovery' to the
  actual image types 'boot.vfat', 'boot.ubifs', 'recovery.vfat' and
  'recovery.ubifs' using IMAGE_TYPEDEP variable.

* Now the images are created in a per image recipe deploy directory
  (IMGDEPLOYDIR), so use that instead of the final DEPLOY_DIR_IMAGE.

* Remove manual creation of symbolic links and let Poky create them. For
  this, we need to remove the default 'rootfs' image suffix using the
  imgsuffix variable flag for the corresponding do_image_* functions.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Javier Viguera 41b3631934 morty migration: image_types_digi: fix initramfs Trustfence signing
As of Yocto 2.2, the way to generate images has changed. Now the image
fstypes have a basetype and then conversion types that define functions
that apply sequentially.

So implement the TrustFence initramfs sign process as a conversion type
of the base initramfs type (cpio).

This fixes following build issue:

mv: cannot stat ‘dey-image-recovery-initramfs-ccimx6ulstarter-20170220152625.rootfs.cpio.gz.u-boot’

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +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 f778c69b98 morty migration: sync machine config files with meta-freescale
https://jira.digi.com/browse/DEL-3451

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:56 +01:00
Javier Viguera dcdab46080 morty migration: meta-digi: update FSL layer name
meta-fsl-arm is no longer used for Morty release. Now the community
support is implemented in 'meta-freescale' layer.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-24 20:06:29 +01:00
Alex Gonzalez 8ff3bdeb0f Merge branch 'dey-2.0/maint' into dey-2.0/master
The SRCREVS for u-boot, linux and trustfence-tool remain as AUTOREV.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-24 18:06:37 +01:00
Alex Gonzalez 42b5bd2c10 meta-digi-arm: firmware-qualcomm: Update board data files.
These new US and world board data files contain new calibration settings
updated with the latest certification results.

md5sums:

bdwlan30_US.bin: f2c414adb682a8cd95e72593fad7fa08
bdwlan30_World.bin: 12e2bae1a871e2a3dfa6ded0ee675c09

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-24 17:57:37 +01:00
Mike Engel b3a0c3f3ff ccimx6ul: synchronize v4.1 kernel defconfig
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-3521
2017-02-21 12:19:13 +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 6c44621ad8 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-13 12:07:06 +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
Pedro Perez de Heredia e7f590350c kernel-module-qualcomm: fix issue with _scan_callback at module unload
Protect the invocation of the _scan_done() callback function with the
global lock to avoid that it is called while the module is being unloaded
and the data structures have been freed.

Additionally, the commit also adds a patch to reduce the log level of the
driver that is logging some annoying messages.

https://jira.digi.com/browse/DEL-3607
https://jira.digi.com/browse/DEL-3393

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-13 11:59:45 +01:00
Javier Viguera bbc03c5935 trustfence-cst: refresh patches with git
Refresh the patches with GIT so they apply cleanly using "git am".
Otherwise they fail with:

Applying: openssl_helper: use /dev/urandom as seed source
error: corrupt patch at line 16
Patch failed at 0003 openssl_helper: use /dev/urandom as seed source

Applying: hab4_pki_tree.sh: usa a random password for the default PKI generation
warning: keys/hab4_pki_tree.sh has type 100755, expected 100644

Notice that they were not failing in Yocto, as it does not use "git am"
to apply patches, but it's better to have the patches correctly done.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-10 19:37:55 +01:00
Alex Gonzalez 44ae297ea8 meta-digi-arm: firmware-qualcomm: Update board data files.
Use bdf with a -2db gain.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-02-10 19:00:03 +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
Pedro Perez de Heredia aebaedd365 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: disable MCS8-9 for Tx mode
https://jira.digi.com/browse/DEL-3563

Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2017-02-02 18:13:16 +01:00
Alejandro Navarro 731edf319b mca_tool: update checksums for version 1.3
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
2017-02-02 18:10:21 +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
Alejandro Navarro 2c7e8ade88 mca_tool: update checksums for version 1.2
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>

https://jira.digi.com/browse/DEL-3575
2017-01-25 19:48:05 +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 e0d6f4eda4 automount: add rule to automount update partition
https://jira.digi.com/browse/DEL-3512

Signed-off-by: David Escalona <david.escalona@digi.com>
2017-01-24 11:17:21 +01:00
Alex Gonzalez 98808b5938 kernel-module-qualcomm: Initialize auxiliary p2p0 interface at boot
Remove the commit that removes the p2p0 interface at boot. This interface
is the one used to establish p2p connections. Configuring the wlan0 command
for p2p does not work.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez e55d83ba14 kernel-module-qualcomm: Bring the module up with the p2p0 interface too
The qualcomm wlan driver creates two interfaces at load time, wlan0 and
p2p0. Both of them should load the module if not already loaded.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez 5d332c7800 ccimx6ul: Add P2P support
This commit adds a wpa supplicant P2P configuration file and configures
the p2p0 interface automatically at pre-up.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +01:00
Alex Gonzalez 0bb2cb005d meta-digi-arm: ccimx6ul: Use HAVE macros as in other platforms.
For consistency, use the HAVE macros instead of grepping the machine
features directly.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-23 15:45:20 +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
Alex Gonzalez 255030e94c meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Recover gRoamingTime
Even though this variable is documented as unused, removing it fails
wireless regression tests.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-18 18:31:42 +01:00
Hector Palacios c52de54ac0 ccimx6ul: synchronize kernel defconfig
This re-enables USB mass storage support that was unintentionally
removed in commit 6851ab23e4.

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

https://jira.digi.com/browse/DUB-713
2017-01-18 10:52:38 +01:00
Javier Viguera 9448e9d994 ccardimx28: add missing leading space for append operator
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:24:37 +01:00
Javier Viguera 6269b20c9c kernel-module-qualcomm: cosmetic, no functional change
According to openembedded coding style.

Signen-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:24:05 +01:00
Javier Viguera 29af4bb088 kernel-module-qualcomm: remove virtual/kernel dependence
The dependence on virtual/kernel is added implicitly through the module
class, so there is no need to add it explicitly.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-01-17 18:23:33 +01:00
Hector Palacios 6851ab23e4 ccimx6ul: synchronize kernel defconfig
This updates the kernel configuration to the latest one
which disables unused drivers and options to optimize the
kernel size.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-17 16:24:13 +01:00
Alejandro Navarro caa932612d mca_tool: update checksums for the new version
Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>

https://jira.digi.com/browse/DEL-3499
2017-01-16 16:19:53 +01:00
Alex Gonzalez 905ac5c483 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Add debug bitmasks
Document as comments the enabling of the debug modules and levels

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:46:00 +01:00
Alex Gonzalez 6be939c535 meta-digi-arm: firmware-qualcomm: qcom_cfg.ini: Remove unused entries.
The following document,

JQCA61x4, QCA65x4, and QCA937x
Configuration Parameters Specification
80-Y7674-11 Rev. J
September 30, 2016

Contains a list of unused configuration arguments in page 29. This commit
removes those listed arguments that appeared on the default configuration
file to avoid confusion.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:35:08 +01:00
Alex Gonzalez 21209d4f36 meta-digi-arm: kernel-module-qualcomm: Pass BUILD_DEBUG_VERSION to kbuild.
Otherwise the module is built with debug as that is the Makefile's
default.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-12 11:30:48 +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
Alex Gonzalez 910b8761f0 meta-digi-arm: firmware-qualcomm: Update board calibration files.
These have been provided by the embedded hardware team and they are to
be used for certification testing. The calibration corresponds to the
internal antenna on the module. If using the current external antenna on the
CC6UL SBC they work fine, although they could be tweaked to improve.

The BDF files provided were generated from the original ones, by running a
test tree for output power calibration for QCA6564A-3 chip. This test
tree is called
‘FCCSP_Rome3.x_WLAN_CLPC_cal_and_WLAN_BT_Verify_Y8611-H341.xtt’ and it
belongs to the Qualcomm Design Package ‘DP25-WL420-100’.
The test tree is to be run in the QSPR software tool, part of the QDART
software tools set provided by Qualcomm.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-05 14:58:31 +01:00
Alex Gonzalez f5dac18ae5 meta-digi-arm: firmware-qualcomm: Match board file and UTF board file.
As discovered during certifications preparation work, calibration changes
applied only on the bdwlan30.bin file do not take effect.

Per QCA guidelines, the bdwlan30.bin and utfbd30.bin files should be the
same for the calibration changes to work.

This commit removes the current utfbd30.bin file, with an md5sum that
matches the original bdwlan30.bin file in QCA's chipcode
qca6564-le-1-0-3_qca_device repository, and creates a symbolic link to the
actual bdwlan30.bin board file used to certify Digi's module internal
antenna.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-05 14:58:31 +01:00
Hector Palacios dbe23328da alsa-state: ccimx6ul: enable speaker right channel
The speaker right channel was left disabled in the default
configuration.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2017-01-02 17:56:46 +01:00
Hector Palacios 96f6849668 alsa-state: ccimx6ul: add ALSA asound.state config file
The codec MAX98088 present on the ccimx6ulsbc only needs one
configuration file that can play and record.
The default file enables the interfaces present on the ccimx6ulsbc:
	- Headphones
	- Speaker
	- LineOut (in stereo mode)
	- LineIN-A
	- MIC2

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

https://jira.digi.com/browse/DEL-2352
2016-12-30 18:38:05 +01:00
Hector Palacios 8d9033138d alsa-state: ccimx6ul: add basic asound.conf for imxmax98088
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2352
2016-12-30 16:58:00 +01:00
Hector Palacios 0b3f878d54 ccimx6ul: synchronize v4.1 kernel defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-12-30 14:05:02 +01:00
David Escalona 047849b848 recovery: add recovery image types for DEY images generation
- Added the new image type 'recovery.vfat' to the DEY images
  generation process. This new image is a clone of the 'boot.vfat'
  but including the recovery ramdisk and the recovery boot script.

- Added the new image type 'recovery.ubifs' to the DEY images
  generation process. This new image is similar to the 'boot.ubifs'
  but including the recovery ramdisk and the recovery boot script.

Signed-off-by: David Escalona <david.escalona@digi.com>
2016-12-27 17:37:53 +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
Hector Palacios 7f092fe4cd imx-digi-base.inc: build gstreamer plugins for i.MX6UL
The i.MX6UL supports some basic multimedia functionality
using the pixel pipeline (PXP).

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

https://jira.digi.com/browse/DEL-2358
2016-12-26 10:54:37 +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 6b1d790c95 meta-digi-arm: linux-dey: create postfunc for trustfence
The kernel recipe was modifying the device tree blobs in place within the
kernel build temporal directory. This can cause problems after several
compilations, only the deployed artifacts should be signed/encrypted.

The deployment of the DTBs is done by do_deploy_appends in other layers which
are appended after this recipe, so it is required to use a postfunc to do the
trustfence related process after the deployment of all the artifacts.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-12-19 16:52:21 +01:00
Alex Gonzalez 9a5372bcc9 meta-digi-arm: kernel-module-qualcomm: Print connection mode.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-15 13:39:10 +01:00
Alex Gonzalez dd7dcc597d meta-digi-arm:kernel-module-qualcomm:Pass disconnect event to upper layers.
https://jira.digi.com/browse/DEL-3365

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-12 17:36:40 +01:00
Alex Gonzalez 3016520e4f meta-digi-arm: kernel-module-qualcomm: Update to v4.2.79.63
This brings several upstream bugfixes.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-12-12 17:36:40 +01:00
Diaz de Grenu, Jose b30cd6eb2b Revert "meta-digi-arm: Add rootfs.initramfs image generation."
This image type is not used anymore.

This reverts commit aef38bc285.
2016-11-29 19:40:47 +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
Javier Viguera eed8fd2e63 trustfence-sign-tools: use v2015.04 maintenance branch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-11-25 11:35:49 +01:00
Hector Palacios aab2290bef mca-tool: update sumchecks for the new version
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-11-23 15:53:45 +01:00
Diaz de Grenu, Jose e273a30fac mca-tool: update sumchecks for the new version
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-22 18:50:21 +01:00
Hector Palacios fec125212e ccimx6ul: synchronize defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3231
2016-11-21 11:25:16 +01:00
Hector Palacios a7d9a894d7 ccimx6ul.inc: add mca-tool package by default
This application can be used to:
 - Update the MCA firmware
 - Configure the tamper settings

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

https://jira.digi.com/browse/DEL-3230
2016-11-21 11:23:55 +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
Hector Palacios a81f72b99f mca-tool: add application to manage the CC6UL MCA firmware
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3093
2016-11-18 11:28:04 +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
Diaz de Grenu, Jose af3f883f09 trustfence: [cosmetic] fix usage help
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-09 17:02:52 +01:00
Diaz de Grenu, Jose ed22789224 trustfence: make sign script threadsafe
Ensure that the signing script is not executed in parallel. This is required in
order to avoid problems during PKI generation and CST usage when building with
Yocto or the Android build system.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-11-09 17:02:18 +01:00
Diaz de Grenu, Jose 796334fa9a trustfence: fix initramfs name when signed images are disabled
It is desirable to keep the name of the initramfs images the same regardless of
the sign and encryption configuration.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-24 17:39:02 +02:00
Hector Palacios 90b2b3ddc7 recipes-kernel: sync ccimx6ul defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3053
2016-10-21 12:03:36 +02:00
Javier Viguera 472e57312f meta-digi-arm: sync machine files with meta-fsl-arm
This commit adds the proper DEFAULTTUNE and overrides for the ccimx6ul
family of modules.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-10-19 19:25:20 +02:00
Diaz de Grenu, Jose 6aff5b5524 trustfence: fix sign/encryption for very small artifacts
The HAB on the i.MX6/i.MX6UL expects an entrypoint which is used to pass
execution to U-Boot in the ROM code. In later executions of HAB, U-Boot calls
the HAB but ignores this value.

A fixed value of 0x1000 was being used for the entrypoint, which is too big for
really small artifacts, like bootscripts. This commit reduces the value to
0x100. This allows to sign and encrypt artifacts as small as 260 bytes.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 19:09:53 +02:00
Isaac Hermida f8c901b376 kernel-module-qualcomm: fix concurrency and p2p support
Fix support for concurrency and some P2P modes by initializing the interface
with all the adapter completion variables.

https://jira.digi.com/browse/DEL-3072
https://jira.digi.com/browse/DEL-3037

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-10-19 18:23:51 +02: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
Diaz de Grenu, Jose c1d2ee02f5 trustfence: sign device tree blobs
https://jira.digi.com/browse/DUB-614

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:10 +02:00
Diaz de Grenu, Jose 5c4df1ddfd trustfence: add support for signing and encrypting DTBs and ramdisks
This patch introduces some parameters which allow to select the type of image
to be signed. Currently the supported types are:

* linux kernel (-l)
* DTB (-d)
* initramfs (-i)

This also moves the CONFIG_PLATFORM environment variable to a parameter, for
consistency.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:08 +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
Hector Palacios c12afdf563 recipes-kernel: sync ccimx6ul defconfig
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-09-27 12:17:24 +02:00
Javier Viguera b2ae79fb1a formfactor: move config files under machine directories
Otherwise they are overridden with config files from other layers (for
example meta-fsl-arm) that may not be valid for our platforms.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-09-27 11:22:22 +02:00
Isaac Hermida 387d1349e8 recipes-bsp: firmware-qualcomm: fix missing World code
Set of the World country code in the BDF file. It was lost after syncing to the
latest QCA BDF files (commit b80f00f14a).

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-16 14:22:56 +02:00
Isaac Hermida 05fd2e00b4 conf: machine: ccimx6ulsbc: include support for second ethernet
https://jira.digi.com/browse/DEL-2952

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Isaac Hermida 412f1b1e55 meta-digi: rename external ethernet references to second ethernet
The name "ext-eth" seems to indicate "External Ethernet". Rename that variable
and related ones to a more proper name like second ethernet.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-15 12:31:49 +02:00
Diaz de Grenu, Jose 6b0fbddf3b meta-digi-arm: trustfence-sign-tools: simplify script usage outside Yocto
* Check number of arguments
* Add platform argument
* Read user configuration from .config file
* Remove unused variable (dek_blob_size)
* Remove noise in output messages

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Diaz de Grenu, Jose c5df62cd05 meta-digi-arm: trustfence-sign-tools: avoid using 'xxd'
When writing the fake IVT table in raw, rely on tac (part of the core-utils
package) instead of on xxd.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Diaz de Grenu, Jose c8ec33129d meta-digi-arm: trustfence-sign-tools: add sign tools recipe
Add a recipe to include all signing and encryption tools for U-Boot and
kernel images to the SDK. Move existing trustfence kernel scripts to this
new recipe.

This allows to use these scripts not only from the Yocto build system but
also as standalone tools for image signing and encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Isaac Hermida b80f00f14a recipes-bsp: firmware-qualcomm: sync BDF files to latest QCA release
https://jira.digi.com/browse/DEL-3007

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-09-07 15:54:44 +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 c59a5e6214 Revert "meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is"
This reverts commit b8f50680e5.

The support to read and write to an encrypted environment has been added, so
there is no need to exclude the u-boot-fw-utils anymore.

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
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
Isaac Hermida d3dbf9399a conf: machine: add support for ccimx6ulsbc platform
Add initial support for Digi's ConnectCore 6UL SBC.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 13:24:00 +02:00
Isaac Hermida 1baa4c2b38 ccimx6ul: defconfig: add bridge support for ccimx6ul
https://jira.digi.com/browse/DEL-2923

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-25 10:58:30 +02:00
Isaac Hermida a47838ddc8 meta-digi-arm: remove APM machine feature
APM is an ancient power management API mainly for x86. There is an
optional emulation layer for ARM, but none of our platforms is using
it, so just remove the machine feature.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-22 16:05:17 +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
Javier Viguera 0d2130625b image-types_digi.bbclass: fix u-boot image for SDCARD when TF is enabled
When TRUSTFENCE_SIGN is enabled, the u-boot binary for the SDCARD image
needs to be the "signed" one.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-10 13:11:50 +02:00
Isaac Hermida 6d5e1ba8b6 recipes-kernel: defconfig: sync ccimx6ul defconfig
https://jira.digi.com/browse/DEL-2863

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-08-10 12:25:11 +02:00
Alex Gonzalez b8f50680e5 meta-digi-arm: Exclude u-boot-fw-utils if U-Boot environment encryption is
enabled

There is currently no support on fw_printenv/fw_setenv to access an
encrypted environment.

This commit removes the package if U-Boot environment encryption is
enabled to avoid environment corruption on access.

It also documents the issue as a known issue.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-10 10:59:30 +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
Alex Gonzalez 106efc4970 meta-digi-arm: linux-dey: Add TrustFence dependencies on Linux kernel.
When changing any of the secure boot configurable macros the Linux kernel
should be re-deployed so that it can be signed/encrypted as needed.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:42:07 +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
Diaz de Grenu, Jose 5a8e57da72 meta-digi-arm: trustfence-cst: use random password for generated PKI trees
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-08-01 20:00:09 +02:00
Diaz de Grenu, Jose 36d7311459 meta-digi-arm: trustfence-cst: fix native recipe and Makefile
This package is native only, this patch ensures it can only be built
natively and fix the following problems:
* Add openssl-native rather than openssl to the dependencies.
* Use the $(CC) $(LDFLAGS) and $(CFLAGS) that Yocto provides to avoid a
  compilation error.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-29 17:08:25 +02:00
Isaac Hermida fc959bd23f kernel-module-qualcomm: do not log any error if dtb regdomain is not set
Do not add a log error if there is not defined a device tree entry for the
regulatory domain.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-28 13:03:03 +02:00
Isaac Hermida 6d846bb7db recipes-kernel: defconfig: sync ccimx6ul defconfig
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-26 16:23:12 +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
Isaac Hermida 1e843089fe ccimx6ul: defconfig: update config file for ccimx6ul
Add support for ADC using the MCA driver.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-22 08:52:25 +02:00
Isaac Hermida 46c7508ee3 kernel-module-qualcomm: add support to override the region code
The region code is programmed in the OTP bits. We want to allow to be able to
override this behavior by setting the new value as a property in the device
tree called "regulatory-domain".
This can be done by setting the variable "regdomain=<code>" in uboot or well
by defining that entry in the device tree.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:32:07 +02:00
Isaac Hermida cd253b370b kernel-module-qualcomm: load specific firmware file per region
The country region is programmed in the OTP bits. Based on that value we need
to load the firmware file for the specific country region.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:29:34 +02:00
Isaac Hermida 0b5c74e836 recipes-bsp: firmware-qualcomm: add different firmware files for country regions
We are including two firmware files: one for setting the country to US and the
other one to set it to the World Wide Roaming region (SKU 0060).

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-07-21 18:29:34 +02:00
Diaz de Grenu, Jose 84cad4e4ad meta-digi-arm: linux-dey: fix check for uImage signing
TRUSTFENCE_SIGN can be defined to "0" to explicitly disable uImage sign and
encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-21 11:38:01 +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
Hector Palacios d9c4a586f2 ccimx6ulstarter: add device tree file for -id129 board
This device tree file corresponds to StarterBoard with ID=129
which corresponds to smart part number CC-WMX6UL-START.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2016-07-20 16:33:04 +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