From 451697709a1953acdda945f2ec443f0998b18efd Mon Sep 17 00:00:00 2001 From: Andrew Doran Date: Mon, 27 Jan 2025 03:40:05 -0800 Subject: [PATCH] add flash procedure for ventura Summary: We don't have a good image yet, but need this for manual use to avoid bricks happening with flashcp. XXX As ever, this should be a codegen thing driven off platforms.thrift. Test Plan: ``` 0 ~/local/openbmc/tools/flashy $ ./build.sh && ./build_dev.sh && go test ./... ? github.com/facebook/openbmc/tools/flashy/flash_procedure [no test files] ? github.com/facebook/openbmc/tools/flashy/lib/logger [no test files] ? github.com/facebook/openbmc/tools/flashy/tests [no test files] ? github.com/facebook/openbmc/tools/flashy/utilities [no test files] ok github.com/facebook/openbmc/tools/flashy 2.492s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/bletchley 0.004s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common 0.235s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/wedge100 0.005s ok github.com/facebook/openbmc/tools/flashy/checks_and_remediations/yamp 0.005s ok github.com/facebook/openbmc/tools/flashy/install 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/fileutils 0.009s ok github.com/facebook/openbmc/tools/flashy/lib/flash 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashcp 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils/devices 0.004s ok github.com/facebook/openbmc/tools/flashy/lib/step 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/utils 0.767s ok github.com/facebook/openbmc/tools/flashy/lib/validate 0.006s ok github.com/facebook/openbmc/tools/flashy/lib/validate/image 0.005s ok github.com/facebook/openbmc/tools/flashy/lib/validate/partition 0.015s ``` Reviewed By: cjcon90 Differential Revision: D68629598 Privacy Context Container: L1188897 fbshipit-source-id: b963d0a48795a3ec3c557707f342c976d974cd43 --- tools/flashy/flash_procedure/flash_ventura.go | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tools/flashy/flash_procedure/flash_ventura.go diff --git a/tools/flashy/flash_procedure/flash_ventura.go b/tools/flashy/flash_procedure/flash_ventura.go new file mode 100644 index 000000000000..2d02d19d42d5 --- /dev/null +++ b/tools/flashy/flash_procedure/flash_ventura.go @@ -0,0 +1,29 @@ +/** + * Copyright 2020-present Facebook. All Rights Reserved. + * + * This program file is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program in a file named COPYING; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +package flash_procedure + +import ( + "github.com/facebook/openbmc/tools/flashy/lib/flash" + "github.com/facebook/openbmc/tools/flashy/lib/step" +) + +func init() { + step.RegisterStep(flash.FlashCp) +}