From 96f2eaaadb09d66a643c66c5299d7ae786391d5f Mon Sep 17 00:00:00 2001 From: Samuel Angebault Date: Mon, 30 Aug 2021 15:26:56 -0700 Subject: [PATCH] [Arista] Fix flash size computation for Lodoga (#8622) 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. --- files/Aboot/boot0.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/Aboot/boot0.j2 b/files/Aboot/boot0.j2 index 8f0a0bb9a74c..281cfc7fa71f 100644 --- a/files/Aboot/boot0.j2 +++ b/files/Aboot/boot0.j2 @@ -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 @@ -590,7 +589,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