18 Star 163 Fork 211

OpenHarmony / device_qemu

 / 详情

qemu-x86_64-linux-min 运行报错

待办的
任务
创建于  
2023-04-14 22:22

【任务描述】
https://gitee.com/openharmony/device_qemu/blob/master/x86_64_virt/linux/README_zh.md编译运行qemu-x86_64-linux-min,报错:

[    0.000000] Command line: console=ttyS0,115200 init=/bin/init hardware=qemu.x86_64.linux default_boot_device=a003e00.virtio_mmio root=/dev/ram0 rw ohos.9
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fff3fff] usable
[    0.000000] BIOS-e820: [mem 0x000000003fff4000-0x000000003fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.4 present.
[    0.000000] DMI: Bochs Bochs, BIOS Bochs 01/01/2011
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 2303.991 MHz processor
[    0.002502] last_pfn = 0x3fff4 max_arch_pfn = 0x400000000
[    0.004813] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.018050] found SMP MP-table at [mem 0x000f4d10-0x000f4d1f]
[    0.019822] check: Scanning 1 areas for low memory corruption
[    0.024181] RAMDISK: [mem 0x3fe04000-0x3ffeffff]
[    0.024676] ACPI: Early table checksum verification disabled
[    0.025166] ACPI: RSDP 0x00000000000F4B30 000024 (v02 BOCHS )
[    0.025948] ACPI: XSDT 0x000000003FFFFF96 000034 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.026720] ACPI: FACP 0x000000003FFFFE20 00010C (v05 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.027211] ACPI: DSDT 0x000000003FFFFBC0 000260 (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.027305] ACPI: APIC 0x000000003FFFFF2C 00006A (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.027399] ACPI: Reserving FACP table memory at [mem 0x3ffffe20-0x3fffff2b]
[    0.027433] ACPI: Reserving DSDT table memory at [mem 0x3ffffbc0-0x3ffffe1f]
[    0.027443] ACPI: Reserving APIC table memory at [mem 0x3fffff2c-0x3fffff95]
[    0.029610] No NUMA configuration found
[    0.029641] Faking a node at [mem 0x0000000000000000-0x000000003fff3fff]
[    0.030556] NODE_DATA(0) allocated [mem 0x3fff0000-0x3fff3fff]
[    0.033879] Zone ranges:
[    0.033997]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.034051]   DMA32    [mem 0x0000000001000000-0x000000003fff3fff]
[    0.034065]   Normal   empty
[    0.034092] Movable zone start for each node
[    0.034126] Early memory node ranges
[    0.034205]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.034384]   node   0: [mem 0x0000000000100000-0x000000003fff3fff]
[    0.034650] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fff3fff]
[    0.036566] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.036925] On node 0, zone DMA: 97 pages in unavailable ranges
[    0.052893] On node 0, zone DMA32: 12 pages in unavailable ranges
[    0.053936] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.054435] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[    0.054631] IOAPIC[1]: apic_id 1, version 32, address 0xfec10000, GSI 24-47
[    0.054807] Using ACPI (MADT) for SMP configuration information
[    0.055093] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[    0.056285] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.056348] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.056399] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff]
[    0.056409] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[    0.056560] [mem 0x40000000-0xfffbffff] available for PCI devices
[    0.057013] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.068177] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:4 nr_node_ids:1
[    0.071168] percpu: Embedded 56 pages/cpu s188888 r8192 d32296 u524288
[    0.074047] Built 1 zonelists, mobility grouping on.  Total pages: 257917
[    0.074071] Policy zone: DMA32
[    0.074279] Kernel command line: console=ttyS0,115200 init=/bin/init hardware=qemu.x86_64.linux default_boot_device=a003e00.virtio_mmio root=/dev/ram0 r9
[    0.076158] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.076374] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.077341] random: get_random_u32 called from init_cea_offsets+0x22/0x8c with crng_init=0
[    0.079992] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.104797] Memory: 994100K/1048136K available (16398K kernel code, 2453K rwdata, 3364K rodata, 1324K init, 1796K bss, 53776K reserved, 0K cma-reserved)
[    0.109008] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.118555] rcu: Hierarchical RCU implementation.
[    0.118583] rcu:     RCU event tracing is enabled.
[    0.118624] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.118797] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.118835] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.125397] NR_IRQS: 4352, nr_irqs: 848, preallocated irqs: 0
[    0.138580] Console: colour *CGA 80x25
[    0.207758] printk: console [ttyS0] enabled
[    0.210716] ACPI: Core revision 20200925
[    0.217677] APIC: Switch to symmetric I/O mode setup
[    0.220486] tsc: Marking TSC unstable due to TSCs unsynchronized
[    0.221502] Calibrating delay loop (skipped), value calculated using timer frequency.. 4607.98 BogoMIPS (lpj=2303991)
[    0.222279] pid_max: default: 32768 minimum: 301
[    0.222279] LSM: Security Framework initializing
[    0.222279] SELinux:  Initializing.
[    0.222279] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.222279] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.222279] process: using AMD E400 aware idle routine
[    0.222279] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[    0.222279] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0
[    0.222279] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.222279] Spectre V2 : Mitigation: Retpolines
[    0.222279] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.222279] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT
[    0.222279] ------------[ cut here ]------------
[    0.222279] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/alternative.c:603 apply_retpolines+0x40/0x210
[    0.222279] Modules linked in:
[    0.222279] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.97 #1
[    0.222279] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    0.222279] RIP: 0010:apply_retpolines+0x40/0x210
[    0.222279] Code: 00 00 65 48 8b 04 25 28 00 00 00 48 89 84 24 a0 00 00 00 48 89 74 24 08 48 39 f7 0f 83 af 01 00 00 48 89 fb 49 89 fe eb 16 90 <0f> 0b c
[    0.222279] RSP: 0000:ffffffff8a203e30 EFLAGS: 00000203
[    0.222279] RAX: 000000000000000e RBX: ffffffff8aa12f58 RCX: 000000000000000f
[    0.222279] RDX: ffffffff8a9157e9 RSI: ffffffff8a9157e0 RDI: 00000000ff2ee120
[    0.222279] RBP: ffffffff8a203f08 R08: 0000000000000000 R09: ffffffff8a27ce40
[    0.222279] R10: 0000000000000000 R11: 0000000000000000 R12: fffffffffff02882
[    0.222279] R13: ffffffff8a9157da R14: ffffffff8aa12f58 R15: 0000000000000000
[    0.222279] FS:  0000000000000000(0000) GS:ffff938bfea00000(0000) knlGS:0000000000000000
[    0.222279] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.222279] CR2: ffff938bc7e01000 CR3: 000000000740c000 CR4: 00000000000006f0
[    0.222279] Call Trace:
[    0.222279]  ? x86_early_init_platform_quirks+0x7e/0x85
[    0.222279]  ? x86_pnpbios_disabled+0x8/0xb
[    0.222279]  ? x86_early_init_platform_quirks+0x84/0x85
[    0.222279]  alternative_instructions+0x1d/0xc8
[    0.222279]  check_bugs+0x65/0x93
[    0.222279]  start_kernel+0x388/0x3f5
[    0.222279]  secondary_startup_64_no_verify+0xc2/0xcb
[    0.222279] ---[ end trace 50f35b31dc9ca784 ]---
[    0.222279] Freeing SMP alternatives memory: 52K
[    0.222279] smpboot: CPU0: AMD QEMU Virtual CPU version 2.5+ (family: 0xf, model: 0x6b, stepping: 0x1)
[    0.230932] Performance Events: PMU not available due to virtualization, using software events only.
[    0.233558] rcu: Hierarchical SRCU implementation.
[    0.241716] smp: Bringing up secondary CPUs ...
[    0.245419] x86: Booting SMP configuration:
[    0.245856] .... node  #0, CPUs:      #1 #2 #3
[    0.447472] smp: Brought up 1 node, 4 CPUs
[    0.449383] smpboot: Max logical packages: 1
[    0.451535] smpboot: Total of 4 processors activated (18439.90 BogoMIPS)
[    0.479377] devtmpfs: initialized
[    0.493439] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.495408] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.503887] PM: RTC time: 16:52:20, date: 2023-04-13
[    0.512816] NET: Registered protocol family 16
[    0.517926] audit: initializing netlink subsys (disabled)
[    0.522625] audit: type=2000 audit(1681404739.300:1): state=initialized audit_enabled=0 res=1
[    0.529967] thermal_sys: Registered thermal governor 'step_wise'
[    0.530051] thermal_sys: Registered thermal governor 'user_space'
[    0.536575] cpuidle: using governor menu
[    0.543902] ACPI: bus type PCI registered
[    0.548704] PCI: Fatal: No config space access function found
[    0.554580] mtrr: your CPUs had inconsistent fixed MTRR settings
[    0.556337] mtrr: your CPUs had inconsistent variable MTRR settings
[    0.559316] mtrr: your CPUs had inconsistent MTRRdefType settings
[    0.562329] mtrr: probably your BIOS does not setup all CPUs.
[    0.564333] mtrr: corrected configuration.
[    0.599715] Kprobes globally optimized
[    0.605755] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.613693] cryptomgr_test (36) used greatest stack depth: 15400 bytes left
[    0.636015] ACPI: Added _OSI(Module Device)
[    0.638363] ACPI: Added _OSI(Processor Device)
[    0.639279] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.642307] ACPI: Added _OSI(Processor Aggregator Device)
[    0.644319] ACPI: Added _OSI(Linux-Dell-Video)
[    0.646328] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.650380] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.664855] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.673943] ACPI: Interpreter enabled
[    0.678002] ACPI: (supports S0 S5)
[    0.680407] ACPI: Using IOAPIC for interrupt routing
[    0.683935] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.711107] iommu: Default domain type: Translated
[    0.716926] vgaarb: loaded
[    0.721451] SCSI subsystem initialized
[    0.727322] ACPI: bus type USB registered
[    0.730908] usbcore: registered new interface driver usbfs
[    0.732689] usbcore: registered new interface driver hub
[    0.735535] usbcore: registered new device driver usb
[    0.737952] pps_core: LinuxPPS API ver. 1 registered
[    0.741334] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.742468] PTP clock support registered
[    0.750816] Advanced Linux Sound Architecture Driver Initialized.
[    0.764431] NetLabel: Initializing
[    0.765426] NetLabel:  domain hash size = 128
[    0.766366] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.770877] NetLabel:  unlabeled traffic allowed by default
[    0.775703] PCI: Using ACPI for IRQ routing
[    0.776549] PCI: System does not support PCI
[    0.782415] clocksource: Switched to clocksource refined-jiffies
[    1.226019] VFS: Disk quotas dquot_6.6.0
[    1.226558] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.231897] pnp: PnP ACPI init
[    1.237592] pnp: PnP ACPI: found 2 devices
[    1.275489] NET: Registered protocol family 2
[    1.278801] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.287748] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.288508] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.291085] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.292621] TCP: Hash tables configured (established 8192 bind 8192)
[    1.295864] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.296595] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.299790] NET: Registered protocol family 1
[    1.307608] RPC: Registered named UNIX socket transport module.
[    1.308340] RPC: Registered udp transport module.
[    1.310214] RPC: Registered tcp transport module.
[    1.311198] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.315009] PCI: CLS 0 bytes, default 64
[    1.321710] Trying to unpack rootfs image as initramfs...
[    1.457596] Freeing initrd memory: 1968K
[    1.466512] check: Scanning for low memory corruption every 60 seconds
[    1.473778] Initialise system trusted keyrings
[    1.477779] workingset: timestamp_bits=56 max_order=18 bucket_order=0
[    1.498877] NFS: Registering the id_resolver key type
[    1.501471] Key type id_resolver registered
[    1.502169] Key type id_legacy registered
[    1.549266] Key type asymmetric registered
[    1.550385] Asymmetric key parser 'x509' registered
[    1.552433] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.553358] io scheduler mq-deadline registered
[    1.554366] io scheduler kyber registered
[    1.568820] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    1.571226] ACPI: Power Button [PWRB]
[    1.580413] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.585462] 00:00: ttyS0 at I/O 0x3f8 (irq = 6, base_baud = 115200) is a 16550A
[    1.592528] Non-volatile memory driver v1.3
[    1.594306] Linux agpgart interface v0.103
[    1.644327] brd: module loaded
[    1.670444] loop: module loaded
[    1.690442] virtio_blk virtio0: [vda] 11760 512-byte logical blocks (6.02 MB/5.74 MiB)
[    1.692245] vda: detected capacity change from 0 to 6021120
[    1.730824] virtio_blk virtio1: [vdb] 204800 512-byte logical blocks (105 MB/100 MiB)
[    1.731299] vdb: detected capacity change from 0 to 104857600
[    1.755125] virtio_blk virtio2: [vdc] 204800 512-byte logical blocks (105 MB/100 MiB)
[    1.755182] vdc: detected capacity change from 0 to 104857600
[    1.775992] virtio_blk virtio3: [vdd] 204800 512-byte logical blocks (105 MB/100 MiB)
[    1.776423] vdd: detected capacity change from 0 to 104857600
[    1.787990] e100: Intel(R) PRO/100 Network Driver
[    1.788198] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.790316] e1000: Intel(R) PRO/1000 Network Driver
[    1.791181] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    1.792375] e1000e: Intel(R) PRO/1000 Network Driver
[    1.794169] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.796355] sky2: driver version 1.30
[    1.799450] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.801204] ehci-pci: EHCI PCI platform driver
[    1.803402] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.804268] ohci-pci: OHCI PCI platform driver
[    1.806428] uhci_hcd: USB Universal Host Controller Interface driver
[    1.808782] usbcore: registered new interface driver usblp
[    1.809612] usbcore: registered new interface driver usb-storage
[    1.810712] i8042: PNP: No PS/2 controller found.
[    1.820057] rtc_cmos 00:01: registered as rtc0
[    1.822938] rtc_cmos 00:01: alarms up to one day, 242 bytes nvram
[    1.825262] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    1.827536] hid: raw HID events driver (C) Jiri Kosina
[    1.831477] usbcore: registered new interface driver usbhid
[    1.832216] usbhid: USB HID core driver
[    1.834341] ashmem: initialized
[    1.837356] access_token_id: access_tokenid init success
[    1.856310] Initializing XFRM netlink socket
[    1.858933] NET: Registered protocol family 10
[    1.870321] Segment Routing with IPv6
[    1.877429] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.886129] NET: Registered protocol family 17
[    1.888132] Key type dns_resolver registered
[    1.894187] IPI shorthand broadcast: enabled
[    1.896217] registered taskstats version 1
[    1.898175] Loading compiled-in X.509 certificates
[    1.905695] PM:   Magic number: 3:2:894
[    1.909603] printk: console [netcon0] enabled
[    1.912146] netconsole: network logging started
[    1.920453] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.938207] kworker/u8:0 (73) used greatest stack depth: 14376 bytes left
[    1.956262] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.958459] Unstable clock detected, switching default tracing clock to "global"
[    1.958459] If you want to keep using the local clock, then add:
[    1.958459]   "trace_clock=local"
[    1.958459] on the kernel command line
[    1.966449] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.966881] ALSA device list:
[    1.969266]   No soundcards found.
[    1.972326] cfg80211: failed to load regulatory.db
[    2.038955] Freeing unused kernel image (initmem) memory: 1324K
[    2.044247] Write protecting the kernel read-only data: 22528k
[    2.051938] Freeing unused kernel image (text/rodata gap) memory: 2032K
[    2.057426] Freeing unused kernel image (rodata/data gap) memory: 732K
[    2.059504] Run /init as init process
[    2.136592] [pid=1][Init][INFO][init.c:226]Start init first stage.
[    2.137924] random: init: uninitialized urandom read (8 bytes read)
[    2.143914] random: init: uninitialized urandom read (8 bytes read)
[    2.143914] random: init: uninitialized urandom read (8 bytes read)
[    2.176602] [pid=1][ueventd][INFO][ueventd.c:180]/dev/block/vdb match with required partition vdb success, now handle it
[    2.190226] [pid=1][ueventd][INFO][ueventd.c:180]/dev/block/vdc match with required partition vdc success, now handle it
[    2.303272] [pid=1][Init][INFO][init_mount.c:30]Mount required partitions
[    2.308345] [pid=1][BEGET][INFO][fstab_mount.c:353]No valid slot value found from parameter, try to get it from cmdline
[    2.310658] [pid=1][BEGET][INFO][fstab_mount.c:324]Failed to get bootslots value from cmdline
[    2.339951] EXT4-fs (vdb): mounted filesystem without journal. Opts: barrier=1
[    2.345676] [pid=1][BEGET][INFO][fstab_mount.c:421]Mount /dev/block/vdb to /usr successful
[    2.345799] [pid=1][BEGET][INFO][fstab_mount.c:353]No valid slot value found from parameter, try to get it from cmdline
[    2.354383] [pid=1][BEGET][INFO][fstab_mount.c:324]Failed to get bootslots value from cmdline
[    2.362582] EXT4-fs (vdc): mounted filesystem without journal. Opts: barrier=1
[    2.368363] [pid=1][BEGET][INFO][fstab_mount.c:421]Mount /dev/block/vdc to /vendor successful
[    2.375275] [pid=1][Init][INFO][init.c:204]Start init second stage.
[    2.411884] [pid=1][Init][INFO][switch_root.c:191]SwitchRoot to /usr finish
[    2.487966] [pid=1][LoopEvent][INFO][le_signal.c:74]LE_AddSignal 17 0
[    2.491326] [pid=1][LoopEvent][INFO][le_signal.c:74]LE_AddSignal 15 1
[    2.500565] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
[    2.510516] [pid=1][BEGET][ERROR][fstab.c:335]Failed to get fstab item from mount point " /misc "
[    2.514194] [pid=1][BEGET][INFO][fstab.c:516]Mount point not found, try to get path by device name.
[    2.519410] [pid=1][BEGET][ERROR][reboot_misc.c:77]Failed to get misc path
[    2.521367] [pid=1][Init][INFO][init_group_manager.c:198]boot start device.boot.group
[    2.530739] [pid=1][Init][INFO][init.c:306]Executing hook [0:0] cost [3999]us, return 0.
[    2.534286] [pid=1][Init][INFO][init.c:306]Executing hook [0:0] cost [999]us, return 0.
[    2.536389] [pid=1][Init][INFO][init.c:306]Executing hook [0:0] cost [0]us, return 0.
[    2.538499] [pid=1][PARAM][INFO][param_service.c:375]InitParamService pipe: /dev/unix/socket/paramservice.
[    2.543330] [pid=1][PARAM][INFO][param_base.c:80]Init parameter dac success
[    2.546679] [pid=1][PARAM][INFO][param_base.c:267]AddWorkSpace param_storage spaceSize: 81920 onlyRead false
[    2.597223] [pid=1][PARAM][WARNING][param_dac.c:306]Invalid user for 'uhdf_driver' gid 3066 uid -1
[    2.603688] [pid=1][PARAM][WARNING][param_dac.c:306]Invalid user for 'appspawn' gid 4000 uid -1
[    2.609651] [pid=1][Init][INFO][init_group_manager.c:68]Parse group config /system/etc/device.boot.group.cfg
[    2.616782] [pid=1][Init][INFO][init.c:403]boot init finish.
[    2.627638] [pid=1][PARAM][ERROR][param_server.c:56]Get ohos.boot.bootgroup parameter value is null.
[    2.630309] [pid=1][PARAM][ERROR][param_server.c:56]Get ohos.boot.reboot_reason parameter value is null.
[    2.632223] [pid=1][PARAM][ERROR][param_server.c:56]Get ohos.boot.bootslots parameter value is null.
[    2.635146] [pid=1][PARAM][INFO][param_server.c:218]load parameters from build
[    2.637407] [pid=1][PARAM][INFO][param_server.c:204]Load default parameters from /system/etc/param/ohos_const.
[    2.649173] [pid=1][PARAM][INFO][param_server.c:204]Load default parameters from /chipset/etc/param.
[    2.655555] [pid=1][PARAM][INFO][param_server.c:204]Load default parameters from /system/etc/param.
[    2.673746] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 16 success /system/etc/param/hilog.para.dac
[    2.679782] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 14 success /system/etc/param/devicemanager.para.dac
[    2.691598] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 28 success /system/etc/param/ohos.para.dac
[    2.696239] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 14 success /system/etc/param/access_token.para.dac
[    2.700594] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 14 success /system/etc/param/hitrace.para.dac
[    2.709820] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 18 success /system/etc/param/hdc.para.dac
[    2.713567] [pid=1][PARAM][INFO][param_dac.c:155]Load parameter label total 16 success /system/etc/param/samgr.para.dac
[    2.717637] [pid=1][Init][INFO][init.c:306]Executing hook [30:0] cost [0]us, return 0.
[    2.731677] [pid=1][Init][INFO][init_config.c:87]Import /etc/init.usb.cfg  ...
[    2.741224] [pid=1][Init][INFO][init_config.c:87]Import /vendor/etc/init.qemu.x86_64.linux.usb.cfg  ...
[    2.746193] [pid=1][Init][INFO][init_config.c:87]Import /etc/init.usb.configfs.cfg  ...
[    2.748249] [pid=1][Init][ERROR][init_utils.c:137]Unexpected config file " /etc/init.usb.configfs.cfg ", check if it exist. if exist, check file size
[    2.753121] [pid=1][Init][ERROR][init_config.c:48]Failed to read file content /etc/init.usb.configfs.cfg
[    2.758299] [pid=1][Init][INFO][init_config.c:87]Import /vendor/etc/init.qemu.x86_64.linux.cfg  ...
[    2.764306] [pid=1][PARAM][ERROR][trigger_processor.c:245]Command array size must positive fs
[    2.766149] [pid=1][Init][INFO][init_config.c:87]Import init.qemu.x86_64.linux.usb.cfg  ...
[    2.771249] [pid=1][Init][ERROR][init_utils.c:137]Unexpected config file " init.qemu.x86_64.linux.usb.cfg ", check if it exist. if exist, check file size
[    2.771249] [pid=1][Init][ERROR][init_config.c:48]Failed to read file content init.qemu.x86_64.linux.usb.cfg
[    2.800696] [pid=1][Init][ERROR][init_service_manager.c:251]Failed to get gid for faultloggerd
[    2.803513] [pid=1][Init][WARNING][init_service_manager.c:287]Parse service faultloggerd gid failed from item "faultloggerd".
[    2.809372] [pid=1][Init][INFO][init_group_manager.c:303]Found services:faultloggerd in job group
[    2.838233] [pid=1][Init][INFO][init_group_manager.c:303]Found services:foundation in job group
[    2.841243] [pid=1][Init][INFO][init_group_manager.c:303]Found services:restartfoundation in job group
[    2.850575] [pid=1][Init][INFO][init_service_socket.c:142]CreateSocket ueventd success
[    2.857707] [pid=1][Init][INFO][init.c:419]boot parse config file done.
[    2.863554] [pid=1][Init][INFO][init.c:266]boot job pre-init start.
[    2.873315] [pid=1][Init][INFO][init_service_manager.c:1084]Start service ueventd
[    2.880248] [pid=1][Init][INFO][init_common_service.c:387]Service ueventd(pid 80) started
[    2.885420] [pid=80][Init][ERROR][init_common_service.c:301]Set service ueventd access token failed
[    2.888500] [pid=1][Init][INFO][init_service_manager.c:1084]Start service watchdog_service
[    2.895508] [pid=1][Init][INFO][init_common_service.c:387]Service watchdog_service(pid 81) started
[    2.898348] [pid=81][Init][ERROR][init_common_service.c:301]Set service watchdog_service access token failed
[    2.902404] [pid=1][Init][INFO][init_cmds.c:291]Mount partitions from fstab file " /vendor/etc/fstab.qemu.x86_64.linux "
[    2.911776] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
[    2.964312] [pid=80][ueventd][INFO][ueventd_main.c:71]Ueventd started, trigger uevent
[    3.418575] [pid=1][BEGET][INFO][fstab_mount.c:78]Execute /system/bin/resize2fs begin
[    3.514575] resize2fs (82) used greatest stack depth: 13496 bytes left
[    3.515863] [pid=1][BEGET][INFO][fstab_mount.c:93]Execute /system/bin/resize2fs end
[    3.517384] [pid=1][BEGET][INFO][fstab_mount.c:78]Execute /system/bin/e2fsck begin
[    3.624904] e2fsck (84) used greatest stack depth: 13488 bytes left
[    3.624838] [pid=1][BEGET][INFO][fstab_mount.c:93]Execute /system/bin/e2fsck end
[    3.642528] EXT4-fs (vdd): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,noauto_da_alloc
[    3.647873] [pid=1][BEGET][INFO][fstab_mount.c:421]Mount /dev/block/vdd to /data successful
[    3.648303] [pid=1][Init][INFO][init_cmds.c:293]Mount partitions from fstab file " /vendor/etc/fstab.qemu.x86_64.linux " finish ret 0
[    3.675254] [pid=1][Init][INFO][fscrypt_control.c:391]Fscrypt have not enabled
[    3.680074] [pid=1][Init][INFO][fscrypt_control.c:391]Fscrypt have not enabled
[    3.683032] [pid=1][Init][INFO][fscrypt_control.c:391]Fscrypt have not enabled
[    3.686483] [pid=1][Init][INFO][fscrypt_control.c:391]Fscrypt have not enabled
[    3.688530] [pid=1][Init][ERROR][init_common_cmds.c:338]Create directory '/data/vendor/log' failed, err=2.
[    3.693030] [pid=1][Init][ERROR][init_common_cmds.c:455]Failed to mount for /config, err 19.
[    3.699143] [pid=1][PARAM][INFO][param_persistadp.c:45]Load persist param, from file /data/service/el1/startup/parameters/persist_parameters
[    3.701997] [pid=1][PARAM][ERROR][param_persistadp.c:47]No valid persist parameter file /data/service/el1/startup/parameters/persist_parameters
[    3.714694] [pid=1][PLUGIN][INFO][bootchart_static.c:25]bootchart disabled.
[    3.717912] [pid=1][Init][INFO][init_hook.c:197]Can not get log level from param, keep the original loglevel.
[    3.727428] [pid=1][Init][INFO][fscrypt_control.c:391]Fscrypt have not enabled
[    3.807913] init[1]: segfault at 7fff04dc2fe8 ip 00007f0933ca9f2e sp 00007fff04dc3000 error 6 in ld-musl-x86_64.so.1[7f0933c91000+98000]
[    3.813041] Code: 89 74 24 d0 48 89 4c 24 d8 0f 28 44 24 d0 e9 56 01 00 00 48 89 f9 4c 31 c9 4c 09 e1 75 50 4d 09 f0 0f 84 51 01 00 00 4c 09 c8 <48> 89 1
[    4.011788] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000b00
[    4.011788] CPU: 2 PID: 1 Comm: init Tainted: G        W         5.10.97 #1
[    4.011788] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    4.011788] Call Trace:
[    4.011788]  dump_stack+0x8f/0xda
[    4.011788]  panic+0xf8/0x2e4
[    4.011788]  ? exit_signals+0x1c1/0x210
[    4.011788]  do_exit+0x8bf/0x950
[    4.011788]  do_group_exit+0x8a/0x90
[    4.011788]  __do_sys_exit_group+0xb/0x10
[    4.011788]  __se_sys_exit_group+0x5/0x10
[    4.011788]  __x64_sys_exit_group+0x9/0x10
[    4.011788]  do_syscall_64+0x33/0x40
[    4.011788]  entry_SYSCALL_64_after_hwframe+0x61/0xc6
[    4.011788] RIP: 0033:0x7f0933cb7b3e
[    4.011788] Code: 48 8d 3d c5 63 f9 ff 48 8b 70 28 5d e9 7b 8f 00 00 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 48 63 ff b8 e7 00 00 00 0f 05 <66> 90 5
[    4.011788] RSP: 002b:00007f0933c1ebb0 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7
[    4.011788] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00007f0933cb7b3e
[    4.011788] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000b
[    4.011788] RBP: 00007f0933c1ebb0 R08: 0000000000000000 R09: 0000000000000000
[    4.011788] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
[    4.011788] R13: 0000558240053320 R14: 0000000000000000 R15: 0000000000000000
[    4.011788] Kernel Offset: 0x7c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    4.011788] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000b00 ]---

输入图片说明

【解决方案】

【任务来源】

评论 (2)

kenneth 创建了任务

请问该问题解决了吗?我也出现了类似的报错:

[    2.733978] [pid=1][Init][ERROR][init_common_cmds.c:338]Create directory '/data/vendor/log' failed, err=2.
[    2.737048] [pid=1][Init][ERROR][init_common_cmds.c:455]Failed to mount for /config, err 19.

我是在WSL2中运行的,Linux具体配置如下:
Linux环境配置截图
Windows版本如下:
Windows配置截图
qemu版本为6.2.0

编译 OpenHarmony-v3.2-Release 版本,遇到相同的问题,有解决方法吗?

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
1
https://gitee.com/openharmony/device_qemu.git
git@gitee.com:openharmony/device_qemu.git
openharmony
device_qemu
device_qemu

搜索帮助