Searched hist:"362 b6cb356df1d5593f7c68ed58b6d70bf2c6be2" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_ab.c | 362b6cb356df1d5593f7c68ed58b6d70bf2c6be2 Thu Feb 29 02:00:10 UTC 2024 Xuhui Lin <xuhui.lin@rock-chips.com> common: spl_ab: Record first slot_suffix when early ab_decrease is required
1. Call spl_ab_decrease_tries() before load kernel to be compatible with the case when storage is eMMC, because preload image will occupy eMMC.
2. (For solving Boundary problem) Need to record slot_suffix before ab_decrease, otherwise when boot kernel, it will use the result after decrease.
3. For example, current slot_suffix is _a, tries-remaining is 1. Without recording slot_suffix before decrease, after decrease, slot_suffix is _b, tries-remaining is 7. SPL will parse boot_b instead of boot_a that expected.
Change-Id: I526d5a9f91d7820f165ada0174719d5a06da6768 Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
|