qemu in ubuntu2004 available

qemu in ubuntu2004 available:
1.交叉编译工具链、QEMU的安装
apt install gcc-aarch64-linux-gnu

aarch64-linux-gnu-gcc -v

apt install qemu-system-arm

qemu-system-aarch64 --version

2.根文件系统制作
http://busybox.net/downloads/
tar xvf busybox-1.28.4.tar.bz2

cd busybox-1.28.4
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make menuconfig
Settings —>
[*] Build static binary (no shared libs)

make
make install

issue solved: ctime 代替stime(implicit declaration)

coreutils/date.c: In function ‘date_main’:
coreutils/date.c:306:26: warning: implicit declaration of function ‘stime’;
did you mean ‘ctime’? [-Wimplicit-function-declaration]
306 | if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) {
| ^~~~~
| ctime

util-linux/rdate.c: In function ‘rdate_main’:
util-linux/rdate.c:99:8: warning: implicit declaration of function ‘stime’;
did you mean ‘ctime’? [-Wimplicit-function-declaration]
99 | if (stime(&remote_time) < 0)
| ^~~~~
| ctime

mkdir dev etc lib sys proc tmp var home root mnt

1).etc目录的更新
profile:

#!/bin/sh
export HOSTNAME=jjw
export USER=root
export HOME=/home
export PS1="[ U S E R @ USER@ USER@HOSTNAME \W]# "
PATH=/bin:/sbin:/usr/bin:/usr/sbin
LD_LIBRARY_PATH=/lib:/usr/lib:$LD_LIBRARY_PATH
export PATH LD_LIBRARY_PATH

inittab:

::sysinit:/etc/init.d/rcS
::respawn:-/bin/sh
::askfirst:-/bin/sh
::ctrlaltdel:/bin/umount -a -r

fstab:

#device mount-point type options dump fsck order
proc /proc proc defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev tmpfs defaults 0 0
debugfs /sys/kernel/debug debugfs defaults 0 0
kmod_mount /mnt 9p trans=virtio 0 0

创建init.d目录
init.d下添加rcS文件

mkdir -p /sys
mkdir -p /tmp
mkdir -p /proc
mkdir -p /mnt
/bin/mount -a
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s

2).制作dev下必要文件
cd dev/
sudo mknod console c 5 1

3).制作lib下必要文件:
为了支持动态编译的应用程序的执行,根文件系统需要支持动态库,
所以我们添加arm64相关的动态库文件到lib下

cd lib
cp /usr/aarch64-linux-gnu/lib/.so -a .

对库文件进行瘦身(去除符号表和调试信息),使得库文件变小
aarch64-linux-gnu-strip *

3.内核源码的编译
1.)
cd linux-5.10.60
cp /busybox-1.28.4/out_install _install_arm64 -a

2.)配置
添加hotplug支持 添加initramfs的支持
CONFIG_MEMTEST=y

CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"

CONFIG_INITRAMFS_SOURCE="_install_arm64"

3.)
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
make defconfig
make all -j8

创建共享目录
mkdir kmodules

4.开始体验
1).运行qemu模拟器:
qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -m 1024 -kernel arch/arm64/boot/Image --append “rdinit=/linuxrc root=/dev/vda rw console=ttyAMA0 loglevel=8” -nographic --fsdev local,id=kmod_dev,path=$PWD/kmodules,security_model=none -device virtio-9p-device,fsdev=kmod_dev,mount_tag=kmod_mount

2).使用模拟磁盘:
qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt
-m 1024 -smp 4 -kernel arch/arm64/boot/Image --append “noinitrd root=/dev/vda rw console=ttyAMA0 loglevel=8” -nographic
-drive if=none,file=rootfs_ext4.img,id=hd0
-device virtio-blk-device,drive=hd0
–fsdev local,id=kmod_dev,path=$PWD/kmodules,security_model=none
-device virtio-9p-device,fsdev=kmod_dev,mount_tag=kmod_mount

dd:用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换。
注意:指定数字的地方若以下列字符结尾,则乘以相应的数字:b=512;c=1;k=1024;w=2
关于 /dev/zero 的另一个应用是为特定的目的而用零去填充一个指定大小的文件,
如挂载一个文件系统到环回设备 (loopback device)
if=文件名:输入文件名,缺省为标准输入。即指定源文件。< if=input file >
of=文件名:输出文件名,缺省为标准输出。即指定目的文件。< of=output file >
bs=bytes:同时设置读入/输出的块大小为bytes个字节
count=blocks:仅拷贝blocks个块,块大小等于ibs指定的字节数

制作磁盘文件:
dd if=/dev/zero of=rootfs_ext4.img bs=1M count=8192
mkfs.ext4 rootfs_ext4.img
mkdir -p tmpfs
mount -t ext4 rootfs_ext4.img tmpfs/ -o loop
cp -af _install_arm64/* tmpfs/
umount tmpfs
rm -rf tmpfs
chmod 777 rootfs_ext4.img

[root@jjw mnt]# df -mh
Filesystem Size Used Available Use% Mounted on
/dev/root 7.8G 46.2M 7.4G 1% /
devtmpfs 468.2M 0 468.2M 0% /dev
tmpfs 489.3M 0 489.3M 0% /tmp
kmod_mount 117.1G 36.7G 74.4G 33% /mnt

3).共享文件:
前面已经支持了主机和qemu上的系统共享目录,这个目录就是kmodules目录:
通过mount可以查看被挂载到了qemu上的系统的/mnt目录下
在主机的内核源码目录的kmodules目录中echo一个文件:
echo “Hello QEMU” > test.txt
然后进入到我们启动qemu的内核根文件系统的/mnt目录
[root@jjw mnt]# pwd
/mnt
[root@jjw mnt]# ls
test.txt
[root@jjw mnt]# cat test.txt
hello QEMU
可以看到我们之前写的文件,共享目录OK.

4).应用测试:
aarch64-linux-gnu-gcc test.c -o test
拷贝到共享目录下:
cp test …/…/kmodules/
在QEMU系统中,进入/mnt目录下执行

内核模块测试
Makefile:

export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-

KERNEL_DIR ?= /home/linux/linux-5.10.60
obj-m := module_test.o

modules:
$(MAKE) -C ( K E R N E L D I R ) M = (KERNEL_DIR) M= (KERNELDIR)M=(PWD) modules

clean:
$(MAKE) -C ( K E R N E L D I R ) M = (KERNEL_DIR) M= (KERNELDIR)M=(PWD) clean

install:
cp *.ko $(KERNEL_DIR)/kmodules

内核模块文件module_test.c
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

static int __init module_test_init(void)
{
printk(“module_test_init\n”);
return 0;
}

static void __exit module_test_exit(void)
{
printk(“module_test_exit\n”);
}

module_init(module_test_init);
module_exit(module_test_exit);

MODULE_LICENSE(“GPL”);

make modules

make install

到QEMU的内核系统中,进入/mnt目录下:执行模块的插入/移除
[root@jjw mnt]# insmod module_test.ko
[58327.605174] module_test_init
[root@jjw mnt]# lsmod
module_test 16384 0 - Live 0xffff800008e00000 (O)
[root@jjw mnt]# rmmod module_test[58358.278668] random: crng init done

[58358.290544] module_test_exit

5).start qemu linux kernel info:
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000] Linux version 5.10.60 (root@ubuntu) (aarch64-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3 SMP PREEMPT Tue Aug 31 23:08:03 PDT 2021
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: UEFI not found.
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x7fdf6b00-0x7fdf8fff]
[ 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-0x000000007fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] DMA zone: 4096 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 262144 pages, LIFO batch:63
[ 0.000000] cma: Reserved 32 MiB at 0x000000007c000000
[ 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] percpu: Embedded 23 pages/cpu s56344 r8192 d29672 u94208
[ 0.000000] pcpu-alloc: s56344 r8192 d29672 u94208 alloc=23*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 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: rdinit=/linuxrc root=/dev/vda rw console=ttyAMA0 loglevel=8
[ 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: 958968K/1048576K available (14272K kernel code, 2798K rwdata, 7608K rodata, 10304K init, 516K bss, 56840K 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: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] random: get_random_bytes called from start_kernel+0x31c/0x4e0 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.000160] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns
[ 0.006224] Console: colour dummy device 80x25
[ 0.008179] Calibrating delay loop (skipped), value calculated using timer frequency… 125.00 BogoMIPS (lpj=250000)
[ 0.008307] pid_max: default: 32768 minimum: 301
[ 0.009223] LSM: Security Framework initializing
[ 0.010516] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.010560] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.046936] rcu: Hierarchical SRCU implementation.
[ 0.051903] EFI services will not be available.
[ 0.053185] smp: Bringing up secondary CPUs …
[ 0.053294] smp: Brought up 1 node, 1 CPU
[ 0.053322] SMP: Total of 1 processors activated.
[ 0.053399] CPU features: detected: 32-bit EL0 Support
[ 0.053457] CPU features: detected: CRC32 instructions
[ 0.053490] CPU features: detected: 32-bit EL1 Support
[ 0.075603] CPU: All CPU(s) started at EL1
[ 0.076037] alternatives: patching kernel code
[ 0.093936] devtmpfs: initialized
[ 0.103835] KASLR disabled due to lack of seed
[ 0.105620] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.105937] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.109881] pinctrl core: initialized pinctrl subsystem
[ 0.167561] DMI not present or invalid.
[ 0.181938] NET: Registered protocol family 16
[ 0.192168] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.192660] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.192940] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.193204] audit: initializing netlink subsys (disabled)
[ 0.197207] audit: type=2000 audit(0.156:1): state=initialized audit_enabled=0 res=1
[ 0.227103] thermal_sys: Registered thermal governor ‘step_wise’
[ 0.227214] thermal_sys: Registered thermal governor ‘power_allocator’
[ 0.230626] cpuidle: using governor menu
[ 0.232476] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.235401] ASID allocator initialised with 65536 entries
[ 0.274500] Serial: AMBA PL011 UART driver
[ 0.380360] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 47, base_baud = 0) is a PL011 rev1
[ 0.430355] printk: console [ttyAMA0] enabled
[ 0.700878] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.702524] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.703759] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.705652] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.719625] cryptd: max_cpu_qlen set to 1000
[ 0.747657] ACPI: Interpreter disabled.
[ 0.781232] iommu: Default domain type: Translated
[ 0.786997] vgaarb: loaded
[ 0.796408] SCSI subsystem initialized
[ 0.802064] libata version 3.00 loaded.
[ 0.815360] usbcore: registered new interface driver usbfs
[ 0.819059] usbcore: registered new interface driver hub
[ 0.824550] usbcore: registered new device driver usb
[ 0.839386] pps_core: LinuxPPS API ver. 1 registered
[ 0.840730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.843913] PTP clock support registered
[ 0.847490] EDAC MC: Ver: 3.0.0
[ 0.876841] FPGA manager framework
[ 0.881164] Advanced Linux Sound Architecture Driver Initialized.
[ 0.912103] clocksource: Switched to clocksource arch_sys_counter
[ 0.922843] VFS: Disk quotas dquot_6.6.0
[ 0.924098] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.927929] pnp: PnP ACPI: disabled
[ 1.018708] NET: Registered protocol family 2
[ 1.021158] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 1.027499] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 1.030967] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 1.034402] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 1.036485] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.039765] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 1.042144] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 1.050294] NET: Registered protocol family 1
[ 1.056767] RPC: Registered named UNIX socket transport module.
[ 1.057962] RPC: Registered udp transport module.
[ 1.058881] RPC: Registered tcp transport module.
[ 1.059975] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.061737] PCI: CLS 0 bytes, default 64
[ 1.330280] hw perfevents: enabled with armv8_pmuv3 PMU driver, 5 counters available
[ 1.332798] kvm [1]: HYP mode not available
[ 1.347502] Initialise system trusted keyrings
[ 1.363679] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[ 1.383510] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.387965] NFS: Registering the id_resolver key type
[ 1.393476] Key type id_resolver registered
[ 1.395241] Key type id_legacy registered
[ 1.397390] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 1.399783] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering…
[ 1.404108] 9p: Installing v9fs 9p2000 file system support
[ 1.449336] Key type asymmetric registered
[ 1.450375] Asymmetric key parser ‘x509’ registered
[ 1.455398] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 1.457837] io scheduler mq-deadline registered
[ 1.459098] io scheduler kyber registered
[ 1.569210] pl061_gpio 9030000.pl061: PL061 GPIO chip registered
[ 1.592791] pci-host-generic 4010000000.pcie: host bridge /pcie@10000000 ranges:
[ 1.603344] pci-host-generic 4010000000.pcie: IO 0x003eff0000…0x003effffff -> 0x0000000000
[ 1.607641] pci-host-generic 4010000000.pcie: MEM 0x0010000000…0x003efeffff -> 0x0010000000
[ 1.610365] pci-host-generic 4010000000.pcie: MEM 0x8000000000…0xffffffffff -> 0x8000000000
[ 1.613934] pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff]
[ 1.617261] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[ 1.618795] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.619909] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.621746] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[ 1.623064] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]
[ 1.629881] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[ 1.638206] pci 0000:00:01.0: [1af4:1000] type 00 class 0x020000
[ 1.640109] pci 0000:00:01.0: reg 0x10: [io 0x0000-0x001f]
[ 1.642360] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x00000fff]
[ 1.646120] pci 0000:00:01.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[ 1.647968] pci 0000:00:01.0: reg 0x30: [mem 0x00000000-0x0007ffff pref]
[ 1.654087] pci 0000:00:01.0: BAR 6: assigned [mem 0x10000000-0x1007ffff pref]
[ 1.656449] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff 64bit pref]
[ 1.662012] pci 0000:00:01.0: BAR 1: assigned [mem 0x10080000-0x10080fff]
[ 1.663369] pci 0000:00:01.0: BAR 0: assigned [io 0x1000-0x101f]
[ 1.694532] EINJ: ACPI disabled.
[ 1.821377] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
[ 1.899337] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.949331] SuperH (H)SCI(F) driver initialized
[ 1.953320] msm_serial: driver initialized
[ 1.977401] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 2.035205] loop: module loaded
[ 2.044379] megasas: 07.714.04.00-rc1
[ 2.087717] physmap-flash 0.flash: physmap platform flash device: [mem 0x00000000-0x03ffffff]
[ 2.091246] 0.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
[ 2.097026] Intel/Sharp Extended Query Table at 0x0031
[ 2.099869] Using buffer write method
[ 2.102675] erase region 0: offset=0x0,size=0x40000,blocks=256
[ 2.104085] physmap-flash 0.flash: physmap platform flash device: [mem 0x04000000-0x07ffffff]
[ 2.106387] 0.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000000 Chip ID 0x000000
[ 2.108141] Intel/Sharp Extended Query Table at 0x0031
[ 2.110060] Using buffer write method
[ 2.110910] erase region 0: offset=0x0,size=0x40000,blocks=256
[ 2.112235] Concatenating MTD devices:
[ 2.113612] (0): “0.flash”
[ 2.114196] (1): “0.flash”
[ 2.114831] into device “0.flash”
[ 2.223120] libphy: Fixed MDIO Bus: probed
[ 2.274917] tun: Universal TUN/TAP device driver, 1.6
[ 2.311314] thunder_xcv, ver 1.0
[ 2.313471] thunder_bgx, ver 1.0
[ 2.318167] nicpf, ver 1.0
[ 2.334307] hclge is initializing
[ 2.335197] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 2.336489] hns3: Copyright © 2017 Huawei Corporation.
[ 2.349289] e1000: Intel® PRO/1000 Network Driver
[ 2.353248] e1000: Copyright © 1999-2006 Intel Corporation.
[ 2.355953] e1000e: Intel® PRO/1000 Network Driver
[ 2.357551] e1000e: Copyright© 1999 - 2015 Intel Corporation.
[ 2.359745] igb: Intel® Gigabit Ethernet Network Driver
[ 2.361431] igb: Copyright © 2007-2014 Intel Corporation.
[ 2.363829] igbvf: Intel® Gigabit Virtual Function Network Driver
[ 2.366330] igbvf: Copyright © 2009 - 2012 Intel Corporation.
[ 2.374460] sky2: driver version 1.30
[ 2.395074] VFIO - User Level meta-driver version: 0.3
[ 2.428217] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 2.430541] ehci-pci: EHCI PCI platform driver
[ 2.434173] ehci-platform: EHCI generic platform driver
[ 2.436150] ehci-orion: EHCI orion driver
[ 2.441037] ehci-exynos: EHCI Exynos driver
[ 2.443347] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 2.446814] ohci-pci: OHCI PCI platform driver
[ 2.448337] ohci-platform: OHCI generic platform driver
[ 2.453834] ohci-exynos: OHCI Exynos driver
[ 2.463262] usbcore: registered new interface driver usb-storage
[ 2.514885] rtc-pl031 9010000.pl031: registered as rtc0
[ 2.519126] rtc-pl031 9010000.pl031: setting system clock to 2021-09-01T06:18:43 UTC (1630477123)
[ 2.523944] i2c /dev entries driver
[ 2.607294] sdhci: Secure Digital Host Controller Interface driver
[ 2.610186] sdhci: Copyright© Pierre Ossman
[ 2.615010] Synopsys Designware Multimedia Card Interface Driver
[ 2.624802] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.659459] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.687284] usbcore: registered new interface driver usbhid
[ 2.688465] usbhid: USB HID core driver
[ 2.763373] NET: Registered protocol family 17
[ 2.767683] 9pnet: Installing 9P2000 support
[ 2.770796] Key type dns_resolver registered
[ 2.776377] registered taskstats version 1
[ 2.780066] Loading compiled-in X.509 certificates
[ 2.801894] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 2.815759] ALSA device list:
[ 2.816834] No soundcards found.
[ 2.821065] uart-pl011 9000000.pl011: no DMA platform data
[ 2.885340] Freeing unused kernel memory: 10304K
[ 2.887347] Run /linuxrc as init process
[ 2.888622] with arguments:
[ 2.889891] /linuxrc
[ 2.890456] with environment:
[ 2.891065] HOME=/
[ 2.891541] TERM=linux

Please press Enter to activate this console.
[root@jjw ]# pwd
/
[root@jjw ]# ls
bin etc lib mnt root sys usr
dev home linuxrc proc sbin tmp var

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值