nfs挂载文件系统出现Warning: unable to open an initial console.

来源:互联网 发布:mac怎么制作ppt 编辑:程序博客网 时间:2024/06/09 23:43
NET: Registered protocol family 17
s3c2410-rtc s3c2410-rtc: setting system clock to 2062-12-25 21:05:22 UTC (2934306322)
eth0: link down
IP-Config: Unable to set interface netmask (-22).
Looking up port of RPC 100003/2 on 125.217.40.120
eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
Looking up port of RPC 100005/1 on 125.217.40.120
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 156K
Warning: unable to open an initial console.


在文件系统的/dev目录下面,打开超级终端输入命令mknod console c 5 1mknod null c 1 3

之后又出现


VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 156K
hostname: permission denied. (are you root?)
mount: permission denied. (are you root?)
mount: permission denied. (are you root?)
mount: mounting none on /proc/bus/usb failed: No such file or directory
mount: permission denied. (are you root?)
/etc/init.d/rcS: line 20: can't create /proc/sys/kernel/hotplug: nonexistent directory
mdev: /sys/block: No such file or directory
mdev: /sys/class: No such file or directory
mount: permission denied. (are you root?)
mount: permission denied. (are you root?)
mount: permission denied. (are you root?)
mount: permission denied. (are you root?)
hwclock: can't open '/dev/misc/rtc': No such file or directory
[19/Nov/1926:14:45:23 +0000] log.c:73 - unable to dup2 the error log: Bad file descriptor
open device leds: No such file or directory

把权限给成

sudo chmod 777 -R rootfs之后成功挂载但是不知道后面是否会出现其它问题

我用的是vivi


[x] format NAND FLASH for Linux
[v] Download vivi
[k] Download linux kernel
[y] Download root_yaffs image
[a] Absolute User Application
[n] Download Nboot for WinCE
[l] Download WinCE boot-logo
[w] Download WinCE NK.bin
[d] Download & Run
[z] Download zImage into RAM
[g] Boot linux from RAM
[f] Format the nand flash
[b] Boot the system
[s] Set the boot parameters
[u] Backup NAND Flash to HOST through USB(upload)
[r] Restore NAND Flash from HOST through USB
[q] Goto shell of vivi
[i] Version: 1026-2K

q之后挂载配置如下,大家可以用作参考

param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=125.217.40.120:/home/lxiang/workplace/arm_device_driver/nfs_root/rootfs/ ip=125.217.40.2:255.255.255.0:eth0:off console=ttySAC0,115200 init=/linuxrc"##### FriendlyARM BIOS 2.0 for 2440 #####


0 0
原创粉丝点击