Skip to content

[device/Arista] Improvements to the boot of Arista devices.#2898

Merged
lguohan merged 10 commits intosonic-net:masterfrom
Staphylo:upstream
May 15, 2019
Merged

[device/Arista] Improvements to the boot of Arista devices.#2898
lguohan merged 10 commits intosonic-net:masterfrom
Staphylo:upstream

Conversation

@Staphylo
Copy link
Collaborator

@Staphylo Staphylo commented May 14, 2019

  • Improve the verbose boot for Arista devices
  • Fix rare bug when generating the cmdline
  • Improve image installation process by copying it in a tmpfs before installation
    It reduce peak usage for devices with small flashes like the 7050QX-32
  • Refactor all the platform_reboot scripts to use a common implementation
  • Install python-smbus in pmon

shawnli-van and others added 9 commits May 14, 2019 11:35
Sometimes boot0 prints error
"mv: can't preserve ownership of '/mnt/flash/image-arsonic.xxxx/kernel-cmdline': Operation not permitted"
Some older systems only have 2GB of flash available. Installing a second
image on these can prove to be challenging.
The new installation process moves the installer swi to memory in order
to avoid free up space from the flash before uncompressing it there.
It removes all the flash space usage spike and also improves the IO
since the installation is no more reading and writting to the flash at
the same time.
Replace platform_reboot by a link to new common for devices already
using a similar script.
@Staphylo
Copy link
Collaborator Author

broadcom build failed with

E: You don't have enough free space in /var/cache/apt/archives/.
The command '/bin/sh -c apt-get install -f -y gdb gdbserver vim openssh-client sshpass strace' returned a non-zero code: 100

vsimage build failed with

Cloning into '/tmp/go/src/golang.org/x/text'...
fatal: remote error: PERMISSION_DENIED The caller does not have permission

What's the policy here since I don't have access to the retrigger button? Should I force push to restart a build?

Some platform plugin need the python smbus library to perform some actions.
This installs the dependency.
@lguohan lguohan merged commit 77cde50 into sonic-net:master May 15, 2019
MichelMoriniaux pushed a commit to criteo-forks/sonic-buildimage that referenced this pull request May 28, 2019
…t#2898)

* Fix showing systemd shutdown sequence when verbose is set

* Fix creation of kernel-cmdline file

Sometimes boot0 prints error
"mv: can't preserve ownership of '/mnt/flash/image-arsonic.xxxx/kernel-cmdline': Operation not permitted"

* Improve flash space usage during installation

Some older systems only have 2GB of flash available. Installing a second
image on these can prove to be challenging.
The new installation process moves the installer swi to memory in order
to avoid free up space from the flash before uncompressing it there.
It removes all the flash space usage spike and also improves the IO
since the installation is no more reading and writting to the flash at
the same time.

* Add support of 7060CX-32S-SSD

* 7260CX3: use inventory powerCycle procedures

* 7050QX-32S: use inventory powerCycle procedures

* 7050QX-32: use inventory powerCycle procedures

* platform: arista: add common platform_reboot

Replace platform_reboot by a link to new common for devices already
using a similar script.

* 7060CX-32S: use inventory powerCycle procedures

* Install python smbus in pmon

Some platform plugin need the python smbus library to perform some actions.
This installs the dependency.
@Staphylo Staphylo deleted the upstream branch December 6, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants