Skip to content

Commit

Permalink
[Arista] Fix flash size computation for Lodoga (#8622)
Browse files Browse the repository at this point in the history
The Lodoga platform also matched crow which was hardcoding the flash
size to 3700. This change enables autodetect on Clearlake which in turns
allows autodetect for Lodoga.

The threshold was bumped from 3700 to 4000 because size computation can
differ slightly and report slightly above 3700.
  • Loading branch information
Staphylo authored and judyjoseph committed Sep 2, 2021
1 parent 6b7fdd1 commit ae15bb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions files/Aboot/boot0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ write_platform_specific_cmdline() {
if [ "$platform" = "crow" ]; then
# Assuming sid=Clearlake
aboot_machine=arista_7050_qx32s
flash_size=3700
cmdline_add modprobe.blacklist=radeon,sp5100_tco
fi
if [ "$sid" = "Upperlake" ] || [ "$sid" = "UpperlakeES" ]; then
Expand Down Expand Up @@ -591,7 +590,7 @@ write_platform_specific_cmdline() {

if [ $flash_size -ge 28000 ]; then
varlog_size=4096
elif [ $flash_size -gt 3700 ]; then
elif [ $flash_size -gt 4000 ]; then
varlog_size=400
else
varlog_size=256
Expand Down

0 comments on commit ae15bb9

Please sign in to comment.