android-riscv64
android-riscv64 copied to clipboard
launch cuttlefish failed, Ask for help!
1.Native ubuntu environment:
2. Download the Android code:
repo init -u https://android.googlesource.com/platform/manifest -b master
3.Start compilation
3.After successful compilation, then download, build, and install the cuttlefish host Debian packages:
4.Then, Launch Cuttlefish ,but The following exception occurs:
launch_cvd -start_webrtc 01-20 11:43:05.933 8759 8759 I launch_cvd: main.cc:179 Using system_image_dir of:
`===================================================================
NOTICE:
By using this Android Virtual Device, you agree to Google Terms of Service (https://policies.google.com/terms). The Google Privacy Policy (https://policies.google.com/privacy) describes how Google handles information generated as you use Google Services. You can adjust the permission for sending diagnostic information to Google, such as crash reports and usage data from this Android Virtual Device, at any time by running "launch_cvd -report_anonymous_usage_stats=n" ===================================================================`
Reading --config option from: /home/ubuntu/riscv/gsource/out/target/product/vsoc_riscv64/android-info.txt Launching CVD using --config='phone'. GPU auto mode: did not detect prerequisites for accelerated rendering support, enabling --gpu_mode=guest_swiftshader. GPU vhost user auto mode: not needed for --gpu_mode=guest_swiftshader. Not enabling vhost user gpu. Path for instance UDS: /tmp/cf_avd_1000 The following lines contain useful debugging information: Point your browser to https://localhost:8443 to interact with the device. Serial console is disabled; use -console=true to enable it. Logcat output: /home/ubuntu/cuttlefish/instances/cvd-1/logs/logcat Kernel log: /home/ubuntu/cuttlefish/instances/cvd-1/kernel.log Launcher log: /home/ubuntu/cuttlefish/instances/cvd-1/logs/launcher.log Instance configuration: /home/ubuntu/cuttlefish/instances/cvd-1/cuttlefish_config.json Launcher Build ID: eng.ubuntu /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/modem_simulator /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/tombstone_receiver /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/operator_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/webRTC /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/casimir_control_server /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/screen_recording_server /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/adb_connector /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/socket_vsock_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/socket_vsock_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/tcp_connector Start modem simulator, server_fds: 81, Sim type: normal /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/control_env_proxy_server /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/echo_server /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/gnss_grpc_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/logcat_receiver /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/kernel_log_monitor /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/metrics /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/openwrt_control_server /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/log_tee /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/process_restarter /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/netsimd /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/socket_vsock_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/socket_vsock_proxy /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/secure_env /home/ubuntu/riscv/gsource/out/host/linux-x86/bin/x86_64-linux-gnu/qemu/qemu-system-riscv64 Metrics started Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/CasimirControlServer.sock Metrics host received: VMStop Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/EchoServer.sock Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/ControlEnvProxyServer.sock Server listening on unix:/tmp/cf_avd_1000/cvd-1/grpc_socket/OpenwrtControlServer.sock root-canal I 01-20 11:43:06.858 device_boutique.cc:37 Registering beacon root-canal I 01-20 11:43:06.858 device_boutique.cc:37 Registering beacon_swarm root-canal I 01-20 11:43:06.858 device_boutique.cc:37 Registering scripted_beacon root-canal I 01-20 11:43:06.858 device_boutique.cc:37 Registering sniffer netsimd I 01-20 03:43:06.858 rust_main.rs:99 - netsim artifacts path: "/tmp/android-ubuntu/netsimd" netsimd I 01-20 03:43:06.858 rust_main.rs:102 - NetsimdArgs { fd_startup_str: Some( "{"devices":[{"name":"0.0.0.0:6520","chips":[{"kind":"BLUETOOTH","fdIn":101,"fdOut":102},{"kind":"UWB","fdIn":103,"fdOut":104}],"device_info":{"name":"0.0.0.0:6520", "kind":"CUTTLEFISH"}}]}", ), no_cli_ui: false, no_web_ui: false, pcap: false, disable_address_reuse: false, hci_port: Some( 7300, ), connector_instance: None, instance: Some( 1, ), logtostderr: false, dev: false, forward_host_mdns: false, vsock: None, config: None, host_dns: None, http_proxy: None, wifi_tap: None, test_beacons: false, no_test_beacons: false, no_shutdown: false, verbose: false, version: false, } WaylandServer running on socket 15 [2025/01/20 11:43:06:8598] N: lws_create_context: LWS: 4.3.0, NET CLI SRV H1 H2 WS ConMon IPv6-absent [2025/01/20 11:43:06:8601] N: __lws_lc_tag: ++ [wsi|0|pipe] (1) [2025/01/20 11:43:06:8601] N: __lws_lc_tag: ++ [vh|0|default|127.0.0.1|127.0.0.1|0] (1) [2025/01/20 11:43:06:8612] N: [vh|0|default|127.0.0.1|127.0.0.1|0]: lws_socket_bind: source ads 127.0.0.1 [2025/01/20 11:43:06:8612] N: __lws_lc_tag: ++ [wsi|1|listen|default|127.0.0.1|41349] (2) Connection thread running Failed to connect:No such device (adm_helpers.cc:48): Unable to access speaker. starting Rust KeyMint TA implementation in a thread starting C++ KeyMint implementation in a thread with FDs in=30, out=29 KeyMint Rust TA running with infile=36, outfile=35, security_level=TrustedEnvironment Secure deletion data file found. Parsing. GUEST_UBOOT_VERSION: 2024.01-g67e23f7c077b-ab12577904 (Oct 29 2024 - 17:46:19 +0000) U-Boot 20 starting Rust KeyMint TA implementation in a thread starting C++ KeyMint implementation in a thread with FDs in=30, out=29 KeyMint Rust TA running with infile=36, outfile=35, security_level=TrustedEnvironment Secure deletion data file found. Parsing. 2025-01-20T03:43:06.987603Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 16 for device virtio-serial.0 2025-01-20T03:43:06.987776Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 17 for device virtio-serial.0 2025-01-20T03:43:06.987933Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 18 for device virtio-serial.0 2025-01-20T03:43:06.988083Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 19 for device virtio-serial.0 2025-01-20T03:43:06.988232Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 20 for device virtio-serial.0 2025-01-20T03:43:06.988381Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 21 for device virtio-serial.0 2025-01-20T03:43:06.988530Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 22 for device virtio-serial.0 2025-01-20T03:43:06.988678Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 23 for device virtio-serial.0 2025-01-20T03:43:06.988831Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 24 for device virtio-serial.0 2025-01-20T03:43:06.988981Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 25 for device virtio-serial.0 2025-01-20T03:43:06.989130Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 26 for device virtio-serial.0 2025-01-20T03:43:06.989279Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 27 for device virtio-serial.0 2025-01-20T03:43:06.989428Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 28 for device virtio-serial.0 2025-01-20T03:43:06.989578Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 29 for device virtio-serial.0 2025-01-20T03:43:06.989729Z qemu-system-riscv64: virtio-serial-bus: Unexpected port id 30 for device virtio-serial.0 GUEST_KERNEL_VERSION: 6.8.0-mainline-ga5ed8b92e9f6-ab11698348 (kleaf@build-host) (Android (11368308, +pgo, +bolt, +lto, +mlgo, based on r510928) clang version 18.0.0 (https://android.googlesource.com/toolchain/llvm-project 477610d4d0d988e69dbc3fae4fe86bff3f07f2b5), LLD 18.0.0) #1 SMP PREEMPT Wed Apr 10 20:30:03 UTC 2024 ] Linux version Failed to connect:Connection timed out Failed to connect:Connection timed out Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Setting boot_info to BootInfo { verified_boot_key: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], device_boot_locked: false, verified_boot_state: Unverified, verified_boot_hash: [28, 103, 14, 9, 227, 43, 173, 104, 110, 12, 176, 39, 186, 54, 252, 133, 132, 164, 185, 232, 73, 44, 161, 87, 157, 127, 27, 65, 108, 91, 61, 55], boot_patchlevel: 20240805 } Failed to connect:Connection reset by peer Setting hal_info to HalInfo { os_version: 150000, os_patchlevel: 202408, vendor_patchlevel: 20240805 } Set aidl_version to V4 Setting attestation IDs directly Setting HMAC key from 1 shared secret parameters Fetching secret with slot ID: 1 Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer GUEST_BUILD_FINGERPRINT: generic/aosp_cf_riscv64_phone/vsoc_riscv64:Baklava/MAIN.1c670e09/eng.ubuntu:userdebug/test-keys Failed to connect:Connection reset by peer Fetching secret with slot ID: 3 Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer add 64 bytes of entropy early boot ended Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Fetching secret with slot ID: 4 transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer transport message failed, response body: device '0.0.0.0:6520' not found Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer Failed to connect:Connection reset by peer init: starting service 'adbd'... proxy_fastboot] Stop event (11) received. Stopping proxy proxy_adb] Start event (5) received. Starting proxy proxy_adb] From: tcp: 6520 proxy_adb] To: vsock: 3:5555 vhost_user: false transport message failed, response body: device '0.0.0.0:6520' not found VIRTUAL_DEVICE_DISPLAY_POWER_MODE_CHANGED VIRTUAL_DEVICE_DISPLAY_POWER_MODE_CHANGED [2025/01/20 11:46:33:2124] N: __lws_lc_tag: ++ [wsisrv|0|adopted] (1) [2025/01/20 11:46:33:2551] N: __lws_lc_tag: ++ [wsisrv|1|adopted] (2) [2025/01/20 11:46:33:2552] N: __lws_lc_tag: ++ [wsisrv|2|adopted] (3) [2025/01/20 11:46:33:2561] N: __lws_lc_tag: ++ [wsisrv|3|adopted] (4) [2025/01/20 11:46:33:2561] N: __lws_lc_tag: ++ [wsisrv|4|adopted] (5) [2025/01/20 11:46:33:2562] N: __lws_lc_tag: ++ [wsisrv|5|adopted] (6) [2025/01/20 11:46:33:2562] N: __lws_lc_tag: ++ [wsisrv|6|adopted] (7) [2025/01/20 11:46:33:2562] N: __lws_lc_tag: ++ [wsisrv|7|adopted] (8) [2025/01/20 11:46:33:2586] N: __lws_lc_untag: -- [wsisrv|2|adopted] (7) 3.393ms [2025/01/20 11:46:33:2587] N: __lws_lc_untag: -- [wsisrv|7|adopted] (6) 2.465ms [2025/01/20 11:46:33:2587] N: __lws_lc_untag: -- [wsisrv|6|adopted] (5) 2.531ms [2025/01/20 11:46:33:2588] N: __lws_lc_untag: -- [wsisrv|5|adopted] (4) 2.612ms [2025/01/20 11:46:33:2588] N: __lws_lc_untag: -- [wsisrv|4|adopted] (3) 2.682ms [2025/01/20 11:46:33:2589] N: __lws_lc_untag: -- [wsisrv|3|adopted] (2) 2.760ms [2025/01/20 11:46:38:2559] N: __lws_lc_untag: -- [wsisrv|0|adopted] (1) 5.043s [2025/01/20 11:46:38:2572] N: __lws_lc_untag: -- [wsisrv|1|adopted] (0) 5.002s [2025/01/20 11:46:39:4824] N: __lws_lc_tag: ++ [wsisrv|8|adopted] (1) [2025/01/20 11:46:39:5262] N: __lws_lc_tag: ++ [wsisrv|9|adopted] (2) [2025/01/20 11:46:39:5263] N: __lws_lc_tag: ++ [wsisrv|a|adopted] (3) [2025/01/20 11:46:39:5263] N: __lws_lc_tag: ++ [wsisrv|b|adopted] (4) [2025/01/20 11:46:39:5263] N: __lws_lc_tag: ++ [wsisrv|c|adopted] (5) [2025/01/20 11:46:39:5263] N: __lws_lc_tag: ++ [wsisrv|d|adopted] (6) [2025/01/20 11:46:39:5263] N: __lws_lc_tag: ++ [wsisrv|e|adopted] (7) [2025/01/20 11:46:39:5264] N: __lws_lc_tag: ++ [wsisrv|f|adopted] (8) [2025/01/20 11:46:39:5264] N: __lws_lc_tag: ++ [wsisrv|10|adopted] (9) [2025/01/20 11:46:39:5264] N: __lws_lc_tag: ++ [wsisrv|11|adopted] (10) [2025/01/20 11:46:39:5264] N: __lws_lc_tag: ++ [wsisrv|12|adopted] (11) [2025/01/20 11:46:39:5272] N: __lws_lc_untag: -- [wsisrv|9|adopted] (10) 999μs [2025/01/20 11:46:39:5273] N: __lws_lc_untag: -- [wsisrv|a|adopted] (9) 1.027ms [2025/01/20 11:46:39:5273] N: __lws_lc_untag: -- [wsisrv|12|adopted] (8) 925μs [2025/01/20 11:46:39:5274] N: __lws_lc_untag: -- [wsisrv|10|adopted] (7) 1.012ms [2025/01/20 11:46:39:5274] N: __lws_lc_untag: -- [wsisrv|f|adopted] (6) 1.065ms [2025/01/20 11:46:39:5275] N: __lws_lc_untag: -- [wsisrv|c|adopted] (5) 1.156ms [2025/01/20 11:46:39:5275] N: __lws_lc_untag: -- [wsisrv|d|adopted] (4) 1.172ms [2025/01/20 11:46:39:5275] N: __lws_lc_untag: -- [wsisrv|11|adopted] (3) 1.155ms [2025/01/20 11:46:39:5279] N: __lws_lc_untag: -- [wsisrv|e|adopted] (2) 1.517ms [2025/01/20 11:46:44:5309] N: __lws_lc_untag: -- [wsisrv|8|adopted] (1) 5.048s [2025/01/20 11:46:44:5309] N: __lws_lc_untag: -- [wsisrv|b|adopted] (0) 5.004s Metrics message failed: [ ???22W
??????? ???????(26.8.0-49-generic8$@RGOOGLE29621005039238973875 ???2CUTTLEFISH_METRICS] http error code: 0 curl error code: 28 | Timeout was reached Message failed to send to ClearCut: VMStop virtio_input_hid_handle_status: unknown type 20 virtio_input_hid_handle_status: unknown type 20 Metrics host received: VMStop virtio_input_hid_handle_status: unknown type 20 virtio_input_hid_handle_status: unknown type 20 (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (74.125.250.x:19302) failed with error 0 : [0x00000016] Invalid argument (stun_port.cc:632): UDP send of 20 bytes to host stun.l.google.com:19302 (2001:4860:4864:x:x:x:x:x:19302) failed with error 0 : [0x00000065] Network is unreachable (stun_port.cc:119): Binding request timed out from 127.0.0.x:15550 (lo) (stun_port.cc:119): Binding request timed out from [0:0:0:x:x:x:x:x]:15550 (lo) Fetching secret with slot ID: 5 Metrics message failed: [ ????22W
???????? ????????(26.8.0-49-generic8$@RGOOGLE29621005039238973875 ????2CUTTLEFISH_METRICS] http error code: 0 curl error code: 28 | Timeout was reached Message failed to send to ClearCut: VMStop Metrics host received: VMStart virtio_input_hid_handle_status: unknown type 20 virtio_input_hid_handle_status: unknown type 20 virtio_input_hid_handle_status: unknown type 20 virtio_input_hid_handle_status: unknown type 20 Fetching secret with slot ID: 5 VIRTUAL_DEVICE_BOOT_STARTED VIRTUAL_DEVICE_BOOT_COMPLETED Virtual device booted successfully VIRTUAL_DEVICE_NETWORK_MOBILE_CONNECTED
5. After a few minutes, ADB virtual device available detected
6. Then, Launch the Chrome browser and enter URL https://localhost:8443/ , I waited for 10 minutes or even longer, but the screen was always black and the launcher did not display properly , Despite the black screen, I found that the system has been successfully launched, and the key processes zygote, systemserver, surfaceflinger, launcher, etc. are running normally :
Run the /system/bin/screencap command on the background. The following screenshot is captured, further explained that the system should be normal, is it just a simple simulator black screen problem?? :
Therefore, various methods have been tried, but the problem of black screen has not been solved. The following are the capture logs, Is it related to the configuration of cuttlefish simulator? Please help to provide some assistance, thank you very much :
Is the factory mode interface shown?
Looking forward to Google's reply, TKS
Looking forward to Google's reply, TKS
Looking forward to Google's reply, TKS