|
From: | Mario Marietto |
Subject: | Re: Kernel panic - not syncing: Unable to initialise architected timer : unable to boot Android 14 with qemu-system-aarch64 on Ubuntu 24.04 X64 bit |
Date: | Sun, 25 Aug 2024 12:44:44 +0200 |
Sorry again,I was forgot to add "root=/dev/xxxx"so :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/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/Image \
-initrd /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/0.fat \
-drive index=0,if=none,id=system,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/1.img \
-device virtio-blk-pci,drive=system \
-drive index=1,if=none,id=vendor,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/2.img \
-device virtio-blk-pci,drive=vendor \
-drive index=2,if=none,id=userdata,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/3.img \
-device virtio-blk-pci,drive=userdata \and I've added the parameter "/dev/vdd1"-append "console=ttyAMA0,38400 drm.debug=0x0 rootwait rootdelay=5 androidboot.hardware=ranchu root=/dev/vdd1 androidboot.selinux=permissive security=selinux selinux=1 androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160"and this is what happened :root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/OS/Linux# ./start-virt5WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/1.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/2.img' an
d probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/3.img' an
d probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.6.36-g01aac93821d2-v8 (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 Tue Jul 2 09:02:32 UTC 2024
[ 0.000000] KASLR enabled
[ 0.000000] random: crng init done
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] NoSplit zone start for each node
[ 0.000000] NoMerge zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] cma: Reserved 8 MiB at 0x00000000bd000000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] percpu: Embedded 31 pages/cpu s87016 r8192 d31768 u126976
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v3a
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM erratum 1742098
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyAMA0,38400 drm.debug=0x0 rootwait rootdelay=5 androidboot.hardware=ranchu root=/dev/vdd1
androidboot.selinux=permissive security=selinux selinux=1 androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160 androidboot.seria
lno=10000000abcd1234 androidboot.btmacaddr=11:22:33:44:55:66
[ 0.000000] Unknown kernel command line parameters "selinux=1", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 1881596K/2097152K available (19328K kernel code, 2374K rwdata, 7612K rodata, 1792K init, 1192K bss, 207364K rese
rved, 8192K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 56269 entries in 220 pages
[ 0.000000] ftrace: allocated 220 pages with 5 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000072] sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096ns
[ 0.003288] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.009736] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.009901] pid_max: default: 32768 minimum: 301
[ 0.011751] LSM: initializing lsm=capability,selinux,integrity
[ 0.012149] SELinux: Initializing.
[ 0.015241] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.015291] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.029324] cgroup: Disabling memory control group subsystem
[ 0.046905] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.055879] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.057302] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.057526] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.058950] rcu: Hierarchical SRCU implementation.
[ 0.058985] rcu: Max phase no-delay instances is 1000.
[ 0.064733] EFI services will not be available.
[ 0.066555] smp: Bringing up secondary CPUs ...
[ 0.070034] Detected PIPT I-cache on CPU1
[ 0.071060] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.075718] Detected PIPT I-cache on CPU2
[ 0.076075] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[ 0.078211] Detected PIPT I-cache on CPU3
[ 0.078636] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[ 0.079116] smp: Brought up 1 node, 4 CPUs
[ 0.079163] SMP: Total of 4 processors activated.
[ 0.079251] CPU features: detected: 32-bit EL0 Support
[ 0.079271] CPU features: detected: 32-bit EL1 Support
[ 0.079324] CPU features: detected: CRC32 instructions
[ 0.083017] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.083324] CPU: All CPU(s) started at EL1
[ 0.083510] alternatives: applying system-wide alternatives
[ 0.103839] devtmpfs: initialized
[ 0.114587] Enabled cp15_barrier support
[ 0.114791] Enabled setend support
[ 0.116261] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.116383] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.119461] pinctrl core: initialized pinctrl subsystem
[ 0.125884] DMI not present or invalid.
[ 0.137528] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.147620] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.148124] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.148401] audit: initializing netlink subsys (disabled)
[ 0.150600] audit: type=2000 audit(0.140:1): state=initialized audit_enabled=0 res=1
[ 0.153487] thermal_sys: Registered thermal governor 'step_wise'
[ 0.153778] cpuidle: using governor menu
[ 0.154757] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.155610] ASID allocator initialised with 32768 entries
[ 0.156847] Serial: AMBA PL011 UART driver
[ 0.182586] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 13, base_baud = 0) is a PL011 rev1
[ 0.184036] printk: console [ttyAMA0] enabled
[ 0.209695] Modules: 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
[ 0.209894] Modules: 0 pages in range for non-PLT usage
[ 0.209917] Modules: 516176 pages in range for PLT usage
[ 0.254528] iommu: Default domain type: Translated
[ 0.254775] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.256959] SCSI subsystem initialized
[ 0.258135] usbcore: registered new interface driver usbfs
[ 0.258564] usbcore: registered new interface driver hub
[ 0.258829] usbcore: registered new device driver usb
[ 0.259862] mc: Linux media interface: v0.10
[ 0.260179] videodev: Linux video capture interface: v2.00
[ 0.260947] pps_core: LinuxPPS API ver. 1 registered
[ 0.261059] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.261325] PTP clock support registered
[ 0.267784] Advanced Linux Sound Architecture Driver Initialized.
[ 0.278021] Bluetooth: Core ver 2.22
[ 0.278284] NET: Registered PF_BLUETOOTH protocol family
[ 0.278491] Bluetooth: HCI device and connection manager initialized
[ 0.278832] Bluetooth: HCI socket layer initialized
[ 0.279154] Bluetooth: L2CAP socket layer initialized
[ 0.279509] Bluetooth: SCO socket layer initialized
[ 0.289357] vgaarb: loaded
[ 0.291652] clocksource: Switched to clocksource arch_sys_counter
[ 0.304601] VFS: Disk quotas dquot_6.6.0
[ 0.305286] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.307149] FS-Cache: Loaded
[ 0.309071] CacheFiles: Loaded
[ 0.317193] NET: Registered PF_INET protocol family
[ 0.318660] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.326093] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.326598] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.326875] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.327916] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.328717] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.330789] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[ 0.331272] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.331840] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.333529] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.336012] PCI: CLS 0 bytes, default 64
[ 0.340601] kvm [1]: HYP mode not available
[ 0.344033] Trying to unpack rootfs image as initramfs...
[ 0.344947] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
[ 0.351077] Initialise system trusted keyrings
[ 0.353062] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.353682] zbud: loaded
[ 0.361534] Key type cifs.idmap registered
[ 0.362434] fuse: init (API version 7.39)
[ 0.398148] Key type asymmetric registered
[ 0.398433] Asymmetric key parser 'x509' registered
[ 0.398918] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.400130] io scheduler mq-deadline registered
[ 0.400288] io scheduler kyber registered
[ 0.400649] io scheduler bfq registered
[ 0.416082] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[ 0.477796] brd: module loaded
[ 0.516082] loop: module loaded
[ 0.519143] Loading iSCSI transport class v2.0-870.
[ 0.527568] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.527819] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[ 0.538731] tun: Universal TUN/TAP device driver, 1.6
[ 0.541589] usbcore: registered new interface driver brcmfmac
[ 0.541866] usbcore: registered new device driver r8152-cfgselector
[ 0.542137] usbcore: registered new interface driver r8152
[ 0.542409] usbcore: registered new interface driver lan78xx
[ 0.542644] usbcore: registered new interface driver asix
[ 0.542883] usbcore: registered new interface driver ax88179_178a
[ 0.543185] usbcore: registered new interface driver cdc_ether
[ 0.543558] usbcore: registered new interface driver smsc95xx
[ 0.543784] usbcore: registered new interface driver net1080
[ 0.544049] usbcore: registered new interface driver cdc_subset
[ 0.544340] usbcore: registered new interface driver zaurus
[ 0.544632] usbcore: registered new interface driver cdc_ncm
[ 0.544909] usbcore: registered new interface driver r8153_ecm
[ 0.546053] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.548482] usbcore: registered new interface driver cdc_acm
[ 0.548670] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.549653] usbcore: registered new interface driver uas
[ 0.550010] usbcore: registered new interface driver usb-storage
[ 0.550594] usbcore: registered new interface driver cp210x
[ 0.550995] usbserial: USB Serial support registered for cp210x
[ 0.551297] usbcore: registered new interface driver pl2303
[ 0.551740] usbserial: USB Serial support registered for pl2303
[ 0.554998] mousedev: PS/2 mouse device common for all mice
[ 0.555316] usbcore: registered new interface driver xpad
[ 0.555738] usbcore: registered new interface driver usb_acecad
[ 0.556054] usbcore: registered new interface driver aiptek
[ 0.556428] usbcore: registered new interface driver hanwang
[ 0.556701] usbcore: registered new interface driver kbtab
[ 0.557253] usbcore: registered new interface driver usbtouchscreen
[ 0.558607] i2c_dev: i2c /dev entries driver
[ 0.563208] ir_imon_decoder: IR iMON protocol handler initialized
[ 0.563376] IR JVC protocol handler initialized
[ 0.563702] IR MCE Keyboard/mouse protocol handler initialized
[ 0.563867] IR NEC protocol handler initialized
[ 0.564042] IR RC5(x/sz) protocol handler initialized
[ 0.564153] IR RC6 protocol handler initialized
[ 0.564261] IR RCMM protocol handler initialized
[ 0.564381] IR SANYO protocol handler initialized
[ 0.564544] IR Sharp protocol handler initialized
[ 0.564655] IR Sony protocol handler initialized
[ 0.564774] IR XMP protocol handler initialized
[ 0.565552] usbcore: registered new interface driver uvcvideo
[ 0.567197] device-mapper: uevent: version 1.0.3
[ 0.568668] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[ 0.570048] Bluetooth: HCI UART driver ver 2.3
[ 0.570243] Bluetooth: HCI UART protocol H4 registered
[ 0.570633] Bluetooth: HCI UART protocol Broadcom registered
[ 0.571948] sdhci: Secure Digital Host Controller Interface driver
[ 0.572068] sdhci: Copyright(c) Pierre Ossman
[ 0.572585] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.574315] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.576835] hid: raw HID events driver (C) Jiri Kosina
[ 0.586764] usbcore: registered new interface driver usbhid
[ 0.586903] usbhid: USB HID core driver
[ 0.589619] ashmem: initialized
[ 0.590820] SPI driver st-accel-spi has no spi_device_id for st,lis302dl-spi
[ 0.590958] SPI driver st-accel-spi has no spi_device_id for st,lis3lv02dl-accel
[ 0.591087] SPI driver st-accel-spi has no spi_device_id for st,lis3dh-accel
[ 0.591215] SPI driver st-accel-spi has no spi_device_id for st,lsm330d-accel
[ 0.591369] SPI driver st-accel-spi has no spi_device_id for st,lsm330dl-accel
[ 0.591703] SPI driver st-accel-spi has no spi_device_id for st,lsm330dlc-accel
[ 0.591861] SPI driver st-accel-spi has no spi_device_id for st,lis331dlh-accel
[ 0.592008] SPI driver st-accel-spi has no spi_device_id for st,lsm330-accel
[ 0.592138] SPI driver st-accel-spi has no spi_device_id for st,lsm303agr-accel
[ 0.592291] SPI driver st-accel-spi has no spi_device_id for st,lis2dh12-accel
[ 0.592439] SPI driver st-accel-spi has no spi_device_id for st,lng2dm-accel
[ 0.592583] SPI driver st-accel-spi has no spi_device_id for st,h3lis331dl-accel
[ 0.592723] SPI driver st-accel-spi has no spi_device_id for st,lis331dl-accel
[ 0.592869] SPI driver st-accel-spi has no spi_device_id for st,lsm303c-accel
[ 0.593667] SPI driver st-magn-spi has no spi_device_id for st,lis3mdl-magn
[ 0.593802] SPI driver st-magn-spi has no spi_device_id for st,lsm303agr-magn
[ 0.593937] SPI driver st-magn-spi has no spi_device_id for st,lsm9ds1-magn
[ 0.594067] SPI driver st-magn-spi has no spi_device_id for st,lsm303c-magn
[ 0.598178] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.601694] usbcore: registered new interface driver snd-usb-audio
[ 0.608955] Mirror/redirect action on
[ 0.609389] netem: version 1.3
[ 0.609524] u32 classifier
[ 0.609579] input device check on
[ 0.609655] Actions configured
[ 0.616553] xt_time: kernel timezone is -0000
[ 0.616968] gre: GRE over IPv4 demultiplexor driver
[ 0.617157] IPv4 over IPsec tunneling driver
[ 0.621789] Initializing XFRM netlink socket
[ 0.622080] IPsec XFRM device driver
[ 0.622964] NET: Registered PF_INET6 protocol family
[ 0.632975] Segment Routing with IPv6
[ 0.633254] In-situ OAM (IOAM) with IPv6
[ 0.634281] mip6: Mobile IPv6
[ 0.637517] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.641524] NET: Registered PF_PACKET protocol family
[ 0.641880] NET: Registered PF_KEY protocol family
[ 0.642090] Key type dns_resolver registered
[ 0.723004] Freeing initrd memory: 131072K
[ 0.726147] registered taskstats version 1
[ 0.728209] Loading compiled-in X.509 certificates
[ 0.766647] Key type .fscrypt registered
[ 0.766772] Key type fscrypt-provisioning registered
[ 0.774312] of_cfs_init
[ 0.774711] of_cfs_init: OK
[ 0.778079] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.804531] Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[ 0.805402] Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[ 0.806133] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.806799] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.812604] clk: Disabling unused clocks
[ 0.813045] ALSA device list:
[ 0.813166] No soundcards found.
[ 0.819946] uart-pl011 9000000.pl011: no DMA platform data
[ 0.821300] Waiting 5 sec before mounting root device...
[ 5.905329] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[ 5.906225] Waiting for root device /dev/vdd1...
[ 11.028260] platform gpio-keys: deferred probe pending
it seems that the only error is produced by this argument : root=/dev/vdd1On Sun, Aug 25, 2024 at 1:59 AM Mario Marietto <marietto2008@gmail.com> wrote:I've copied and pasted the wrong parameters,sorry.Sorry for the mistake,but the log reported on my previous email message is produced from these 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/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/Image \
-initrd /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/0.fat \
-drive index=0,if=none,id=system,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/1.img \
-device virtio-blk-pci,drive=system \
-drive index=1,if=none,id=vendor,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/2.img \
-device virtio-blk-pci,drive=vendor \
-drive index=2,if=none,id=userdata,file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/3.img \
-device virtio-blk-pci,drive=userdata \
-append "console=ttyAMA0,38400 drm.debug=0x0 rootwait rootdelay=5 androidboot.hardware=ranchu androidboot.selinux=permissive security=selinux selinux=1 androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160"On Sun, Aug 25, 2024 at 1:54 AM Mario Marietto <marietto2008@gmail.com> wrote:>So first up, this is as far as I know "uncharted territory"
>in that I'm not aware of anybody who's booted full Android on
>any (upstream) QEMU board model. (If there's anybody on-list
>who *has* done this, please speak up!Me. On 2021,after several months of research,I've just been able to boot this version of Android :on my jetson nano board using qemu / kvm configured like this :qemu-system-aarch64 \
-enable-kvm \
-smp 4 \
-m 2048 \
-cpu host \
-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 Image \
-initrd ramdisk.img \
-drive index=0,if=none,id=system,file=system-rw.img \
-device virtio-blk-pci,drive=system \
-drive index=1,if=none,id=vendor,file=vendor-rw.img \
-device virtio-blk-pci,drive=vendor \
-drive index=2,if=none,id=userdata,file=userdata.img \
-device virtio-blk-pci,drive=userdata \
-append "console=ttyAMA0,38400 drm.debug=0x0 rootwait rootdelay=5 androidboot.hardware=ranchu androidboot.selinux=permissive security=selinux selinux=1 androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160"here we go :So,I imagine that I should use the same parameters or closer parameters to those used on 2021,like the following ones :qemu-system-aarch64 \
-m 2048 \
-cpu cortex-a72 \
-M virt,gic-version=2 \
-drive if=pflash,format=raw,file=/usr/local/share/qemu/edk2-aarch64-code.fd \
-drive if=pflash,format=raw,file=/usr/local/share/qemu/edk2-arm-vars.fd \
-kernel /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/Image \
-append 'console=ttyAMA0,38400 keep_bootcon earlycon=pl011,0x9000000 androidboot.hardware=ranchu root=/dev/vdd1' \
-dtb /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/bcm2711-rpi-4-b.dtb \
-drive file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv.img,format=raw,index=0,media=disk \
-device virtio-gpu-pci \
-device qemu-xhci \
-device usb-kbd \
-device usb-mouse \
-netdev user,id=mynet \
-device virtio-net-pci,netdev=mynet \
-serial stdio \
-no-reboot \
-d unimp,guest_errors \
-smp cores=4 \
-device qemu-xhci,id=xhci,addr=0x5 \
-device usb-mouse,bus=xhci.0 \
-device usb-kbd,bus=xhci.0My impression is that they are more correct than the previous ones,what do you think ?root@Z390-AORUS-PRO-DEST:/mnt/zroot2/zroot2/OS/Linux# ./start-virt5WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/1.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/2.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.WARNING: Image format was not specified for '/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/3.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 6.6.36-g01aac93821d2-v8 (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 Tue Jul 2 09:02:32 UTC 2024
[ 0.000000] KASLR enabled
[ 0.000000] random: crng init done
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] NoSplit zone start for each node
[ 0.000000] NoMerge zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] cma: Reserved 8 MiB at 0x00000000bd000000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] percpu: Embedded 31 pages/cpu s87016 r8192 d31768 u126976
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v3a
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: detected: ARM erratum 1742098
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyAMA0,38400 drm.debug=0x0 rootwait rootdelay=5 androidboot.hardware=ranchu androidboot.selinux=permissive security=selinux selinux=1 androidboot.qemu.hw.mainkeys=0 androidboot.lcd.density=160 androidboot.serialno=10000000abcd1234 androidboot.btmacaddr=11:22:33:44:55:66
[ 0.000000] Unknown kernel command line parameters "selinux=1", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] Memory: 1881596K/2097152K available (19328K kernel code, 2374K rwdata, 7612K rodata, 1792K init, 1192K bss, 207364K reserved, 8192K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 56269 entries in 220 pages
[ 0.000000] ftrace: allocated 220 pages with 5 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000069] sched_clock: 57 bits at 63MHz, resolution 16ns, wraps every 4398046511096ns
[ 0.003202] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[ 0.010267] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.010436] pid_max: default: 32768 minimum: 301
[ 0.012350] LSM: initializing lsm=capability,selinux,integrity
[ 0.012758] SELinux: Initializing.
[ 0.016675] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.016734] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.030817] cgroup: Disabling memory control group subsystem
[ 0.049765] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.060209] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.060803] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.061039] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.062716] rcu: Hierarchical SRCU implementation.
[ 0.062754] rcu: Max phase no-delay instances is 1000.
[ 0.069399] EFI services will not be available.
[ 0.071153] smp: Bringing up secondary CPUs ...
[ 0.079351] Detected PIPT I-cache on CPU1
[ 0.080469] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.085912] Detected PIPT I-cache on CPU2
[ 0.086684] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[ 0.089073] Detected PIPT I-cache on CPU3
[ 0.089828] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[ 0.090326] smp: Brought up 1 node, 4 CPUs
[ 0.090357] SMP: Total of 4 processors activated.
[ 0.090450] CPU features: detected: 32-bit EL0 Support
[ 0.090471] CPU features: detected: 32-bit EL1 Support
[ 0.090527] CPU features: detected: CRC32 instructions
[ 0.094597] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[ 0.094900] CPU: All CPU(s) started at EL1
[ 0.095086] alternatives: applying system-wide alternatives
[ 0.117729] devtmpfs: initialized
[ 0.128846] Enabled cp15_barrier support
[ 0.129028] Enabled setend support
[ 0.132524] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.132773] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.136092] pinctrl core: initialized pinctrl subsystem
[ 0.142750] DMI not present or invalid.
[ 0.162991] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.174108] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.175101] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.175422] audit: initializing netlink subsys (disabled)
[ 0.177740] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[ 0.180968] thermal_sys: Registered thermal governor 'step_wise'
[ 0.181282] cpuidle: using governor menu
[ 0.182303] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.183259] ASID allocator initialised with 32768 entries
[ 0.184629] Serial: AMBA PL011 UART driver
[ 0.211469] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 13, base_baud = 0) is a PL011 rev1
[ 0.213104] printk: console [ttyAMA0] enabled
[ 0.238159] Modules: 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
[ 0.238355] Modules: 0 pages in range for non-PLT usage
[ 0.238379] Modules: 516176 pages in range for PLT usage
[ 0.257283] iommu: Default domain type: Translated
[ 0.257533] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.260201] SCSI subsystem initialized
[ 0.261520] usbcore: registered new interface driver usbfs
[ 0.261986] usbcore: registered new interface driver hub
[ 0.262329] usbcore: registered new device driver usb
[ 0.263464] mc: Linux media interface: v0.10
[ 0.263810] videodev: Linux video capture interface: v2.00
[ 0.264708] pps_core: LinuxPPS API ver. 1 registered
[ 0.264818] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.265083] PTP clock support registered
[ 0.268294] Advanced Linux Sound Architecture Driver Initialized.
[ 0.280703] Bluetooth: Core ver 2.22
[ 0.281023] NET: Registered PF_BLUETOOTH protocol family
[ 0.281133] Bluetooth: HCI device and connection manager initialized
[ 0.281493] Bluetooth: HCI socket layer initialized
[ 0.281664] Bluetooth: L2CAP socket layer initialized
[ 0.281959] Bluetooth: SCO socket layer initialized
[ 0.284803] vgaarb: loaded
[ 0.287063] clocksource: Switched to clocksource arch_sys_counter
[ 0.291943] VFS: Disk quotas dquot_6.6.0
[ 0.292819] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.294620] FS-Cache: Loaded
[ 0.297327] CacheFiles: Loaded
[ 0.306599] NET: Registered PF_INET protocol family
[ 0.311097] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.330285] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.330900] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.331678] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.333233] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 0.334433] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.336757] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[ 0.337244] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.337671] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.339476] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.342269] PCI: CLS 0 bytes, default 64
[ 0.346671] Trying to unpack rootfs image as initramfs...
[ 0.348009] kvm [1]: HYP mode not available
[ 0.352285] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
[ 0.354672] Initialise system trusted keyrings
[ 0.360053] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.360812] zbud: loaded
[ 0.368584] Key type cifs.idmap registered
[ 0.369302] fuse: init (API version 7.39)
[ 0.420389] Key type asymmetric registered
[ 0.420653] Asymmetric key parser 'x509' registered
[ 0.421094] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.422211] io scheduler mq-deadline registered
[ 0.422382] io scheduler kyber registered
[ 0.422760] io scheduler bfq registered
[ 0.440485] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[ 0.513713] brd: module loaded
[ 0.543067] loop: module loaded
[ 0.546895] Loading iSCSI transport class v2.0-870.
[ 0.557492] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.557673] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[ 0.571442] tun: Universal TUN/TAP device driver, 1.6
[ 0.575425] usbcore: registered new interface driver brcmfmac
[ 0.575658] usbcore: registered new device driver r8152-cfgselector
[ 0.575862] usbcore: registered new interface driver r8152
[ 0.576092] usbcore: registered new interface driver lan78xx
[ 0.576358] usbcore: registered new interface driver asix
[ 0.576574] usbcore: registered new interface driver ax88179_178a
[ 0.576804] usbcore: registered new interface driver cdc_ether
[ 0.577018] usbcore: registered new interface driver smsc95xx
[ 0.577259] usbcore: registered new interface driver net1080
[ 0.577463] usbcore: registered new interface driver cdc_subset
[ 0.577669] usbcore: registered new interface driver zaurus
[ 0.577908] usbcore: registered new interface driver cdc_ncm
[ 0.578128] usbcore: registered new interface driver r8153_ecm
[ 0.579387] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.582601] usbcore: registered new interface driver cdc_acm
[ 0.582843] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.583872] usbcore: registered new interface driver uas
[ 0.584212] usbcore: registered new interface driver usb-storage
[ 0.584797] usbcore: registered new interface driver cp210x
[ 0.585143] usbserial: USB Serial support registered for cp210x
[ 0.585439] usbcore: registered new interface driver pl2303
[ 0.585628] usbserial: USB Serial support registered for pl2303
[ 0.591320] mousedev: PS/2 mouse device common for all mice
[ 0.591580] usbcore: registered new interface driver xpad
[ 0.591790] usbcore: registered new interface driver usb_acecad
[ 0.592003] usbcore: registered new interface driver aiptek
[ 0.592267] usbcore: registered new interface driver hanwang
[ 0.592478] usbcore: registered new interface driver kbtab
[ 0.592943] usbcore: registered new interface driver usbtouchscreen
[ 0.596243] i2c_dev: i2c /dev entries driver
[ 0.599617] ir_imon_decoder: IR iMON protocol handler initialized
[ 0.599754] IR JVC protocol handler initialized
[ 0.599866] IR MCE Keyboard/mouse protocol handler initialized
[ 0.600007] IR NEC protocol handler initialized
[ 0.600119] IR RC5(x/sz) protocol handler initialized
[ 0.600277] IR RC6 protocol handler initialized
[ 0.600386] IR RCMM protocol handler initialized
[ 0.600537] IR SANYO protocol handler initialized
[ 0.600679] IR Sharp protocol handler initialized
[ 0.600828] IR Sony protocol handler initialized
[ 0.600970] IR XMP protocol handler initialized
[ 0.602445] usbcore: registered new interface driver uvcvideo
[ 0.604269] device-mapper: uevent: version 1.0.3
[ 0.605494] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[ 0.607202] Bluetooth: HCI UART driver ver 2.3
[ 0.607385] Bluetooth: HCI UART protocol H4 registered
[ 0.608478] Bluetooth: HCI UART protocol Broadcom registered
[ 0.609583] sdhci: Secure Digital Host Controller Interface driver
[ 0.609699] sdhci: Copyright(c) Pierre Ossman
[ 0.610073] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.611758] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.615166] hid: raw HID events driver (C) Jiri Kosina
[ 0.625886] usbcore: registered new interface driver usbhid
[ 0.626055] usbhid: USB HID core driver
[ 0.629897] ashmem: initialized
[ 0.631207] SPI driver st-accel-spi has no spi_device_id for st,lis302dl-spi
[ 0.631408] SPI driver st-accel-spi has no spi_device_id for st,lis3lv02dl-accel
[ 0.631612] SPI driver st-accel-spi has no spi_device_id for st,lis3dh-accel
[ 0.631804] SPI driver st-accel-spi has no spi_device_id for st,lsm330d-accel
[ 0.631999] SPI driver st-accel-spi has no spi_device_id for st,lsm330dl-accel
[ 0.632222] SPI driver st-accel-spi has no spi_device_id for st,lsm330dlc-accel
[ 0.632415] SPI driver st-accel-spi has no spi_device_id for st,lis331dlh-accel
[ 0.632620] SPI driver st-accel-spi has no spi_device_id for st,lsm330-accel
[ 0.632804] SPI driver st-accel-spi has no spi_device_id for st,lsm303agr-accel
[ 0.632998] SPI driver st-accel-spi has no spi_device_id for st,lis2dh12-accel
[ 0.633228] SPI driver st-accel-spi has no spi_device_id for st,lng2dm-accel
[ 0.633403] SPI driver st-accel-spi has no spi_device_id for st,h3lis331dl-accel
[ 0.633602] SPI driver st-accel-spi has no spi_device_id for st,lis331dl-accel
[ 0.633794] SPI driver st-accel-spi has no spi_device_id for st,lsm303c-accel
[ 0.638237] SPI driver st-magn-spi has no spi_device_id for st,lis3mdl-magn
[ 0.638436] SPI driver st-magn-spi has no spi_device_id for st,lsm303agr-magn
[ 0.638621] SPI driver st-magn-spi has no spi_device_id for st,lsm9ds1-magn
[ 0.638884] SPI driver st-magn-spi has no spi_device_id for st,lsm303c-magn
[ 0.656684] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.660735] usbcore: registered new interface driver snd-usb-audio
[ 0.668585] Mirror/redirect action on
[ 0.669031] netem: version 1.3
[ 0.669155] u32 classifier
[ 0.669252] input device check on
[ 0.669365] Actions configured
[ 0.679397] xt_time: kernel timezone is -0000
[ 0.679908] gre: GRE over IPv4 demultiplexor driver
[ 0.680074] IPv4 over IPsec tunneling driver
[ 0.684348] Initializing XFRM netlink socket
[ 0.684688] IPsec XFRM device driver
[ 0.685605] NET: Registered PF_INET6 protocol family
[ 0.697074] Segment Routing with IPv6
[ 0.697747] In-situ OAM (IOAM) with IPv6
[ 0.699188] mip6: Mobile IPv6
[ 0.702708] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.707357] NET: Registered PF_PACKET protocol family
[ 0.707660] NET: Registered PF_KEY protocol family
[ 0.707937] Key type dns_resolver registered
[ 0.803914] registered taskstats version 1
[ 0.805916] Loading compiled-in X.509 certificates
[ 0.848609] Key type .fscrypt registered
[ 0.848773] Key type fscrypt-provisioning registered
[ 0.859321] of_cfs_init
[ 0.859798] of_cfs_init: OK
[ 0.863651] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 0.916241] Freeing initrd memory: 131072K
[ 0.939884] Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'
[ 0.940856] Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'
[ 0.941666] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 0.942389] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 0.947949] clk: Disabling unused clocks
[ 0.948468] ALSA device list:
[ 0.948637] No soundcards found.
[ 0.956833] uart-pl011 9000000.pl011: no DMA platform data
[ 0.958235] Waiting 5 sec before mounting root device...
[ 6.141721] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[ 6.143086] Waiting for root device ...
[ 6.145568] /dev/root: Can't open blockdev
[ 6.146341] VFS: Cannot open root device "" or unknown-block(0,0): error -6
[ 6.146477] Please append a correct "root=" boot option; here are the available partitions:
[ 6.146949] 0100 8192 ram0
[ 6.147047] (driver?)
[ 6.147226] 0101 8192 ram1
[ 6.147239] (driver?)
[ 6.147355] 0102 8192 ram2
[ 6.147366] (driver?)
[ 6.147480] 0103 8192 ram3
[ 6.147491] (driver?)
[ 6.147618] 0104 8192 ram4
[ 6.147629] (driver?)
[ 6.147755] 0105 8192 ram5
[ 6.147765] (driver?)
[ 6.147893] 0106 8192 ram6
[ 6.147903] (driver?)
[ 6.148029] 0107 8192 ram7
[ 6.148040] (driver?)
[ 6.148172] 0108 8192 ram8
[ 6.148182] (driver?)
[ 6.148307] 0109 8192 ram9
[ 6.148317] (driver?)
[ 6.148442] 010a 8192 ram10
[ 6.148452] (driver?)
[ 6.148580] 010b 8192 ram11
[ 6.148590] (driver?)
[ 6.148716] 010c 8192 ram12
[ 6.148726] (driver?)
[ 6.148853] 010d 8192 ram13
[ 6.148863] (driver?)
[ 6.148990] 010e 8192 ram14
[ 6.149001] (driver?)
[ 6.149127] 010f 8192 ram15
[ 6.149140] (driver?)
[ 6.149334] List of all bdev filesystems:
[ 6.149419] ext3
[ 6.149443] ext2
[ 6.149490] ext4
[ 6.149535] vfat
[ 6.149581] msdos
[ 6.149617] exfat
[ 6.149662] fuseblk
[ 6.149707] f2fs
[ 6.149765]
[ 6.149982] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[ 6.150325] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.6.36-g01aac93821d2-v8 #1
[ 6.150570] Hardware name: linux,dummy-virt (DT)
[ 6.150851] Call trace:
[ 6.150936] dump_backtrace+0x104/0x124
[ 6.151104] show_stack+0x28/0x38
[ 6.151193] dump_stack_lvl+0x58/0x78
[ 6.151286] dump_stack+0x20/0x30
[ 6.151367] panic+0x148/0x35c
[ 6.151443] mount_root_generic+0x2ac/0x2f0
[ 6.151544] mount_block_root+0x60/0x78
[ 6.151637] mount_root+0x84/0x98
[ 6.151718] prepare_namespace+0x90/0xd4
[ 6.151811] kernel_init_freeable+0xfc/0x14c
[ 6.151909] kernel_init+0x30/0x1bc
[ 6.151994] ret_from_fork+0x10/0x20
[ 6.152268] SMP: stopping secondary CPUs
[ 6.152632] Kernel Offset: 0x1cc3200000 from 0xffffffc080000000
[ 6.152773] PHYS_OFFSET: 0x40000000
[ 6.152869] CPU features: 0x000000,80000201,3c020000,0000421b
[ 6.153149] Memory Limit: none
[ 6.153518] Rebooting in 5 seconds..
On Sat, Aug 24, 2024 at 10:36 PM Peter Maydell <peter.maydell@linaro.org> wrote:On Sat, 24 Aug 2024 at 17:12, Mario Marietto <marietto2008@gmail.com> wrote:
> I want to emulate Android 14 by KonstaKang using qemu-system-aarch64 and as model virt on Ubuntu 24.04 x64 bit installed on my PC (Intel I9 + RTX 2080 ti).
So first up, this is as far as I know "uncharted territory"
in that I'm not aware of anybody who's booted full Android on
any (upstream) QEMU board model. (If there's anybody on-list
who *has* done this, please speak up!)
It would be interesting to see if it can be done, but it is
I suspect unlikely to work "out of the box", especially more
complex stuff like accelerated graphics. You'll want to be
prepared to fiddle around, diagnose boot-failures, maybe
rebuild the kernel, etc.
> I've chosen the parameters to boot it,according with the files provided by that version of Android,that you can find here :
>
> https://konstakang.com/devices/rpi4/AOSP14/
>
> This is the command issued with the parameters embedded :
I don't have any solid ideas, but:
> qemu-system-aarch64 \
> -m 2048 \
> -cpu cortex-a72 \
> -M virt,gic-version=2 \
^^ this says to QEMU "boot the 'virt' board"...
> -drive if=pflash,format=raw,file=/usr/local/share/qemu/edk2-aarch64-code.fd \
> -drive if=pflash,format=raw,file=/usr/local/share/qemu/edk2-arm-vars.fd \
> -kernel /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/Image \
> -append 'console=ttyAMA0,38400 keep_bootcon earlycon=pl011,0x9000000 androidboot.hardware=ranchu root=/dev/vdd1' \
^^^ but this looks like it's saying to the kernel (or perhaps to
Android later boot) "you're booting on the 'ranchu' board".
Is this image supposed to work on "virt" ?
> -drive file=/mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv.img,format=raw,index=0,media=disk \
> -device virtio-gpu-pci \
> -device qemu-xhci \
> -device usb-kbd \
> -device usb-mouse \
> -netdev user,id=mynet \
> -device virtio-net-pci,netdev=mynet \
> -serial stdio \
> -no-reboot \
> -d guest_errors \
> -smp cores=4 \
> -device qemu-xhci,id=xhci,addr=0x5 \
> -device usb-mouse,bus=xhci.0 \
> -device usb-kbd,bus=xhci.0
>
> Where did I found the kernel "Image" ? here :
>
> https://dlupload.com/filedetail/377203177
>
> This is the boot log :
>
> EFI stub: Booting Linux Kernel...
> EFI stub: EFI_RNG_PROTOCOL unavailable
> EFI stub: Generating empty DTB
> EFI stub: Exiting boot services...
> [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
> [ 0.000000] Linux version 6.6.36-g01aac93821d2-v8 (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 Tue Jul 2 09:02:32 UTC 2024
> [ 0.000000] KASLR disabled due to lack of seed
> [ 0.000000] printk: debug: skip boot console de-registration.
> [ 0.000000] earlycon: pl11 at MMIO 0x0000000009000000 (options '')
> [ 0.000000] printk: bootconsole [pl11] enabled
> [ 0.000000] efi: EFI v2.7 by EDK II
> [ 0.000000] efi: SMBIOS 3.0=0xbfed0000 MEMATTR=0xbd0a0018 ACPI 2.0=0xbc6f0018 MEMRESERVE=0xbcb43f18
> [ 0.000000] Zone ranges:
> [ 0.000000] DMA [mem 0x0000000040000000-0x00000000bfffffff]
> [ 0.000000] DMA32 empty
> [ 0.000000] Normal empty
> [ 0.000000] Movable zone start for each node
> [ 0.000000] NoSplit zone start for each node
> [ 0.000000] NoMerge zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000bc76ffff]
> [ 0.000000] node 0: [mem 0x00000000bc770000-0x00000000bcb3ffff]
> [ 0.000000] node 0: [mem 0x00000000bcb40000-0x00000000bfe1ffff]
> [ 0.000000] node 0: [mem 0x00000000bfe20000-0x00000000bfeaffff]
> [ 0.000000] node 0: [mem 0x00000000bfeb0000-0x00000000bfebffff]
> [ 0.000000] node 0: [mem 0x00000000bfec0000-0x00000000bffdffff]
> [ 0.000000] node 0: [mem 0x00000000bffe0000-0x00000000bfffffff]
> [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
> [ 0.000000] cma: Reserved 8 MiB at 0x00000000bbc00000 on node -1
> [ 0.000000] Failed to find device node for boot cpu
> [ 0.000000] missing boot CPU MPIDR, not enabling secondaries
These error messages hint at a problem where the kernel is using the
device tree (which UEFI has said it's providing as "empty") rather
than the ACPI tables.
> [ 0.000000] percpu: Embedded 31 pages/cpu s87016 r8192 d31768 u126976
> [ 0.000000] Detected PIPT I-cache on CPU0
> [ 0.000000] CPU features: detected: Spectre-v2
> [ 0.000000] CPU features: detected: Spectre-v3a
> [ 0.000000] CPU features: detected: Spectre-v4
> [ 0.000000] CPU features: detected: Spectre-BHB
> [ 0.000000] CPU features: detected: ARM erratum 1742098
> [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
> [ 0.000000] alternatives: applying boot alternatives
> [ 0.000000] Kernel command line: console=ttyAMA0,38400 keep_bootcon earlycon=pl011,0x9000000 androidboot.hardware=ranchu root=/dev/vdd1 androidboot.serialno=10000000abcd1234 androidboot.btmacaddr=11:22:33:44:55:66
> [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
> [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
> [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
> [ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
> [ 0.000000] Memory: 2008408K/2097152K available (19328K kernel code, 2374K rwdata, 7612K rodata, 1792K init, 1192K bss, 80552K reserved, 8192K cma-reserved)
> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [ 0.000000] ftrace: allocating 56269 entries in 220 pages
> [ 0.000000] ftrace: allocated 220 pages with 5 groups
> [ 0.000000] trace event string verifier disabled
> [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
> [ 0.000000] rcu: RCU event tracing is enabled.
> [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=1.
> [ 0.000000] Trampoline variant of Tasks RCU enabled.
> [ 0.000000] Rude variant of Tasks RCU enabled.
> [ 0.000000] Tracing variant of Tasks RCU enabled.
> [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
> [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
> [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
> [ 0.000000] timer_probe: no matching timers found
This one is also vaguely suggestive of a similar issue.
Is the kernel expecting to be booted via UEFI ? Or does it
insist on a device tree? If the latter, try not using UEFI.
More generally, if the kernel wasn't built to run on the "virt"
board you may find it is missing device drivers that the virt
board needs. You'll find the .config file for the kernel
helpful in diagnosing this, and you might need to rebuild
your own kernel.
-- PMM
--Mario.
--Mario.
--Mario.
[Prev in Thread] | Current Thread | [Next in Thread] |