prplos/.gitlab
Petr Štetiar a937a7f8ae
profiles: thread: add lrzsz for EFR32MG firmware updates
EFR32MG bootloader supports firmware updates via X-MODEM protocol. So
until a special firmware update tool is available, we can use picocom
with lrzsz to perform firmware updates.

Example flashing session on Freedom board:

  $ picocom --baud 115200 /dev/ttyMSM1 --send-cmd "sz --verbose --verbose --xmodem"
   ...snip...

  Gecko Bootloader v2.05.02
  1. upload gbl
  2. run
  3. ebl info
  BL >
  begin upload
  CCC

   ---> [CTRL+a] [CTRL+s] key combination starts sending the file to the bootloader

  *** file: /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl
  $ sz --verbose --verbose --xmodem /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl
  Sending /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl, 860 blocks: Give your local XMODEM receive command now.
  ...snip...
  Bytes Sent: 110208   BPS:11013

References: PCF-1296, PCF-1535
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
2025-07-31 15:24:56 +00:00
..
cdrouter profiles: thread: add new profile with thread dependencies 2025-07-31 15:24:52 +00:00
certs ci: ssh-server: add tests for pubkey auth and session features 2025-07-31 10:35:18 +00:00
docker profiles: thread: add new profile with thread dependencies 2025-07-31 15:24:52 +00:00
mockups ci: sync with current prplos branch state 2025-07-31 10:31:53 +00:00
scripts ci: testbed-device.py: fix VLAN configuration on OSPv2 and OSPv1 after DTS changes 2025-07-31 15:24:13 +00:00
testbed ci: cdrouter: add configuration for prpl Certification Expansion 2025-07-31 15:23:38 +00:00
tests profiles: thread: add lrzsz for EFR32MG firmware updates 2025-07-31 15:24:56 +00:00
build.yml ci: build: allow to bypass package integrity check with skip_integrity_check label 2025-07-31 15:23:08 +00:00
cdrouter.yml pwhm: upstep pwhm version to v7.6.7 2025-07-31 15:23:22 +00:00
coverity.yml ci: coverity: fix build timeout failure by increasing the timeout to 6 hours 2025-07-31 15:23:34 +00:00
docker.yml ci: docker: fix stuck jobs by using different hosted runner 2025-07-31 15:18:58 +00:00
README.md profiles,ci: sunset webui profile 2025-07-31 10:33:15 +00:00
release.yml profiles: thread: add new profile with thread dependencies 2025-07-31 15:24:52 +00:00
sdk.yml ci: fix container paths using designated branch slug 2025-07-31 15:18:41 +00:00
testbed.yml ci: cram: add new LCM tests 2025-07-31 15:23:55 +00:00

Content

This directory contains stuff used on the GitLab CI.

docker

Contains definitions for Docker images.

testbed

Contains definitions for testbed related tests.

scripts

Contains scripts used on GitLab CI.

tests

Contains tests used on GitLab CI.

build.yml

Contains definition of the GitLab CI build test job templates used during build stage. Those templates can then be extended by other GitLab CI jobs in order to keep things DRY.

.build test config

Allows build testing of specific configurations defined in the profiles directory, using scripts/gen_config.py under the hood.

Example usage:

include:
 - local: .gitlab/build.yml

stages:
 - build

build test netgear-rax40 prpl:
  extends: .build test config

Which is going to build test prplOS with netgear-rax40 and prpl profiles.

Description of CI variables:

  • CI_BUILD_CONFIG_EXTRA - list of additional config options which should be enabled(prefixed with +) or disabled (prefixed with -), for example +BUILD_LOG -SDK would result in CONFIG_BUILD_LOG=y and CONFIG_SDK=y config symbols in .config file.

docker.yml

Provides support for building, tagging and pushing the Docker images to image registry.

For example let's build image foo.

Prerequisites:

  • Create directory for new Docker image mkdir -p .gitlab/docker/foo
  • Docker image description $EDITOR .gitlab/docker/foo/Dockefile

Then just put following into .gitlab/docker/foo/gitlab.yml

build Docker image foo:
  extends: .build Docker image

testbed.yml

Provides bits needed for runtime testing on real device using labgrid Python testing framework.

Supported devices:

  • Netgear RAX40

sdk.yml

Provides support for the OpenWrt SDK utilizing the Docker SDK container under the hood.

.build feed with SDK

Allows compile testing of packages using the SDK.

Example usage, build testing of safec3 package from Intel's feed_opensource_apps feed.

include:
  - remote: https://gitlab.com/prpl-foundation/prplOS/prplos/-/raw/prplos/.gitlab/sdk.yml

build:
  extends: .build feed with SDK
  variables:
    CI_SDK_INSTALL_FEEDS: feed_target_mips
    CI_SDK_BUILD_PACKAGES: safec3

Description of CI variables:

  • CI_SDK_INSTALL_FEEDS - list of feeds which should be installed prior to building packages.
  • CI_SDK_BUILD_PACKAGES - list of packages which should be compile tested.
  • CI_SDK_BUILD_PARALLEL - max number of threads to use for make (defaults to nproc if unset).

.generate SDK package build jobs

Generates sdk-package-jobs.yml with separate build jobs for every package so the builds of those packages can run in parallel. It's supposed to be executed by the child pipeline .execute SDK package build jobs.

.execute SDK package build jobs

It's supposed to execute jobs generated in sdk-package-jobs.yml generated by .generate SDK package build jobs job.