Commit Graph

878 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