Skip to content

Commit

Permalink
Add flash_procedure for meru
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cjcon90 authored and facebook-github-bot committed Dec 4, 2023
1 parent b3e473f commit 2517b18
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tools/flashy/flash_procedure/flash_meru.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 2517b18

Please sign in to comment.