|
发表于 2020-8-1 09:21:27
8239 浏览 0 回复
mtk6737 Android 7.0 系统 完善lk ,kernel 部分ota升级
- 在做ota升级包时,发现 lk,kernel部分修改的代码 升级时并没有生效。具体修改该如下:
- --- a/device/mediatek/build/releasetools/mt_ota_preprocess.py
- +++ b/device/mediatek/build/releasetools/mt_ota_preprocess.py
- @@ -58,6 +58,8 @@ def generate_updatelist(scatter_file, update_list):
- upgrade_list_include.append("preloader")
- if "uboot" not in upgrade_list_include:
- upgrade_list_include.append("uboot")
- <font color="Green">+ if "logo" not in upgrade_list_include:
- + upgrade_list_include.append("logo")</font>
-
- # open input/output files
- inputfile = open(scatter_file)
- xudr@xy01:/sdb2/xudr/K351/XY3701_N0_V0$ git diff build/tools/releasetools/ota_from_target_files.py
- diff --git a/build/tools/releasetools/ota_from_target_files.py b/build/tools/releasetools/ota_from_target_files.py
- index 6ca18ab..37e532e 100755
- --- a/build/tools/releasetools/ota_from_target_files.py
- +++ b/build/tools/releasetools/ota_from_target_files.py
- @@ -1127,6 +1127,7 @@ else if get_stage("%(bcb_dev)s") != "3/3" then
- boot_type, boot_device = common.GetTypeAndDevice("/boot", OPTIONS.info_dict)
- d = common.Difference(target_boot, source_boot)
- _, _, d = d.ComputePatch()
- <font color="Green">+ d = None</font>
- if d is None:
- include_full_boot = True
- common.ZipWriteStr(output_zip, "boot.img", target_boot.data)
- xudr@xy01:/sdb2/xudr/K351/XY3701_N0_V0$ git diff build/core/Makefile
- diff --git a/build/core/Makefile b/build/core/Makefile
- index 019fa4f..7912ae5 100755
- --- a/build/core/Makefile
- +++ b/build/core/Makefile
- @@ -2053,7 +2053,7 @@ endif
- @# sign image used to get boot and recovery sig files
- $(hide) $(SHELL) $(SECURITY_SIG_TOOL)
- @#prepare image and update list for OTA upgrade used
- <font color="Red">- $(hide) ./device/mediatek/build/releasetools/mt_ota_preprocess.py $(zip_root) $(PRODUCT_OUT) $(PRODUCT_OUT)/ota_update_list.txt</font>
- <font color="Green">+ $(hide) MTK_LOADER_UPDATE=yes MTK_PRELOADER_OTA_BACKUP=no ./device/mediatek/build/releasetools/mt_ota_preprocess.py $(zip_root) $(PRODUCT_OUT) </font>$(PRODUCT_OUT)/ota_update_list.txt
-
- ifneq ($(INSTALLED_RECOVERYIMAGE_TARGET),)
- $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$PATH MKBOOTIMG=$(MKBOOTIMG) \
复制代码
|
|
|
|
|
|
|
登录或注册
|