Something is not right :

ziomario@Z390-AORUS-PRO-DEST:
/mnt/zroot-133/_OS/Android/aosp_14/android-image$ unzip ../aosp_cf_*.zip

Archive:  ../aosp_cf_arm64_only_phone-img-12309296.zip
 inflating: android-info.txt
 inflating: fastboot-info.txt
 inflating: kernel_16k
 inflating: ramdisk_16k.img
 inflating: boot.img
 inflating: boot_16k.img
 inflating: bootloader
 inflating: init_boot.img
 inflating: userdata.img
 inflating: vbmeta.img
 inflating: vbmeta_system.img
 inflating: vbmeta_system_dlkm.img
 inflating: vbmeta_vendor_dlkm.img
 inflating: vendor_boot.img
 inflating: super.img

ziomario@Z390-AORUS-PRO-DEST:
/mnt/zroot-133/_OS/Android/aosp_14/android-image$ tar xzvf
../cvd-host_package.tar.gz


./
./lib64/
./lib64/android.hardware.keymas...@3.0.so
./lib64/libciborium_io.dylib.so
./lib64/libjpeg.so
./lib64/cuttlefish_net.so
./lib64/libbase.so
./lib64/vulkan.pastel.so
./lib64/libcuttlefish_host_config.so
./lib64/libflagset.dylib.so
./lib64/libkmr_common.dylib.so
./lib64/libpkcs1.dylib.so
./lib64/libicui18n-host.so
./lib64/libwayland_client.so
./lib64/libunwindstack.so
./lib64/libkmr_ta.dylib.so
./lib64/libcoset.dylib.so
./lib64/libcppbor.so
./lib64/libgatekeeper.so
./lib64/libyuv.so
./lib64/libgrpc++.so
./lib64/libkmr_cf_ffi.so
./lib64/libcppcose_rkp.so
./lib64/libcuttlefish_transport.so
./lib64/liblzma.so
./lib64/libciborium_ll.dylib.so
./lib64/libcuttlefish_allocd_utils.so
./lib64/libgflags.so
./lib64/android.hardware.keymas...@4.0.so
./lib64/libcfg_if.dylib.so
./lib64/libspki.dylib.so
./lib64/libzeroize.dylib.so
./lib64/libcgrouprc.so
./lib64/libprotobuf-cpp-full.so
./lib64/libcutils.so
./lib64/libsqlite.so
./lib64/libcuttlefish_utils_result.so
./lib64/libbinder_ndk.so
./lib64/libext2_uuid-host.so
./lib64/libhex.dylib.so
./lib64/libc_musl.so
./lib64/libconst_oid.dylib.so
./lib64/libprotobuf_support.dylib.so
./lib64/tpm2-tss2-tcti.so
./lib64/libserde.dylib.so
./lib64/libartpalette.so
./lib64/liblog.so
./lib64/libonce_cell.dylib.so
./lib64/libthiserror.dylib.so
./lib64/libssl-host.so
./lib64/libc++.so
./lib64/libext4_utils.so
./lib64/libpkcs8.dylib.so
./lib64/libsparse-host.so
./lib64/sandboxed_api_sandbox2.so
./lib64/libcuttlefish_command_util.so
./lib64/libbssl_sys.dylib.so
./lib64/libkeymaster_messages.so
./lib64/libcuttlefish_web.so
./lib64/libvpx.so
./lib64/libopus.so
./lib64/libminijail.so
./lib64/libcurl-host.so
./lib64/libcuttlefish_kernel_log_monitor_utils.so
./lib64/tpm2-tss2-util.so
./lib64/liblibc.dylib.so
./lib64/libprotobuf.dylib.so
./lib64/libbitflags.dylib.so
./lib64/libutils.so
./lib64/libjsoncpp.so
./lib64/libext2_blkid-host.so
./lib64/libnl.so
./lib64/tpm2-tss2-sys.so
./lib64/libartbase.so
./lib64/libxml2.so
./lib64/libkmr_proto_rust.dylib.so
./lib64/libcuttlefish_security.so
./lib64/libsecure_env_tpm.dylib.so
./lib64/libz-host.so
./lib64/libprocessgroup.so
./lib64/libcrypto_utils.so
./lib64/libder.dylib.so
./lib64/libdexfile.so
./lib64/cf_metrics_proto.so
./lib64/tpm2-tss2-esys.so
./lib64/libcuttlefish_utils.so
./lib64/libkeymaster_portable.so
./lib64/libfruit.so
./lib64/tpm2-tss2-rc.so
./lib64/libcap.so
./lib64/libnix.dylib.so
./lib64/libicuuc-host.so
./lib64/libziparchive.so
./lib64/libkmr_ta_nonsecure.dylib.so
./lib64/libstd.dylib.so
./lib64/libhalf.dylib.so
./lib64/tpm2-tss2-mu.so
./lib64/libmemoffset.dylib.so
./lib64/liblp.so
./lib64/libcuttlefish_fs.so
./lib64/libProxyConfig.so
./lib64/libopenssl.dylib.so
./lib64/libkmr_wire.dylib.so
./lib64/libkmr_crypto_boring.dylib.so
./lib64/liblog_rust.dylib.so
./lib64/libhidlbase.so
./lib64/libgrpc_wrap.so
./lib64/libgrpc++_unsecure.so
./lib64/libbytes.dylib.so
./lib64/libsoft_attestation_cert.so
./lib64/libcuttlefish_run_cvd_proto.so
./lib64/libbinder.so
./lib64/libcrypto-host.so
./lib64/libwebm_mkvmuxer.so
./lib64/libkmr_cf.dylib.so
./lib64/libciborium.dylib.so
./lib64/libpuresoftkeymasterdevice_host.so
./lib64/libx509_cert.dylib.so
./lib64/libsec1.dylib.so
./nativetest64/
./nativetest64/modem_simulator_test/
./nativetest64/modem_simulator_test/modem_simulator_test
./nativetest64/cuttlefish_net_tests/
./nativetest64/cuttlefish_net_tests/cuttlefish_net_tests
./etc/
./etc/modem_simulator/
./etc/modem_simulator/files/
./etc/modem_simulator/files/iccprofile_for_sim0_for_CtsCarrierApiTestCases.xml

./etc/modem_simulator/files/iccprofile_for_sim0.xml
./etc/modem_simulator/files/numeric_operator.xml
./etc/cvd_rsa4096.avbpubkey
./etc/bootloader_aarch64/
./etc/bootloader_aarch64/bootloader.qemu
./etc/bootloader_aarch64/bootloader.crosvm
./etc/bootloader_riscv64/
./etc/bootloader_riscv64/bootloader.qemu
./etc/automotive/
./etc/automotive/vhalconfig/
./etc/automotive/vhalconfig/VendorClusterTestProperties.json
./etc/automotive/vhalconfig/DefaultProperties.json
./etc/automotive/vhalconfig/TestProperties.json
./etc/automotive/proxy_config.json
./etc/cvd_rsa2048.avbpubkey
./etc/cvd_avb_testkey_rsa4096.pem
./etc/bootloader_arm/
./etc/bootloader_arm/bootloader.qemu
./etc/bootloader_x86_64/
./etc/bootloader_x86_64/bootloader.qemu
./etc/bootloader_x86_64/bootloader.crosvm
./etc/cvd_avb_testkey_rsa2048.pem
./etc/openwrt/
./etc/openwrt/images/
./etc/openwrt/images/openwrt_kernel_aarch64
./etc/openwrt/images/openwrt_rootfs_x86_64
./etc/openwrt/images/openwrt_rootfs_aarch64
./etc/openwrt/images/openwrt_kernel_x86_64
./etc/cvd_config/
./etc/cvd_config/cvd_config_tv.json
./etc/cvd_config/cvd_config_tablet.json
./etc/cvd_config/cvd_config_wear.json
./etc/cvd_config/cvd_config_auto_portrait.json
./etc/cvd_config/cvd_config_slim.json
./etc/cvd_config/cvd_config_go.json
./etc/cvd_config/cvd_config_foldable.json
./etc/cvd_config/cvd_config_auto.json
./etc/cvd_config/cvd_config_auto_md.json
./etc/cvd_config/cvd_config_phone.json
./usr/
./usr/share/
./usr/share/vulkan/
./usr/share/vulkan/icd.d/
./usr/share/vulkan/icd.d/vk_swiftshader_icd.json
./usr/share/qemu/
./usr/share/qemu/aarch64-linux-gnu/
./usr/share/qemu/aarch64-linux-gnu/opensbi-riscv64-generic-fw_dynamic.bin
./usr/share/qemu/aarch64-linux-gnu/efi-virtio.rom
./usr/share/qemu/aarch64-linux-gnu/keymaps/
./usr/share/qemu/aarch64-linux-gnu/keymaps/en-us
./usr/share/webrtc/
./usr/share/webrtc/assets/
./usr/share/webrtc/assets/style.css
./usr/share/webrtc/assets/index.css
./usr/share/webrtc/assets/index.html
./usr/share/webrtc/assets/js/
./usr/share/webrtc/assets/js/location.js
./usr/share/webrtc/assets/js/rootcanal.js
./usr/share/webrtc/assets/js/app.js
./usr/share/webrtc/assets/js/touch.js
./usr/share/webrtc/assets/js/adb.js
./usr/share/webrtc/assets/js/index.js
./usr/share/webrtc/assets/js/cf_webrtc.js
./usr/share/webrtc/assets/js/server_connector.js
./usr/share/webrtc/assets/js/controls.js
./usr/share/webrtc/assets/controls.css
./usr/share/webrtc/assets/custom.css
./usr/share/webrtc/assets/client.html
./usr/share/webrtc/certs/
./usr/share/webrtc/certs/server.p12
./usr/share/webrtc/certs/server.key
./usr/share/webrtc/certs/trusted.pem
./usr/share/webrtc/certs/server.crt
./usr/share/zoneinfo/
./usr/share/zoneinfo/tzdata
./usr/share/crosvm/
./usr/share/crosvm/aarch64-linux-gnu/
./usr/share/crosvm/aarch64-linux-gnu/seccomp/
./usr/share/crosvm/aarch64-linux-gnu/seccomp/snd_null_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/gpu_render_server.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/battery.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/block_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/pmem_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/wl_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/9p_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/input_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/net_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/rng_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/coiommu_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/gpu_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/serial_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/cras_audio_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/null_audio_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/snd_cras_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/vhost_scmi_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/balloon_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/vhost_net_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/vhost_vsock_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/fs_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/video_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/xhci_device.policy
./usr/share/crosvm/aarch64-linux-gnu/seccomp/vios_audio_device.policy
./bin/
./bin/modem_simulator
./bin/ms-tpm-20-ref
./bin/mkenvimage_slim
./bin/metrics
./bin/socket_vsock_proxy
./bin/resize.f2fs
./bin/metrics_launcher
./bin/automotive_vsock_proxy
./bin/newfs_msdos
./bin/netsim-ui/
./bin/netsim-ui/assets/
./bin/netsim-ui/assets/grid-background.svg
./bin/netsim-ui/assets/netsim-logo.svg
./bin/netsim-ui/assets/polar-background.svg
./bin/netsim-ui/assets/hexagonal-background.png
./bin/netsim-ui/assets/netsim-logo-b.svg
./bin/netsim-ui/node_modules/
./bin/netsim-ui/node_modules/tslib/
./bin/netsim-ui/node_modules/tslib/tslib.es6.js
./bin/netsim-ui/index.html
./bin/netsim-ui/js/
./bin/netsim-ui/js/device-info.js
./bin/netsim-ui/js/device-list.js
./bin/netsim-ui/js/packet-info.js
./bin/netsim-ui/js/device-dropzone.js
./bin/netsim-ui/js/navigation-bar.js
./bin/netsim-ui/js/device-map.js
./bin/netsim-ui/js/device-dragzone.js
./bin/netsim-ui/js/netsim-app.js
./bin/netsim-ui/js/customize-map-button.js
./bin/netsim-ui/js/device-observer.js
./bin/netsim-ui/js/license-info.js
./bin/netsim-ui/js/cube-sprite.js
./bin/netsim-ui/js/pyramid-sprite.js
./bin/unpack_bootimg
./bin/adb
./bin/extract-vmlinux
./bin/health
./bin/screen_recording_server
./bin/lz4
./bin/wmediumd_gen_config
./bin/gnss_grpc_proxy
./bin/simg2img
./bin/secure_env
./bin/mke2fs
./bin/snapshot_util_cvd
./bin/cvd_internal_display
./bin/acloud_translator
./bin/defrag.f2fs
./bin/tombstone_receiver
./bin/root-canal
./bin/netsimd
./bin/console_forwarder
./bin/powerwash_cvd
./bin/process_restarter
./bin/fsck.f2fs
./bin/cvd_host_bugreport
./bin/extract-ikconfig
./bin/cvd_internal_status
./bin/webRTC
./bin/acloud
./bin/tcp_connector
./bin/process_sandboxer
./bin/webrtc_operator
./bin/cvd_update_location
./bin/e2fsdroid
./bin/avbtool
./bin/fastboot
./bin/build_super_image
./bin/powerbtn_cvd
./bin/allocd_client
./bin/dump.f2fs
./bin/netsim
./bin/casimir
./bin/pica
./bin/cvd_update_security_algorithm
./bin/record_cvd
./bin/vhal_proxy_server
./bin/cvd_status
./bin/cvd_import_locations
./bin/launch_cvd
./bin/cvd_internal_start
./bin/restart_cvd
./bin/cvd_internal_host_bugreport
./bin/mkuserimg_mke2fs
./bin/fec
./bin/cvd_internal_env
./bin/vhost_device_vsock
./bin/cvd_internal_stop
./bin/cvd_send_sms
./bin/assemble_cvd
./bin/cvd_send_id_disclosure
./bin/mcopy
./bin/operator_proxy
./bin/mkbootfs
./bin/run_cvd
./bin/openwrt_control_server
./bin/mkbootimg
./bin/kernel_log_monitor
./bin/mmd
./bin/toybox
./bin/crosvm
./bin/aarch64-linux-musl/
./bin/aarch64-linux-musl/crosvm
./bin/sefcontext_compile
./bin/wmediumd
./bin/echo_server
./bin/log_tee
./bin/lpmake
./bin/logcat_receiver
./bin/lpunpack
./bin/control_env_proxy_server
./bin/mtools
./bin/adb_connector
./bin/aarch64-linux-gnu/
./bin/aarch64-linux-gnu/libepoxy.so.0
./bin/aarch64-linux-gnu/libffi.so.7
./bin/aarch64-linux-gnu/qemu/
./bin/aarch64-linux-gnu/qemu/qemu-system-x86_64
./bin/aarch64-linux-gnu/qemu/libepoxy.so.0
./bin/aarch64-linux-gnu/qemu/libvirglrenderer.so.1
./bin/aarch64-linux-gnu/qemu/libgbm.so.1
./bin/aarch64-linux-gnu/qemu/libgfxstream_backend.so.0
./bin/aarch64-linux-gnu/qemu/librutabaga_gfx_ffi.so.0
./bin/aarch64-linux-gnu/qemu/qemu-system-riscv64
./bin/aarch64-linux-gnu/qemu/qemu-system-aarch64
./bin/aarch64-linux-gnu/qemu/libc++.so.1
./bin/aarch64-linux-gnu/qemu/libunwind.so.1
./bin/aarch64-linux-gnu/qemu/libz.so.1
./bin/aarch64-linux-gnu/qemu/libc++abi.so.1
./bin/aarch64-linux-gnu/libvirglrenderer.so.1
./bin/aarch64-linux-gnu/libdrm.so.2
./bin/aarch64-linux-gnu/libgbm.so.1
./bin/aarch64-linux-gnu/libgfxstream_backend.so
./bin/aarch64-linux-gnu/libwayland-client.so.0
./bin/aarch64-linux-gnu/libminijail.so
./bin/aarch64-linux-gnu/gfxstream_graphics_detector
./bin/aarch64-linux-gnu/crosvm
./bin/lpadd
./bin/make_f2fs
./bin/sandboxer_proxy
./bin/stop_cvd
./bin/casimir_control_server


ziomario@Z390-AORUS-PRO-DEST:
/mnt/zroot-133/_OS/Android/aosp_14/android-image$ HOME=$(pwd)
./bin/launch_cvd -vm_manager qemu_cli -report_anonymous_usage_stats=n
--start_webrtc=false


09-02 23:27:10.473 2729990 2729990 I launch_cvd: main.cc:235 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.
===================================================================

Reading --config option from:
/mnt/zroot-133/_OS/Android/aosp_14/android-image/android-info.txt
Launching CVD using --config='phone'.
aarch64-binfmt-P: Could not open '/lib/ld-linux-aarch64.so.1': No such file
or directory
Failed to run graphics detector, bad return value: 255. Assuming no
availability.
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.
Requested resuming a previous session (the default behavior) but the base
images have changed under the overlay, making the overlay inc
ompatible. Wiping the overlay files.
Path for instance UDS: /tmp/cf_avd_1000
Failed to run `/mnt/zroot-133/_OS/Android/aosp_14/android-image/bin/crosvm
create_qcow2 --backing-file /mnt/zroot-133/_OS/Android/aosp_
14/android-image/cuttlefish/instances/cvd-1/persistent_composite.img
/mnt/zroot-133/_OS/Android/aosp_14/android-image/cuttlefish/instan
ces/cvd-1/persistent_composite_overlay.img`
stdout:
###

###
stderr:
###
/mnt/zroot-133/_OS/Android/aosp_14/android-image/bin/crosvm: riga 3:
/mnt/zroot-133/_OS/Android/aosp_14/android-image/bin/x86_64-linux-
musl/crosvm: File o directory non esistente

###
Return code: "127"
qemu: uncaught target signal 6 (Aborted) - core dumped
09-02 23:27:31.223 2729990 2729990 E launch_cvd: subprocess.cpp:207
Subprocess 2730018 was interrupted by a signal 'Aborted' (6)
09-02 23:27:31.224 2729990 2729990 E launch_cvd: main.cc:323 assemble_cvd
returned -1

On Mon, Sep 2, 2024 at 11:20 PM Mario Marietto <marietto2...@gmail.com>
wrote:

> Hello.
>
> I've downloaded this file : aosp_cf_arm64_only_phone-img-12309296.zip and
> this file : cvd-host_package.tar.gz
>
> from here :
> https://ci.android.com/builds/submitted/12309296/aosp_cf_arm64_only_phone-trunk_staging-userdebug/latest
>
> But let's say that I don't want to use the *.img files that are stored
> inside "aosp_cf_arm64_only_phone-img-12309296.zip",but the same files that
> have been produced when I have compiled this version of Android :
>
>
> https://github.com/raspberry-vanilla/android_local_manifest?tab=readme-ov-file
>
> Can I do it ? Is it supposed to work the same ?
>
> Thanks.
>
> On Mon, Sep 2, 2024 at 10:23 PM Pierrick Bouvier <
> pierrick.bouv...@linaro.org> wrote:
>
>>
>>
>> On 9/2/24 13:20, Pierrick Bouvier wrote:
>> > On 9/2/24 12:53, Mario Marietto wrote:
>> >> Hello Pierrick.
>> >>
>> >> With Cuttlefish can I emulate Android 14 for arm64 ? I ask because in
>> >> your script I read :
>> >>
>> >> "|/home/user/.work/qemu/build/qemu-system-x86_64", so,I suspect that
>> you
>> >> have emulated Android x64 bit,but I need arm64. |
>> >>
>> >
>> > Yes, it works for both architecture. The only thing I didn't try is an
>> > arm64 vm accelerated with kvm (I don't have this a linux-aarch64
>> > machine), but it should work.
>>
>> And of course, if you want to write a custom wrapper for qemu, name it
>> qemu-system-aarch64, and call the same binary instead of x86_64 variants.
>>
>> >
>> >> I also read "for aarch64 images: select
>> >> |aosp_cf_arm64_only_phone-trunk_staging-userdebug" : I'm not able to
>> >> download this kind of images. I don't understand how the Branch Grid
>> >> works. Can you explain to me a little bit more ?
>> >> |
>> >
>> > You have a link just next to it ("Branch grid") on the wiki page.
>> > Once on ci android page, click on filter button (three bars, inverted
>> > pyramid), and select aosp_cf_arm64_only_phone-trunk_staging-userdebug.
>> > Then go to artifacts, and download image and cvd_host_x86_64 package, as
>> > wiki mentions.
>> >
>> > Don't hesitate to ask more questions on this. I imagine this topic might
>> > interest some people who try to do the same thing.
>> >
>> > Pierrick
>> >
>> >> |
>> >> |
>> >>
>> >>
>> >> On Mon, Sep 2, 2024 at 8:47 PM Pierrick Bouvier
>> >> <pierrick.bouv...@linaro.org <mailto:pierrick.bouv...@linaro.org>>
>> wrote:
>> >>
>> >>      Hello Mario,
>> >>
>> >>      very recently, I had to investigate booting time of Android when
>> using
>> >>      QEMU. You can probably manage to boot this with only QEMU alone,
>> but in
>> >>      my experience, using Cuttlefish tooling is an easier approach.
>> >>
>> >>      If you really want to use only QEMU, you can use Cuttlefish to get
>> >>      exact
>> >>      command line used (which disk goes where), and iterate from that.
>> >>
>> >>      Instructions:
>> >>
>> https://linaro.atlassian.net/wiki/spaces/QEMU/pages/29464068097/Run+Android+using+QEMU
>> <
>> https://linaro.atlassian.net/wiki/spaces/QEMU/pages/29464068097/Run+Android+using+QEMU
>> >
>> >>
>> >>      As you'll see, I could not get a direct graphic output, but using
>> >>      scrcpy, it worked well for me. Hope it can fit your use case.
>> >>
>> >>      Regards,
>> >>      Pierrick
>> >>
>> >>      On 9/2/24 06:49, Mario Marietto wrote:
>> >>       > Hello.
>> >>       >
>> >>       > I would like to emulate Android 14 on my Ubuntu 24.04 OS X64
>> bit
>> >>      using
>> >>       > qemu-system-aarch64. I tried using the following parameters :
>> >>       >
>> >>       > qemu-system-aarch64 \
>> >>       >          -smp 4 \
>> >>       >          -m 2048 \
>> >>       >          -cpu cortex-a72 \
>> >>       >          -M virt \
>> >>       >          -device virtio-gpu-pci,xres=1024,yres=768 \
>> >>       >          -display sdl,gl=on \
>> >>       >          -device usb-ehci \
>> >>       >          -device usb-kbd \
>> >>       >          -device virtio-tablet-pci \
>> >>       >          -usb \
>> >>       >          -serial stdio \
>> >>       >          -kernel /mnt/zroot-133/_OS/Android/rpi4/Image \
>> >>       >          -initrd /mnt/zroot-133/_OS/Android/rpi4/ramdisk.img \
>> >>       >          -drive
>> >>       >
>> >>
>> index=0,if=none,id=system,file=/mnt/zroot-133/_OS/Android/rpi4/boot.img \
>> >>       >          -device virtio-blk-pci,drive=boot \
>> >>       >          -drive
>> >>       >
>> >>
>> index=1,if=none,id=system,file=/mnt/zroot-133/_OS/Android/rpi4/system.img \
>> >>       >          -device virtio-blk-pci,drive=system \
>> >>       >          -drive
>> >>       >
>> >>
>> index=2,if=none,id=vendor,file=/mnt/zroot-133/_OS/Android/rpi4/vendor.img \
>> >>       >          -device virtio-blk-pci,drive=vendor \
>> >>       > -append "console=ttyAMA0,38400 drm.debug=0x0 rootwait
>> rootdelay=5
>> >>       > root=/dev/mmcblk0p2 androidboot.hardware=rpi4
>> >>       > androidboot.selinux=permissive security=selinux selinux=1
>> >>       > androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160"
>> >>       >
>> >>       > The error I get in short is :
>> >>       >
>> >>       > [ 1.993668] init: bool
>> >>       >
>> >>
>> android::init::BlockDevInitializer::InitDevices(std::set<std::string>):
>> >>       > partition(s) not found in /sys, waiting for their uevent(s):
>> >>      mmcblk0p2,
>> >>       > mmcblk0p3
>> >>       >
>> >>       >
>> >>       > One user suggested to :
>> >>       >
>> >>       >
>> >>       >
>> >>       >
>> >>       >
>> >>       > Hi!!! The "/sys" is a "dynamic fs" created at ram from the
>> >>      kernel, to
>> >>       > export a lot of things...so most of the files only exist at
>> runtime.
>> >>       > Normally, the partitions from the block device have a symlink
>> at
>> >>       > /sys/<something>/<...> that points to /dev/ block node. It
>> seems
>> >>      that
>> >>       > there are no such files under /sys according to what init is
>> looking
>> >>       > for. You can double check this at init source code to check the
>> >>      exact
>> >>       > path but I'm guessing that you'll have to change the qemu
>> arguments
>> >>       > regarding the block device.
>> >>       >
>> >>       > About userdata.img I think it's normal since in the old days,
>> the
>> >>      image
>> >>       > was a "empty sparse image", that means, at the first flashing
>> >>      process,
>> >>       > there isn't userdata information, we're just "flashing the
>> >>      partition"
>> >>       > with empty data.
>> >>       > Tks!!!
>> >>       >
>> >>       >
>> >>       >
>> >>       > So,in short I should change the qemu arguments regarding the
>> block
>> >>       > device. I tried in this way :
>> >>       >
>> >>       >
>> >>       > qemu-system-aarch64 \
>> >>       >          -smp 4 \
>> >>       >          -m 2048 \
>> >>       >          -cpu cortex-a72 \
>> >>       >          -M virt \
>> >>       >          -device virtio-gpu-pci,xres=1024,yres=768 \
>> >>       >          -display sdl,gl=on \
>> >>       >          -device usb-ehci \
>> >>       >          -device usb-kbd \
>> >>       >          -device virtio-tablet-pci \
>> >>       >          -usb \
>> >>       >          -serial stdio \
>> >>       >          -kernel /mnt/zroot-133/_OS/Android/rpi4/Image \
>> >>       >          -initrd /mnt/zroot-133/_OS/Android/rpi4/ramdisk.img \
>> >>       >          -hda /mnt/zroot-133/_OS/Android/rpi4/boot.img \
>> >>       >          -hdb /mnt/zroot-133/_OS/Android/rpi4/system.img \
>> >>       >          -hdc /mnt/zroot-133/_OS/Android/rpi4/vendor.img \
>> >>       >        -append "console=ttyAMA0,38400 drm.debug=0x0 rootwait
>> >>      rootdelay=5
>> >>       > root=/dev/mmcblk0p2 androidboot.hardware=rpi4
>> >>       > androidboot.selinux=permissive security=selinux selinux=1
>> >>       > androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160"
>> >>       >
>> >>       >
>> >>       > but the error is still there. Do you know some different
>> alternative
>> >>       > block devices to try ? thanks.
>> >>       >
>> >>       >
>> >>       > --
>> >>       > Mario.
>> >>
>> >>
>> >>
>> >> --
>> >> Mario.
>>
>
>
> --
> Mario.
>


-- 
Mario.

Reply via email to