AOSP: Can't Run Emulator - General Questions and Answers

I'm a AOSP newbie. I am following this tutorial.
I have successfully synced my repo to tag android-11.0.0_r29.
I set lunch to aosp_arm-eng. The build reports:
...
[ 99% 90444/90520] //art/build/apex:art-check-debug-apex-gen generate art-check-debug-apex-gen.dummy
--bitness=auto, trying to autodetect. This may be incorrect!
Detected multilib
[100% 90520/90520] Target vbmeta image: out/target/product/generic_arm64/vbmeta.img
#### build completed successfully (05:25:57 (hh:mm:ss)) ####
However, when I attempt to run the emulator:
[email protected]:~/aosp$ emulator
emulator: ERROR: Can't get kernel version from the kernel image file: '/home/clayton/aosp/prebuilts/qemu-kernel/arm64/ranchu/kernel-qemu'
Have not found a solution. Please help.

Related

[Q] mtk recovery

Hello everybody! How in the CM9 source code, compile MTK6575 recovery,
========================================
Error message:
[email protected]:~/android/system$ ./build/tools/device/mkvendor.sh lenovo a360 ~/android/recovery.img
Arguments: lenovo a360 /home/winm/android/recovery.img
Output will be in /home/winm/android/system/device/lenovo/a360
gzip: ../recovery.img-ramdisk.gz: not in gzip format
cpio: Archiving abnormal termination
Done!
Use the following command to set up your build environment:
lunch full_a360-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_a360-eng
=========================================
unpack-mt65xx.pl
Please help
Thank you

Error while building RedWolf recovery: cp does not take correct arguments

I am currently compiling a Red Wolf custom recovery for Xiaomi Mi A2 lite (daisy). Sources are synced, device tree etc. all set up correctly. Now I am facing a rather banal-looking error during build. cp refuses to copy a directory, because -r is not specified in the build file.
I obviously tried to find the build file (rw_recovery/out/build_omni_daisy.ninja) and add the -r argument, but it seems to be regenerated at the beginning of every build process, as the process still fails and the previously changed line appears unchanged when opening the file after the attempted build.
These are the build steps:
Code:
. build/envsetup.sh
lunch omni_daisy-eng #config for the device
mka bootimage #device uses boot.img as recovery
This command leaves me with the following error:
Code:
[ 99% 6883/6884] Prebuilt (rw_recovery/out/target/product/daisy/kernel)
FAILED: rw_recovery/out/target/product/daisy/kernel
/bin/bash -c "(rm -f /home/luca/rw_recovery/out/target/product/daisy/kernel) && (cp rw_recovery/out/target/product/daisy/obj/KERNEL_OBJ/arch/arm64/boot/ rw_recovery/out/target/product/daisy/kernel )"
cp: -r not specified; omitting directory 'rw_recovery/out/target/product/daisy/obj/KERNEL_OBJ/arch/arm64/boot/'
ninja: build stopped: subcommand failed.
17:13:06 ninja failed with: exit status 1
I would love to hear any suggestions about how to force ninja to execute the command with -r. Alternatively, suggestions about where to find the file from which the above mentioned build file is recreated after executing mka command are much welcomed as well.

Problem building lineage source code for athene

I have this problem and i cant fix it. I try some tree sources of github but the problem its the same.
The guide i follow is this:
[Guide] How to Build Your Own Custom ROM [athene]
Hello guys. I will show you how to build LineageOS to Moto G4 Plus. You have to build in a Linux system. I prefer Ubuntu 16.04 in this guide. The lines which is starting with $ are commands you should write but you won't write $'s. 1- First...
forum.xda-developers.com
Thanks all!!!
breakfast athene
including vendor/lineage/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:38 dumpvars failed with: exit status 1
Device athene not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_motorola_athene
Default revision: lineage-16.0
Checking branch info
Default revision lineage-16.0 not found in android_device_motorola_athene. Bailing.
Branches found:
cm-13.0
cm-14.1
lineage-15.0
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:40 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:40 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_athene'
** Do you have the right repo manifest?

Need help with error while building unofficial crDroid ROM for my phone

So I am building an unofficial copy of crDroid for my OnePlus 9R and I am getting this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "[email protected]" depends on undefined module "vendor.lineage.biometrics.fingerprint.inscree
[email protected]"
12:01:38 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:32 (mm:ss)) ####
This never happened to me while building LineageOS 18.1. I am pretty new to compiling ROMs from source, so please help.
Thank you.
Errors while compiling crDroid 8 for OnePlus 9R
So, I was building crDroid for my phone the OnePlus 9R (codename: lemonades), and I encountered 2 errors.
The first one was after using the lunch command and selecting my device. The error was:
Code:
Which would you like? [aosp_arm-eng] 30
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Trying dependencies-only mode on a non-existing device tree?
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Now, I ignored this, and used the brunch command to start building the ROM, when I got this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "lineage.biom
[email protected]" depends on undefined module "ve
[email protected]"
17:03:33 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
Now, I assume I got this error due to missing files, so I re - downloaded the complete source code, and tried to build again, but I still got the same error.
I am pretty new to ROM development, and have no Idea what to do next, so any help would be appreciated.
Thank You.
(I have also attached Images of the errors.)
KomradeKamarov said:
Errors while compiling crDroid 8 for OnePlus 9R
So, I was building crDroid for my phone the OnePlus 9R (codename: lemonades), and I encountered 2 errors.
The first one was after using the lunch command and selecting my device. The error was:
Code:
Which would you like? [aosp_arm-eng] 30
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Trying dependencies-only mode on a non-existing device tree?
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Now, I ignored this, and used the brunch command to start building the ROM, when I got this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "lineage.biom
[email protected]" depends on undefined module "ve
[email protected]"
17:03:33 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
Now, I assume I got this error due to missing files, so I re - downloaded the complete source code, and tried to build again, but I still got the same error.
I am pretty new to ROM development, and have no Idea what to do next, so any help would be appreciated.
Thank You.
(I have also attached Images of the errors.)View attachment 5567035View attachment 5567037
Click to expand...
Click to collapse
i know this is a old thread but the correct sequence for crDroid buidling is the following:
1. repo sync
2. . build/envsetup.sh
3. brunch (followed by your device codename. I have the 9 Pro so mine would be brunch lemonadep
4. If it errors, then try
mka bacon -j$(nproc --all)
5. If it errors again, try brunch (followed by codename again)
I've gotten my phone to build successfully by doing this after it failed the first two times.

[GKI] [android13-5.10] [Bazel] build failed Differences between ksymtab and symbol list detected!

I following this instruction:https://source.android.com/docs/setup/build/building-kernels
I initialized repo and synced
Using Bazel to build (with build/build.sh same error)
Using this command:tools/bazel run --lto=none //common:kernel_aarch64_dist -- --dist_dir=out/android13-5.10/dist
And get this error:
ERROR: /home/aaron/Builds/android-kernel/common/BUILD.bazel:26:22: Checking for kmi_symbol_list_
strict_mode //common:kernel_aarch64 failed: (Exit 1): bash failed: error executing command (from
target //common:kernel_aarch64) /bin/bash -c ... (remaining 1 argument skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root f
or debugging
ERROR: Differences between ksymtab and symbol list detected!
Symbols missing from ksymtab:
- __cfi_slowpath
Symbols missing from symbol list:
Target //common:kernel_aarch64_dist failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3572,647s, Critical Path: 3535,69s
INFO: 7 processes: 3 internal, 4 linux-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Hello, I also encountered this problem, how did you solve it?

Categories

Resources