[MTK] How To enable AVB for Q
文摘 MediaTek 2020-12-19 阅读:8135How To enable AVB for Q
1./vendor/mediatek/proprietary/bootable/bootloader/lk/target/${project}/inc/avbkey.h
在该文件里配置与/device/mediatek/common/oem_prvk.pem (其中oem_prvk.pem为用openssl生成的private key)对应的public key
2.alps/device/mediatek/common/device.mk
BOARD_AVB_ENABLE:=True
BOARD_AVB_ALGORITHM := SHA256_RSA2048
BOARD_AVB_KEY_PATH := device/mediatek/common/oem_prvk.pem
3./kernel-4.14/drivers/misc/mediatek/masp/
MTK_AVB20_SUPPORT default y
5.alps/vendor/mediate/proprietary/bootable/bootloader/lk/platform/${PLATFORM}/rules.mk
MTK_AVB20_SUPPORT=yes
AVB_SHA256_CRYPTO_HW_SUPPORT := yes
4./device/mediatek/common/device.mk
可选:Recovery设置为chain partition的配置
SET_RECOVERY_AS_CHAIN ?= yes
共0
条评论
作者
Pixiv日榜Top50