Copy firmware from secondary to primary

  • 0
  • 1
  • Question
  • Updated 2 months ago
  • Answered
What command do we use to copy the firmware from secondary to primary?
Photo of Alok Shukla

Alok Shukla

  • 944 Points 500 badge 2x thumb

Posted 2 months ago

  • 0
  • 1
Photo of Terren Crider

Terren Crider

  • 1,564 Points 1k badge 2x thumb
Firstly, I have no idea what the command would be or if it exists.  Secondly, why would you want to do this?  It doesn't matter what partition it is on.  So long as you boot to which one you want, you're good.
Photo of Robert Cummins

Robert Cummins

  • 582 Points 500 badge 2x thumb
You do not copy firmwares between partitions, you simply boot from a different partition.  
Photo of aloeffle

aloeffle

  • 966 Points 500 badge 2x thumb

Hi all.

I have the same question as Alok.

One example is during the staging process. I want to have the latest version on both partitions.

If there is a command to copy the image from one partition to the other, I only need to transfer the image only once from my TFTP/SCP-Server.

Second example is, if  you have several devices, which have different images in primary and secondary partition and you need to align both partition. With a copy command, this can be done without the need of the image file itself.

What do you think?

regards

Alexander

Photo of Robert Cummins

Robert Cummins

  • 582 Points 500 badge 2x thumb
What benefit do you receive by having the same image in both partitions?  In my opinion, this is a bad idea.   You leave the last-known-good image in one partition and the new image in another.   If you find a compatibility problem in the new firmware you easily roll back to the old, known good image and you are done.   Yes, it is nice to have partitions aligned for managing at scale but that is easily done during a single maintenance window. 
Photo of aloeffle

aloeffle

  • 966 Points 500 badge 2x thumb

Hi Robert. From my experience, after some weeks of testing, the "new image" has become the chosen one for that device. From then, we don't go back to the former last-known-good. Now it would be nice just to copy the image to the other partition.