20220518编译OpenHarmony-v3.1-Release出现genext2fs: command not found
2022/5/18 10:54

编译链编译OpenHarmony-v3.1-Beta都一切正常,但是在编译OpenHarmony-v3.1-Release的时候,选Hi3516DV300正常,但是编译RK3568就出错。
git下来的SDK和tar.gz的SDK都出错。

搜索:FAILED: ramdisk.img
找到这里:
https://developer.huawei.com/consumer/cn/forum/topic/0203853122155630019
编译Hi3516dv300,出现报错[OHOS ERROR]   cp: 无法获取'packages/phone/../../../rk3568/ramdisk.img' 的文件状态(stat): 没有那个文件或目录

初步判定是处理OpenHarmony-v3.1-Beta编译的时候出现的问题。

【刚开始以为是华为又搞幺蛾子了!OpenHarmony-v3.1-Beta的tar.gz包竟然编译不过!】

继续往下找错误:packages/phone/make-boot.sh: line 22: genext2fs: command not found
应该是没有安装genext2fs。

百度之后:[OHOS ERROR] packages/phone/make-boot.sh: line 22: genext2fs: command not fo
http://www.atmcu.com/2239.html
mke2img-oem.sh: line 15: genext2fs: command not found

解决办法:
sudo apt install genext2fs

【这种情况,出于人性化的考量,你得有所提示呀!需要安装新的软件!】

[OHOS INFO] [35104/35112] ACTION //build/ohos/images:phone_vendor_image(//build/toolchain/ohos:ohos_clang_arm)
[OHOS INFO] [35105/35112] ACTION //build/ohos/images:phone_updater_image(//build/toolchain/ohos:ohos_clang_arm)
[OHOS INFO] [35106/35112] ACTION //build/ohos/images:phone_system_image(//build/toolchain/ohos:ohos_clang_arm)
[OHOS ERROR] [35103/35112] ACTION //build/ohos/images:phone_ramdisk_image(//build/toolchain/ohos:ohos_clang_arm)
[OHOS ERROR] FAILED: ramdisk.img 
[OHOS ERROR] /usr/bin/env ../../build/ohos/images/build_image.py --depfile gen/build/ohos/images/phone_ramdisk_image.d --image-name ramdisk --input-path packages/phone/ramdisk --image-config-file ../../build/ohos/images/mkimage/ramdisk_image_conf.txt --device-image-config-file packages/imagesconf/ramdisk_image_conf.txt --output-image ramdisk.img --target-cpu arm --build-image-tools-path clang_x64/distributeddatamgr/e2fsprogs clang_x64/filemanagement/storage_service ../../third_party/e2fsprogs/prebuilt/host/bin ../../build/ohos/images/mkimage
[OHOS ERROR] pid  196805  ret  2 
[OHOS ERROR]  Make cpio image!
[OHOS ERROR] mkcpio image, cpio stdin:  ./
[OHOS ERROR] mkcpio image, cpio stdin:  ./usr
[OHOS ERROR] mkcpio image, cpio stdin:  ./sys
[OHOS ERROR] mkcpio image, cpio stdin:  ./bin
[OHOS ERROR] mkcpio image, cpio stdin:  ./bin/init
[OHOS ERROR] mkcpio image, cpio stdin:  ./etc
[OHOS ERROR] mkcpio image, cpio stdin:  ./etc/fstab.required
[OHOS ERROR] mkcpio image, cpio stdin:  ./proc
[OHOS ERROR] mkcpio image, cpio stdin:  ./dev
[OHOS ERROR] mkcpio image, cpio stdin:  ./mnt
[OHOS ERROR] mkcpio image, cpio stdin:  ./init
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/libpcre2.z.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/libc.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/ld-musl-arm.so.1
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/libsepol.z.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/libload_policy.z.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/librestorecon.z.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./lib/libselinux.z.so
[OHOS ERROR] mkcpio image, cpio stdin:  ./system
[OHOS ERROR] pid  196815  ret  127 
[OHOS ERROR]  blocks = 4096  block_size 16384
[OHOS ERROR]  packages/phone/make-boot.sh: line 22: genext2fs: command not found
[OHOS ERROR] 
[OHOS ERROR] error run fit image errno: 127
[OHOS ERROR]  
[OHOS ERROR] MkImages failed errno: 2
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct)  : 0
[OHOS INFO] cache hit (preprocessed)  : 0
[OHOS INFO] cache miss  : 22264
[OHOS INFO] hit rate:  0.00% 
[OHOS INFO] mis rate: 100.00% 
[OHOS INFO] ---------------------------------------------
[OHOS INFO] c targets overlap rate statistics
[OHOS INFO] subsystem           files NO.    percentage    builds NO.    percentage    overlap rate
[OHOS INFO] securec                   78    0.4%         156    0.7%    2.00
[OHOS INFO] utils                    206    1.0%         286    1.3%    1.39
[OHOS INFO] developtools             316    1.6%         422    1.9%    1.34
[OHOS INFO] third_party             8664    43.0%       10875    48.2%    1.26
[OHOS INFO] graphic                  372    1.8%         373    1.7%    1.00
[OHOS INFO] aafwk                    547    2.7%         547    2.4%    1.00
[OHOS INFO] account                   83    0.4%          83    0.4%    1.00
[OHOS INFO] ace                     1840    9.1%        1840    8.2%    1.00
[OHOS INFO] appexecfwk               132    0.7%         132    0.6%    1.00
[OHOS INFO] ark                      454    2.3%         454    2.0%    1.00
[OHOS INFO] barrierfree               64    0.3%          64    0.3%    1.00
[OHOS INFO] communication           1285    6.4%        1285    5.7%    1.00
[OHOS INFO] compileruntime            78    0.4%          78    0.3%    1.00
[OHOS INFO] contactsdata              37    0.2%          37    0.2%    1.00
[OHOS INFO] customization             28    0.1%          28    0.1%    1.00
[OHOS INFO] deviceprofile             39    0.2%          39    0.2%    1.00
[OHOS INFO] distributeddatamgr         502    2.5%         502    2.2%    1.00
[OHOS INFO] distributedhardware         240    1.2%         240    1.1%    1.00
[OHOS INFO] distributedschedule          45    0.2%          45    0.2%    1.00
[OHOS INFO] filemanagement           108    0.5%         108    0.5%    1.00
[OHOS INFO] global                    45    0.2%          45    0.2%    1.00
[OHOS INFO] hdf                      520    2.6%         520    2.3%    1.00
[OHOS INFO] hiviewdfx                299    1.5%         299    1.3%    1.00
[OHOS INFO] location                  53    0.3%          53    0.2%    1.00
[OHOS INFO] miscservices             212    1.1%         212    0.9%    1.00
[OHOS INFO] msdp                      13    0.1%          13    0.1%    1.00
[OHOS INFO] multimedia               526    2.6%         526    2.3%    1.00
[OHOS INFO] multimodalinput          113    0.6%         113    0.5%    1.00
[OHOS INFO] notification             162    0.8%         162    0.7%    1.00
[OHOS INFO] powermgr                 160    0.8%         160    0.7%    1.00
[OHOS INFO] resourceschedule         209    1.0%         209    0.9%    1.00
[OHOS INFO] security                 347    1.7%         347    1.5%    1.00
[OHOS INFO] sensors                   51    0.3%          51    0.2%    1.00
[OHOS INFO] settingsdata               3    0.0%           3    0.0%    1.00
[OHOS INFO] startup                  135    0.7%         135    0.6%    1.00
[OHOS INFO] telephony                368    1.8%         368    1.6%    1.00
[OHOS INFO] updater                  106    0.5%         106    0.5%    1.00
[OHOS INFO] usb                       17    0.1%          17    0.1%    1.00
[OHOS INFO] useriam                  134    0.7%         134    0.6%    1.00
[OHOS INFO] web                        4    0.0%           4    0.0%    1.00
[OHOS INFO] window                    86    0.4%          86    0.4%    1.00
[OHOS INFO] wpa_supplicant-2.9         165    0.8%         165    0.7%    1.00
[OHOS INFO] 
[OHOS INFO] c overall build overlap rate: 1.12
[OHOS INFO] 
[OHOS INFO] 
[OHOS ERROR] Please check build log in /home/rootroot/OpenHarmony-v3.1-release/out/rk3568/build.log
=====build  error=====
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ find . -name ramdisk_resource_config
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ find . -name ramdisk_resource_config*
./out/rk3568/obj/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini_module_info.json
./out/rk3568/obj/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini__notice.stamp
./out/rk3568/obj/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini_install_info.json
./out/rk3568/obj/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini.stamp
./out/rk3568/obj/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini.notice.txt
./out/rk3568/gen/device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini__notice.d
./build/ohos/images/mkimage/ramdisk_resource_config.ini
./device/board/hisilicon/hispark_taurus/linux/images/ramdisk_resource_config.ini
./device/hihope/rk3568/build/rootfs/ramdisk_resource_config.ini
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ sudo apt-get install genext2fs
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dblatex-doc libalgorithm-c3-perl libapache-pom-java libb-hooks-endofscope-perl libb-hooks-op-check-perl libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-method-modifiers-perl libclass-xsaccessor-perl libcommons-logging-java
  libcommons-parent-java libdata-optlist-perl libdevel-callchecker-perl libdevel-caller-perl libdevel-globaldestruction-perl libdevel-lexalias-perl libdevel-stacktrace-perl libdist-checkconflicts-perl libdynaloader-functions-perl libemail-date-format-perl
  libeval-closure-perl libexception-class-perl libfile-homedir-perl libfile-which-perl libfontbox-java libipc-shareable-perl liblog-dispatch-perl liblog-log4perl-perl libmail-sendmail-perl libmime-charset-perl libmime-lite-perl libmime-types-perl
  libmodule-implementation-perl libmodule-runtime-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl libparams-classify-perl libparams-util-perl libparams-validationcompiler-perl
  libpdfbox-java libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl libsombok3 libspecio-perl libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-quote-perl libsys-hostname-long-perl
  libunicode-linebreak-perl libvariable-magic-perl libxstring-perl libyaml-tiny-perl linux-headers-5.13.0-39-generic linux-hwe-5.13-headers-5.13.0-39 linux-image-5.13.0-39-generic linux-modules-5.13.0-39-generic linux-modules-extra-5.13.0-39-generic
  preview-latex-style texlive texlive-bibtex-extra texlive-extra-utils texlive-latex-extra texlive-latex-recommended texlive-pictures
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  genext2fs
0 upgraded, 1 newly installed, 0 to remove and 88 not upgraded.
Need to get 21.1 kB of archives.
After this operation, 57.3 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 genext2fs amd64 1.4.1-4build2 [21.1 kB]
Fetched 21.1 kB in 1s (17.2 kB/s)    
Selecting previously unselected package genext2fs.
(Reading database ... 284308 files and directories currently installed.)
Preparing to unpack .../genext2fs_1.4.1-4build2_amd64.deb ...
Unpacking genext2fs (1.4.1-4build2) ...
Setting up genext2fs (1.4.1-4build2) ...
Processing triggers for man-db (2.9.1-1) ...
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ 
rootroot@rootroot-System-Product1:~/OpenHarmony-v3.1-release$ ./build.sh --product-name rk3568 --ccache

20220518编译OpenHarmony-v3.1-Release出现genext2fs: command not found相关推荐

  1. OpenHarmony 3.1 Release初体验 润和DAYU200开发套件

    万众瞩目的OpenHarmony 3.1 Release版本终于发布了,相关技术特性可以查看文章: https://gitee.com/openharmony/docs/blob/master/zh- ...

  2. 创建预编译头 Debug 正常 Release Link Error:预编译头已存在,使用第一个 PCH

    创建预编译头 Debug 正常 Release Link Error Main.obj : error LNK2005: ___@@_PchSym_@00@UmfilkilqUdrmzkkUkilqU ...

  3. 富设备平台突破:基于RK3568的DAYU200进入OpenHarmony 3.1 Release主干

    近日,润和软件出品的 HH-SCDAYU200 开发套件基于瑞芯微 RK3568 芯片,代码已完成进入OpenAtom OpenHarmony(以下简称"OpenHarmony") ...

  4. OpenHarmony 3.1 Release版本特性讲解

    开放原子开源基金会已于2022-3-30正式发布了OpenHarmony 3.1 Release版本(也称330版本),随版本发布带来的还有OpenHarmony SDK-Ohos_sdk 3.1 R ...

  5. 【鸿蒙OS开发入门】16 - 重头搭建Ubuntu新环境编译OpenHarmony 3.0 LTS

    [鸿蒙OS开发入门]16 - 重头搭建Ubuntu新环境编译OpenHarmony 3.0 LTSv 一.配置Telnet 和 samba 二.下载code-v3.0-LTS.tar.gz源码 三.配 ...

  6. 安装VASP5.4.4编译 libfftw3xf_intel.a 碰到的:ICC COMMAND NOT FOUND问题

    **安装VASP5.4.4编译 libfftw3xf_intel.a 碰到的:ICC COMMAND NOT FOUND问题 intel 编译器安装在/opt/intel路径下,环境变量设置在~/.b ...

  7. 编译ThingsBoard V3.3.2源码

    ​ 2021.11.15 周一 编译TB 3.3.2 ============================ 1 下载源码 $ git clone https://github.com/things ...

  8. 如何在DAYU200上安装浏览器-基于OpenHarmony 3.1 Release版本

    前言: 终于!OpenHarmony有自己的浏览器应用了! 可以查看视频演示: 先看下效果: 打开某宝: 可以扫码登录: 安装教程: 1.DAYU200升级最新的 3.1Release版本固件 升级教 ...

  9. 【20220526】UE5编译 5.0.2 release d1178

    20220526 Epic发布了最新版本的UE5,下次更新大约要一两个月之后了. 趁热更新一波github上官方的源码操作指南. UE5的分支 Numbered 分支 标记所有过去发布的版本和即将发布 ...

最新文章

  1. Linux vsftp配置详解
  2. MySQL----联结
  3. 细数C++和C的差别
  4. android ViewPager动画的实现原理及效果
  5. SAP Spartacus里的WindowRef对象
  6. g++链接boost库
  7. pd生成mysql数据库错误_Err] 1064 - You have an error in your ……pd生成mysql导入失败问题...
  8. 5G计费方式将迎来彻底变化 运营商向2B服务出手?
  9. 闻泰通讯手机软件测试笔试内容,中科方德软件测试面试笔试经验
  10. 090717 T OOD时的接口
  11. GetFlashInfo V7.5_u盘芯片检测工具
  12. EndNote 高校_再也不用苦苦寻找EndNote安装包~【EndNote网页版】
  13. matlab 地形图案例,matlab-画地形图
  14. 【冬瓜哥手绘】致敬龙芯!冬瓜哥手工设计了一个CPU译码器!
  15. 英特尔芯片组系列 服务器,英特尔主板现在有几种架构,分别都是什么。都是对应什么系列CPU安装最好。说的越详细越好...
  16. day 46 http和html
  17. InstallShield vs2015 的安装与激活
  18. 原生Vue实现二维码扫一扫,兼容PC、安卓、IOS
  19. 一、Linux 教程-基础
  20. weblogic8.1 下载地址

热门文章

  1. 【VPP】 VPP CLI 命令
  2. oracle 单记录函数,SQL中的单记录函数
  3. 宝塔linux如何防护,使用宝塔面板的CC***防护策略
  4. FPGA经验谈系列文章——FPGA资源评估
  5. Java要学到什么程度?
  6. 计算机等级考试二级office知识点总结,计算机等级考试二级office知识点总结[共9页].doc...
  7. SaaS产品SEO完整指南
  8. matlab矩阵分块与把分块矩阵还原
  9. 描述对未来计算机的畅想用英语作文,畅想未来人工智能的发展状况英语作文 关于畅想未来人工智能的发展状况的英语作文...
  10. IT运维服务外包管理的两种模式