很大概率虚拟机内存不够,加大到16G。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
建议提升内存至16G再试,谢谢
虚拟机加内存到16GB 比之前多跑了很多。但最终仍然报:
ninja: build stopped: subcommand failed.
build: ninja error
used: 3009 seconds
pycache statistics
manage pycache contents
pycache daemon exit
不过image文件夹多生成了一个文件 uImage 大小5.53MB
现在image文件夹总共有3个文件:
Hi3516DV300-emmc.xml 2KB
u-boot-hi3516dv300_emmc.bin 235KB
uImage 5.53MB
......
/home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/include/linux/suspend.h:478:49: warning: unused parameter 'dev' [-Wunused-parameter]
static inline int is_hibernate_resume_dev(dev_t dev) { return 0; }
^
1007 warnings generated.
1021 warnings generated.
1548 warnings generated.
1901 warnings generated.
1667 warnings generated.
1547 warnings generated.
1538 warnings generated.
1532 warnings generated.
AR drivers/hdf/khdf/model/network/wifi/vendor/hi3881/built-in.a
AR drivers/hdf/khdf/model/network/wifi/vendor/built-in.a
AR drivers/hdf/khdf/model/network/wifi/built-in.a
AR drivers/hdf/khdf/built-in.a
AR drivers/hdf/built-in.a
AR drivers/built-in.a
GEN .version
CHK include/generated/compile.h
LD vmlinux.o
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.kallsyms1
KSYMS .tmp_vmlinux.kallsyms1.S
AS .tmp_vmlinux.kallsyms1.S
LD .tmp_vmlinux.kallsyms2
KSYMS .tmp_vmlinux.kallsyms2.S
AS .tmp_vmlinux.kallsyms2.S
LD vmlinux
SORTTAB vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
LDS arch/arm/boot/compressed/vmlinux.lds
GZIP arch/arm/boot/compressed/piggy_data
AS arch/arm/boot/compressed/head.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/string.o
CC arch/arm/boot/compressed/fdt_rw.o
CC arch/arm/boot/compressed/fdt_wip.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/boot/compressed/fdt_ro.o
SHIPPED arch/arm/boot/compressed/hyp-stub.S
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
SHIPPED arch/arm/boot/compressed/bswapsdi2.S
CC arch/arm/boot/compressed/atags_to_fdt.o
CC arch/arm/boot/compressed/fdt.o
AS arch/arm/boot/compressed/bswapsdi2.o
AS arch/arm/boot/compressed/ashldi3.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/hyp-stub.o
AS arch/arm/boot/compressed/piggy.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
DTC arch/arm/boot/dts/hi3516dv300-demb.dtb
/home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/arch/arm/boot/dts/hi3516dv300-demb.dts:171.9-175.4: Warning (spi_bus_reg): /soc/flash-memory-controller@10000000/spi-nor@0/hi_sfc: SPI bus unit address format error, expected "0"
/home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/src_tmp/linux-5.10/arch/arm/boot/dts/hi3516dv300-demb.dts:179.9-183.4: Warning (spi_bus_reg): /soc/flash-memory-controller@10000000/spi-nand@0/hinand: SPI bus unit address format error, expected "0"
Kernel: arch/arm/boot/zImage-dtb is ready
UIMAGE arch/arm/boot/uImage
Image Name: Linux-5.10.57
Created: Thu Sep 30 10:19:14 2021
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5799418 Bytes = 5663.49 KiB = 5.53 MiB
Load Address: 80008000
Entry Point: 80008000
Kernel: arch/arm/boot/uImage is ready
make[2]: 离开目录“/home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/OBJ/linux-5.10”make[1]: 离开目录“/home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/src_tmp/linux-5.10”
uImage: /home/bearpi/OpenHarmony/out/KERNEL_OBJ/kernel/OBJ/linux-5.10/arch/arm/boot/uImage build success
~/OpenHarmony/out/ohos-arm-release
ninja: build stopped: subcommand failed.
build: ninja error
used: 3009 seconds
pycache statistics
manage pycache contents
pycache daemon exit
c targets overlap rate statistics
subsystem files NO. percentage builds NO. percentage overlap rate
aafwk 70 1.2% 70 1.2% 1.00
account 14 0.2% 14 0.2% 1.00
ace 236 4.0% 236 4.0% 1.00
appexecfwk 157 2.7% 157 2.7% 1.00
ark 82 1.4% 82 1.4% 1.00
ccruntime 29 0.5% 29 0.5% 1.00
communication 446 7.6% 446 7.6% 1.00
developtools 45 0.8% 45 0.8% 1.00
distributeddatamgr 295 5.0% 295 5.0% 1.00
distributedhardware 14 0.2% 14 0.2% 1.00
distributedschedule 41 0.7% 41 0.7% 1.00
global 18 0.3% 18 0.3% 1.00
graphic 31 0.5% 31 0.5% 1.00
hdf 280 4.7% 280 4.7% 1.00
hiviewdfx 130 2.2% 130 2.2% 1.00
miscservices 3 0.1% 3 0.1% 1.00
multimedia 224 3.8% 224 3.8% 1.00
multimodalinput 29 0.5% 29 0.5% 1.00
notification 34 0.6% 34 0.6% 1.00
powermgr 50 0.8% 50 0.8% 1.00
security 196 3.3% 196 3.3% 1.00
sensors 35 0.6% 35 0.6% 1.00
startup 66 1.1% 66 1.1% 1.00
telephony 225 3.8% 225 3.8% 1.00
third_party 1988 33.7% 1988 33.7% 1.00
updater 81 1.4% 81 1.4% 1.00
utils 9 0.2% 9 0.2% 1.00
c overall build overlap rate: 1.00
post_process
[21495/21501] STAMP obj/build/ohos/images/phone_userdata_image.stamp
[21496/21501] ACTION //build/ohos/images:phone_vendor_image(//build/toolchain/ohos:ohos_clang_arm)
[21497/21501] STAMP obj/build/ohos/images/phone_vendor_image.stamp
[21498/21501] ACTION //build/ohos/images:phone_system_image(//build/toolchain/ohos:ohos_clang_arm)
[21499/21501] STAMP obj/build/ohos/images/phone_system_image.stamp
[21500/21501] STAMP obj/build/ohos/images/make_images.stamp
[21501/21501] STAMP obj/build/core/gn/images.stamp
used: 10692 seconds
pycache statistics
manage pycache contents
pycache daemon exit
c targets overlap rate statistics
subsystem files NO. percentage builds NO.
percentage overlap rate
utils 203 1.5% 243 1.8%
1.20
third_party 6967 51.0% 7129 51.5%
1.02
aafwk 200 1.5% 200 1.4%
1.00
account 14 0.1% 14 0.1%
1.00
ace 1283 9.4% 1283 9.3%
1.00
appexecfwk 370 2.7% 370 2.7%
1.00
ark 416 3.0% 416 3.0%
1.00
ccruntime 29 0.2% 29 0.2%
1.00
communication 466 3.4% 466 3.4%
1.00
developtools 77 0.6% 77 0.6%
1.00
distributeddatamgr 328 2.4% 328 2.4%
1.00
distributedhardware 33 0.2% 33 0.2%
1.00
distributedschedule 41 0.3% 41 0.3%
1.00
global 20 0.1% 20 0.1%
1.00
graphic 139 1.0% 139 1.0%
1.00
hdf 267 2.0% 267 1.9%
1.00
hiviewdfx 125 0.9% 125 0.9%
1.00
miscservices 62 0.5% 62 0.4%
1.00
multimedia 278 2.0% 278 2.0%
1.00
multimodalinput 29 0.2% 29 0.2%
1.00
notification 127 0.9% 127 0.9%
1.00
powermgr 50 0.4% 50 0.4%
1.00
security 269 2.0% 269 1.9%
1.00
sensors 41 0.3% 41 0.3%
1.00
startup 71 0.5% 71 0.5%
1.00
telephony 225 1.6% 225 1.6%
1.00
updater 81 0.6% 81 0.6%
1.00
wpa_supplicant-2.9 157 1.2% 157 1.1%
1.00
c overall build overlap rate: 1.01
post_process
=====build Hi3516DV300 successful.
2021-10-08 16:26:47
++++++++++++++++++++++++++++++++++++++++
重装了虚拟机,重头来过。搞定!ubuntu-18.04.6-desktop-amd64.iso
原先的问题还是环境哪里没有装好,例如Python版本、其他软件或库的版本。
例如如你虽然按指导安装了python3.8 但是你系统用的默认版本只是3.7。
所以建议小白还是从头来过。
重新整了台服务器:64GB内存 32核 200GB硬盘 系统 Ubuntu 20
编译时间 。。。 原来 178 分钟(2.97小时)
现在 13分钟不到。
[21500/21501] STAMP obj/build/ohos/images/make_images.stamp
[21501/21501] STAMP obj/build/core/gn/images.stamp
used: 767 seconds
pycache statistics
manage pycache contents
pycache daemon exit
c targets overlap rate statistics
subsystem files NO. percentage builds NO. percentage overlap rate
utils 203 1.5% 243 1.8% 1.20
third_party 6967 51.0% 7129 51.5% 1.02
aafwk 200 1.5% 200 1.4% 1.00
account 14 0.1% 14 0.1% 1.00
ace 1283 9.4% 1283 9.3% 1.00
appexecfwk 370 2.7% 370 2.7% 1.00
ark 416 3.0% 416 3.0% 1.00
ccruntime 29 0.2% 29 0.2% 1.00
communication 466 3.4% 466 3.4% 1.00
developtools 77 0.6% 77 0.6% 1.00
distributeddatamgr 328 2.4% 328 2.4% 1.00
distributedhardware 33 0.2% 33 0.2% 1.00
distributedschedule 41 0.3% 41 0.3% 1.00
global 20 0.1% 20 0.1% 1.00
graphic 139 1.0% 139 1.0% 1.00
hdf 267 2.0% 267 1.9% 1.00
hiviewdfx 125 0.9% 125 0.9% 1.00
miscservices 62 0.5% 62 0.4% 1.00
multimedia 278 2.0% 278 2.0% 1.00
multimodalinput 29 0.2% 29 0.2% 1.00
notification 127 0.9% 127 0.9% 1.00
powermgr 50 0.4% 50 0.4% 1.00
security 269 2.0% 269 1.9% 1.00
sensors 41 0.3% 41 0.3% 1.00
startup 71 0.5% 71 0.5% 1.00
telephony 225 1.6% 225 1.6% 1.00
updater 81 0.6% 81 0.6% 1.00
wpa_supplicant-2.9 157 1.2% 157 1.1% 1.00
c overall build overlap rate: 1.01
post_process
=====build Hi3516DV300 successful.
2021-10-08 23:24:58
++++++++++++++++++++++++++++++++++++++++
最终编译出来的文件:
ls -alh out/ohos-arm-release/packages/phone/images/
total 323M
drwxrwxr-x 2 xinlai xinlai 4.0K 10月 8 23:24 .
drwxrwxr-x 10 xinlai xinlai 4.0K 10月 8 23:24 ..
-rwxrwxr-x 2 xinlai xinlai 1.3K 10月 8 23:05 Hi3516DV300-emmc.xml
-rw-rw-r-- 1 xinlai xinlai 1.5G 10月 8 23:24 system.img
-rwxrwxr-x 2 xinlai xinlai 235K 10月 8 23:06 u-boot-hi3516dv300_emmc.bin
-rw-rw-r-- 1 xinlai xinlai 5.6M 10月 8 23:14 uImage
-rw-rw-r-- 1 xinlai xinlai 20M 10月 8 23:24 updater.img
-rw-rw-r-- 1 xinlai xinlai 1.4G 10月 8 23:24 userdata.img
-rw-rw-r-- 1 xinlai xinlai 256M 10月 8 23:24 vendor.img
你好开发者,请问问题解决了吗?
解决了!
登录 后才可以发表评论