BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #8195同步于 2010/4/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖

[求教] 下载内核和文件系统后一直出现can't open /dev/tty2。。

cherish
2010/4/12镜像同步6 回复
#tftp 30008000 zImage #tftp 30800000 ramdisk.image.gz #go 30008000 内核启动。。。。。 一直到 Freeing init memory: 92K Failed to execute /linuxrc. Attempting defaults... init started: BusyBox v1.9.2 starting pid 15, tty '': '/etc/init.d/rcS' mount: mounting none on /dev/pts failed: No such file or directory mount: mounting tmpfs on /dev/shm failed: No such file or directory mknod: /dev/tty0: File exists mount: mounting /dev/mtdblock/4 on /jffs2 failed: No such device mount: mounting /dev/mtdblock/5 on /cramfs failed: No such file or directory ifconfig: SIOCSIFADDR: No such device route: SIOCADDRT: Network is unreachable /usr/etc/rc.local: line 5: treeview: not found Can't open /dev/tty2: No such file or directory Can't open /dev/tty3: No such file or directory Can't open /dev/tty4: No such file or directory process '-/bin/sh' (pid 44) exited. Scheduling it for restart. process '-/bin/sh' (pid 45) exited. Scheduling it for restart. process '-/bin/sh' (pid 46) exited. Scheduling it for restart. Can't open /dev/tty2: No such file or directory Can't open /dev/tty3: No such file or directory Can't open /dev/tty4: No such file or directory 然后就是一直循环。。。
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
cherish机器人#1 · 2010/4/12
到底是怎么回事啊?googlebaidu了好几天也没搞定
ArmStrong机器人#2 · 2010/4/12
修改启动脚本吧,启动脚本里不知道运行了个什么程序,取消它试试 【 在 cherish (fighting~~~) 的大作中提到: 】 : #tftp 30008000 zImage : #tftp 30800000 ramdisk.image.gz : #go 30008000 : ...................
ssailing机器人#3 · 2010/4/12
ms文件系统有问题 输入信息不足 我就纳闷提问题的人为什么总是那么吝啬呢。。。 命令行参数是什 启动脚本是什 linuxrc /etc/init.d/rcS 还有/etc/inittab都贴出来看看 三星系列2.6内核的启动串口好像不是tty什的 把这个ttyx改成你命令行参数里面的那个串口试试
cherish机器人#4 · 2010/4/12
【 在 ssailing 的大作中提到: 】 : ms文件系统有问题 : 输入信息不足 我就纳闷提问题的人为什么总是那么吝啬呢。。。 : 命令行参数是什 : ................... 命令行参数:root=/dev/mtdblock/3 console=ttySAC0,115200 init=/sbin/init linuxrc, inittab,rcS,rc.local 这些一开始都不知道什么意思,就按网上的资料改了改 rcS: #!/bin/sh ln -s /dev/tts/0 /dev/ttyS0 /bin/mount -a inetd exec /usr/etc/rc.local inittab: ::sysinit:/etc/init.d/rcS ::askfirst:/bin/sh #!/bin/sh #挂载/etc为ramfs, 并从/mnt/etc下拷贝文件到/etc目录当中 echo "mount /etc as ramfs" /bin/mount -n -t ramfs ramfs /etc /bin/cp -a /mnt/etc/* /etc echo "recreate the /etc/mtab entries" # recreate the /etc/mtab entries /bin/mount -f -t cramfs o remount,ro /dev/mtdblock/3 / #mount some file system echo "mount /dev/shm as tmpfs" /bin/mount -n -t tmpfs tmpfs/dev/shm #挂载/proc为proc文件系统 echo "mount/proc as proc" /bin/mount -n -t proc none /proc #挂载/sys为sysfs文件系统 echo "mount /sys as sysfs" /bin/mount -n -t sysfs none /sys exec /sbin/init
cherish机器人#5 · 2010/4/12
现在启动后的情况: Failed to execute /linuxrc. Attempting defaults... init started: BusyBox v1.9.2 (2010-04-12 16:18:11 CST) starting pid 15, tty '': '/etc/init.d/rcS' mount: mounting none on /dev/pts failed: No such file or directory mount: mounting tmpfs on /dev/shm failed: No such file or directory /usr/etc/rc.local: line 2: ./usr/etc/profile: not found ifconfig: SIOCSIFADDR: No such device route: SIOCADDRT: Network is unreachable Please press Enter to activate this console.
ssailing机器人#6 · 2010/4/12
【 在 cherish 的大作中提到: 】 : 现在启动后的情况: : Failed to execute /linuxrc. Attempting defaults... : init startedstarting pid 15, tty ''mountmount/usr/etc/rc.localifconfigroutePlease press Enter to activate this console. : ................... inittab: ttySAC0::sysinit:/etc/init.d/rcS ttySAC0::askfirst:/bin/sh 这不就差不多了么 再把那些无关紧要的提升去掉就可以了