Skip to content

Commit

Permalink
add flash procedure for ventura
Browse files Browse the repository at this point in the history
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
  • Loading branch information
doranand authored and facebook-github-bot committed Jan 27, 2025
1 parent 6debdf4 commit 4516977
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tools/flashy/flash_procedure/flash_ventura.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 4516977

Please sign in to comment.