meta-ked-imx: Use fitImageA/B instead of active/inactive
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.
parent
061d5db0
No related branches found
No related tags found
Showing
- layers/meta-ked-imx/classes/bootfs.bbclass 2 additions, 2 deletionslayers/meta-ked-imx/classes/bootfs.bbclass
- layers/meta-ked-imx/recipes-bsp/u-boot/u-boot-ktn/ked-mx6ul/sl-mx6ul.env 2 additions, 2 deletions...-imx/recipes-bsp/u-boot/u-boot-ktn/ked-mx6ul/sl-mx6ul.env
- layers/meta-ked-imx/recipes-bsp/u-boot/u-boot-ktn/ked-mx8mm/sl-mx8mm.env 2 additions, 2 deletions...-imx/recipes-bsp/u-boot/u-boot-ktn/ked-mx8mm/sl-mx8mm.env
- layers/meta-ked-imx/swupdate/recipes-core/images/swupdate/kontron-mx6ul/pre_post_script.sh 0 additions, 6 deletions...pes-core/images/swupdate/kontron-mx6ul/pre_post_script.sh
- layers/meta-ked-imx/swupdate/recipes-core/images/swupdate/kontron-mx6ul/sw-description 2 additions, 2 deletions...recipes-core/images/swupdate/kontron-mx6ul/sw-description
- layers/meta-ked-imx/swupdate/recipes-core/images/swupdate/kontron-mx8mm/pre_post_script.sh 0 additions, 6 deletions...pes-core/images/swupdate/kontron-mx8mm/pre_post_script.sh
- layers/meta-ked-imx/swupdate/recipes-core/images/swupdate/kontron-mx8mm/sw-description 2 additions, 2 deletions...recipes-core/images/swupdate/kontron-mx8mm/sw-description
Please register or sign in to comment