Commit Graph

1605 Commits

Author SHA1 Message Date
Hector Palacios e380377310 uboot: exit on error on uuu install script
Exit on error to prevent continuation of programming when
there was an issue.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios f46851e245 uboot: ccimx6ul: add ubisysvols support to uuu install script
With U-Boot supporting the creation of mtdparts and UBI volumes depending
on the value of variable 'ubisysvols', adapt the install script to make
use of those to generate a partition table and UBI volumes accordingly.
This can be triggered with new option '-b'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios fcd3791535 ccimx6ul: boot: set 'rootfsvol' variable for dualboot
Set the new variable 'rootfsvol' to rootfs_a or rootfs_b when dualboot is
enabled, to cover the case where the devices uses the 'system' partition
with different UBI volumes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios f00ce5ca9b u-boot-dey: add support for dualboot to boot scripts
The support for dualboot was integrated on meta-digi-dualboot layer, but it
really depends only on environment variable 'dualboot' so we'd better
integrate the support on the scripts in meta-digi, to avoid synchonization
problems between both layers.
This also allows to be able to easily enable dualboot in U-Boot with the
variable, without needing to update the script on the linux partition.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 91bfa01a52 udev: automount UBI volumes named "linux" or "recovery"
Traditionally, platforms based on NAND, used one UBI volume
per MTD partition.
Now it's possible to use only one MTD partition containing many
UBI volumes.

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

https://onedigi.atlassian.net/browse/DEL-7614
2021-09-09 17:38:44 +02:00
Hector Palacios c33fc8a7fe uboot/linux: fix build from internal MTK Digi git server
Enabling DIGI_INTERNAL_GIT defaults to LOG server. The build from local
MTK Digi server was broken.

Fix uboot and linux recipes declaring different repo paths depending on
whether the local remote is LOG or MTK.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 9352fc1395 digi: [cosmetic] remove final slash from Digi remotes and move it to recipes
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-07 11:01:29 +02:00
Gabriel Valcazar 225e6cafb5 mca-tool: update to v1.25
Includes minor improvements

https://onedigi.atlassian.net/browse/CC6UL-1218

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-08-18 14:11:42 +02:00
Mike Engel 54cb00e120 layer: add new EULA license MD5SUM values
This commit adds new EULA MD5SUM values that are
required due to the update of the eIQ support by
NXP.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-08-11 10:39:59 +02:00
Hector Palacios efb615fc7c ccimx8x-sbc-pro: fix typo on DT overlay filename
The LVDS converter model is lt8912.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit a72fd737d1)
2021-07-28 17:19:43 +02:00
Mike Engel 216d06e723 Merge tag 'dey-3.2-r1.2' into dey-3.2/master
Digi Embedded Yocto 3.2-r1.2

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-07-28 17:19:42 +02:00
Gonzalo Ruiz aa92d2d13a meta-digi: update revisions for dey-3.2-r1.2
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-07 12:56:23 +02:00
Gonzalo Ruiz 534df51e1c install_linux_fw_uuu: cc8m: ensure fastboot_buffer value
This command was already present on the script used for CC8X. Add it here
so the scripts are as much alike as possible.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-06 18:17:34 +02:00
Gonzalo Ruiz 7076d9f24e install_linux_fw_uuu: reconfigure fastboot after partitioning
Fastboot is configured on boot with the current MMC configuration.
If we create a GPT partition table, we need to restart fastboot before we
try to program any partition with the 'flash' fastboot command.

Set 'fastboot_dev' to a different device, 'sata' for example an back to 'mmc'
to trigger a fastboot restart after creating the partition table on blank
devices.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-06 18:15:59 +02:00
Hector Bujanda a800fdb555 mca-tool: update to v1.24
Includes:
   - add support for getting properties from the ROM bootloader.
   - flash layout extra check by asking flash size to the MCA bootloader.
   - flash layout extra check by asking flash size to the MCA.

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-07-06 00:03:34 +02:00
Gabriel Valcazar 7d3c5bcccf u-boot-dey: install-uuu: fix bash-ism in condition that checks the variant
The current syntax only works properly when running the script through bash.
Change this so that it works for other shells as well.

While at it, fix a typo in the message that appears when the variant can't be
detected in the 6UL script.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-07-05 14:34:06 +02:00
Gonzalo Ruiz 95c8629cba meta-digi: revert revisions to AUTOREV
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:26 +02:00
Gonzalo Ruiz d98487a309 meta-digi: update revisions for dey-3.2-r1.1
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:09 +02:00
Arturo Buzarra f3791f3bc3 meta-digi: Add Edge TPU Person segmentation example
https://onedigi.atlassian.net/browse/DEL-7603

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-07-01 14:49:54 +02:00
Arturo Buzarra adb00d0f49 meta-digi: Add Edge TPU Keyphrase Detector example
Split each example in a different recipe.

https://onedigi.atlassian.net/browse/DEL-7592

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-29 19:11:52 +02:00
Gabriel Valcazar bf67c2eef4 u-boot-dey: add image decompression logic to UUU installation scripts
We document how to use this script from the Yocto image directory. Now that the
*.ext4 files are compressed by default, the script needs to automatically
decompress said files before starting the update process.

https://onedigi.atlassian.net/browse/DEL-7582

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 15:42:22 +02:00
Gabriel Valcazar d3a6920a07 dey-image-qt: compress .sdcard images by default
These images are comprised of the bootloader, linux and rootfs images. Since
the rootfs images are highly compressable, we can compress the .sdcard file as
well to reduce the space taken up by build artifacts.

https://onedigi.atlassian.net/browse/DEL-7582

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 12:48:26 +02:00
Gabriel Valcazar bbdf745661 dey-image-qt: compress .ext4 images by default
Since these images are highly compressable, this greatly reduces the amount of
space taken up by build artifacts.

Modify the code used to generate the .sdcard and .installer.zip files so that
they contain the decompressed .ext4 image.

https://onedigi.atlassian.net/browse/DEL-7582

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 12:48:26 +02:00
Arturo Buzarra 0c9a497de9 meta-digi: Add Edge TPU simple camera examples
This commit adds the Edge TPU simple camera examples to exercise the Google
Coral devices with Digi Embedded Yocto.

https://onedigi.atlassian.net/browse/DEL-7547

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-28 16:10:18 +02:00
Arturo Buzarra 6316ec9cc5 meta-digi: Add Google Coral support recipes
This commit adds the required libraries and packages to exercise the Google
Coral devices with Digi Embedded Yocto.

https://onedigi.atlassian.net/browse/DEL-7547

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-28 14:52:21 +02:00
Hector Palacios 4838aa4849 u-boot-dey: fix typo on script name of help text
Reported-by: Hector Bujanda <hector.bujanda@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-28 09:50:46 +02:00
Hector Palacios 3096af0069 u-boot-dey: install-uuu: fix when U-Boot cannot be determined
The install script of cc8x had errors (using double '==' instead
of single on comparisions).
Besides fixing this typo, this commit changes the logic to:
- default to 2GB U-Boot for variants other than the ones in the
  list.
- consider variant code 0x00 (not programmed HWID) as a failure.
  thus forcing the user to specify the file on the command line.

This second action is done also on the cc6ul script.

Reported-by: Hector Bujanda <hector.bujanda@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-25 13:24:45 +02:00
Francisco Gil Martinez 09f5454c49 u-boot-dey: fix install script for cc8x
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2021-06-25 07:50:55 +02:00
Gonzalo Ruiz b4fc41ced6 firmware_qualcomm: ccimx6ul: add blocking test fix to BDF
Update US Board Data File to include the changes required to pass the
EN 300 328 V2.2.2 blocking test.

The new BDF is:

- bdwlan30_US.bin (24140b5c28256cadfd95bc28fc574733)

https://onedigi.atlassian.net/browse/DEL-7576

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-06-15 17:52:34 +02:00
Hector Palacios 6b17713b10 u-boot: ccimx6sbc: fix script test of temp variable
install_abort is a temp variable so 'test -n' doesn't work on it.
This was fixed in all scripts except the USB script of ccimx6sbc.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-15 11:53:03 +02:00
Hector Palacios ec0341358a u-boot-dey: fix closing quotes on U-Boot install scripts
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-15 11:24:25 +02:00
Hector Bujanda da766b29d5 mca: added GPIO-refreshed watchdog overlays for ccimx8 platforms
https://onedigi.atlassian.net/browse/DEL-7494

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-06-08 00:24:42 +02:00
Hector Palacios f2286f3d26 meta-digi: branch to dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-07 12:56:58 +02:00
Hector Palacios a61873f7f1 u-boot-dey: improvements to microSD and USB install scripts
- Check the existence of files before the 10 second wait.
- Print the list of filenames to program to each partition.
- Print the file that's being updated to each partition.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios 9f3ab7c9d9 u-boot-dey: group identical files per SOM or SOM family
With the generalization done in previous commits, we have now several files
that are identical and can be merged into a common SOM or SOM family
folder.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios 96bc57c7f0 u-boot-dey: use global variables to generalize install scripts
Create global variables:
  DEFAULT_IMAGE_NAME
  GRAPHICAL_IMAGES

to have them substituted on the U-Boot install scripts for better
generalization.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios c2c3cfb7cd u-boot-dey: use new variable 'image-name' to compose filenames in scripts
U-Boot install scripts (from uSD and USB) were hard-coded to dey-image-qt.
Allow to install other image files by setting a new variable 'image-name'
which defaults to 'dey-image-qt' if not defined, except for the CC6UL
SBC Express, that defaults to 'core-image-base'.

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

https://jira.digi.com/browse/DEL-7385
https://jira.digi.com/browse/DEL-7333
2021-06-02 11:01:37 +02:00
Hector Palacios 71e96e84c4 u-boot-dey: ccimx8m: remove soc_type generation on boot script
On these boot scripts, this variable is not used, so we can remove it.
Besides, it's generated by U-Boot code.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios a7d0ba8b38 u-boot-dey: remove hard-coded platform name from scripts
Use ##MACHINE## placeholder to have it later substituted by the recipe
using Yocto ${MACHINE} variable.
This will help later reducing the number of files to have one per SOM
(or even family) instead of one per platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Gabriel Valcazar 05a1dfb84e digi-u-boot: use default name for initial env file
Otherwise, the name of the file will be "u-boot-dey-initial-env", causing
errors when reading the default environment from userspace, since libubootenv
expects "u-boot-initial-env" instead.

https://onedigi.atlassian.net/browse/DEL-7566

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-31 16:16:59 +02:00
Mike Engel 3df077d0ff firmware-imx: add sdma-firmware.service to the rootfs
This commit adds the sdma-firmware.service to the rootfs
to load the SDMA firmware during boot, that is necessary
for some drivers to work correctly.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-05-28 11:12:40 +02:00
Hector Palacios c89d46600a u-boot-dey: append the graphic backend only to graphical images
Non-graphical images (core-image-base, dey-image-aws) don't contain the
graphic-backend on their filenames.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-05-25 17:15:45 +02:00
Hector Palacios aa535a505b u-boot-dey: improve workflow and messages of uuu install script
- Determine first the filenames and abort if any does not exist.
- Print a warning message about the erasing of the media with a list
  of partitions and files to use for the update
- Sync the different scripts so they look more similar

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

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios 8f4d707fb6 u-boot-dey: function for updating eMMC partitions with a message
Similar to how it's done on the ccimx6ul, create a function for updating
a partition with a file, that also prints a message.
Rename the function to be the same in all scripts.

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

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios 51ce92b982 u-boot-dey: [cosmetic] print countdown on wait message, and OK at the end
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios ce417f5b9e u-boot-dey: abort update from uuu if any of files to update does not exist
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios ed2d2e54c6 u-boot-dey: add uuu install script for ccimx8x-sbc-express
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-05-25 17:15:45 +02:00
Hector Palacios f1f3af5e66 u-boot-dey: improve uuu install script with options
Previously, this script only allowed the U-Boot filename as parameter.
This commit makes use of getopts() to pass the following options to the
script:
  -h, for help
  -i, to pass the dey image name that prefixes the firmware filenames
  -n, to skip the 10 seconds delay that allow you to cancel the process
  -u, to pass the U-Boot filename

The default image name (if none passed) keeps being 'dey-image-qt' but the
new option allows reusing this script to install dey-image-webkit or
dey-image-aws images.

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

https://jira.digi.com/browse/DEL-7385
2021-05-25 17:15:45 +02:00
Gonzalo Ruiz 0d1984224b u-boot-dey: add 6UL variants 7 to 10 to bootscripts
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 65311d69852dbd57c534f27c1742bb2b02a41916)
2021-05-25 15:16:45 +02:00
Francisco Gil Martinez 1436126eae udev: missing rules since 5.4.70 migration
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2021-05-18 13:55:22 +02:00