Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator is missing a kernel file #199

Open
phodina opened this issue Nov 8, 2022 · 3 comments
Open

Emulator is missing a kernel file #199

phodina opened this issue Nov 8, 2022 · 3 comments

Comments

@phodina
Copy link

phodina commented Nov 8, 2022

Hello,

I've built the x86_64 emulator image with following command:

nix-build --arg configuration '{ device="x86_64"; flavor="vanilla"; }' -A emulator

But when I run the ./result I get this error:

$ ./result
INFO    | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A)
ERROR   | This AVD's configuration is missing a kernel file! Please ensure the file "kernel-ranchu" is in the same location as your system image.
ERROR   | ANDROID_SDK_ROOT is defined (/nix/store/04x8sf67kc6w1n813r3i11kgla07mw78-fake-sdk) but cannot find kernel file in /nix/store/04x8sf67kc6w1n813r3i11kgla07mw78-fake-sdk/system-images/ sub directories

I'm on branch commit c8a71bcd1236fad6ae7dea846bab37b9f4c7a641 (HEAD, tag: vanilla-2022022022, tag: grapheneos-2022021721

Any idea what I'm doing wrong or how to fix the error?

@phodina
Copy link
Author

phodina commented Nov 18, 2022

Hi @danielfullmer,

could you please help with this cryptic error?

@c2vi
Copy link

c2vi commented May 1, 2024

Hi,

I had the same issue.

This nix command in the AOSP build system runs something like lunch aosp_x86_64-eng, which does not build the necessary files for an emulator. with lunch sdk_x86_64-eng it does.

So setting the productNamePrefix = "sdk_"; option in the config would solve this issue.

Your cmd would then be:

nix-build --arg configuration '{ device="x86_64"; flavor="vanilla"; productNamePrefix = "sdk_"; }' -A emulator

Shouldn't the emulator output set the productNamePrefix always to "sdk_"? Has a robotnix built emulator ever worked like it is right now?

@RankoR
Copy link

RankoR commented Jun 27, 2024

Facing the same while building AOSP (manually on Arch, not with this project).

So setting the productNamePrefix = "sdk_"; option in the config would solve this issue.

For AOSP 14 correct target would be sdk_phone64_x86_64-trunk_staging-eng/userdebug/user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants