sdk-persistent-disk manual

critical

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
compatibility

Description

Tests that persistent disk can be used when upgrading the SDK.


Pre Conditions

  1. Download the virtual machine image for the latest SDK release from:
  2. https://images.apertis.org/

  3. Make a note of release version e.g v2020dev0
  4. Create a virtual machine, and name it old-sdk or old-basesdk
  5. Create a Full Clone of the virtual machine, and name the clone new-sdk or new-basesdk:
  6. https://www.virtualbox.org/manual/ch01.html#clone

  7. Instructions on how to use the SDK persistent workspace on VirtualBox:
  8. https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace


Execution Steps

  1. The following steps are for the SDK virtual machine named with old:
  2. Power on the virtual machine, and run on a terminal:
  3. $ ade sysroot install --release <release version>

  4. Power off the virtual machine
  5. On VirtualBox add the persistent disk to the SDK virtual machine:
  6. https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk

  7. Power on the virtual machine
  8. Use psdk to initialize the empty disk and to configure the SDK to use it:
  9. https://developer.apertis.org/latest/sdk-usage.html#preparing-the-persistent-disk-on-the-old-sdk

  10. The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use
  11. Run on a terminal:
  12. $ ade sysroot update --release <release version>

  13. Power off the virtual machine
  14. The following steps are for the SDK virtual machine named with new:
  15. On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:
  16. https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-new-sdk

  17. Power on the virtual machine
  18. Use psdk to configure the SDK to use the persistent disk:
  19. https://developer.apertis.org/latest/sdk-usage.html#using-the-persistent-disk-on-the-new-sdk

  20. The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use
  21. Run on a terminal:
  22. $ ade sysroot update --release <release version>

  23. Power off the virtual machine

Expected

When attempting to confirm if the SDK is using the persistent disk psdk should indicate that 'This SDK is currently using the persistent disk'

'ade sysroot update' should indicate that the installed version is already up-to-date.