google / android-riscv64

Issues and discussions around RISC-V support in AOSP.
Apache License 2.0
226 stars 15 forks source link

Android cuttlefish failed to boot #133

Open gongyu0725 opened 10 months ago

gongyu0725 commented 10 months ago

I try to refer to https://github.com/google/android-cuttlefish/tree/steve-dir-fix/docker

Have anyone ever encountered a similar problem?

The environment and build command of my host are as follows.

$ lsb_release -a LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

$ cf_docker_create cf4 $ ssh vsoc-01@${ip_cf4} -- 'tar xzvf -' < /home/vd001/download/cvd-host_package.tar.gz $ scp /home/vd001/download/*.img vsoc-01@${ip_cf4}:~/ $ source setup.sh $ cf_start_cf4 --start_webrtc --cpus 4 --memory_mb 4096 --gpu_mode=guest_swiftshader

NOTICE: We collect usage statistics in accordance with our Content Licenses (https://source.android.com/setup/start/licenses), Contributor License Agreement (https://cla.developers.google.com/), Privacy Policy (https://policies.google.com/privacy) and Terms of Service (https://policies.google.com/terms).

launch_cvd I 01-12 02:51:11 6032 6032 main.cc:186] Host changed from last run: 0 assemble_cvd I 01-12 02:51:11 6184 6184 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 assemble_cvd I 01-12 02:51:11 6184 6184 fetcher_config.cpp:129] Adjusting cvd_file paths to directory: /home/vsoc-01 assemble_cvd D 01-12 02:51:11 6184 6184 fetcher_config.cpp:223] Could not find file ending in kernel assemble_cvd D 01-12 02:51:11 6184 6184 fetcher_config.cpp:223] Could not find file ending in initramfs.img assemble_cvd I 01-12 02:51:11 6184 6184 config_flag.cpp:151] Launching CVD using --config='phone'. assemble_cvd D 01-12 02:51:11 6184 6184 subprocess.cpp:335] Started (pid: 6187): /home/vsoc-01/bin/extract-ikconfig assemble_cvd D 01-12 02:51:11 6184 6184 subprocess.cpp:337] /home/vsoc-01/boot.img assemble_cvd D 01-12 02:51:12 6184 6184 files.cpp:87] Setting up /var/empty run_cvd I 01-12 02:51:13 6408 6408 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 The following files contain useful debugging information: Serial console is disabled; use -console=true to enable it. Kernel log: /home/vsoc-01/cuttlefish/instances/cvd-1/kernel.log Logcat output: /home/vsoc-01/cuttlefish/instances/cvd-1/logs/logcat Launcher log: /home/vsoc-01/cuttlefish/instances/cvd-1/logs/launcher.log Instance configuration: /home/vsoc-01/cuttlefish/instances/cvd-1/cuttlefish_config.json Instance environment: /home/vsoc-01/.cuttlefish.sh /home/vsoc-01/bin/socket_vsock_proxy /home/vsoc-01/bin/bt_connector /home/vsoc-01/bin/config_server /home/vsoc-01/bin/kernel_log_monitor /home/vsoc-01/bin/logcat_receiver /home/vsoc-01/bin/metrics /home/vsoc-01/bin/log_tee /home/vsoc-01/bin/root-canal /home/vsoc-01/bin/secure_env /home/vsoc-01/bin/tombstone_receiver /home/vsoc-01/bin/crosvm /home/vsoc-01/bin/log_tee /home/vsoc-01/bin/log_tee bt_connector I 01-12 02:51:13 6419 6419 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 /home/vsoc-01/bin/wmediumd /home/vsoc-01/bin/log_tee /home/vsoc-01/bin/crosvm /home/vsoc-01/bin/modem_simulator /home/vsoc-01/bin/operator_proxy /home/vsoc-01/bin/webRTC socket_vsock_proxy I 01-12 02:51:14 6418 6418 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 kernel_log_monitor I 01-12 02:51:14 6421 6421 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 config_server I 01-12 02:51:14 6420 6420 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 operator_proxy I 01-12 02:51:14 6437 6437 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 tombstone_receiver I 01-12 02:51:14 6427 6427 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 log_tee I 01-12 02:51:14 6424 6424 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 metrics I 01-12 02:51:14 6423 6423 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 secure_env I 01-12 02:51:14 6426 6426 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 webRTC I 01-12 02:51:14 6438 6438 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 log_tee I 01-12 02:51:14 6432 6432 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 failed to read from socket, retry. modem_simulator I 01-12 02:51:14 6436 6436 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 Start modem simulator, server_fds: 75, Sim type: normal logcat_receiver I 01-12 02:51:14 6422 6422 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 log_tee I 01-12 02:51:14 6429 6429 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 log_tee I 01-12 02:51:14 6430 6430 cuttlefish_config.cpp:55] Failed to interpret "0" as an id, using instance id 1 Detected unexpected exit of monitored subprocess /home/vsoc-01/bin/crosvm Subprocess /home/vsoc-01/bin/crosvm (6428) has exited with exit code 1 Detected unexpected exit of monitored subprocess /home/vsoc-01/bin/crosvm Subprocess /home/vsoc-01/bin/crosvm (6435) has exited with exit code 1 Detected unexpected exit of monitored subprocess /home/vsoc-01/bin/crosvm Subprocess /home/vsoc-01/bin/crosvm (6454) has exited with exit code 1 Detected unexpected exit of monitored subprocess /home/vsoc-01/bin/crosvm

prashanthswami commented 9 months ago

I'd recommend using the launch_cvd command in this project's README for the time being. The issue you're facing is that the other project you're referring to here recommends things like WebRTC, which only works if CrosVM support exists for your architecture. Unfortunately CrosVM for RISC-V isn't available yet and QEMU is the only way to launch it.

If you'd like to investigate whether you can make that flow work, I'd definitely remove '--start_webrtc' from your command line as a start.