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

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

 

 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
引用\[1\]:这个错误是由于OpenCV库的某个函数没有实现导致的。解决这个问题的方法是重新构建库并添加Windows、GTK+ 2.x或Cocoa支持。如果你使用的是Ubuntu或Debian系统,可以尝试安装libgtk2.0-dev和pkg-config,然后重新运行cmake或configure脚本。\[1\] 引用\[2\]:解决这个问题的方法是通过运行以下命令安装所需的软件包: sudo apt-get install repo git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu mtools parted libudev-dev libusb-1.0-0-dev python-linaro-image-tools linaro-image-tools gcc-4.8-multilib-arm-linux-gnueabihf gcc-arm-linux-gnueabihf libssl-dev gcc-aarch64-linux-gnu g+conf autotools-dev libsigsegv2 m4 intltool libdrm-dev curl sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio python unzip rsync file bc wget libncurses5 libqt4-dev libglib2.0-dev libgtk2.0-dev libglade2-dev cvs git mercurial rsync openssh-client subversion asciidoc w3m dblatex graphviz python-matplotlib libc6:i386 libssl-dev texinfo liblz4-tool genext2fs lib32stdc++6。\[2\] 引用\[3\]:这个错误的原因是由于网络问题导致无法下载特定的文件。可能是由于网络连接不稳定或目标文件不存在。\[3\] 根据提供的信息,你遇到了一个名为package/pkg-generic.mk的错误。这个错误发生在构建mpv-0.27.2时,导致构建失败。要解决这个问题,你可以尝试重新构建或检查构建过程中的网络连接。如果网络连接不稳定,可以尝试使用稳定的网络环境重新构建。如果问题仍然存在,你可以尝试手动下载所需的文件并将其放置在正确的位置。 #### 引用[.reference_title] - *1* [解决问题:cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-jhawztrk/opencv/modules/highgui/src/window.cpp...](https://blog.csdn.net/weixin_46474546/article/details/114914967)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [LINUX 系统编译报“recipe for target 'doc/libtool.info' failed” 处理办法](https://blog.csdn.net/qq_25402181/article/details/87872367)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Get ...](https://blog.csdn.net/hknaruto/article/details/119108533)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值