搜索

18

主题

18

帖子

116

积分

注册会员

Rank: 2

积分
116
发表于 2020-8-1 09:21:27 4946 浏览 0 回复

mtk6737 Android 7.0 系统 完善lk ,kernel 部分ota升级

  1. 在做ota升级包时,发现 lk,kernel部分修改的代码 升级时并没有生效。具体修改该如下:


  2. --- a/device/mediatek/build/releasetools/mt_ota_preprocess.py
  3. +++ b/device/mediatek/build/releasetools/mt_ota_preprocess.py
  4. @@ -58,6 +58,8 @@ def generate_updatelist(scatter_file, update_list):
  5.        upgrade_list_include.append("preloader")
  6.      if "uboot" not in upgrade_list_include:
  7.        upgrade_list_include.append("uboot")
  8. <font color="Green">+    if "logo" not in upgrade_list_include:
  9. +      upgrade_list_include.append("logo")</font>

  10.    # open input/output files
  11.    inputfile = open(scatter_file)
  12. xudr@xy01:/sdb2/xudr/K351/XY3701_N0_V0$ git diff build/tools/releasetools/ota_from_target_files.py
  13. diff --git a/build/tools/releasetools/ota_from_target_files.py b/build/tools/releasetools/ota_from_target_files.py
  14. index 6ca18ab..37e532e 100755
  15. --- a/build/tools/releasetools/ota_from_target_files.py
  16. +++ b/build/tools/releasetools/ota_from_target_files.py
  17. @@ -1127,6 +1127,7 @@ else if get_stage("%(bcb_dev)s") != "3/3" then
  18.      boot_type, boot_device = common.GetTypeAndDevice("/boot", OPTIONS.info_dict)
  19.      d = common.Difference(target_boot, source_boot)
  20.      _, _, d = d.ComputePatch()
  21. <font color="Green">+    d = None</font>
  22.      if d is None:
  23.        include_full_boot = True
  24.        common.ZipWriteStr(output_zip, "boot.img", target_boot.data)
  25. xudr@xy01:/sdb2/xudr/K351/XY3701_N0_V0$ git diff  build/core/Makefile
  26. diff --git a/build/core/Makefile b/build/core/Makefile
  27. index 019fa4f..7912ae5 100755
  28. --- a/build/core/Makefile
  29. +++ b/build/core/Makefile
  30. @@ -2053,7 +2053,7 @@ endif
  31.         @# sign image used to get boot and recovery sig files
  32.         $(hide) $(SHELL) $(SECURITY_SIG_TOOL)
  33.         @#prepare image and update list for OTA upgrade used
  34. <font color="Red">-       $(hide) ./device/mediatek/build/releasetools/mt_ota_preprocess.py $(zip_root) $(PRODUCT_OUT) $(PRODUCT_OUT)/ota_update_list.txt</font>
  35. <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

  36. ifneq ($(INSTALLED_RECOVERYIMAGE_TARGET),)
  37.         $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$PATH MKBOOTIMG=$(MKBOOTIMG) \



复制代码



回复

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


登录或注册
快速回复 返回顶部 返回列表