Hello everyone so i'm a developer and i'm STUCK. I have spent countless hours trying to figure out what is causing this.. I'm at my end. If someone knows how to fix this error PLEASE let me know...If you even just have a idea or something for me to try PLEASE post it. :fingers-crossed:
thank you in advance
I posted a pic of the error but here is another look at the error
Package OTA: //out/target/product/vs980/giggle_vs980-ota-eng.gigglekat.zip
MKBOOTIMG=device/lge/g2-common/releasetools/mkbootimg.mk \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/gigglekat/jenkins/giggle/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=vs980,g2,galbi \
\
\
//out/target/product/vs980/obj/PACKAGING/target_files_intermediates/giggle_vs980-target_files-eng.gigglekat.zip /home/gigglekat/jenkins/giggle/out/target/product/vs980/giggle_vs980-ota-eng.gigglekat.zip
unzipping target target-files...
running: unzip -o -q /out/target/product/vs980/obj/PACKAGING/target_files_intermediates/giggle_vs980-target_files-eng.gigglekat.zip -d /tmp/targetfiles-_hgXek
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1172, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1115, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "//build/tools/releasetools/common.py", line 156, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/build/tools/releasetools/common.py", line 170, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack
Related
Hello
I'm building CM for my Xperia J, almost finished but I have this stupid error:
Code:
Package target files: /home/lozohcum/CM/out/target/product/jlo/obj/PACKAGING/target_files_intermediates/cm_jlo-target_files-2081b25fba.zip
Package OTA: /home/lozohcum/CM/out/target/product/jlo/cm_jlo-ota-2081b25fba.zip
MKBOOTIMG=device/sony/tamsui-common/custombootimg.mk \
device/sony/tamsui-common/releasetools/semc_ota_from_target_files -v \
-p /home/lozohcum/CM/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=ST26i,ST26a,jlo \
/home/lozohcum/CM/out/target/product/jlo/obj/PACKAGING/target_files_intermediates/cm_jlo-target_files-2081b25fba.zip /home/lozohcum/CM/out/target/product/jlo/cm_jlo-ota-2081b25fba.zip
unzipping target target-files...
running: unzip -o -q /home/lozohcum/CM/out/target/product/jlo/obj/PACKAGING/target_files_intermediates/cm_jlo-target_files-2081b25fba.zip -d /tmp/targetfiles-ttBFcz
/tmp/targetfiles-ttBFcz/SYSTEM/lib/libOmxWmvDec.so: write error (disk full?). Continue? (y/n/^C) y
The problem is that I actually have 94.5GB free on my /home
/home is on different partition that ubuntu itself.
I have the strange feeling that CM build script is trying to build CM on my system partition where I had my home in past but it would be nonsense
heyyo, build question here.
1. i hope i dont bother someone, because this is carbon building and not in their threat, but i'm not sure if this error is really related to there git?
2. OS info: i'm currently running on antergos, an arch based linux distro, therefor i'm using the arch wiki for setting up the building enviroment, more here:
https://wiki.archlinux.org/index.php/android#Building_Android
3. the lower part is taken from the official carbon githubt, more here:
https://github.com/CarbonDev/android
the terminal input
mkdir ~/bin
export PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir carbon
cd carbon
virtualenv2 venv # Creates a directory, venv/, containing the Virtualenv
source venv/bin/activate
repo init -u https://github.com/CarbonDev/android.git -b kk && repo sync -f
. build/envsetup.sh
lunch 23
make carbon -j5
then i get this error output (after about 1:20h):
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_derived_sources_target_CSSValueKeywords (/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp)
Traceback (most recent call last):
File "scripts/make_css_property_names.py", line 238, in <module>
in_generator.Maker(CSSPropertiesWriter).main(sys.argv)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_property_names.py", line 233, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
external/chromium_org/third_party/WebKit/Source/core/make_derived_sources.target.linux-arm.mk:74: recipe for target '/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp' failed
make: *** [/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "scripts/make_css_value_keywords.py", line 177, in <module>
in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_value_keywords.py", line 172, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
external/chromium_org/third_party/WebKit/Source/core/make_derived_sources.target.linux-arm.mk:108: recipe for target '/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp' failed
make: *** [/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp] Error 1
any idea? Thanks in advance
Hi guys,
I am trying to generate an incremental OTA update package from AOSP source code.
I saw that the key may be the file ./build/tools/releasetools/ota_from_target_files that requires the "-i <previous_OTA_zip_file>" parameter to do this.
I tried adding this in the ./build/core/Makefile correct section, changing :
Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "Package OTA: [email protected]"
$(hide) ./build/tools/releasetools/ota_from_target_files -v \
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
$(BUILT_TARGET_FILES_PACKAGE) [email protected]
to
Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "Package OTA: [email protected]"
$(hide) ./build/tools/releasetools/ota_from_target_files -v \
[B]-i ./temp/old_ota.zip \[/B]
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
$(BUILT_TARGET_FILES_PACKAGE) [email protected]
However, when I issue the command 'make otapackage', I receive the following error :
... can't find recovery API version in input target-files
Does anyone know how to fix this ? Or, if I'm doing something wrong, please enlighten me
Thanks/
Is there already a solution? I have the same problem.
TheRavenGod said:
Hi guys,
I am trying to generate an incremental OTA update package from AOSP source code.
I saw that the key may be the file ./build/tools/releasetools/ota_from_target_files that requires the "-i <previous_OTA_zip_file>" parameter to do this.
I tried adding this in the ./build/core/Makefile correct section, changing :
Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "Package OTA: [email protected]"
$(hide) ./build/tools/releasetools/ota_from_target_files -v \
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
$(BUILT_TARGET_FILES_PACKAGE) [email protected]
to
Code:
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "Package OTA: [email protected]"
$(hide) ./build/tools/releasetools/ota_from_target_files -v \
[B]-i ./temp/old_ota.zip \[/B]
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
$(BUILT_TARGET_FILES_PACKAGE) [email protected]
However, when I issue the command 'make otapackage', I receive the following error :
... can't find recovery API version in input target-files
Does anyone know how to fix this ? Or, if I'm doing something wrong, please enlighten me
Thanks/
Click to expand...
Click to collapse
did you solved this??
Yes, I did !
The trick is that the old OTA file should actually be one of the other files produced by the 'make otapackage' command : the one with target in the title.
After a lot of struggle (that in the end produced the desired incremental OTA), I also found this site that explains it : http://jhshi.me/2014/11/09/aosp-release-tools/
Best regards
Hello All ,
When I build android lollipop 5.0.0.1 , at the end system_sparse.img is not converted to system.img ,
following error is show
if [ true = true ]; then \
simg2img out/target/product/evk_6sl/system_sparse.img out/target/product/evk_6sl/system.img; \
fi
/bin/bash: line 1: simg2img: command not found
make: *** [out/target/product/evk_6sl/system_sparse.img] Error 127
make: *** Deleting file `out/target/product/evk_6sl/system_sparse.img'
simg2img is found in the path /out/host/linux-x86/bin/simg2img
AND /out/host/linux-x86/bin/ is export to PATH environment variable.
Still simg2img command is not found ....?
Please help me sort out this issue.
Regards,
Kishore P
I am running Ubuntu 16.10 under VirtualBox in a Windows 64-bit machine and trying to build the Sony's open source copyleft kernel for 34.3.A.0.217, which can be downloaded here: https://developer.sonymobile.com/do...rchives/open-source-archive-for-34-3-a-0-217/
-Untouched copyleft source code
-Untouched ramdisk extracted from stock kernel.elf file with this tool: https://forum.xda-developers.com/xp...oot-automatic-repack-stock-kernel-dm-t3301605
-Using AOSP mkbootimg (the new one written in Python: https://android.googlesource.com/platform/system/core/+/nougat-release/mkbootimg/mkbootimg) with arguments specified in README_Xperia (https://github.com/bamsbamx/BMSBMX_kernel_kugo/blob/master/README_Xperia)
Even if the build is succesful and the boot.img file is generated properly, the device gets stuck in SONY logo when flashing it
Any ideas about how can I find the problem?
The following is the build script:
Code:
#!/bin/bash
RED=1
GREEN=2
BLUE=4
colorPrint() {
tput setaf $2
echo $1
tput sgr0
}
colorPrint "Initializing workspace..." $BLUE
#Device config
device=kugo
#Workspace directories
workdir="$(pwd)"
outputfolder=${workdir}/OUTPUT
outputdir=${outputfolder}/${device}
toolchains=${workdir}/toolchains
ramdisk=${workdir}/ramdisks/${device}/ramdisk
export ARCH=arm64
export CROSS_COMPILE=${toolchains}/aarch64-linux-android-4.9-kernel/bin/aarch64-linux-android-
export KBUILD_DIFFCONFIG=kugo_diffconfig
colorPrint "Cleaning previous builds..." $BLUE
rm -rf $outputdir
mkdir -p $outputdir
colorPrint "Configuring kernel..." $BLUE
make msm-perf_defconfig O=$outputdir
colorPrint "Building kernel..." $BLUE
time make -j8 O=$outputdir 2>&1
if [ ! -f $outputdir/arch/arm64/boot/Image.gz-dtb ]; then
colorPrint "ERROR: kernel image not found. Kernel build failed" $RED
exit 1
fi
if [ ! -e $outputdir/ramdisk.cpio.gz ]; then
colorPrint "ERROR: ramdisk image file not found. Compression failed" $RED
exit 1
fi
colorPrint "Packaging boot image file" $BLUE
${workdir}/utils/mkqcdtbootimg \
--kernel $outputdir/arch/arm64/boot/Image.gz-dtb \
--ramdisk $outputdir/ramdisk.cpio.gz \
--base 0x20000000 \
--ramdisk_offset 0x02000000 \
--pagesize 2048 \
--tags_offset 0x01E00000 \
--cmdline "androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 zram.backend=z3fold earlyprintk" \
--output $outputdir/boot.img
if [ ! -f $outputdir/boot.img ]; then
colorPrint "ERROR: boot image file not found. boot packaging failed" $RED
exit 1
fi
colorPrint "DONE" $GREEN
colorPrint "boot image file can be found at ${outputdir}/boot.img" $GREEN