简体   繁体   English

为 aosp 添加新设备

[英]adding new device for aosp

hello when i try to build my own new device in aosp i get the following error :您好,当我尝试在 aosp 中构建自己的新设备时,出现以下错误:

[ 82% 16519/19958] Target system fs image: out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system.img
FAILED: /bin/bash -c "(true) && (mkdir -p out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/ out/target/product/antonino/obj/PACKAGING/systemimage_intermediates && rm -rf out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system_image_info.txt) && (echo \"extfs_sparse_flag=-s\" >>  out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system_image_info.txt) && (echo \"selinux_fc=out/target/product/antonino/root/file_contexts.bin\" >>  out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system_image_info.txt) && (echo \"skip_fsck=true\" >>  out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system_image_info.txt) && (PATH=\$PATH ./build/tools/releasetools/build_image.py out/target/product/antonino/system out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system_image_info.txt out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/antonino/system || ( echo \"Out of space? the tree size of out/target/product/antonino/system is (MB): \" 1>&2 ; du -sm out/target/product/antonino/system 1>&2; if [ \"\" == \"ext4\" ]; then maxsize=; if [ \"\" == \"true\" ]; then maxsize=\$((maxsize - 4096 * 4096)); fi; echo \"The max is \$(( maxsize / 1048576 )) MB.\" 1>&2 ; else echo \"The max is \$((  / 1048576 )) MB.\" 1>&2 ; fi; mkdir -p out/dist; cp out/target/product/antonino/installed-files.txt out/dist/installed-files-rescued.txt; exit 1 ))"
Running:  mkyaffs2image -f out/target/product/antonino/system out/target/product/antonino/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/antonino/root/file_contexts.bin system
Traceback (most recent call last):
  File "./build/tools/releasetools/build_image.py", line 517, in <module>
    main(sys.argv[1:])
  File "./build/tools/releasetools/build_image.py", line 510, in main
    if not BuildImage(in_dir, image_properties, out_file, target_out):
  File "./build/tools/releasetools/build_image.py", line 326, in BuildImage
    (_, exit_code) = RunCommand(build_command)
  File "./build/tools/releasetools/build_image.py", line 46, in RunCommand
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Out of space? the tree size of out/target/product/antonino/system is (MB): 
337 out/target/product/antonino/system
/bin/bash: / 1048576 : errore di sintassi: atteso un operando (il token dell'errore è "/ 1048576 ")
[ 82% 16519/19958] host C: libbz <= external/bzip2/decompress.c
ninja: build stopped: subcommand failed.
make: *** [ninja.intermediate] Errore 1

these are my make file located at /device/vendor/mydevice这些是我的 make 文件,位于 /device/vendor/mydevice

AndroidProducts.mk安卓产品.mk

PRODUCT_MAKEFILES := $(LOCAL_DIR)/full_antonino.mk

BoardConfig.mk板卡配置文件

-include vendor/vendorname/antonino/BoardConfigVendor.mk

TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := generic

device.mk设备.mk

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/uniroma2/antonino-kernel/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES := \
    $(LOCAL_KERNEL):kernel

$(call inherit-product-if-exists, vendor/vendorname/antonino/device-vendor.mk)

full_antonino.mk full_antonino.mk

$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, device/vendorname/antonino/device.mk)

PRODUCT_NAME := full_antonino
PRODUCT_DEVICE := antonino
PRODUCT_BRAND := Android
PRODUCT_MODEL := antonino
PRODUCT_MANUFACTURER := vendorname

vendorsetup.sh供应商设置.sh

add_lunch_combo full_antonino-userdebug

Looks like the build system ran out of space on the hard drive to write the final images.看起来构建系统用完了硬盘驱动器上的空间来写入最终图像。 Free up a bunch of disk space and try again.释放大量磁盘空间并重试。

OSError: [Errno 2] No such file or directory
Out of space? the tree size of out/target/product/antonino/system is (MB): 337

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM