Qualcomm R版本切换slot和OTA升级失败KBA

From Android R, especially new QCOM platforms, virtual A/B has been enabled by default, if your devices have not flashed slot B partitions images, when you switch slot to boot up, it will fail. In this situation, if you want to do OTA update, you should build a full OTA package which must includes all slot B partition images. This document will tell you how to build such images into OTA package, and we have verified it based on sm8350 Android R build. It can update successfully and boot up successfully with following steps:

大概意思是在R版本上,尤其是新的高通平台默认开启了虚拟A/B,如果device没有刷入slot B,当切换slot启动时就会fail,如果要做OTA升级,就需要全编译OTA包而且必须包含所有slot B的分区镜像.

1. Change file device/qcom/lahaina/BoardConfig.mk;

--- a/BoardConfig.mk

+++ b/BoardConfig.mk

@@ -58,7 +58,7 @@ BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06400000

TARGET_COPY_OUT_ODM := odm

BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4

ifeq ($(ENABLE_AB), true)

-AB_OTA_PARTITIONS ?= boot vendor_boot vendor odm dtbo vbmeta

+AB_OTA_PARTITIONS ?= boot vendor_boot vendor odm dtbo vbmeta xbl xbl_config aop tz hyp modem bluetooth abl dsp keymaster devcfg qupfw vbmeta uefisecapp imagefv shrm core_nhlos vm-bootsys multiimgoem cpucp featenabler

endif

BOARD_EXT4_SHARE_DUP_BLOCKS := true

2. Copy all AB_OTA_PARTITIONS images which you added in step 1(doesn't need to copy "boot vendor_boot vendor odm dtbo vbmeta super" etc, just copy which added in step 1) to device/qcom/ lahaina/radio;

3. Rename the images(Requirement from AOSP) as following:

3.1 All images have a .img extension(i.e: Rename xbl.elf to xbl.img, hyp.mbn to hyp.img, etc)

3.2 Image names must match the partition names which added in step 1(i.e: Rename NON-HLOS.mbn to modem.img, rename BTFM.mbn to bluetooth.img)

4. Build full OTA package and verify

这边先是记录下,之后补充更多调试细节.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值