内核启动参数为:
noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
内核启动显示:
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
解决:
创建rootfs过程中,在/dev目录下手动创建如下节点:
mknod -m 660 null c 1 3
mknod -m 660 console c 5 1
(同时还需要注意nfs的设置,
在/etc/exports的共享目录中添加no_root_squash属性
例如:/home/alan/nfs_dir *(rw,sync,no_root_squash,no_all_squash,no_subtree_check,insecure)
)
(同时还需要注意nfs的设置,
在/etc/exports的共享目录中添加no_root_squash属性
例如:/home/alan/nfs_dir *(rw,sync,no_root_squash,no_all_squash,no_subtree_check,insecure)
)
====
http://www.4ucode.com/Study/Topic/1597992
本文介绍了解决Linux内核启动时遇到无法打开初始控制台及找不到初始化进程的问题的方法。通过手动创建必要的设备节点并调整NFS配置来修复系统启动流程。
2654

被折叠的 条评论
为什么被折叠?



