风火轮用户X9FCO 发表于 2023-9-28 11:06:21

鸿蒙4.0用dayu210编译生成镜像报config错误

(为了高效,请按如下格式提问)

硬件主板型号:DAYU210
固件名称/系统版本:
自编的或固件下载地址:
Log日志: (可以导出,用TXT附件上传)

./build.sh --product-name dayu210
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2023-09-28 10:45:52
--product-name dayu210
Current Node.js version is v14.21.1
Node.js version check passed
lockfile=false
start set ohpm
init ohpm
npm WARN @ohos/ohpm@1.1.2 No description
npm WARN @ohos/ohpm@1.1.2 No repository field.

up to date in 0.491s

10 packages are looking for funding
run `npm fund` for details

ohpm version is 1.1.2
ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/"
ohpm DEBUG: config set "strict_ssl" "false"
ohpm DEBUG: config set "log_level" "debug"
remove /home/zcwx/.hvigor
~/.hvigor/wrapper/tools /sdb1/work-source/openharmony-4.0
install pnpm
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN tools No description
npm WARN tools No repository field.
npm WARN tools No license field.

added 1 package in 0.371s

1 package is looking for funding
run `npm fund` for details

/sdb1/work-source/openharmony-4.0
Set cache size limit to 100.0 GB
generated build prop info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/build.prop
generated build config info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/build_config.json
generated product parts info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/parts.json
generated parts config info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/parts_config.json
generated build gnargs prop info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/build_gnargs.prop
generated features info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/features.json
generated syscap info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/syscap.json
generated exclusion modules info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/exclusion_modules.json
generated platforms build info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/platforms.build
generated subsystem config info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/subsystem_config.json
generated system capability info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/systemcapability.json
generated compile_standard_whitelist info to /sdb1/work-source/openharmony-4.0/out/preloader/dayu210/compile_standard_whitelist.json
Checking all build args...
subsytem config scan completed
subsytem config scan completed
generate all parts of platforms info to '/sdb1/work-source/openharmony-4.0/out/rk3588/build_configs/platforms_info/all_parts.json'
generate toolchain to variant of platforms info to '/sdb1/work-source/openharmony-4.0/out/rk3588/build_configs/platforms_info/toolchain_to_variant.json'
warning: subsystem name config incorrect in '/sdb1/work-source/openharmony-4.0/third_party/flutter/glfw/bundle.json', build file subsystem name is ,configured subsystem name is thirdparty.
warning: subsystem name config incorrect in '/sdb1/work-source/openharmony-4.0/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/bundle.json', build file subsystem name is wpa_supplicant-2.9,configured subsystem name is thirdparty.
Traceback (most recent call last):
   File "/sdb1/work-source/openharmony-4.0/build/hb/containers/status.py", line 47, in wrapper
   return func(*args, **kwargs)
   File "/sdb1/work-source/openharmony-4.0/build/hb/modules/ohos_build_module.py", line 67, in run
   raise exception
   File "/sdb1/work-source/openharmony-4.0/build/hb/modules/ohos_build_module.py", line 65, in run
   super().run()
   File "/sdb1/work-source/openharmony-4.0/build/hb/modules/interface/build_module_interface.py", line 72, in run
   raise exception
   File "/sdb1/work-source/openharmony-4.0/build/hb/modules/interface/build_module_interface.py", line 65, in run
   self._load()
   File "/sdb1/work-source/openharmony-4.0/build/hb/modules/ohos_build_module.py", line 84, in _load
   self.loader.run()
   File "/sdb1/work-source/openharmony-4.0/build/hb/services/interface/load_interface.py", line 45, in run
   self.__post_init__()
   File "/sdb1/work-source/openharmony-4.0/build/hb/services/loader.py", line 120, in __post_init__
   self.parts_config_info = load_ohos_build.get_parts_info(
   File "/sdb1/work-source/openharmony-4.0/build/hb/util/loader/load_ohos_build.py", line 834, in get_parts_info
   _parts_variants = build_loader.parts_variants()
   File "/sdb1/work-source/openharmony-4.0/build/hb/util/loader/load_ohos_build.py", line 520, in parts_variants
   self.parse()
   File "/sdb1/work-source/openharmony-4.0/build/hb/util/loader/load_ohos_build.py", line 511, in parse
   subsystem_config, parts_path_dict = self._merge_build_config()
   File "/sdb1/work-source/openharmony-4.0/build/hb/util/loader/load_ohos_build.py", line 482, in _merge_build_config
   raise OHOSException("subsystem name config incorrect in '{}', build file subsystem name is {},"
exceptions.ohos_exception.OHOSException: subsystem name config incorrect in '/sdb1/work-source/openharmony-4.0/vendor/hihope/dayu210/ohos.build', build file subsystem name is product_hihope,configured subsystem name is product_dayu210.

Code:      2014

Reason:    subsystem name config incorrect in '/sdb1/work-source/openharmony-4.0/vendor/hihope/dayu210/ohos.build', build file subsystem name is product_hihope,configured subsystem name is product_dayu210.

Solution:UNKNOWN REASON

=====builderror=====



问题描述及复现步骤:
1、编译210的镜像就有上述config配置文件错误,无法生成镜像
   ./build.sh --product-name dayu210   

2、编译200的镜像就正常生成img
   ./build.sh --product-name rk3568

3、参考的编译指南
   https://gitee.com/openharmony/device_board_hihope/tree/OpenHarmony-4.0-Release/dayu210


风火轮用户arhuy 发表于 2023-9-28 16:28:47

你这个是4.0还是3.2的

风火轮用户X9FCO 发表于 2023-10-1 09:38:34

风火轮用户arhuy 发表于 2023-9-28 16:28
你这个是4.0还是3.2的

4.0和master分支选择dayu210编译完成最后有上述报错,选择rk3568是可以编译生成镜像。
用3.2又没有dayu210的product,只有rk3568。
页: [1]
查看完整版本: 鸿蒙4.0用dayu210编译生成镜像报config错误