【TINY4412】LINUX移植笔记:(12)NFS网络文件系统

东方琪
2023-12-01

【TINY4412】LINUX移植笔记:(12)NFS网络文件系统

宿主机 : 虚拟机 Ubuntu 16.04 LTS / X64
目标板[底板]: Tiny4412SDK - 1506
目标板[核心板]: Tiny4412 - 1412
LINUX内核: 4.12.0
交叉编译器: gcc-arm-none-eabi-5_4-2016q3
日期: 2017-8-1 20:46:17
作者: SY

简介

开发板首先移植好以太网驱动

主机端

安装 TFTP

root@ubuntu:/opt/android_linux-4.4# apt-get install tftp-hpa tftpd-hpa
root@ubuntu:/opt/android_linux-4.4# mkdir /opt/tftpboot/
root@ubuntu:/opt/android_linux-4.4# chmod 777 /opt/tftpboot/ 

配置 TFTP

root@ubuntu:/opt/android_linux-4.4# vim /etc/default/tftpd-hpa    
# /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/opt/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="-l -c -s"

重启 tftp

root@ubuntu:/opt/android_linux-4.4# service tftpd-hpa restart

安装NFS

apt-get install nfs-kernel-server

配置NFS

root@ubuntu:/opt/fs/rootfs# vim /etc/exports

# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/opt/fs/rootfs/rootfs *(rw,sync,no_root_squash)
  • 重启NFS服务

    root@ubuntu:/opt/fs/rootfs# /etc/init.d/nfs-kernel-server restart
    [ ok ] Starting nfs-kernel-server (via systemctl): nfs-kernel-server.service.
  • 测试

    root@ubuntu:/opt/fs/rootfs/rootfs# showmount -e
    Export list for ubuntu:
    /opt/fs/rootfs/rootfs *

File systems  ---> 
    [*] Network File Systems  --->
        <*>   NFS client support

开发板

[root@TINY4412:/]# mount -o nolock 192.168.2.40:/opt/fs/rootfs/rootfs /mnt
[root@TINY4412:/]# cd mnt/rootfs/
[root@TINY4412:/mnt/rootfs]# ls
bin      etc      mnt      root     sys
dev      linuxrc  proc     sbin     tmp

这样便进入主机端挂载的根目录,这是在开发板端挂载,我们希望能不进入开发板的目录,直接将主机端的目录作为开发板的目录,实现无盘工作站的效果。


U-BOOT

TINY4412 # setenv bootargs noinitrd root=/dev/nfs rw nfsroot=192.168.2.40:/opt/fs/rootfs/rootfs/ ethmac=1C:6F:65:34:51:7E ip=192.168.2.39:192.168.2.40:192.168.2.1:255.255.255.0:TINY4412:eth0:off console=ttySAC0,115200 init=/linuxrc
TINY4412 # setenv bootcmd usb start\;tftp 0x41000000 uImage\;tftp 0x42000000 ramdisk.img\;tftp 0x43000000 exynos4412-tiny4412.dtb\;bootm 0x41000000 0x42000000 0x43000000
TINY4412 # setenv ipaddr 192.168.2.39
TINY4412 # setenv serverip 192.168.2.40

noinitrd:必须配置,否则还是进入内存文件系统。

ip:参考./Documentation/filesystems/nfs/nfsroot.txt

ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>: <dns0-ip>:<dns1-ip>

调试

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0xa00
[    0.000000] Linux version 4.12.0-ga37d87e-dirty (root@ubuntu) (gcc version 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496] (GNU Tools for ARM Embedded Processors) ) #133 SMP PREEMPT Tue Aug 1 22:09:28 CST 2017
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyARM TINY4412 board based on Exynos4412
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 96 MiB at 0x7a000000
[    0.000000] Samsung CPU ID: 0xe4412011
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0c46380, node_mem_map ef7f6000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 16 pages/cpu @ef78f000 s34968 r8192 d22376 u65536
[    0.000000] pcpu-alloc: s34968 r8192 d22376 u65536 alloc=16*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: noinitrd root=/dev/nfs rw nfsroot=192.168.2.40:/opt/fs/rootfs/rootfs/ ethmac=1C:6F:65:34:51:7E ip=192.168.2.39:192.168.2.40:192.168.2.1:255.255.255.0:TINY4412:eth0:off console=ttySAC0,115200 init=/linuxrc
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 927704K/1048576K available (7168K kernel code, 329K rwdata, 2440K rodata, 1024K init, 327K bss, 22568K reserved, 98304K cma-reserved, 163840K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
[    0.000000]       .data : 0xc0c00000 - 0xc0c52480   ( 330 kB)
[    0.000000]        .bss : 0xc0c5a090 - 0xc0cabf60   ( 328 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: platform modifies aux control register: 0x02070000 -> 0x3e470001
[    0.000000] L2C: platform provided aux values permit register corruption.
[    0.000000] L2C: DT/platform modifies aux control register: 0x02070000 -> 0x3e470001
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310: enabling full line of zeros but not enabled in Cortex-A9
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310: CACHE_ID 0x4100c4c8, AUX_CTRL 0x4e470001
[    0.000000] Exynos4x12 clocks: sclk_apll = 700000000, sclk_mpll = 800000000
[    0.000000]  sclk_epll = 96035156, sclk_vpll = 108035156, arm_clk = 1400000000
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000000] clocksource: mct-frc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000153] Console: colour dummy device 80x30
[    0.000167] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000176] pid_max: default: 32768 minimum: 301
[    0.000239] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000246] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000550] CPU: Testing write buffer coherency: ok
[    0.000747] CPU0: thread -1, cpu 0, socket 10, mpidr 80000a00
[    0.040017] Setting up static identity map for 0x40100000 - 0x40100060
[    0.119994] smp: Bringing up secondary CPUs ...
[    0.200054] CPU1: thread -1, cpu 1, socket 10, mpidr 80000a01
[    0.280046] CPU2: thread -1, cpu 2, socket 10, mpidr 80000a02
[    0.360045] CPU3: thread -1, cpu 3, socket 10, mpidr 80000a03
[    0.360090] smp: Brought up 1 node, 4 CPUs
[    0.360104] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.360109] CPU: All CPU(s) started in SVC mode.
[    0.360644] devtmpfs: initialized
[    0.367502] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.367665] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.367677] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.370615] pinctrl core: initialized pinctrl subsystem
[    0.371163] /lcd0-power-domain@10023C80 has as child subdomain: /tv-power-domain@10023C20.
[    0.371740] NET: Registered protocol family 16
[    0.373140] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.374176] cpuidle: using governor menu
[    0.380401] gpio gpiochip0: (gpa0): added GPIO chardev (254:0)
[    0.380410] gpiochip_setup_dev: registered GPIOs 0 to 7 on device: gpiochip0 (gpa0)
[    0.380503] gpio gpiochip1: (gpa1): added GPIO chardev (254:1)
[    0.380510] gpiochip_setup_dev: registered GPIOs 8 to 13 on device: gpiochip1 (gpa1)
[    0.380600] gpio gpiochip2: (gpb): added GPIO chardev (254:2)
[    0.380608] gpiochip_setup_dev: registered GPIOs 14 to 21 on device: gpiochip2 (gpb)
[    0.380707] gpio gpiochip3: (gpc0): added GPIO chardev (254:3)
[    0.380714] gpiochip_setup_dev: registered GPIOs 22 to 26 on device: gpiochip3 (gpc0)
[    0.380797] gpio gpiochip4: (gpc1): added GPIO chardev (254:4)
[    0.380804] gpiochip_setup_dev: registered GPIOs 27 to 31 on device: gpiochip4 (gpc1)
[    0.380881] gpio gpiochip5: (gpd0): added GPIO chardev (254:5)
[    0.380888] gpiochip_setup_dev: registered GPIOs 32 to 35 on device: gpiochip5 (gpd0)
[    0.380977] gpio gpiochip6: (gpd1): added GPIO chardev (254:6)
[    0.380984] gpiochip_setup_dev: registered GPIOs 36 to 39 on device: gpiochip6 (gpd1)
[    0.381066] gpio gpiochip7: (gpf0): added GPIO chardev (254:7)
[    0.381073] gpiochip_setup_dev: registered GPIOs 40 to 47 on device: gpiochip7 (gpf0)
[    0.381152] gpio gpiochip8: (gpf1): added GPIO chardev (254:8)
[    0.381159] gpiochip_setup_dev: registered GPIOs 48 to 55 on device: gpiochip8 (gpf1)
[    0.381243] gpio gpiochip9: (gpf2): added GPIO chardev (254:9)
[    0.381250] gpiochip_setup_dev: registered GPIOs 56 to 63 on device: gpiochip9 (gpf2)
[    0.381330] gpio gpiochip10: (gpf3): added GPIO chardev (254:10)
[    0.381337] gpiochip_setup_dev: registered GPIOs 64 to 69 on device: gpiochip10 (gpf3)
[    0.381416] gpio gpiochip11: (gpj0): added GPIO chardev (254:11)
[    0.381423] gpiochip_setup_dev: registered GPIOs 70 to 77 on device: gpiochip11 (gpj0)
[    0.381508] gpio gpiochip12: (gpj1): added GPIO chardev (254:12)
[    0.381514] gpiochip_setup_dev: registered GPIOs 78 to 82 on device: gpiochip12 (gpj1)
[    0.382237] gpio gpiochip13: (gpk0): added GPIO chardev (254:13)
[    0.382245] gpiochip_setup_dev: registered GPIOs 83 to 89 on device: gpiochip13 (gpk0)
[    0.382327] gpio gpiochip14: (gpk1): added GPIO chardev (254:14)
[    0.382334] gpiochip_setup_dev: registered GPIOs 90 to 96 on device: gpiochip14 (gpk1)
[    0.382425] gpio gpiochip15: (gpk2): added GPIO chardev (254:15)
[    0.382432] gpiochip_setup_dev: registered GPIOs 97 to 103 on device: gpiochip15 (gpk2)
[    0.382519] gpio gpiochip16: (gpk3): added GPIO chardev (254:16)
[    0.382526] gpiochip_setup_dev: registered GPIOs 104 to 110 on device: gpiochip16 (gpk3)
[    0.382605] gpio gpiochip17: (gpl0): added GPIO chardev (254:17)
[    0.382612] gpiochip_setup_dev: registered GPIOs 111 to 117 on device: gpiochip17 (gpl0)
[    0.382692] gpio gpiochip18: (gpl1): added GPIO chardev (254:18)
[    0.382699] gpiochip_setup_dev: registered GPIOs 118 to 119 on device: gpiochip18 (gpl1)
[    0.382792] gpio gpiochip19: (gpl2): added GPIO chardev (254:19)
[    0.382799] gpiochip_setup_dev: registered GPIOs 120 to 127 on device: gpiochip19 (gpl2)
[    0.382881] gpio gpiochip20: (gpm0): added GPIO chardev (254:20)
[    0.382888] gpiochip_setup_dev: registered GPIOs 128 to 135 on device: gpiochip20 (gpm0)
[    0.382969] gpio gpiochip21: (gpm1): added GPIO chardev (254:21)
[    0.382976] gpiochip_setup_dev: registered GPIOs 136 to 142 on device: gpiochip21 (gpm1)
[    0.383067] gpio gpiochip22: (gpm2): added GPIO chardev (254:22)
[    0.383074] gpiochip_setup_dev: registered GPIOs 143 to 147 on device: gpiochip22 (gpm2)
[    0.383155] gpio gpiochip23: (gpm3): added GPIO chardev (254:23)
[    0.383162] gpiochip_setup_dev: registered GPIOs 148 to 155 on device: gpiochip23 (gpm3)
[    0.383242] gpio gpiochip24: (gpm4): added GPIO chardev (254:24)
[    0.383249] gpiochip_setup_dev: registered GPIOs 156 to 163 on device: gpiochip24 (gpm4)
[    0.383341] gpio gpiochip25: (gpy0): added GPIO chardev (254:25)
[    0.383348] gpiochip_setup_dev: registered GPIOs 164 to 169 on device: gpiochip25 (gpy0)
[    0.383430] gpio gpiochip26: (gpy1): added GPIO chardev (254:26)
[    0.383437] gpiochip_setup_dev: registered GPIOs 170 to 173 on device: gpiochip26 (gpy1)
[    0.383519] gpio gpiochip27: (gpy2): added GPIO chardev (254:27)
[    0.383526] gpiochip_setup_dev: registered GPIOs 174 to 179 on device: gpiochip27 (gpy2)
[    0.383619] gpio gpiochip28: (gpy3): added GPIO chardev (254:28)
[    0.383626] gpiochip_setup_dev: registered GPIOs 180 to 187 on device: gpiochip28 (gpy3)
[    0.383709] gpio gpiochip29: (gpy4): added GPIO chardev (254:29)
[    0.383716] gpiochip_setup_dev: registered GPIOs 188 to 195 on device: gpiochip29 (gpy4)
[    0.383799] gpio gpiochip30: (gpy5): added GPIO chardev (254:30)
[    0.383806] gpiochip_setup_dev: registered GPIOs 196 to 203 on device: gpiochip30 (gpy5)
[    0.383896] gpio gpiochip31: (gpy6): added GPIO chardev (254:31)
[    0.383903] gpiochip_setup_dev: registered GPIOs 204 to 211 on device: gpiochip31 (gpy6)
[    0.383998] gpio gpiochip32: (gpx0): added GPIO chardev (254:32)
[    0.384005] gpiochip_setup_dev: registered GPIOs 212 to 219 on device: gpiochip32 (gpx0)
[    0.384090] gpio gpiochip33: (gpx1): added GPIO chardev (254:33)
[    0.384097] gpiochip_setup_dev: registered GPIOs 220 to 227 on device: gpiochip33 (gpx1)
[    0.384187] gpio gpiochip34: (gpx2): added GPIO chardev (254:34)
[    0.384194] gpiochip_setup_dev: registered GPIOs 228 to 235 on device: gpiochip34 (gpx2)
[    0.384282] gpio gpiochip35: (gpx3): added GPIO chardev (254:35)
[    0.384289] gpiochip_setup_dev: registered GPIOs 236 to 243 on device: gpiochip35 (gpx3)
[    0.385265] gpio gpiochip36: (gpz): added GPIO chardev (254:36)
[    0.385273] gpiochip_setup_dev: registered GPIOs 244 to 250 on device: gpiochip36 (gpz)
[    0.385653] gpio gpiochip37: (gpv0): added GPIO chardev (254:37)
[    0.385660] gpiochip_setup_dev: registered GPIOs 251 to 258 on device: gpiochip37 (gpv0)
[    0.385748] gpio gpiochip38: (gpv1): added GPIO chardev (254:38)
[    0.385756] gpiochip_setup_dev: registered GPIOs 259 to 266 on device: gpiochip38 (gpv1)
[    0.385859] gpio gpiochip39: (gpv2): added GPIO chardev (254:39)
[    0.385866] gpiochip_setup_dev: registered GPIOs 267 to 274 on device: gpiochip39 (gpv2)
[    0.385954] gpio gpiochip40: (gpv3): added GPIO chardev (254:40)
[    0.385961] gpiochip_setup_dev: registered GPIOs 275 to 282 on device: gpiochip40 (gpv3)
[    0.386049] gpio gpiochip41: (gpv4): added GPIO chardev (254:41)
[    0.386056] gpiochip_setup_dev: registered GPIOs 283 to 284 on device: gpiochip41 (gpv4)
[    0.393964] SCSI subsystem initialized
[    0.394116] usbcore: registered new interface driver usbfs
[    0.394151] usbcore: registered new interface driver hub
[    0.394200] usbcore: registered new device driver usb
[    0.394507] media: Linux media interface: v0.10
[    0.394536] Linux video capture interface: v2.00
[    0.394783] Advanced Linux Sound Architecture Driver Initialized.
[    0.395483] clocksource: Switched to clocksource mct-frc
[    0.400930] missing cooling_device property
[    0.400939] failed to build thermal zone cpu-thermal: -2
[    0.401000] NET: Registered protocol family 2
[    0.401341] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.401400] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.401518] TCP: Hash tables configured (established 8192 bind 8192)
[    0.401612] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.401641] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.401770] NET: Registered protocol family 1
[    0.402036] RPC: Registered named UNIX socket transport module.
[    0.402043] RPC: Registered udp transport module.
[    0.402047] RPC: Registered tcp transport module.
[    0.402052] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.402173] Trying to unpack rootfs image as initramfs...
[    0.402520] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    0.406012] Freeing initrd memory: 1128K
[    0.406795] audit: initializing netlink subsys (disabled)
[    0.406943] audit: type=2000 audit(0.401:1): state=initialized audit_enabled=0 res=1
[    0.407040] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.411778] NFS: Registering the id_resolver key type
[    0.411798] Key type id_resolver registered
[    0.411803] Key type id_legacy registered
[    0.411814] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.411836] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.412396] bounce: pool size: 64 pages
[    0.412424] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.412431] io scheduler noop registered
[    0.412437] io scheduler deadline registered
[    0.412454] io scheduler cfq registered (default)
[    0.412460] io scheduler mq-deadline registered
[    0.412465] io scheduler kyber registered
[    0.413337] samsung-usb2-phy 125b0000.exynos-usbphy: 125b0000.exynos-usbphy supply vbus not found, using dummy regulator
[    0.417027] dma-pl330 12680000.pdma: Loaded driver for PL330 DMAC-141330
[    0.417038] dma-pl330 12680000.pdma:         DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.418754] dma-pl330 12690000.pdma: Loaded driver for PL330 DMAC-141330
[    0.418763] dma-pl330 12690000.pdma:         DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.419344] dma-pl330 12850000.mdma: Loaded driver for PL330 DMAC-141330
[    0.419354] dma-pl330 12850000.mdma:         DBUFF-64x8bytes Num_Chans-8 Num_Peri-1 Num_Events-32
[    0.453827] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.454990] 13800000.serial: ttySAC0 at MMIO 0x13800000 (irq = 48, base_baud = 0) is a S3C6400/10
[    1.786922] console [ttySAC0] enabled
[    1.790790] 13810000.serial: ttySAC1 at MMIO 0x13810000 (irq = 49, base_baud = 0) is a S3C6400/10
[    1.799613] 13820000.serial: ttySAC2 at MMIO 0x13820000 (irq = 50, base_baud = 0) is a S3C6400/10
[    1.808461] 13830000.serial: ttySAC3 at MMIO 0x13830000 (irq = 51, base_baud = 0) is a S3C6400/10
[    1.856291] brd: module loaded
[    1.911654] loop: module loaded
[    1.912463] libphy: Fixed MDIO Bus: probed
[    1.912707] usbcore: registered new interface driver cdc_ether
[    1.912792] usbcore: registered new interface driver dm9601
[    1.912867] usbcore: registered new interface driver net1080
[    1.913597] usbcore: registered new interface driver cdc_subset
[    1.919552] usbcore: registered new interface driver zaurus
[    1.925066] usbcore: registered new interface driver cdc_ncm
[    1.930914] dwc2 12480000.hsotg: 12480000.hsotg supply vusb_d not found, using dummy regulator
[    1.939330] dwc2 12480000.hsotg: 12480000.hsotg supply vusb_a not found, using dummy regulator
[    2.355519] dwc2 12480000.hsotg: dwc2_check_params: Invalid parameter g_np_tx_fifo_size=1024
[    2.355624] dwc2 12480000.hsotg: EPs: 16, dedicated fifos, 7808 entries in SPRAM
[    2.475565] dwc2 12480000.hsotg: DWC OTG Controller
[    2.475635] dwc2 12480000.hsotg: new USB bus registered, assigned bus number 1
[    2.475721] dwc2 12480000.hsotg: irq 45, io mem 0x12480000
[    2.475880] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.477569] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.484772] usb usb1: Product: DWC OTG Controller
[    2.489477] usb usb1: Manufacturer: Linux 4.12.0-ga37d87e-dirty dwc2_hsotg
[    2.496329] usb usb1: SerialNumber: 12480000.hsotg
[    2.501453] hub 1-0:1.0: USB hub found
[    2.504845] hub 1-0:1.0: 1 port detected
[    2.509324] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.515243] ehci-exynos: EHCI EXYNOS driver
[    2.519504] of_get_named_gpiod_flags: can't parse 'samsung,vbus-gpio' property of node '/ehci@12580000[0]'
[    2.529435] exynos-ehci 12580000.ehci: EHCI Host Controller
[    2.534606] exynos-ehci 12580000.ehci: new USB bus registered, assigned bus number 2
[    2.542475] exynos-ehci 12580000.ehci: irq 46, io mem 0x12580000
[    2.575507] exynos-ehci 12580000.ehci: USB 2.0 started, EHCI 1.00
[    2.575699] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.575769] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.575840] usb usb2: Product: EHCI Host Controller
[    2.578117] usb usb2: Manufacturer: Linux 4.12.0-ga37d87e-dirty ehci_hcd
[    2.584800] usb usb2: SerialNumber: 12580000.ehci
[    2.589837] hub 2-0:1.0: USB hub found
[    2.593236] hub 2-0:1.0: 3 ports detected
[    2.597761] usbcore: registered new interface driver usb-storage
[    2.603338] of_get_named_gpiod_flags: can't parse 'intn-gpios' property of node '/usb-hub[0]'
[    2.611728] of_get_named_gpiod_flags: can't parse 'connect-gpios' property of node '/usb-hub[0]'
[    2.620588] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/usb-hub[0]' - status (0)
[    2.635508] USB4604 usb-hub: switched to HUB mode
[    2.635558] USB4604 usb-hub: USB4604_probe: probed in hub mode
[    2.640844] s3c-rtc 10070000.rtc: failed to find rtc source clock
[    2.646381] s3c-rtc: probe of 10070000.rtc failed with error -2
[    2.652404] i2c /dev entries driver
[    2.657408] s3c2410-wdt 10060000.watchdog: watchdog inactive, reset disabled, irq disabled
[    2.664292] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    2.673865] sdhci: Secure Digital Host Controller Interface driver
[    2.678589] sdhci: Copyright(c) Pierre Ossman
[    2.683081] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/sdhci@12530000[0]'
[    2.691913] s3c-sdhci 12530000.sdhci: clock source 2: mmc_busclk.2 (20000000 Hz)
[    2.699240] s3c-sdhci 12530000.sdhci: GPIO lookup for consumer cd
[    2.705279] s3c-sdhci 12530000.sdhci: using device tree for GPIO lookup
[    2.711980] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/sdhci@12530000[0]'
[    2.720831] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/sdhci@12530000[0]'
[    2.729682] s3c-sdhci 12530000.sdhci: using lookup tables for GPIO lookup
[    2.736453] s3c-sdhci 12530000.sdhci: lookup for GPIO cd failed
[    2.742344] s3c-sdhci 12530000.sdhci: GPIO lookup for consumer wp
[    2.748430] s3c-sdhci 12530000.sdhci: using device tree for GPIO lookup
[    2.755015] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/sdhci@12530000[0]'
[    2.763967] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/sdhci@12530000[0]'
[    2.772820] s3c-sdhci 12530000.sdhci: using lookup tables for GPIO lookup
[    2.779590] s3c-sdhci 12530000.sdhci: lookup for GPIO wp failed
[    2.845543] mmc0: SDHCI controller on samsung-hsmmc [12530000.sdhci] using ADMA
[    2.845742] Synopsys Designware Multimedia Card Interface Driver
[    2.847414] dwmmc_exynos 12550000.mmc: IDMAC supports 32-bit address mode.
[    2.849547] dwmmc_exynos 12550000.mmc: Using internal DMA controller.
[    2.849835] dwmmc_exynos 12550000.mmc: Version ID is 240a
[    2.855229] dwmmc_exynos 12550000.mmc: DW MMC controller at irq 99,32 bit host data width,128 deep fifo
[    2.864620] dwmmc_exynos 12550000.mmc: GPIO lookup for consumer cd
[    2.870759] dwmmc_exynos 12550000.mmc: using device tree for GPIO lookup
[    2.877446] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/mmc@12550000[0]'
[    2.886487] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/mmc@12550000[0]'
[    2.895514] dwmmc_exynos 12550000.mmc: using lookup tables for GPIO lookup
[    2.901718] dwmmc_exynos 12550000.mmc: lookup for GPIO cd failed
[    2.907745] dwmmc_exynos 12550000.mmc: GPIO lookup for consumer wp
[    2.913869] dwmmc_exynos 12550000.mmc: using device tree for GPIO lookup
[    2.920571] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/mmc@12550000[0]'
[    2.929333] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/mmc@12550000[0]'
[    2.935509] mmc0: new high speed SDHC card at address 0007
[    2.935887] mmcblk0: mmc0:0007 SD16G 14.5 GiB 
[    2.947913] dwmmc_exynos 12550000.mmc: using lookup tables for GPIO lookup
[    2.954752] dwmmc_exynos 12550000.mmc: lookup for GPIO wp failed
[    2.960780] mmc_host mmc1: card is polling.
[    2.965512] usb 2-2: new high-speed USB device number 2 using exynos-ehci
[    2.985531] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[    3.015553] dwmmc_exynos 12550000.mmc: 1 slots initialized
[    3.015887] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led1[0]' - status (0)
[    3.015987] no flags found for gpios
[    3.016127] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led2[0]' - status (0)
[    3.020186] no flags found for gpios
[    3.024827] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led3[0]' - status (0)
[    3.034707] no flags found for gpios
[    3.036334] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led4[0]' - status (0)
[    3.045178] no flags found for gpios
[    3.049755] s5p-secss 10830000.sss: s5p-sss driver registered
[    3.054906] usbcore: registered new interface driver usbhid
[    3.060036] usbhid: USB HID core driver
[    3.069982] NET: Registered protocol family 10
[    3.070697] Segment Routing with IPv6
[    3.071934] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.078295] NET: Registered protocol family 17
[    3.082235] NET: Registered protocol family 15
[    3.086870] Key type dns_resolver registered
[    3.091115] Registering SWP/SWPB emulation handler
[    3.109658] hctosys: unable to open rtc device (rtc0)
[    3.110345] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    3.110674] mmc1: new DDR MMC card at address 0001
[    3.115684] mmcblk1: mmc1:0001 4YMD3R 3.63 GiB 
[    3.119895] mmcblk1boot0: mmc1:0001 4YMD3R partition 1 4.00 MiB
[    3.125822] mmcblk1boot1: mmc1:0001 4YMD3R partition 2 4.00 MiB
[    3.131689] mmcblk1rpmb: mmc1:0001 4YMD3R partition 3 512 KiB
[    3.138053]  mmcblk1: p1 p2 p3 p4
[    3.176123] usb 2-2: New USB device found, idVendor=0424, idProduct=4604
[    3.176196] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.176878] hub 2-2:1.0: USB hub found
[    3.176990] hub 2-2:1.0: 5 ports detected
[    3.495565] usb 2-2.4: new high-speed USB device number 3 using exynos-ehci
[    3.646349] usb 2-2.4: config 1 interface 0 altsetting 0 endpoint 0x83 has an invalid bInterval 0, changing to 7
[    3.722848] usb 2-2.4: New USB device found, idVendor=0a46, idProduct=9621
[    3.722995] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.735698] dm9601 2-2.4:1.0 eth0: register 'dm9601' at usb-12580000.ehci-2.4, Davicom DM96xx USB 10/100 Ethernet, 00:00:ff:ff:00:00
[    3.835667] usb 2-2.5: new high-speed USB device number 4 using exynos-ehci
[    3.986807] usb 2-2.5: New USB device found, idVendor=0424, idProduct=2530
[    3.986924] usb 2-2.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    3.987039] usb 2-2.5: Product: Bridge device
[    4.168697] dm9601 2-2.4:1.0 eth0: link down
[    4.172003] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.180747] random: fast init done
[   14.185684] Waiting up to 110 more seconds for network.
[   15.865948] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.868214] dm9601 2-2.4:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   15.895625] IP-Config: Complete:
[   15.895730]      device=eth0, hwaddr=00:00:ff:ff:00:00, ipaddr=192.168.2.39, mask=255.255.255.0, gw=192.168.2.1
[   15.895900]      host=TINY4412, domain=, nis-domain=(none)
[   15.896008]      bootserver=192.168.2.40, rootserver=192.168.2.40, rootpath=
[   15.900949] ALSA device list:
[   15.902092]   No soundcards found.
[   15.935072] VFS: Mounted root (nfs filesystem) on device 0:13.
[   15.936261] devtmpfs: mounted
[   15.940371] Freeing unused kernel memory: 1024K
mkdir: can't create directory '/mnt/disk': File exists
Try to bring eth0 interface up......NFS root ...Done

Processing /etc/profile... Done!
[root@TINY4412:~]# ls
bin      etc      mnt      root     sys      var
dev      linuxrc  proc     sbin     tmp
[root@TINY4412:~]# 
[root@TINY4412:~]# 
 类似资料: