So I'm trying to write up a simple system image patcher for my lineageOS rom (V20 Nougat).
When trying to pack the img after modification, I get this error:
Re-packing img.
Code:
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 1 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 21 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 37 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 38 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 74 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 76 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 78 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 79 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 80 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 81 is missing fields, skipping
/home/guy/Desktop/ROM_EXTRACT/file_contexts.bin: line 82 is missing fields, skipping
Creating filesystem with parameters:
Size: 2684190720
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 10239
Label:
Blocks: 655320
Block groups: 20
Reserved block group size: 159
error: build_directory_structure: cannot lookup security context for /system/addon.d
Any idea what I'm doing wrong?
Here is a whole copy of my script so far:
Code:
echo "Deleting old folder if it exists."
echo
rm -r ~/Desktop/ROM_EXTRACT
echo "Extracting ROM."
echo
unzip ~/Desktop/NULL_ROM.zip -d ~/Desktop/ROM_EXTRACT
echo "Changing directories"
echo
cd ~/Desktop/ROM_EXTRACT
echo "Copying Tools."
echo
mkdir ~/Desktop/ROM_EXTRACT/TOOLS
cp ~/Desktop/PATCH_TOOLS/* ~/Desktop/ROM_EXTRACT/TOOLS
chmod 0777 ~/Desktop/ROM_EXTRACT/TOOLS/*
echo "Extracting dat."
echo
mkdir ~/Desktop/ROM_EXTRACT/EXTRACT
./TOOLS/sdat2img.py system.transfer.list system.new.dat ./EXTRACT/system.img
echo "Mounting img."
echo
mkdir ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
sudo mount -t ext4 -o loop ./EXTRACT/system.img ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
sudo mount -o remount,rw ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
echo "PATCH IMG"
echo
echo "Re-packing img."
echo
./TOOLS/make_ext4fs -T 0 -S ~/Desktop/ROM_EXTRACT/file_contexts.bin -l 2684190720 -a system ./system_new.img ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
echo "Cleaning up."
echo
sudo umount ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
sudo rmdir ~/Desktop/ROM_EXTRACT/EXTRACT/MODIFY
Related
Code:
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 5 -ne 4 -a 5 -ne 5 -a 5 -ne 6 ']'
+ SRC_DIR=/home/coderz/liquid/out/target/product/glacier/data
+ '[' '!' -d /home/coderz/liquid/out/target/product/glacier/data ']'
+ OUTPUT_FILE=/home/coderz/liquid/out/target/product/glacier/userdata.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=data
+ SIZE=1232072704
+ FC=
+ case $EXT_VARIANT in
+ '[' -z data ']'
+ '[' -z 1232072704 ']'
+ '[' -n '' ']'
+ MAKE_EXT4FS_CMD='make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data'
+ echo make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
+ make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
Creating filesystem with parameters:
Size: 1232072704
Block size: 4096
Blocks per group: 32768
Inodes per group: 7520
Inode size: 256
Journal blocks: 4699
Label:
Blocks: 300799
Block groups: 10
Reserved block group size: 79
Created filesystem with 10/75200 inodes and 9907/300799 blocks
+ '[' 0 -ne 0 ']'
Running: simg2img /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img
Running: e2fsck -f -n /home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? no
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img: ********** WARNING: Filesystem still has errors **********
/home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img: 10/75200 files (0.0% non-contiguous), 9907/300799 blocks
error: failed to build /home/coderz/liquid/out/target/product/glacier/userdata.img from /home/coderz/liquid/out/target/product/glacier/data
make: *** [/home/coderz/liquid/out/target/product/glacier/userdata.img] Error 1
make: *** Deleting file `/home/coderz/liquid/out/target/product/glacier/userdata.img'
make: *** Waiting for unfinished jobs....
ProGuard, version 4.4
Reading program jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
CHK include/linux/version.h
make[1]: Leaving directory `/home/coderz/liquid/kernel/htc/glacier'
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes.jar]
Preparing output jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
i have 157 gig free on hard drive
in /build/tools/releasetools/build_image.py
build_command = []
fs_type = prop_dict.get("fs_type", "")
run_fsck = False
if fs_type.startswith("ext"):
build_command = ["mkuserimg.sh"]
if "extfs_sparse_flag" in prop_dict:
build_command.append(prop_dict["extfs_sparse_flag"])
run_fsck = True
set
Code:
run_Fsck = False
Nothing will 100% bugs free
I'm android lover, and I do use my cell phone a lot. I have JB updated but still some minor bugs are there, but then I realized that nothing will be 100% bugs free in future also.
hi friends i have this next problem...i compile aosp from source but the compilation stops and no created the zip...create the appp...kernel...I leave here the lines
Install: out/target/product/mako/system/app/Gallery2.apk
Install: out/target/product/mako/system/app/Settings.apk
build/tools/generate-notice-files.py out/target/product/mako/obj/NOTICE.txt out/target/product/mako/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" out/target/product/mako/obj/NOTICE_FILES/src
Combining NOTICE files into HTML
Combining NOTICE files into text
Installed file list: out/target/product/mako/installed-files.txt
Target system fs image: out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkuserimg.sh -s out/target/product/mako/system out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 880803840 out/target/product/mako/root/file_contexts
+ echo 'in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/lib/jvm/java-6-oracle/bin:/home/david/aosp/out/host/linux-x86/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.7/bin:/home/david/aosp/development/emulator/qtools:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/david/aosp/development/scripts:/home/david/aosp/prebuilts/devtools/tools:/home/david/bin:/home/david/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-6-oracle/bin:/usr/lib/jvm/java-6-oracle/db/bin:/usr/lib/jvm/java-6-oracle/jre/bin:/home/david/android/sdk:/home/david/android/sdk/platform-tools:/home/david/android/sdk/tools:/home/david/bin'
in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/lib/jvm/java-6-oracle/bin:/home/david/aosp/out/host/linux-x86/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.7/bin:/home/david/aosp/development/emulator/qtools:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/david/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/david/aosp/development/scripts:/home/david/aosp/prebuilts/devtools/tools:/home/david/bin:/home/david/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-6-oracle/bin:/usr/lib/jvm/java-6-oracle/db/bin:/usr/lib/jvm/java-6-oracle/jre/bin:/home/david/android/sdk:/home/david/android/sdk/platform-tools:/home/david/android/sdk/tools:/home/david/bin
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 6 -ne 5 -a 6 -ne 6 ']'
+ SRC_DIR=out/target/product/mako/system
+ '[' '!' -d out/target/product/mako/system ']'
+ OUTPUT_FILE=out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=system
+ SIZE=880803840
+ FC=out/target/product/mako/root/file_contexts
+ case $EXT_VARIANT in
+ '[' -z system ']'
+ '[' -z 880803840 ']'
+ '[' -n out/target/product/mako/root/file_contexts ']'
+ FCOPT='-S out/target/product/mako/root/file_contexts'
+ MAKE_EXT4FS_CMD='make_ext4fs -s -S out/target/product/mako/root/file_contexts -l 880803840 -a system out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/mako/system'
+ echo make_ext4fs -s -S out/target/product/mako/root/file_contexts -l 880803840 -a system out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/mako/system
make_ext4fs -s -S out/target/product/mako/root/file_contexts -l 880803840 -a system out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/mako/system
+ make_ext4fs -s -S out/target/product/mako/root/file_contexts -l 880803840 -a system out/target/product/mako/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/mako/system
Creating filesystem with parameters:
Size: 880803840
Block size: 4096
Blocks per group: 32768
Inodes per group: 7680
Inode size: 256
Journal blocks: 3360
Label:
Blocks: 215040
Block groups: 7
Reserved block group size: 55
Created filesystem with 1113/53760 inodes and 55146/215040 blocks
+ '[' 0 -ne 0 ']'
Install system fs image: out/target/product/mako/system.img
out/target/product/mako/system.img+out/target/product/mako/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=899137536 blocksize=135168 total=213824688 reserve=9191424
[email protected]:~/aosp$
if you try to continue the compilation get this
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE mako
make:Nothing to be done for «droid».
I'm trying to install Linux on android according to this guide: androlinux .com /android-ubuntu-development/how-to-install-ubuntu-on-android/ threw all the necessary files to the memory card. The problem is when it has a file bootubuntu:
Code:
#modprobe ext2
busybox mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
if [ ! -d /data/local/ubuntu ]
then
mkdir /data/local/ubuntu
fi
export mnt=/data/local/ubuntu
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
mknod /dev/loop1 b 7 0
losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img
mount -t ext4 /dev/block/loop1 /data/local/ubuntu
#mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "Setting localhost on /etc/hosts "
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "READY TO ROCK AND ROLL BABY! "
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo " "
chroot $mnt /system/bin/sh
#After exit command is executed clear it all up
echo " "
echo "Shutting down Ubuntu"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/loop1
Got an error when calling `chroot: can not execute '/system/bin/sh': no such file or directory`
Despite this, the file exists, I checked to `ls -la /system/bin/sh`
What to do?
Hello All,
I am trying to build LineAge 14.1 for Lux [Moto X Play].
I am following
http://wiki.lineageos.org/lux_build.html & http://wiki.lineageos.org/signing_builds.html
Now, when I am building unsigned build, everything works fine.
no issues at all.
ie by running
Code:
brunch lux
But, when I try to build a signed build,
with
Code:
mka dist
I get the following error.
Code:
[ 84% 1135/1347] target R.java/Manifest.java: PermissionTestAppMV1 (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/PermissionTestAppMV1_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 84% 1137/1347] target R.java/Manifest.java: PerformanceLaunch (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/PerformanceLaunch_intermediates/src/R.stamp)
platform_testing/tests/perf/PerformanceLaunch/res/values-en-rXA/strings.xml:0: warning: Resource file platform_testing/tests/perf/PerformanceLaunch/res/values-en-rXA/strings.xml is skipped as pseudolocalization was done automatically.
platform_testing/tests/perf/PerformanceLaunch/res/values-ar-rXB/strings.xml:0: warning: Resource file platform_testing/tests/perf/PerformanceLaunch/res/values-ar-rXB/strings.xml is skipped as pseudolocalization was done automatically.
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 84% 1140/1347] target R.java/Manifest.java: CMPlatformTests (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/CMPlatformTests_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 85% 1156/1347] host Java: ahat-tests (/mnt/volume-sfo2-01/android/system/out/host/common/obj/JAVA_LIBRARIES/ahat-tests_intermediates/classes)
Note: art/tools/ahat/test/SortTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[B][ 89% 1206/1347] host C: libosi-host <= system/bt/osi/./src/alarm.c
FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang -I device/motorola/msm8916-common/include -I system/bt/osi/.. -I system/bt/osi/../utils/include -I system/bt/osi/../stack/include -I device/motorola/msm8916-common/bluetooth -I system/bt/osi -I /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates -I /mnt/volume-sfo2-01/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libosi-host_intermediates -I libnativehelper/include/nativehelper \$(cat /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem tools/include -isystem /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/include -c -fno-exceptions -Wno-multichar -m64 -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 -fstack-protector-strong --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -target x86_64-linux-gnu -std=gnu99 -DHAS_BDROID_BUILDCFG -DQLOGKIT_USERDEBUG -DUSE_AUDIO_TRACK -DEXPORT_SYMBOL=\"__attribute__((visibility(\\\"default\\\")))\" -fvisibility=hidden -Wall -Wextra -Werror -Wno-gnu-variable-sized-type-not-at-end -Wno-typedef-redefinition -Wno-unused-parameter -UNDEBUG -DLOG_NDEBUG=1 -D_GNU_SOURCE -DOS_GENERIC -fPIC -D_USING_LIBCXX -std=c99 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d -o /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.o system/bt/osi/./src/alarm.c ) && (cp /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d >> /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.P; rm -f /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d )"
In file included from system/bt/osi/./src/alarm.c:19:
In file included from system/bt/osi/../include/bt_target.h:38:
In file included from device/motorola/msm8916-common/bluetooth/bdroid_buildcfg.h:20:
system/core/include/cutils/properties.h:22:10:[COLOR="Red"] fatal error[/COLOR]: 'sys/system_properties.h' file not found
#include <sys/system_properties.h>
^
1 error generated.[/B]
[ 89% 1206/1347] Package target files: /mnt/volume-sfo2-01/android/system/out/target/product/lux/obj/PACKAGING/target_files_intermediates/lineage_lux-target_files-ce75856d2e.zip
building image from target_files RECOVERY...
using prebuilt boot.img from BOOTABLE_IMAGES...
putting script in bin/install-recovery.sh
running: unzip -o -q /mnt/volume-sfo2-01/android/system/out/target/product/lux/obj/PACKAGING/target_files_intermediates/lineage_lux-target_files-ce75856d2e.zip -d /tmp/targetfiles-atRbed
++++ boot ++++
using prebuilt boot.img from BOOTABLE_IMAGES...
++++ recovery ++++
building image from target_files RECOVERY...
running: mkbootfs -f /tmp/targetfiles-atRbed/META/recovery_filesystem_config.txt /tmp/targetfiles-atRbed/RECOVERY/RAMDISK
running: minigzip
running: /mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin/mkbootimg --kernel /tmp/targetfiles-atRbed/RECOVERY/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x3F ehci-hcd.park=3 vmalloc=400M androidboot.bootdevice=7824900.sdhci utags.blkdev=/dev/block/bootdevice/by-name/utags utags.backup=/dev/block/bootdevice/by-name/utagsBackup movablecore=160M buildvariant=userdebug --base 0x80000000 --dt /tmp/targetfiles-atRbed/RECOVERY/dt --pagesize 2048 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --os_version 7.1.1 --os_patch_level 2017-01-05 --ramdisk /tmp/tmpUZnRvD --output /tmp/tmpJ2eyen
++++ system ++++
creating system.img...
BuildImage: in_dir = /tmp/targetfiles-atRbed/system, out_file = /tmp/system-UI6LRH.img
fs type is not ext4
Running: mkuserimg.sh -s /tmp/targetfiles-atRbed/system /tmp/system-UI6LRH.img ext4 system 2852126720 -T 1230768000 -C /tmp/targetfiles-atRbed/META/filesystem_config.txt -B /tmp/system-blocklist-xeaHOq.map -L system /tmp/targetfiles-atRbed/META/file_contexts.bin
make_ext4fs -s -T 1230768000 -S /tmp/targetfiles-atRbed/META/file_contexts.bin -C /tmp/targetfiles-atRbed/META/filesystem_config.txt -B /tmp/system-blocklist-xeaHOq.map -L system -l 2852126720 -a system /tmp/system-UI6LRH.img /tmp/targetfiles-atRbed/system
loaded 2312 fs_config entries
Creating filesystem with parameters:
Size: 2852126720
Block size: 4096
Blocks per group: 32768
Inodes per group: 7920
Inode size: 256
Journal blocks: 10880
Label: system
Blocks: 696320
Block groups: 22
Reserved block group size: 175
Created filesystem with 2322/174240 inodes and 195326/696320 blocks
Running ['mkuserimg.sh', '-s', '/tmp/targetfiles-atRbed/system', '/tmp/system-UI6LRH.img', 'ext4', 'system', '2852126720', '-T', '1230768000', '-C', '/tmp/targetfiles-atRbed/META/filesystem_config.txt', '-B', '/tmp/system-blocklist-xeaHOq.map', '-L', 'system', '/tmp/targetfiles-atRbed/META/file_contexts.bin'] command, exit code = 0
++++ userdata ++++
creating userdata.img...
BuildImage: in_dir = /tmp/tmpGpF5hC/data, out_file = /tmp/tmpXM9Gfo
fs type is not ext4
Running: mkf2fsuserimg.sh /tmp/tmpXM9Gfo 11815223296
in mkf2fsuserimg.sh PATH=/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin:/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin/:/usr/lib/jvm/java-8-openjdk-amd64/bin:/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin:/mnt/volume-sfo2-01/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/mnt/volume-sfo2-01/android/system/prebuilts/gcc/linux-x86/:/mnt/volume-sfo2-01/android/system/development/scripts:/mnt/volume-sfo2-01/android/system/prebuilts/devtools/tools:/mnt/volume-sfo2-01/android/system/external/selinux/prebuilts/bin:/mnt/volume-sfo2-01/android/system/prebuilts/android-emulator/linux-x86_64:/mnt/volume-sfo2-01/bin:/root/platform-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
make_f2fs -l 11815223296 /tmp/tmpXM9Gfo
Info: zone aligned segment0 blkaddr: 512
Info: Overprovision ratio = 1.890%
Info: Overprovision segments = 216 (GC reserved = 113)
Running ['mkf2fsuserimg.sh', '/tmp/tmpXM9Gfo', '11815223296'] command, exit code = 0
userdata size (14) is 0.00% of limit (11815223296)
++++ extrauserdata ++++
++++ cache ++++
creating cache.img...
BuildImage: in_dir = /tmp/tmpa0tOUX/cache, out_file = /tmp/tmpTM0SUW
fs type is not ext4
Running: mkuserimg.sh -s /tmp/tmpa0tOUX/cache /tmp/tmpTM0SUW ext4 cache 805306368 -T 1230768000 -L cache /tmp/targetfiles-atRbed/META/file_contexts.bin
make_ext4fs -s -T 1230768000 -S /tmp/targetfiles-atRbed/META/file_contexts.bin -L cache -l 805306368 -a cache /tmp/tmpTM0SUW /tmp/tmpa0tOUX/cache
Creating filesystem with parameters:
Size: 805306368
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 3072
Label: cache
Blocks: 196608
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/49152 inodes and 6355/196608 blocks
Running ['mkuserimg.sh', '-s', '/tmp/tmpa0tOUX/cache', '/tmp/tmpTM0SUW', 'ext4', 'cache', '805306368', '-T', '1230768000', '-L', 'cache', '/tmp/targetfiles-atRbed/META/file_contexts.bin'] command, exit code = 0
cache size (14) is 0.00% of limit (805306368)
done.
[ 89% 1206/1347] Package symbols: /mnt/volume-sfo2-01/android/system/out/target/product/lux/lineage_lux-symbols-ce75856d2e.zip
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/volume-sfo2-01/android/system'
[B][COLOR="Red"]#### make failed to build some targets (06:42 (mm:ss)) ####[/COLOR][/B]
[email protected]:/mnt/volume-sfo2-01/android/system#
Any assistance will be appreciated.
Thank you.
Bump
I am getting exact same header file missing error
system_properties.h not found.
How to solve this.
Please help.
The same error was happening to me when running
Code:
mma
I managed to fix this by running
Code:
mma bacon
In your case however, I'm assuming you need to run
Code:
mka bacon dist
This assumption is based on the wiki article you mentioned:
breakfast <codename>
mka target-files-package dist
Click to expand...
Click to collapse
AFAICT bacon is some sort of "target files package" which needs to be specified when building.
Hello guys, facing this error while comping the rom.
Any suggestions on how do I fix this??
Building PE rom.
Code:
++++ system ++++
creating system.img...
Running: mkuserimg_mke2fs.sh -s /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img ext4 system 1536000512 -j 0 -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -L system -M 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -S 55faa1c1-4e7b-5e3a-81aa-1b593b87847a /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L system -m 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -E android_sparse,hash_seed=55faa1c1-4e7b-5e3a-81aa-1b593b87847a -t ext4 -b 4096 /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img 375000
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 375000 4k blocks and 93888 inodes
Filesystem UUID: 273ec7de-1500-51e5-9c8c-d251694ef6ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -S /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin -f /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM -a /system /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img
__populate_fs: Could not allocate block in ext2 filesystem while writing file "framework-res.apk"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
Error: '['mkuserimg_mke2fs.sh', '-s', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img', 'ext4', 'system', '1536000512', '-j', '0', '-T', '1230748200', '-C', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt', '-B', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map', '-L', 'system', '-M', '0', '-U', '273ec7de-1500-51e5-9c8c-d251694ef6ac', '-S', '55faa1c1-4e7b-5e3a-81aa-1b593b87847a', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin']' failed with exit code 4:
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L system -m 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -E android_sparse,hash_seed=55faa1c1-4e7b-5e3a-81aa-1b593b87847a -t ext4 -b 4096 /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img 375000
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 375000 4k blocks and 93888 inodes
Filesystem UUID: 273ec7de-1500-51e5-9c8c-d251694ef6ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -S /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin -f /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM -a /system /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img
__populate_fs: Could not allocate block in ext2 filesystem while writing file "framework-res.apk"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
Out of space? The tree size of /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM is 1526571008 bytes (1455 MB), with reserved space of 0 bytes (0 MB).
The max image size for filsystem files is 1536000512 bytes (1464 MB), out of a total partition size of 1536000512 bytes (1464 MB).
Traceback (most recent call last):
File "build/make/tools/releasetools/add_img_to_target_files", line 824, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/add_img_to_target_files", line 818, in main
AddImagesToTargetFiles(args[0])
File "build/make/tools/releasetools/add_img_to_target_files", line 727, in AddImagesToTargetFiles
output_zip, recovery_img=recovery_image, boot_img=boot_image)
File "build/make/tools/releasetools/add_img_to_target_files", line 150, in AddSystem
block_list=block_list)
File "build/make/tools/releasetools/add_img_to_target_files", line 281, in CreateImage
assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed
ninja: build stopped: subcommand failed.
14:58:53 ninja failed with: exit status 1
#### failed to build some targets (05:03 (mm:ss)) ####