Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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 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
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
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
Javier Viguera d80aa91c28 meta-digi-arm: set 'boot.ubifs' image depends explictly
To build the CC6UL boot image, the u-boot and linux images need to be
already deployed. Also the native mtd-utils package needs to be
available in the sysroot.

Make all this dependences explicit for deterministic reproducibility.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-19 12:35:51 +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 846e1cd07f image-types_digi.bbclass: implement boot.ubifs image type
This creates a UBIFS file with the kernel, device tree files, and U-Boot
bootscripts generated by Digi Embedded Yocto.
The resulting image can be then programmed into the boot (linux) partition.

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

https://jira.digi.com/browse/DEL-2697
2016-07-06 18:05:30 +02:00
Jose Diaz de Grenu de Pedro 3549a999fc meta-digi-arm: image_types_digi: use TARGET_ARCH instead of ARCH
ARCH is not a documented variable in yocto, use the documented
TARGET_ARCH instead.

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

Signed-off-by: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenudePedro@digi.com>
2015-11-24 16:27:20 +01: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 d9b4d0731e meta-digi-arm: set BOARD_BOOTIMAGE_PARTITION_SIZE in KiB
This will allow in following commit to use the same VFAT boot image for
EMMC and SD. Until now we were creating different boot images for EMMC
and SD card images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 13e9ec7608d42430c2a01a728d030752a71f7948)
2015-06-25 18:43:37 +02:00
Javier Viguera f8da7787ef image-types_digi.bbclass: fix typo
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:12 +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 09e72aa0f4 meta-digi-arm: simplify flash images generation
We inherited from DEL the requirement to build more than one flash image
for the same rootfs contents depending on the EBS of the flash chip.

Yocto does not have support to generate more than one flash image so we
had to create functions in the image_types_digi bbclass to provide this
feature.

This commit removes that functionality and uses the standard yocto
support to generate ubifs and jffs2 flash images. The way to customize
the flash parameters is via EXTRA_IMAGECMD_jffs2 and MKUBIFS_ARGS
variables. In our case those variables are already set depending on the
different hardware variants.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-02 16:49:12 +01:00
Alex Gonzalez aef38bc285 meta-digi-arm: Add rootfs.initramfs image generation.
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-12-01 11:51:51 +01:00
Javier Viguera 8a8054fccc image-types_digi.bbclass: remove USE_DEVFS override
USE_DEVFS = "1" is the default now in poky

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-06 18:20:26 +02:00
Robert Hodaszi 7b649a1f03 image-types_digi.bbclass: add possibility to append extra arguments to UBIFS image creation
Add possibility for other layers to add additional features for UBIFS creation,
e.g. "-R <rp_size>" for super-user reserved pool.

Signed-off-by: Robert Hodaszi <robert.hodaszi@digi.com>
2014-09-12 17:48: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 be88589716 meta-digi-arm: fix code to generate JFFS2 and UBIFS images
It was broken after the upgrade to Yocto 1.6 because the framework to
generate images in Yocto 1.6 changed.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-03 19:40:00 +02:00
Javier Viguera 7fc50ada0f image_types_digi.bbclass: fix boot.vfat image creation
The way to create rootfs images has changed in poky master. The whole
process has been reworked in python and the hook to create a new image
is the IMAGE_CMD variable. The old 'runimagecmd' shell function has
been deleted so we cannot override it in our custom class.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-14 12:50:31 +01:00
Javier Viguera 6fd93d7157 meta-digi-arm: do not create static nodes in rootfs images
We have all the kernels configured with DEVTMPFS support, so there is
no need to have static nodes in the image files. They are not used at
runtime because a TMPFS is mounted at '/dev'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-25 18:46:19 +01:00
Javier Viguera 2660a0da27 meta-digi-arm: implement 'boot.vfat' image type
At the moment this image is a VFAT file system containing the kernel
and the device tree blobs.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-24 14:31:46 +01:00
Javier Viguera 1111a3d6a0 image_types_digi: make it compatible with python 2.6
Python 2.6 does not have bit_length function:

'int' object has no attribute 'bit_length'

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-05 11:18:25 +01:00
Javier Viguera 767fc18b85 meta-digi-arm: image_types_digi: separate data from implementation
Move the flash parameters to the machine configuration files so it's
easier to create derivative machines and use the image bbclass to create
flash images.

(based on a patch from Seth Bollinger <sethb@digi.com>)

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-04 13:25:13 +01:00
Francis Sreeves d2cdf7826e image_types_digi: keep platforms in alphabetical order
http://fisheye.digi.com:8060/cru/CR-DEL-27#CFR-508

Signed-off-by: Francis Sreeves <francis.sreeves@digi.com>
2013-05-22 10:30:01 +01:00
Francis Sreeves 6db91dc1a3 meta-digi: add WR21 machine
https://jira.digi.com/browse/DEL-455

Signed-off-by: Francis Sreeves <francis.sreeves@digi.com>
2013-05-22 10:30:01 +01:00
Alex Gonzalez 85e2644459 meta-digi-arm: Add cpx2 machine.
This fixes https://jira.digi.com/browse/DEL-190

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-02-28 11:33:34 +01:00
Alex Gonzalez 6042a70fbc meta-digi: Change xmx for imx.
Just a cosmetic name change for the merged wired and wireless platforms.

This and related commits fixes https://jira.digi.com/browse/DEL-188.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-02-13 10:43:50 +01:00
Javier Viguera ccab60099b meta-digi-arm: fix corrupted JFFS2 images in ccardxmx28js
Seems that the options Yocto was using to generate the jffs flash image
are not correct for ccardxmx28js. Specially mkfs.jffs2's padding option
'-p' was making the rootfs corrupted on second boot (as explained in
JIRA DEL-218).

Finally i decided to use the same mkfs.jffs2 parameters we were using in
DEL and those seems to be working fine.

https://jira.digi.com/browse/DEL-218 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-28 11:32:47 +01:00
Javier Viguera 48029a0605 meta-digi-arm: build images for different memory variants
https://jira.digi.com/browse/DEL-181 #resolve

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-01-15 10:49:38 +01:00
Alex Gonzalez e112184852 meta-digi-arm: Use meta-fsl-arm image_types_fsl
Allow for customizations to happen on the image_types_digi class.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-11-28 16:56:46 +01:00
Alex Gonzalez 10c7f1c840 meta-digi-arm: Add recipes-bsp/u-boot
Also add the image_types_digi class.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-10-26 16:20:53 +02:00