labgrid: sage: Add BeagleBone Black
PATCH 1/1 labgrid: sage: Add BeagleBone Black
This adds support for a BeagleBone Black board, which is supported under the am335x_evm configuration.
Signed-off-by Tom Rini <[email protected]>
---
For the moment, this uses snmpset to manage power on the board. The relevant changes have been submitted upstream, but rather than use a local wheel (which is doable but complicated for all custodian repositories) we go with this option instead for now.
--- bin/sage/conf.am335x_evm | 24 +++++++++ bin/sage/labgrid-sage-env.yaml | 37 +++++++++++++ py/sage/u_boot_boardenv_am335x_evm.py | 76 +++++++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 bin/sage/conf.am335x_evm create mode 100644 py/sage/u_boot_boardenv_am335x_evm.py
bin/sage/conf.am335x_evm new file +24 -0
@@ -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.ti-omap_mount
bin/sage/labgrid-sage-env.yaml +37 -0
@@ -100,6 +100,32 @@ targets: autoboot: 'Hit any key to stop autoboot' strategy: cls: UBootStrategy + bbb-1: + resources: + RemotePlace: + name: bbb-1 + drivers: + power: + cls: ExternalPowerDriver + cmd_on: 'snmpset -v 2c -c private 192.168.1.254 .1.3.6.1.4.1.1718.3.2.3.1.11.1.1.9 i 1' + cmd_off: 'snmpset -v 2c -c private 192.168.1.254 .1.3.6.1.4.1.1718.3.2.3.1.11.1.1.9 i 2' + mux: + cls: USBSDWireDriver + storage: + cls: USBStorageDriver + serial: + cls: SerialDriver + shell: + cls: ShellDriver + prompt: 'root@.*:~# ' + login_prompt: 'login: ' + username: 'root' + uboot: + cls: UBootDriver + prompt: 'U-Boot> ' + autoboot: 'Hit any key to stop autoboot' + strategy: + cls: UBootStrategy sage-exporter-rpi3-1: resources: RemotePlace:
@@ -136,3 +162,14 @@ targets: cls: NetworkPowerDriver ssh: cls: SSHDriver + sage-exporter-bbb-1: + resources: + RemotePlace: + name: sage-exporter-bbb-1 + drivers: + power: + cls: ExternalPowerDriver + cmd_on: 'snmpset -v 2c -c private 192.168.1.254 .1.3.6.1.4.1.1718.3.2.3.1.11.1.1.13 i 1' + cmd_off: 'snmpset -v 2c -c private 192.168.1.254 .1.3.6.1.4.1.1718.3.2.3.1.11.1.1.13 i 2' + ssh: + cls: SSHDriver
py/sage/u_boot_boardenv_am335x_evm.py new file +76 -0
76 lines not on this page · raw message
Signature · 1 line
2.39.2
Quoted 4 lines · Tom Rini
This adds support for a BeagleBone Black board, which is supported under the
am335x_evmconfiguration.
Applied to u-boot/u-boot-test-hooks.git/master, thanks!
[1/1] labgrid: sage: Add BeagleBone Black
commit: 63d55a02127bb2886597fa28312b1b29b1dba61e
Signature · 1 line
Tom