Skip to content

Commit

Permalink
[Aboot] Declare flash_size for all platform (#1171)
Browse files Browse the repository at this point in the history
The flash_size parameter can then be used to compute the varlog_size
  • Loading branch information
Staphylo authored and lguohan committed Nov 22, 2017
1 parent c5eba7d commit 2176400
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions files/Aboot/boot0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,26 @@ platform_specific() {
# set varlog size to 100MB
local varlog_size=100

# This is temporary as the platform= and sid= parameters don't provide enough
# information to identify the SKU
# An initramfs hook or a later processing done by the initscripts will be
# required to read the system eeprom
local flash_size=$(($(df | grep flash | tr -s ' ' | cut -f2 -d' ') / 1000))

if [ "$platform" = "raven" ]; then
aboot_machine=arista_7050_qx32
flash_size=2000
echo "modprobe.blacklist=radeon" >>/tmp/append
fi
if [ "$platform" = "crow" ]; then
aboot_machine=arista_7050_qx32s
flash_size=3700
echo "modprobe.blacklist=radeon" >>/tmp/append
fi
if [ "$sid" = "Upperlake" ] || [ "$sid" = "UpperlakeES" ]; then
aboot_machine=arista_7060_cx32s
flash_size=3700
echo "amd_iommu=off" >> /tmp/append
fi
if [ "$sid" = "Gardena" ] || [ "$sid" = "GardenaSsd" ]; then
aboot_machine=arista_7260cx3_64
flash_size=28000
fi
if [ "$platform" = "rook" ]; then
varlog_size=4096
Expand Down

0 comments on commit 2176400

Please sign in to comment.