Skip to content

Releases: facebook/openbmc

flashy-5fe6ada

11 Aug 23:24
Compare
Choose a tag to compare
grandteton: Add flashy support

Summary:
As title, add capability in flashy to support GT.
TBD, once we are in DVT, we need to convert this
to flash.FlashCpVboot.

Test Plan: Build ephemeral fbpkg and test out oobgrader. Ensure it upgrades flash1.

Reviewed By: kawmarco

fbshipit-source-id: ba1c4404eb5b34cdfba3b5647ef1ec4d104e6380

flashy-95a150a

06 Jul 18:27
Compare
Choose a tag to compare
detect missing/broken flash chips on non-vboot

Summary:
If the U-Boot environment (env MTD partition) is inaccessible and flash0 is
missing too, it's a good indication that something serious is amiss with the
SPI chips.  Return a  broken flash chip error code in this case, instead of
an unsafe to reboot error.

(For example an A-SPEED/Linux driver bug may hide the env partition on the
primary chip invisible if the secondary chip is inaccessible.)

Test Plan:
Build & unit test:

```
0 ~/local/openbmc/tools/flashy $ ./build.sh && ./build_dev.sh && go test ./...
ok      github.com/facebook/openbmc/tools/flashy        (cached)
ok      github.com/facebook/openbmc/tools/flashy/checks_and_remediations/common (cached)
ok      github.com/facebook/openbmc/tools/flashy/checks_and_remediations/galaxy100      (cached)
ok      github.com/facebook/openbmc/tools/flashy/checks_and_remediations/wedge100       (cached)
ok      github.com/facebook/openbmc/tools/flashy/checks_and_remediations/yamp   (cached)
?       github.com/facebook/openbmc/tools/flashy/flash_procedure        [no test files]
ok      github.com/facebook/openbmc/tools/flashy/install        (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/fileutils  (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/flash      (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/flash/flashcp      (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils   (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/flash/flashutils/devices   (cached)
?       github.com/facebook/openbmc/tools/flashy/lib/logger     [no test files]
ok      github.com/facebook/openbmc/tools/flashy/lib/step       (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/utils      (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/validate   (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/validate/image     (cached)
ok      github.com/facebook/openbmc/tools/flashy/lib/validate/partition (cached)
?       github.com/facebook/openbmc/tools/flashy/tests  [no test files]
?       github.com/facebook/openbmc/tools/flashy/utilities      [no test files]
0 ~/local/openbmc/tools/flashy $ echo $?
0
```

Reviewed By: kawmarco

fbshipit-source-id: 355a7d01ce55f4994ca76693b360592206651b6a

flashy-5aec440

05 Jul 16:25
Compare
Choose a tag to compare
Support running run_flashy_remote.sh in release build

Summary:
When we release a prebuilt flashy to OSS, we need to point to the right flashy binary, since we are no longer building flashy from the project root.

Add a new flag `path-to-flashy` that allows pointing to the release path of flashy.

In the github release, make sure we have the right folder structure

```
. flashy
|---scripts
     |--- run_flashy.sh
     |--- run_flashy_remote.sh
```

Test Plan:
# Running in release folder, path to flashy provided

```
release/scripts $ ./run_flashy_remote.sh --device mtd:flash0 --host fboss9310996-oob.snc1 --dry-run --imagepath ../flash-wedge40 --path-to-flashy ../flashy
Running in dry-run mode
Running a remote upgrade on 'fboss9310996-oob.snc1' with image '/data/users/linhaolee/openbmc/tools/flashy/release/flash-wedge40'
Continue (y/n)?y
path-to-flashy provided: /data/users/linhaolee/openbmc/tools/flashy/release/flashy
Making installation directories on OpenBMC...
Copying flashy...
Copying image...
Copying upgrade script...
Finished dry run
```

# Running in scripts folder, path to flashy not provided
```
openbmc/tools/flashy/scripts $ ./run_flashy_remote.sh --device mtd:flash0 --host fboss9310996-oob.snc1 --dry-run --imagepath ../release/flash-wedge40
Running in dry-run mode
Running a remote upgrade on 'fboss9310996-oob.snc1' with image '/data/users/linhaolee/openbmc/tools/flashy/release/flash-wedge40'
Continue (y/n)?y
path-to-flashy not provided, building flashy...
Making installation directories on OpenBMC...
Copying flashy...
Copying image...
Copying upgrade script...
Finished dry run
```

Reviewed By: deathowl

fbshipit-source-id: 27bcbaf8606864c2b768455ff2a9ee15e2dbfaa3

flashy-a74952f

30 Jun 17:23
Compare
Choose a tag to compare
grandteton: Remove debug print

Summary: As title

Test Plan: Build GT

Reviewed By: williamspatrick

fbshipit-source-id: d574907c045bc81be97fa99addbb2af7cdb7c99c

Facebook OpenBMC e2294ff5d31d

03 May 18:15
Compare
Choose a tag to compare
Add Attest-util to Yv3.5

Summary: Enable attest-util on Yv3.5 for testing purposes.

Test Plan: build with Yv3.5

Reviewed By: williamspatrick

fbshipit-source-id: 93ee53ca95922ff9ef2571c135a229a52c9bd042

Facebook OpenBMC v2021.49.0

09 Dec 20:33
Compare
Choose a tag to compare