2022-05-18编译OpenHarmony-v3.1-Release出现genext2fs: command not found
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2022-05-18编译OpenHarmony-v3.1-Release出现genext2fs: command not found相关的知识,希望对你有一定的参考价值。
参考技术A 20220518编译OpenHarmony-v3.1-Release出现genext2fs: command not found2022/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
以上是关于2022-05-18编译OpenHarmony-v3.1-Release出现genext2fs: command not found的主要内容,如果未能解决你的问题,请参考以下文章
2022-05-18:假设数组a和数组b为两组信号: 1) length(b) <= length(a); 2) 对于任意0<=i<length(b), 有b[i+1] - b[i] == a[i+1
因为分析器 >=2.0.0 依赖于元 ^1.7.0 ...(因为 myP 依赖于来自 sdk 和分析器 2.0.0 的任何 flutter_test,版本求解失败)