qemu root boot with rootfstype=9p

99 篇文章 0 订阅
26 篇文章 1 订阅

lake@localhost:~/local/lfs/linux-stable$ grep 9P  .config
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_XEN is not set
CONFIG_NET_9P_DEBUG=y
CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
lake@localhost:~/local/lfs/linux-stable$


 
lake@localhost:~/local/lfs/linux-stable$ qemu-system-aarch64   -nographic    -M  virt    -cpu cortex-a53   -smp 2   -m 1024M    -kernel  arch/arm64/boot/Image   -device virtio-9p-device,fsdev=host_fs,mount_tag=/dev/root -fsdev local,id=host_fs,security_model=none,path=/home/jhula/local/lfs/root-aarch64,security_model=none     -nographic   -append 'root=/dev/root rootfstype=9p rootflags=trans=virtio rw rdinit=/sbin/init'   -net nic -net user

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.19.0 (lake@localhost) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 SMP PREEMPT Thu Aug 1 01:45:21 CST 2019
[    0.000000] Machine model: linux,dummy-virt
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7dfe9740-0x7dfeaeff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x410 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56344 r8192 d29672 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 843419
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: root=/dev/root rootfstype=9p rootflags=trans=virtio rw rdinit=/sbin/init
[    0.000000] Memory: 981536K/1048576K available (9020K kernel code, 1294K rwdata, 4408K rodata, 1280K init, 365K bss, 34272K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[    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.000767] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns
[    0.033924] Console: colour dummy device 80x25
[    0.046300] console [tty0] enabled
[    0.053905] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000)
[    0.055457] pid_max: default: 32768 minimum: 301
[    0.062776] Security Framework initialized
[    0.068561] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.071720] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.072856] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.073473] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.250629] ASID allocator initialised with 32768 entries
[    0.260040] rcu: Hierarchical SRCU implementation.
[    0.295618] EFI services will not be available.
[    0.307718] smp: Bringing up secondary CPUs ...
[    0.339783] Detected VIPT I-cache on CPU1
[    0.342835] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.356610] smp: Brought up 1 node, 2 CPUs
[    0.357218] SMP: Total of 2 processors activated.
[    0.364398] CPU features: detected: 32-bit EL0 Support
[    0.388972] CPU: All CPU(s) started at EL1
[    0.390037] alternatives: patching kernel code
[    0.455550] devtmpfs: initialized
[    0.519639] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.520899] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.548432] pinctrl core: initialized pinctrl subsystem
[    0.612482] DMI not present or invalid.
[    0.621083] NET: Registered protocol family 16
[    0.665755] cpuidle: using governor menu
[    0.675863] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.676895] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.713125] DMA: preallocated 256 KiB pool for atomic allocations
[    0.733724] Serial: AMBA PL011 UART driver
[    0.897405] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1
[    0.921588] console [ttyAMA0] enabled
[    1.223596] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    1.238733] cryptd: max_cpu_qlen set to 1000
[    1.264752] ACPI: Interpreter disabled.
[    1.301581] vgaarb: loaded
[    1.310354] SCSI subsystem initialized
[    1.347974] pps_core: LinuxPPS API ver. 1 registered
[    1.348768] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.353951] EDAC MC: Ver: 3.0.0
[    1.431978] clocksource: Switched to clocksource arch_sys_counter
[    1.435386] VFS: Disk quotas dquot_6.6.0
[    1.436490] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.453602] pnp: PnP ACPI: disabled
[    1.620212] NET: Registered protocol family 2
[    1.645446] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    1.647153] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.649227] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    1.650364] TCP: Hash tables configured (established 8192 bind 8192)
[    1.663180] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.664550] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.670977] NET: Registered protocol family 1
[    1.685453] RPC: Registered named UNIX socket transport module.
[    1.686146] RPC: Registered udp transport module.
[    1.686588] RPC: Registered tcp transport module.
[    1.687092] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.716990] hw perfevents: enabled with armv8_pmuv3 PMU driver, 5 counters available
[    1.719762] kvm [1]: HYP mode not available
[    1.792476] Initialise system trusted keyrings
[    1.801187] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    1.925722] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.947954] NFS: Registering the id_resolver key type
[    1.949021] Key type id_resolver registered
[    1.949467] Key type id_legacy registered
[    1.953055] 9p: Installing v9fs 9p2000 file system support
[    1.955326] pstore: using deflate compression
[    1.988752] Key type asymmetric registered
[    1.989430] Asymmetric key parser 'x509' registered
[    1.991141] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.992773] io scheduler noop registered
[    1.993602] io scheduler deadline registered
[    1.996541] io scheduler cfq registered (default)
[    1.997163] io scheduler mq-deadline registered
[    1.997585] io scheduler kyber registered
[    2.111420] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered
[    2.138702] pci-host-generic 4010000000.pcie: host bridge /pcie@10000000 ranges:
[    2.141676] pci-host-generic 4010000000.pcie:    IO 0x3eff0000..0x3effffff -> 0x00000000
[    2.144647] pci-host-generic 4010000000.pcie:   MEM 0x10000000..0x3efeffff -> 0x10000000
[    2.145669] pci-host-generic 4010000000.pcie:   MEM 0x8000000000..0xffffffffff -> 0x8000000000
[    2.150004] pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff]
[    2.156131] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[    2.157860] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.159002] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.159590] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[    2.160144] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]
[    2.202457] pci 0000:00:01.0: BAR 6: assigned [mem 0x10000000-0x1003ffff pref]
[    2.204702] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff 64bit pref]
[    2.205798] pci 0000:00:01.0: BAR 1: assigned [mem 0x10040000-0x10040fff]
[    2.206450] pci 0000:00:01.0: BAR 0: assigned [io  0x1000-0x101f]
[    2.240076] EINJ: ACPI disabled.
[    2.366893] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[    2.454444] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.492871] SuperH (H)SCI(F) driver initialized
[    2.502168] msm_serial: driver initialized
[    2.521281] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.720801] brd: module loaded
[    2.824765] loop: module loaded
[    2.902046] libphy: Fixed MDIO Bus: probed
[    2.952777] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    2.953387] e100: Copyright(c) 1999-2006 Intel Corporation
[    2.954800] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    2.955491] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    2.956674] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    2.957256] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.962209] VFIO - User Level meta-driver version: 0.3
[    2.995697] rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0
[    3.007466] i2c /dev entries driver
[    3.088836] sdhci: Secure Digital Host Controller Interface driver
[    3.089330] sdhci: Copyright(c) Pierre Ossman
[    3.096866] Synopsys Designware Multimedia Card Interface Driver
[    3.115958] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.140114] ledtrig-cpu: registered to indicate activity on CPUs
[    3.199625] NET: Registered protocol family 17
[    3.205700] 9pnet: Installing 9P2000 support
[    3.213794] Key type dns_resolver registered
[    3.222301] Loading compiled-in X.509 certificates
[    3.264309] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.276751] rtc-pl031 9010000.pl031: setting system clock to 2019-07-31 17:53:13 UTC (1564595593)
[    3.300359] uart-pl011 9000000.pl011: no DMA platform data
[    3.352289] VFS: Mounted root (9p filesystem) on device 0:14.
[    3.364547] devtmpfs: mounted
[    3.800027] Freeing unused kernel memory: 1280K
[    3.805748] Run /sbin/init as init process
[    4.464424] random: fast init done


Please press Enter to activate this console. #
#
# cat /proc/version
Linux version 4.19.0 (lake@localhost) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 SMP PREEMPT Thu Aug 1 01:45:21 CST 2019
# cat /proc/cmdline
root=/dev/root rootfstype=9p rootflags=trans=virtio rw rdinit=/sbin/init
#
# mount
/dev/root on / type 9p (rw,sync,dirsync,relatime,access=client,trans=virtio)
devtmpfs on /dev type devtmpfs (rw,relatime,size=490768k,nr_inodes=122692,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
#
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值