我用的开发板为tq2440,在移植文件系统时出现错误:
can't open /dev/s3c2410_serial0: No such file or director
按网上说的把s3c2410_serial0改成console,结果:
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: MTD device does not support have the right page sizes
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs2 filesystem).
Freeing init memory: 120K
': No such file or director
Please press Enter to activate this console.
': No such file or director
Please press Enter to activate this console.
': No such file or director
然后一直敲回车就一直这样显示下去,我用开发板的出厂内核镜像烧到开发板,也是一样的效果,应该就是文件系统出问题了,这个问题困扰我很多天了,还请各位高手帮我看下大概是哪里出问题了?
关于那个“‘”符号,我把建立文件是所有用到“’”的地方都检查了好几次,是改了些地方,有些地方把"'"改为“`”但最终还是不行。
busybox版本为:1.13.0,linux内核版本为2.6.25.8(按教程给出的版本下载的)
inittab文件内容为:
# /etc/inittab
::sysinit:/etc/init.d/rcS
console::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
rcS文件内容为:
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses
#
mount -a
mkdir /dev/pts
mount -t devpts /dev/pts
echo /sbin/mdev>/proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock
/bin/hostname -F /etc/sysconfig/HOSTNAME
谢谢各位大侠了!!!给点提示也行! |