Skip to contentSkip to conversation

labgrid: sage: Add new lab

PATCH In review Tom Rini 1 participant 2 messages Nov 18, 2025 – Nov 28, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 labgrid: sage: Add new lab

This adds support for the "sage" lab, that is utilizing stock labgrid to control a Raspberry Pi 3, a Raspberry Pi 4, a Pine64 Plus and a SolidRun Hummingboard 2. The board environment files enable additional tests by pointing to content which is any of:
- Copy/pasted from the documentation for a test.
- Obvious in its source (e.g. Linux Kernel or GRUB).
- Random content (1MiBtest.bin was created with dd from /dev/urandom).

The file bin/sage/labgrid-sage-env.yaml is the file normally used either in the LG_ENV environment variable or passed to labgrid-client as the environment to use. This shows that each of the above targets is attached to its own labgrid exporter node and so all parts of the system can be power cycled to help clear transient USB errors.

---
Changes in v2:
- Add pine64-1 and update the commit message.
- Some updates to better match upstream best practices.

---
 bin/sage/conf.mx6cuboxi_na                |  24 ++++
 bin/sage/conf.pine64_plus_na              |  24 ++++
 bin/sage/conf.rpi_3_32b_na                |   1 +
 bin/sage/conf.rpi_3_na                    |   1 +
 bin/sage/conf.rpi_4_32b_na                |   1 +
 bin/sage/conf.rpi_4_na                    |   1 +
 bin/sage/conf.rpi_arm64_na                |  24 ++++
 bin/sage/labgrid-sage-env.yaml            | 138 ++++++++++++++++++++++
 py/sage/u_boot_boardenv_mx6cuboxi_na.py   |  78 ++++++++++++
 py/sage/u_boot_boardenv_pine64_plus_na.py |  76 ++++++++++++
 py/sage/u_boot_boardenv_rpi_3.py          |   1 +
 py/sage/u_boot_boardenv_rpi_3_32b.py      |  67 +++++++++++
 py/sage/u_boot_boardenv_rpi_4.py          |   1 +
 py/sage/u_boot_boardenv_rpi_4_32b.py      |   1 +
 py/sage/u_boot_boardenv_rpi_arm64.py      |  79 +++++++++++++
 15 files changed, 517 insertions(+)
 create mode 100644 bin/sage/conf.mx6cuboxi_na
 create mode 100644 bin/sage/conf.pine64_plus_na
 create mode 120000 bin/sage/conf.rpi_3_32b_na
 create mode 120000 bin/sage/conf.rpi_3_na
 create mode 120000 bin/sage/conf.rpi_4_32b_na
 create mode 120000 bin/sage/conf.rpi_4_na
 create mode 100644 bin/sage/conf.rpi_arm64_na
 create mode 100644 bin/sage/labgrid-sage-env.yaml
 create mode 100644 py/sage/u_boot_boardenv_mx6cuboxi_na.py
 create mode 100644 py/sage/u_boot_boardenv_pine64_plus_na.py
 create mode 120000 py/sage/u_boot_boardenv_rpi_3.py
 create mode 100644 py/sage/u_boot_boardenv_rpi_3_32b.py
 create mode 120000 py/sage/u_boot_boardenv_rpi_4.py
 create mode 120000 py/sage/u_boot_boardenv_rpi_4_32b.py
 create mode 100644 py/sage/u_boot_boardenv_rpi_arm64.py
bin/sage/conf.mx6cuboxi_na new file +24 -0
new file mode 100644
index 0000000..31989c2
@@ -0,0 +1,24 @@
+# Copyright (c) 2025 Konsulko Group. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+console_impl=labgrid-trini
+reset_impl=labgrid-trini
+flash_impl=labgrid-trini.sd-mux
+flash_writer=labgrid-trini.imx
bin/sage/conf.pine64_plus_na new file +24 -0
new file mode 100644
index 0000000..3dbe274
@@ -0,0 +1,24 @@
+# Copyright (c) 2025 Konsulko Group. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+console_impl=labgrid-trini
+reset_impl=labgrid-trini
+flash_impl=labgrid-trini.sd-mux
+flash_writer=labgrid-trini.sunxi
bin/sage/conf.rpi_3_32b_na new file +1 -0
new file mode 120000
index 0000000..d33d959
@@ -0,0 +1 @@
+conf.rpi_arm64_na
\ No newline at end of file
bin/sage/conf.rpi_3_na new file +1 -0
new file mode 120000
index 0000000..d33d959
@@ -0,0 +1 @@
+conf.rpi_arm64_na
\ No newline at end of file
bin/sage/conf.rpi_4_32b_na new file +1 -0
new file mode 120000
index 0000000..d33d959
@@ -0,0 +1 @@
+conf.rpi_arm64_na
\ No newline at end of file
bin/sage/conf.rpi_4_na new file +1 -0
new file mode 120000
index 0000000..d33d959
@@ -0,0 +1 @@
+conf.rpi_arm64_na
\ No newline at end of file
bin/sage/conf.rpi_arm64_na new file +24 -0
new file mode 100644
index 0000000..a22e62f
@@ -0,0 +1,24 @@
+# Copyright (c) 2025 Konsulko Group. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+console_impl=labgrid-trini
+reset_impl=labgrid-trini
+flash_impl=labgrid-trini.sd-mux
+flash_writer=labgrid-trini.rpi
bin/sage/labgrid-sage-env.yaml new file +138 -0

138 lines not on this page · raw message

py/sage/u_boot_boardenv_mx6cuboxi_na.py new file +78 -0

78 lines not on this page · raw message

py/sage/u_boot_boardenv_pine64_plus_na.py new file +76 -0

76 lines not on this page · raw message

py/sage/u_boot_boardenv_rpi_3.py new file +1 -0
new file mode 120000
index 0000000..d6f7a63
@@ -0,0 +1 @@
+u_boot_boardenv_rpi_arm64.py
\ No newline at end of file
py/sage/u_boot_boardenv_rpi_3_32b.py new file +67 -0

67 lines not on this page · raw message

py/sage/u_boot_boardenv_rpi_4.py new file +1 -0
new file mode 120000
index 0000000..d6f7a63
@@ -0,0 +1 @@
+u_boot_boardenv_rpi_arm64.py
\ No newline at end of file
py/sage/u_boot_boardenv_rpi_4_32b.py new file +1 -0
new file mode 120000
index 0000000..583f36e
@@ -0,0 +1 @@
+u_boot_boardenv_rpi_3_32b.py
\ No newline at end of file
py/sage/u_boot_boardenv_rpi_arm64.py new file +79 -0

79 lines not on this page · raw message

Signature · 1 line
2.39.2
author
#1 lore raw
Quoted 9 lines · Tom Rini

This adds support for the "sage" lab, that is utilizing stock labgrid to control a Raspberry Pi 3, a Raspberry Pi 4, a Pine64 Plus and a SolidRun Hummingboard 2. The board environment files enable additional tests by pointing to content which is any of:
- Copy/pasted from the documentation for a test.
- Obvious in its source (e.g. Linux Kernel or GRUB).
- Random content (1MiBtest.bin was created with dd from /dev/urandom).

[...]

Applied to u-boot/u-boot-test-hooks.git/master, thanks!

[1/1] labgrid: sage: Add new lab

      commit: 6c5be1a225361926f04fd630c136eeea8fa1a9a5
Signature · 1 line
Tom