Skip to content

Commit

Permalink
ELBERT: Fix PIM8DDM spi_pim_ver (#93)
Browse files Browse the repository at this point in the history
Summary:
ELBERT: Fix PIM8DDM spi_pim_ver

Fix partition label for pim8DD header

Testing:
Can read the header for the pim8dd image

Pull Request resolved: facebookexternal/openbmc.arista#93

Reviewed By: tao-ren

fbshipit-source-id: 32d6d47447
  • Loading branch information
joancaneus authored and facebook-github-bot committed Sep 29, 2020
1 parent b314224 commit a6cd393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ read_spi_partition_image() {
PARTITION="pim8ddm"
SKIP_MB=2
;;
HEADER_PIM8)
HEADER_PIM8DDM)
PARTITION="header_pim8ddm"
SKIP_MB=2
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ cleanup() {
echo "------PIM-FLASH-CONFIG------"
partition_list="header_pim_base header_pim16q header_pim8ddm"
for partition in ${partition_list}; do
/usr/local/bin/fpga_util.sh pim read "$PIM_REVISION_FILE" \
"$partition" > /dev/null 2>&1
/usr/local/bin/fpga_util.sh "$partition" read \
"$PIM_REVISION_FILE" > /dev/null 2>&1
ver="$(hexdump -n2 $PIM_REVISION_FILE | cut -c 9-)"
val_major="0x${ver:2:2}"
val_minor="0x${ver:0:2}"
Expand Down

0 comments on commit a6cd393

Please sign in to comment.