Unable to create recovery image using AOSP 4.2.2

I am trying to create recovery.img for AOSP 4.2.2 with the following commands:

cd myandroidsrc source build/envsetup.sh lunch make recoveryimage -j8 

But I continue to encounter the following error:

 find: `src': No such file or directory ... a lot of "PRODUCT_COPY_FILES /frameworkds/base/data/.. .ogg ignored" messages ... cp -f /boot.img /device/myvendor/mydevice/boot/ cp: cannot stat `/boot.img': No such file or directory make: *** [out/target/product/mydevice/boot.img] Error 1 make: *** Deleting file `out/target/product/mydevice/boot.img' make: *** Waiting for unfinished jobs.... 

I also tried creating a boot image with:

 make bootimage 

But this also leads to the same error as @make recoveryimage. Am I missing a call, or is my file structure erroneous?

+5
source share
1 answer

You are using preloaded boot.img, if so check its path correctly. cp -f / boot.img / device / myvendor / mydevice / boot / As you can see above, the root of the device tree should have boot.img that is being copied.

+1
source

Source: https://habr.com/ru/post/1261780/


All Articles