Skip to content
Snippets Groups Projects
  1. Sep 11, 2023
  2. Sep 07, 2023
  3. Sep 06, 2023
  4. Aug 30, 2023
  5. Aug 23, 2023
  6. Aug 16, 2023
  7. Aug 15, 2023
  8. Jul 27, 2023
  9. Jul 25, 2023
    • Michael Walle's avatar
      meta-ked-imx: Use fitImageA/B instead of active/inactive · e942978e
      Michael Walle authored and Frieder Schrempf's avatar Frieder Schrempf committed
      This is supposed to fix a problem where you can end up with two
      non-working images.
      
      This can be triggered by the following actions:
      
        * Starting with rootfs A and fitImage_active
        * Doing an update via swupdate using a corrupted kernel image
        * fitImage_active gets renamed to fitImage_inactive.
        * The corrupted kernel now in fitImage_active fails to boot
        * A fallback to rootfs A occurs: rootfs A is started together
          with the working fitImage_inactive
        * On the next update via swupdate the corrupted fitImage_active is
          renamed to fitImage_inactive ending up with two corrupted kernel
          images
        * The now corrupted fitImage_inactive is copied to fitImage_active
          and the boot is bricked
      
      To remedy this flaw, simply swap the fitImage in sync with the rootfs.
      Instead of the active/inactive image we now use A/B for the kernel image
      and the currently used image is selected by the sys_active file.
      e942978e
Loading