[environ] 02. qemu搭建tf-a启动linux aarch64环境

介绍:通过qemu搭建tf-a启动linux aarch64环境,以便于学习tf-a及与linux互动。

host:ubuntu-20.04

qemu:7.0.0

linux:5.10

busybox:1.34.0

edk2:edk2-stable202208

arm-trusted-firmware:2.7

gcc-aarch64-linux-gnu:11.3.0

目录

前言 

工具链

编译qemu

编译linux

制作rootfs

编译edk2

源码

编译

路径

编译tf-a

启动

准备

启动


前言 

[environ] 01. qemu搭建linux aarch64环境基础上,以/home/andrew/Documents/virt/environ作为顶级目录,在其下搭建tf-a启动linux aarch64环境。

工具链

参考[environ] 01. qemu搭建linux aarch64环境了解交叉编译工具链gcc-aarch64-linux-gnu的安装。

编译qemu

参考[environ] 01. qemu搭建linux aarch64环境了解qemu的编译。

编译linux

参考[environ] 01. qemu搭建linux aarch64环境了解linux的编译。

制作rootfs

参考[environ] 01. qemu搭建linux aarch64环境了解rootfs制作和nfs的配置。

编译edk2

源码

参考下方式下载源码,并checkout到edk2-stable202208:

# source
$ git clone https://github.com/tianocore/edk2.git
# checkout
$ git checkout edk2-stable202208

编译

参考以下编译:

# prepare
$ git submodule update --init
$ make -C BaseTools
$ source edksetup.sh
$ export GCC5_AARCH64_PREFIX=aarch64-linux-gnu-

# debug
$ build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtQemuKernel.dsc -b DEBUG

# release
$ build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtQemuKernel.dsc -b RELEASE

路径

参考如下路径找到生成的QEMU_EFI.fd文件:

# debug
Build/ArmVirtQemuKernel-AARCH64/DEBUG_GCC5/FV/QEMU_EFI.fd

# release
Build/ArmVirtQemuKernel-AARCH64/RELEASE_GCC5/FV/QEMU_EFI.fd

编译tf-a

 下载:

$ git clone https://github.com/ARM-software/arm-trusted-firmware.git

编译:

# debug
$ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=qemu all DEBUG=1

# release
$ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=qemu all

启动

准备

启动前需要在顶级目录创建软链接:

$ ln -s arm-trusted-firmware/build/qemu/release/bl1.bin bl1.bin
$ ln -s arm-trusted-firmware/build/qemu/release/bl2.bin bl2.bin
$ ln -s arm-trusted-firmware/build/qemu/release/bl31.bin bl31.bin
$ ln -s edk2/Build/ArmVirtQemuKernel-AARCH64/RELEASE_GCC5/FV/QEMU_EFI.fd bl33.bin
$ ln -s linux/arch/arm64/boot/Image Image

注:bl1.bin、bl2.bin、bl31.bin、bl33.bin必须在同一级目录,且必须与启动脚本同级。

编写启动脚本start.sh:

#!/bin/bash

qemu/build/qemu-system-aarch64 \
	-nographic \
	-M virt,secure=on \
	-cpu cortex-a57 -smp 4 \
	-m 1024 \
	-bios bl1.bin \
	-kernel Image \
	-device virtio-net-device,netdev=eth0 -netdev user,id=eth0 \
	-semihosting-config enable=on \
	-append "noinitrd root=/dev/nfs \
		 nfsroot=10.0.2.2:/home/andrew/Documents/virt/environ/rootfs,v3 rw \
		 init=/linuxrc ip=dhcp console=ttyAMA0"

这是最后目录布局:

$ ls -l
total 36
drwxrwxr-x 21 andrew andrew 4096 Nov  6 22:59 arm-trusted-firmware
lrwxrwxrwx  1 andrew andrew   47 Nov  6 23:08 bl1.bin -> arm-trusted-firmware/build/qemu/release/bl1.bin
lrwxrwxrwx  1 andrew andrew   47 Nov  6 23:09 bl2.bin -> arm-trusted-firmware/build/qemu/release/bl2.bin
lrwxrwxrwx  1 andrew andrew   48 Nov  6 23:09 bl31.bin -> arm-trusted-firmware/build/qemu/release/bl31.bin
lrwxrwxrwx  1 andrew andrew   64 Nov  6 23:09 bl33.bin -> edk2/Build/ArmVirtQemuKernel-AARCH64/RELEASE_GCC5/FV/QEMU_EFI.fd
drwxr-xr-x 37 andrew andrew 4096 Nov  6 23:56 busybox
drwxrwxr-x 35 andrew andrew 4096 Nov  7 00:06 edk2
lrwxrwxrwx  1 andrew andrew   27 Nov  6 22:11 Image -> linux/arch/arm64/boot/Image
drwxrwxr-x 24 andrew andrew 4096 Nov  6 03:32 linux
drwxrwxr-x 62 andrew andrew 4096 Nov  9 00:23 qemu
drwxrwxr-x 12 andrew andrew 4096 Nov  6 18:17 rootfs
-rwxrwxr-x  1 andrew andrew  841 Nov  6 18:17 rootfs.sh
-rwxrwxr-x  1 andrew andrew  395 Nov  9 01:43 start.sh

启动

启动测试:

$ ./start.sh 
NOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v2.7(release):v2.7.0-717-g5b044227c
NOTICE:  BL1: Built : 22:59:16, Nov  6 2022
NOTICE:  BL1: Booting BL2
NOTICE:  BL2: v2.7(release):v2.7.0-717-g5b044227c
NOTICE:  BL2: Built : 22:59:19, Nov  6 2022
NOTICE:  BL1: Booting BL31
NOTICE:  BL31: v2.7(release):v2.7.0-717-g5b044227c
NOTICE:  BL31: Built : 22:59:26, Nov  6 2022
UEFI firmware (version  built at 00:05:04 on Nov  7 2022)








EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable, KASLR will be disabled
EFI stub: Generating empty DTB
EFI stub: Exiting boot services and installing virtual address map...
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[    0.000000] Linux version 5.10.0 (andrew@ubuntu) (aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Sun Nov 6 02:20:07 CST 2022
[    0.000000] efi: EFI v2.70 by EDK II
[    0.000000] efi: SMBIOS=0x7f3d0000 SMBIOS 3.0=0x7bf90000 MEMATTR=0x7c5b6298 ACPI 2.0=0x7bcf0018 MEMRESERVE=0x7c043f18 
[    0.000000] cma: Reserved 32 MiB at 0x000000007d000000
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x000000007BCF0018 000024 (v02 BOCHS )
[    0.000000] ACPI: XSDT 0x000000007BCFFE98 000064 (v01 BOCHS  BXPC     00000001      01000013)
[    0.000000] ACPI: FACP 0x000000007BCFFA98 00010C (v05 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 0x000000007BCF7518 0014A2 (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: APIC 0x000000007BCFFC18 00018C (v03 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: PPTT 0x000000007BCFD898 00009C (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: GTDT 0x000000007BCFE818 000060 (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: MCFG 0x000000007BCFE918 00003C (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: SPCR 0x000000007BCFFF98 000050 (v02 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: DBG2 0x000000007BCFE418 000057 (v00 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: IORT 0x000000007BCFE718 000080 (v03 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: SPCR: console: pl011,mmio,0x9000000,9600
[    0.000000] ACPI: NUMA: Failed to initialise from firmware
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fdfeb00-0x7fe00fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007bcfffff]
[    0.000000]   node   0: [mem 0x000000007bd00000-0x000000007c03ffff]
[    0.000000]   node   0: [mem 0x000000007c040000-0x000000007f31ffff]
[    0.000000]   node   0: [mem 0x000000007f320000-0x000000007f3affff]
[    0.000000]   node   0: [mem 0x000000007f3b0000-0x000000007f3bffff]
[    0.000000]   node   0: [mem 0x000000007f3c0000-0x000000007f4dffff]
[    0.000000]   node   0: [mem 0x000000007f4e0000-0x000000007fffffff]
[    0.000000] Zeroed struct page in unavailable ranges: 464 pages
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: is not implemented in ACPI.
[    0.000000] ACPI: SRAT not present
[    0.000000] Unsupported ACPI enable-method
[    0.000000] Unsupported ACPI enable-method
[    0.000000] Unsupported ACPI enable-method
[    0.000000] percpu: Embedded 23 pages/cpu s56216 r8192 d29800 u94208
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 832075
[    0.000000] CPU features: detected: ARM erratum 834220
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: noinitrd root=/dev/nfs 		 nfsroot=10.0.2.2:/home/andrew/Documents/virt/environ/rootfs,v3 rw 		 init=/linuxrc ip=dhcp console=ttyAMA0
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 959308K/1048576K available (14336K kernel code, 2796K rwdata, 7536K rodata, 5888K init, 518K bss, 56500K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    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] 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] GICv2m: ACPI overriding V2M MSI_TYPER (base:80, num:64)
[    0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[    0.000000] random: get_random_bytes called from start_kernel+0x324/0x4e8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[    0.000271] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns
[    0.012343] Console: colour dummy device 80x25
[    0.015322] ACPI: Core revision 20200925
[    0.022749] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000)
[    0.023016] pid_max: default: 32768 minimum: 301
[    0.025481] LSM: Security Framework initializing
[    0.027707] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.027788] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.110514] rcu: Hierarchical SRCU implementation.
[    0.120015] Remapping and enabling EFI services.
[    0.135975] smp: Bringing up secondary CPUs ...
[    0.136187] smp: Brought up 1 node, 1 CPU
[    0.136234] SMP: Total of 1 processors activated.
[    0.136375] CPU features: detected: 32-bit EL0 Support
[    0.136488] CPU features: detected: CRC32 instructions
[    0.136581] CPU features: detected: 32-bit EL1 Support
[    0.821856] CPU: All CPU(s) started at EL1
[    0.822578] alternatives: patching kernel code
[    0.863970] devtmpfs: initialized
[    0.878946] KASLR disabled due to lack of seed
[    0.887258] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.887581] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.893003] pinctrl core: initialized pinctrl subsystem
[    0.922737] SMBIOS 3.0.0 present.
[    0.923162] DMI: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015
[    0.941880] NET: Registered protocol family 16
[    0.962972] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.963321] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.965929] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.966508] audit: initializing netlink subsys (disabled)
[    0.973689] audit: type=2000 audit(0.824:1): state=initialized audit_enabled=0 res=1
[    0.981861] thermal_sys: Registered thermal governor 'step_wise'
[    0.981968] thermal_sys: Registered thermal governor 'power_allocator'
[    0.984764] cpuidle: using governor menu
[    0.987071] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.987912] ASID allocator initialised with 65536 entries
[    0.992409] ACPI: bus type PCI registered
[    0.992630] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.996388] Serial: AMBA PL011 UART driver
[    1.058599] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    1.058700] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    1.058724] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    1.058745] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    1.084634] cryptd: max_cpu_qlen set to 1000
[    1.110308] ACPI: Added _OSI(Module Device)
[    1.110461] ACPI: Added _OSI(Processor Device)
[    1.110518] ACPI: Added _OSI(3.0 _SCP Extensions)
[    1.110542] ACPI: Added _OSI(Processor Aggregator Device)
[    1.110717] ACPI: Added _OSI(Linux-Dell-Video)
[    1.110746] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    1.110769] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    1.141715] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    1.176441] ACPI: Interpreter enabled
[    1.176546] ACPI: Using GIC for interrupt routing
[    1.177296] ACPI: MCFG table detected, 1 entries
[    1.247558] ARMH0011:00: ttyAMA0 at MMIO 0x9000000 (irq = 12, base_baud = 0) is a SBSA
[    1.283759] printk: console [ttyAMA0] enabled
[    1.400661] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    1.404845] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[    1.424211] acpi PNP0A08:00: _OSC: platform does not support [LTR]
[    1.433700] acpi PNP0A08:00: _OSC: OS now controls [PME PCIeCapability]
[    1.450445] acpi PNP0A08:00: ECAM area [mem 0x4010000000-0x401fffffff] reserved by PNP0C02:00
[    1.452612] acpi PNP0A08:00: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff]
[    1.454721] Remapped I/O 0x000000003eff0000 to [io  0x0000-0xffff window]
[    1.468337] PCI host bridge to bus 0000:00
[    1.468838] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff window]
[    1.469274] pci_bus 0000:00: root bus resource [io  0x0000-0xffff window]
[    1.469784] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff window]
[    1.470424] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.474136] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[    1.503396] pci_bus 0000:00: resource 4 [mem 0x10000000-0x3efeffff window]
[    1.503782] pci_bus 0000:00: resource 5 [io  0x0000-0xffff window]
[    1.504080] pci_bus 0000:00: resource 6 [mem 0x8000000000-0xffffffffff window]
[    1.507151] ACPI: PCI Interrupt Link [GSI0] (IRQs *35)
[    1.508295] ACPI: PCI Interrupt Link [GSI1] (IRQs *36)
[    1.509037] ACPI: PCI Interrupt Link [GSI2] (IRQs *37)
[    1.518042] ACPI: PCI Interrupt Link [GSI3] (IRQs *38)
[    1.531791] iommu: Default domain type: Translated 
[    1.558590] vgaarb: loaded
[    1.570771] SCSI subsystem initialized
[    1.578140] ACPI: bus type USB registered
[    1.580573] usbcore: registered new interface driver usbfs
[    1.582237] usbcore: registered new interface driver hub
[    1.583475] usbcore: registered new device driver usb
[    1.586527] pps_core: LinuxPPS API ver. 1 registered
[    1.586974] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.587977] PTP clock support registered
[    1.597579] EDAC MC: Ver: 3.0.0
[    1.604008] Registered efivars operations
[    1.619329] FPGA manager framework
[    1.621243] Advanced Linux Sound Architecture Driver Initialized.
[    1.675994] clocksource: Switched to clocksource arch_sys_counter
[    1.690769] VFS: Disk quotas dquot_6.6.0
[    1.691677] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.698439] pnp: PnP ACPI init
[    1.732604] system 00:00: [mem 0x4010000000-0x401fffffff window] could not be reserved
[    1.734125] pnp: PnP ACPI: found 1 devices
[    1.834983] NET: Registered protocol family 2
[    1.878164] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.879087] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.880646] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.885336] TCP: Hash tables configured (established 8192 bind 8192)
[    1.889459] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.891334] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.899771] NET: Registered protocol family 1
[    1.907991] RPC: Registered named UNIX socket transport module.
[    1.909367] RPC: Registered udp transport module.
[    1.910852] RPC: Registered tcp transport module.
[    1.911688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.918697] PCI: CLS 0 bytes, default 64
[    1.972651] hw perfevents: enabled with armv8_pmuv3_0 PMU driver, 5 counters available
[    1.975299] kvm [1]: HYP mode not available
[    2.067072] Initialise system trusted keyrings
[    2.071600] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[    2.170112] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.188740] NFS: Registering the id_resolver key type
[    2.189583] Key type id_resolver registered
[    2.189761] Key type id_legacy registered
[    2.192291] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.195107] 9p: Installing v9fs 9p2000 file system support
[    2.302224] Key type asymmetric registered
[    2.302864] Asymmetric key parser 'x509' registered
[    2.303671] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    2.304642] io scheduler mq-deadline registered
[    2.305025] io scheduler kyber registered
[    2.366535] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    2.369272] ACPI: Power Button [PWRB]
[    2.375615] EINJ: EINJ table not found.
[    2.592125] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.654088] SuperH (H)SCI(F) driver initialized
[    2.666752] msm_serial: driver initialized
[    2.800105] loop: module loaded
[    2.805735] megasas: 07.714.04.00-rc1
[    2.872060] libphy: Fixed MDIO Bus: probed
[    2.888795] tun: Universal TUN/TAP device driver, 1.6
[    2.937404] thunder_xcv, ver 1.0
[    2.950529] thunder_bgx, ver 1.0
[    2.951019] nicpf, ver 1.0
[    2.956476] hclge is initializing
[    2.976018] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    2.986076] hns3: Copyright (c) 2017 Huawei Corporation.
[    2.987682] e1000: Intel(R) PRO/1000 Network Driver
[    2.987999] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    2.988719] e1000e: Intel(R) PRO/1000 Network Driver
[    2.988985] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.990231] igb: Intel(R) Gigabit Ethernet Network Driver
[    3.002186] igb: Copyright (c) 2007-2014 Intel Corporation.
[    3.010783] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    3.011493] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    3.013857] sky2: driver version 1.30
[    3.026553] VFIO - User Level meta-driver version: 0.3
[    3.051278] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.062576] ehci-pci: EHCI PCI platform driver
[    3.064359] ehci-platform: EHCI generic platform driver
[    3.065572] ehci-orion: EHCI orion driver
[    3.066512] ehci-exynos: EHCI Exynos driver
[    3.067114] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.068304] ohci-pci: OHCI PCI platform driver
[    3.069210] ohci-platform: OHCI generic platform driver
[    3.069937] ohci-exynos: OHCI Exynos driver
[    3.082988] usbcore: registered new interface driver usb-storage
[    3.124749] rtc-efi rtc-efi.0: registered as rtc0
[    3.127331] rtc-efi rtc-efi.0: setting system clock to 2022-11-08T17:44:16 UTC (1667929456)
[    3.131094] i2c /dev entries driver
[    3.179242] sdhci: Secure Digital Host Controller Interface driver
[    3.186537] sdhci: Copyright(c) Pierre Ossman
[    3.188965] Synopsys Designware Multimedia Card Interface Driver
[    3.198943] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.218244] ledtrig-cpu: registered to indicate activity on CPUs
[    3.244961] pstore: Registered efi as persistent store backend
[    3.264817] usbcore: registered new interface driver usbhid
[    3.265703] usbhid: USB HID core driver
[    3.330138] NET: Registered protocol family 17
[    3.334013] 9pnet: Installing 9P2000 support
[    3.335136] Key type dns_resolver registered
[    3.338128] registered taskstats version 1
[    3.338607] Loading compiled-in X.509 certificates
[    3.364570] pstore: Using crash dump compression: deflate
[    3.464264] Sending DHCP requests ., OK
[    3.483311] IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
[    3.484578] IP-Config: Complete:
[    3.485294]      device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2
[    3.486519]      host=10.0.2.15, domain=, nis-domain=(none)
[    3.487205]      bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
[    3.487285]      nameserver0=10.0.2.3
[    3.489262] 
[    3.503169] ALSA device list:
[    3.504635]   No soundcards found.
[    3.703177] VFS: Mounted root (nfs filesystem) on device 0:20.
[    3.713157] devtmpfs: mounted
[    3.820114] Freeing unused kernel memory: 5888K
[    3.826390] Run /linuxrc as init process
[    4.282648] random: fast init done

Please press Enter to activate this console. 
/ # poweroff
/ # umount: none busy - remounted read-only
umount: devtmpfs busy - remounted read-only
swapoff: can't open '/etc/fstab': No such file or directory
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system poweroff
[   17.387098] reboot: Power down
ERROR:   QEMU System Power off: with GPIO.
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值