Can I run cuttlefish Arm64 on x86 PC?

902 views
Skip to first unread message

Lawrence Lin

unread,
Feb 13, 2020, 10:31:04 AM2/13/20
to Android Building
Dear all,

I follow the steps on the cuttlefish intro. page, "https://android.googlesource.com/device/google/cuttlefish/"
I can run the aosp_cf_x86_phone sku on PC (x86)
And I try to build the image "aosp_cf_arm64_phone-userdebug" sku from the AOSP codebase 
But I can not boot up the VM by same way.
Please give me some help, I want to run the ARM vm on x86 PC.
many thanks

The logs are:
launch_cvd I 02-11 15:56:57 23124 23132 process_monitor.cc:136] Detected exit of monitored subprocess
launch_cvd I 02-11 15:56:57 23124 23132 process_monitor.cc:144] Subprocess /media/cslin/data/vmi/aosp-cuttlefish/bin/crosvm (23213) has exited with exit code 1
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:117] Started (pid: 23223): /media/cslin/data/vmi/aosp-cuttlefish/bin/crosvm
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] run
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --null-audio
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --mem=2048
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --cpus=2
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --params=androidboot.boot_devices=pci0000:00/0000:00:01.0 androidboot.console=ttyS1 androidboot.cuttlefish_config_server_port=4680 androidboot.fstab_name=fstab androidboot.hardware.egl=swiftshader androidboot.hardware.gralloc=cutf_ashmem androidboot.hardware.hwcomposer=cutf_cvm_ashmem androidboot.hardware=cutf_cvm androidboot.lcd_density=160 androidboot.logcat_serial_port=/dev/ttyS2 androidboot.serialno=CUTTLEFISHCVD01 androidboot.setupwizard_mode=DISABLED androidboot.tombstone_transmit=1 androidboot.vsock_frames_port=5580 androidboot.vsock_tombstone_port=5630 audit=1 buildvariant=userdebug enforcing=1 init=/init loop.max_part=7 mac80211_hwsim.radios=0 printk.devkmsg=on root=/dev/vda security=selinux 
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//system.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//userdata.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//cache.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//metadata.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//vendor.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --rwdisk=/media/cslin/data/vmi/aosp-cuttlefish//product.img
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --socket=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/crosvm_control.sock
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --android-fstab=/media/cslin/data/vmi/aosp-cuttlefish/config/gsi.fstab
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --single-touch=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/touch.sock:720:1280
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --keyboard=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/keyboard.sock
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --tap-fd=29
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --tap-fd=31
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --disable-sandbox
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --cid=3
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --serial=num=1,type=file,path=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/kernel-log,console=true
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --serial=num=3,type=file,path=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/logcat
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] --serial=num=2,type=file,path=/media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/console-pipe,stdin=true
launch_cvd I 02-11 15:56:57 23124 23132 subprocess.cpp:120] /media/cslin/data/vmi/aosp-cuttlefish/cuttlefish_runtime/kernel
[WARNING:src/linux.rs:988] falling back to current user id for 9p: Success (os error 0)
[WARNING:src/linux.rs:996] falling back to current group id for 9p: Success (os error 0)
[ERROR:src/main.rs:969] The architecture failed to build the vm: error loading kernel bzImage: bzImage loader: bad kernel header signature

Dan Willemsen

unread,
Feb 18, 2020, 6:22:24 PM2/18/20
to Android Building
My understanding is that cuttlefish's arm[64] variant is meant to run on an arm64 machine, not an x86 machine.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/6a9df381-b571-48c3-a4ea-efdbacbd0fac%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages