|
From: | Mario Marietto |
Subject: | Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64. |
Date: | Mon, 2 Sep 2024 15:49:58 +0200 |
[ 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 \ -hda /mnt/zroot-133/_OS/Android/rpi4/boot.img \-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 \ -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" |
|
[Prev in Thread] | Current Thread | [Next in Thread] |