From 2517b18b3c9c6ad10861aa2026cdfb46526cce92 Mon Sep 17 00:00:00 2001 From: Ciaran Concannon Date: Mon, 4 Dec 2023 09:14:06 -0800 Subject: [PATCH] Add flash_procedure for meru Summary: As title, oobgrader is failing with: ``` 2023-12-04 07:48:34.696630 - Running flash procedure step: /run/flashy/flash_procedure/flash_meru --imagepath /run/upgrade/image --device mtd:flash0 2023-12-04 07:48:36.017120 - flash_procedure exited with non-zero exit code {rs.exit_status}. Run command result: {rs} 2023-12-04 07:48:36.017241 - Command '/run/flashy/flash_procedure/flash_meru --imagepath /run/upgrade/image --device mtd:flash0' exited with non-zero exit code: CommandResult(exit_status=127, stderr='bash: line 1: /run/flashy/flash_procedure/flash_meru: No such file or directoryn', stdout='', exit_signal=None) ``` Test Plan: test_placeholder Reviewed By: doranand Differential Revision: D51812322 fbshipit-source-id: cdb249c721aed89206956b3d7d0e0e007d72998b --- tools/flashy/flash_procedure/flash_meru.go | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/flashy/flash_procedure/flash_meru.go diff --git a/tools/flashy/flash_procedure/flash_meru.go b/tools/flashy/flash_procedure/flash_meru.go new file mode 100644 index 000000000000..67cafa1ed410 --- /dev/null +++ b/tools/flashy/flash_procedure/flash_meru.go @@ -0,0 +1,30 @@ + +/** + * 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) +}