How to degrade my Avnet Azure Starter kit OS version

95504669 546 Reputation points
2023-01-24T10:11:56.97+00:00

Hi. We are working with Avnet Azure sphere starter kit. We have already updated the device OS version to 22.11.
We found a link which says we can degrade the version of the device.
"After a device updates to the 22.09 release, it will no longer be able to run a release of the Azure Sphere OS earlier than 22.07".
Does it mean we can degrade the version upto 22.07 for all devices?
[https://techcommunity.microsoft.com/t5/internet-of-things-blog/general-availability-azure-sphere-version-22-09-new-and-updated/ba-p/3638460
Please let us know how to put the device to previous version. Thank you.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
167 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
222 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2023-03-10T06:23:32.3633333+00:00

    Hi,

    Downgrading the OS version on your Avnet Azure Sphere Starter Kit requires several steps. Here are the general steps to follow:

    1. Identify the desired OS version to downgrade to. You can find a list of available OS versions on the Azure Sphere OS release notes page.
    2. Download the desired OS version image package from the Azure Sphere OS downloads page. Make sure to select the correct package for your device model and OS version.
    3. Connect your Avnet Azure Sphere Starter Kit to your computer via USB.
    4. Put the device in recovery mode by holding down the "SW2" button while pressing and releasing the "Reset" button. Keep holding down SW2 until the device enters recovery mode.
    5. Open a command prompt or terminal window and navigate to the folder containing the downloaded OS image package.
    6. Use the azsphere CLI tool to flash the device with the desired OS image. The command should look something like this:

    azsphere device recover --image <path-to-os-image> --newimage

    • Replace <path-to-os-image> with the path to the downloaded OS image package.
    • Wait for the device to complete the flashing process, which can take several minutes. The device will automatically reboot when the process is complete.
    • Once the device has rebooted, you may need to perform additional setup steps depending on the changes in the new OS version. For example, you may need to re-provision the device, update application code to be compatible with the new OS version, etc.

    Note that downgrading the OS version on your Avnet Azure Sphere Starter Kit may result in loss of data or functionality, and could potentially cause security issues if there are known vulnerabilities in the older OS version. It is generally recommended to keep your devices up-to-date with the latest available OS version.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 15,801 Reputation points Microsoft Employee
    2023-01-30T20:28:46.7+00:00

    Hello, greetings! I have an update on this issue from the product team. Please find the following feedback.

    • If the device is connected to a PC over USB, it is possible to use the azsphere device recover command with parameters to install a specific version of the OS.
    • Please note that Azure Sphere devices attached to the Internet all receive the latest version of the OS. So, if the device is internet attached, even after downgrading the OS via USB, the device will just be updated again.

    May we also know the reason why you are trying to downgrade the OS version on the device -- all OS updates are compatible with older applications. Are you trying to diagnose an issue that only occurs with a specific older OS version. Is there a specific version of the OS that you are trying to downgrade to?

    I highly appreciate it if you can share the above requested information to provide more feedback on this.


    • Kindly mark the answer as useful if the response is helpful so that it would benefit other community members facing the same issue. 
    • Original posters help the community find answers faster by identifying the correct answer. Here is how 
    • I highly appreciate your contribution to the community. 

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.