Commit graph

4 commits

Author SHA1 Message Date
Akilesh Kailash
f70785956d hiphi: gpt-utils: FSync after block device writes
When markBoolSuccessful is invoked, we update
the partition table. These writes should be
synced before merge operation is resumed post OTA.
If not, any crash before these writes are landed to
backing storage will lead to incorrect switching of
slots.

BUG: 175711601
Test: Verify slot switching correctly after crash when merge in progress
Change-Id: I2da9286490d5d063df0c9d4dc491e0fbf28f51bb
Signed-off-by: Akilesh Kailash <akailash@google.com>
Signed-off-by: sekaiacg <sekaiacg@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Siddeswar Aluganti
7bdb2813f0 hiphi: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

[Also contains partitions information update from sm8350]

Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Benergy Meenan Ravuri
7e8fed40e2 hiphi: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00
Cosmin Tanislav
d668daaf63 hiphi: Add bootctrl HAL and gpt-utils
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
2023-05-04 15:45:38 +03:00