Skip to content

Commit

Permalink
remove the cut when printing bios
Browse files Browse the repository at this point in the history
Summary:
AnR is pulling version for bios using standard motherboard component
which source from dmi info. therefore, the version from fw_util didn't match
with it.

Reviewed By: tao-ren, alandau

Differential Revision: D61548213

fbshipit-source-id: 45ee48a2547d58910fca2f43d5fb320b87bc6818
  • Loading branch information
Joan Olguy Canéus authored and facebook-github-bot committed Aug 20, 2024
1 parent 9e272a5 commit 5cd412b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fboss/platform/configs/morgan800cc/fw_util.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"fwConfigs": {
"bios": {
"preUpgradeCmd": "printf '03000000:03FFFFFF normal\\n' > /home/bios_spi_layout; flashrom -p internal 2>&1 > /home/bios-flashrom-output.txt; grep \"Found Programmer flash chip\" /home/bios-flashrom-output.txt | grep -P '\"[^\"]+\"' | cut -d '\"' -f 2 > /home/bios-chip.txt || echo '****** error finding chip ****** ...'\n",
"getVersionCmd": "cat /sys/devices/virtual/dmi/id/bios_version | cut -d '.' -f 1-2\n",
"getVersionCmd": "cat /sys/devices/virtual/dmi/id/bios_version\n",
"upgradeCmd": "chip=$(head -n 1 /home/bios-chip.txt); bios_filename=$(head -n 1 /home/bios_filename.txt); flashrom -p internal -c \"$chip\" -l /home/bios_spi_layout -i normal --noverify-all -w $bios_filename\n",
"postUpgradeCmd": "chip=$(head -n 1 /home/bios-chip.txt); bios_filename=$(head -n 1 /home/bios_filename.txt); flashrom -p internal -c \"$chip\" -l /home/bios_spi_layout -i normal -v $bios_filename; rm /home/bios-chip.txt; rm /home/bios_spi_layout; rm /home/bios-flashrom-output.txt\n",
"verifyFwCmd": "chip=$(head -n 1 /home/bios-chip.txt); bios_filename=$(head -n 1 /home/bios_filename.txt); flashrom -p internal -c \"$chip\" -l /home/bios_spi_layout -i normal -v $bios_filename\n",
Expand Down

0 comments on commit 5cd412b

Please sign in to comment.