内核信息
Image Name: Linux-5.2.11
Created: 2019-11-03 2:22:50 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3136256 Bytes = 3 MiB
Load Address: 30108000
Entry Point: 30108000
Verifying Checksum ... OK
Loading Kernel Image ... OK
情况如下:
1、使用u-boot正常进入内核之后,之前有使用的根文件系统
1.1、文件系统可以正常ping通主机,不过需要先设置eth0
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing unused kernel memory: 204K
This architecture does not have kernel memory protection.
Run /linuxrc as init process
init started: BusyBox v1.7.0 (2019-08-25 20:21:29 CST)
starting pid 43, tty '': '/etc/init.d/rcS'
random: fast init done
mount: mounting ztmpfs on /tmp failed: No such file or directory
/etc/init.d/rcS: line 9: cannot create /proc/sys/kernel/hotplug: nonexistent directory
Please press Enter to activate this console.
starting pid 48, tty '': '/bin/sh'
#
#
2、配置eth0
# ifconfig eth0 192.168.1.51
dm9000 dm9000 eth0: link down
# dm9000 dm9000 eth0: link down
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
dm9000 dm9000 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
3、ping通主机
linux电脑端主机IP:192.168.1.101
ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101): 56 data bytes
64 bytes from 192.168.1.101: seq=0 ttl=64 time=1.874 ms
64 bytes from 192.168.1.101: seq=1 ttl=64 time=1.652 ms
64 bytes from 192.168.1.101: seq=2 ttl=64 time=1.276 ms
3、可以在根文件系统下挂接网络文件系统:
# mount -t nfs -o nolock 192.168.1.101:/home/sambaShare/rootfs/busybox/fs_zdyz_rootfs /mnt
#
# cd /mnt/
# ls
bin lib mnt root sys usr
dev linuxrc proc sbin tmp
#