/* SWUpdate handlers configuration */ /* Enable raw partition handler */ raw: { /* Partitions that can be updated */ partitions = ( { /* Inactive partition will be updated */ type = "ubipartition"; name = "inactive"; /* This is a key-value substitution */ /* Will be replaced with the actual inactive partition */ device = "${inactive_part}"; } ); }; /* Enable U-Boot environment handler */ bootenv: { /* U-Boot environment variables to update */ bootloader = { /* Where the U-Boot environment is stored */ environment = { /* DeviceA = PART, DeviceB = FILE */ device = "/dev/mmcblk0p1"; file = "uboot-env.img"; }; /* Variables to set after successful update */ set-variables = ( {name = "bootcount"; value = "0";}, {name = "upgrade_available"; value = "1";}, {name = "active_part"; value = "${inactive_part}";}, {name = "active_root"; value = "${inactive_root}";}, {name = "inactive_part"; value = "${active_part}";}, {name = "inactive_root"; value = "${active_root}";} ); }; };