Skip to content

manual/generic/linux/ota-rollback

Description

Test OTA rollback

Maintainer

  • brendan.wood@foundires.io

OS

  • ubuntu
  • openembedded

Scope

  • functional

Devices

  • am64x

Steps to reproduce

  • Flash old image to device
  • Ensure device is NOT registered to a factory before test
  • mkdir -p /etc/sota/conf.d
  • create z-99-aklite-callback.toml file file contents = [bootloader] reboot_command = "/bin/true"
  • Check device target number "cat /etc/os-release"
  • Register device to factory "sudo lmp-device-register -n "
  • Wait for update download
  • run "cat /boot/loader/uEnv.txt" for kernel image path overwrite kernel image file
  • cat "bad" > path/to/file
  • run "sudo reboot"
  • Wait for device to boot
  • Check device build number cat /etc/os-release