Can I run cuttlefish Arm64 on x86 PC?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I run cuttlefish Arm64 on x86 PC?

Lawrence Lin
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

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/6a9df381-b571-48c3-a4ea-efdbacbd0fac%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Can I run cuttlefish Arm64 on x86 PC?

Dan Willemsen-2
My understanding is that cuttlefish's arm[64] variant is meant to run on an arm64 machine, not an x86 machine.

- Dan

On Thu, Feb 13, 2020 at 7:30 AM Lawrence Lin <[hidden email]> wrote:
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

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/6a9df381-b571-48c3-a4ea-efdbacbd0fac%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CALQgHdkT4y2dd_R3q6xjivPSctf5FGLDpr_mZOfrdFRLCuzs_Q%40mail.gmail.com.