天嵌 ARM开发社区

 找回密码
 注册
查看: 10931|回复: 15

紧急求助 can't run '/etc/init.d/rcS': No such file or directory

[复制链接]
panch 发表于 2010-9-28 03:31:12 | 显示全部楼层 |阅读模式
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
end_request: I/O error, dev mtdblock2, sector 256
isofs_fill_super: bread failed, dev=mtdblock2, iso_blknum=64, block=128
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 263 is bad
block 388 is bad
block 1720 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 116K
can't run '/etc/init.d/rcS': No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory


'/etc/init.d/rcS' 文件系统中有这个文件啊  怎么报错说没有呢?   用光盘里面的内核镜像就不会出现这个问题    自己移植的内核刷上去就会这样  怎么办啊?以前也移植成功过没出现这个问题啊  已经搞了N天了快崩溃了  急急急
 楼主| panch 发表于 2010-9-28 03:39:05 | 显示全部楼层
补充一下 rcS  以及  init.d  和 etc 目录的权限都是  777
天嵌_support1 发表于 2010-9-28 10:14:06 | 显示全部楼层
2# panch


我想看看你 rcS 的内容?
你是手写输入呢?还是拷贝粘贴?
 楼主| panch 发表于 2010-9-28 14:07:15 | 显示全部楼层
3# embedsky_lxt


#!/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 -p /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock

#hwclock -s
#embeded_wdg &

#ifconfig lo 127.0.0.1
#net_set &

#/etc/rc.d/init.d/httpd start
#/etc/rc.d/init.d/netd start


/bin/hostname -F /etc/sysconfig/HOSTNAME


是复制粘贴过来的    是从以前移植的文件系统直接复制过来的  以前的文件系统也是自己手写的

令我费解的是  为什么用 光盘里面自带的系统内核镜像就可以运行   我自己移植的内核就不行
 楼主| panch 发表于 2010-9-28 14:20:44 | 显示全部楼层
3# embedsky_lxt


刚才又手写了一遍 还是不行
天嵌_support1 发表于 2010-9-28 17:37:03 | 显示全部楼层
5# panch


你换了天嵌的内核可以运行,那就不是内核问题了啊。你对比一下配置文件吧
 楼主| panch 发表于 2010-9-29 04:06:56 | 显示全部楼层
6# embedsky_lxt


CC      lib/show_mem.o
  CC      lib/string.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 5 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  CC      arch/arm/boot/compressed/decompress.o
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready


编译内核到最后出现这个警告  提示说5节错位  我怀疑这个问题直接导致了 内核镜像不能解压 因为系统启动时解压内核的提示信息 Uncompressing Linux....   这个后面的点很少 只有 4个  后面显示的信息正常  导致系统不能启动  出现 can't run '/etc/init.d/rcS': No such file or directory 问题   不知道是什么原因

NOW, Booting Linux......
Uncompressing Linux... done, booting the kernel.   !!!!!点很少
Linux version 2.6.35.6 (xxxxxx) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #4 Wed Sep 29 03:46:15 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60584k/60584k available, 4952k reserved, 0K highmem

编译 2.6.30.4 的内核就没有那个警告 所以就可以正常启动  解压的时候点就比较多 有两行
machoe 发表于 2010-9-30 13:12:19 | 显示全部楼层
那个和...多少没有关系,新内核采用的解压方式和2.6.30.4的是不一样的方式。那个是正常现象,至于你说的错位,你可以加上配置看一下具体的信息是什么?
天嵌_support1 发表于 2010-9-30 13:55:14 | 显示全部楼层
file 一下你的 rcS 文件,看看是什么信息
 楼主| panch 发表于 2010-9-30 22:16:45 | 显示全部楼层
9# embedsky_lxt


原因找到了 是这个选项 choose SLAB allocator ()的问题  用SLUB  就会出现  can't run '/etc/init.d/rcS': No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
的错误  

换成SLAB就正常了    新版本内核SLUB的内存分配器   看来有一些问题  不知道怎么解决?
 楼主| panch 发表于 2010-9-30 22:19:51 | 显示全部楼层
8# machoe


原因找到了 是这个选项 choose SLAB allocator ()的问题  用SLUB  就会出现  can't run '/etc/init.d/rcS': No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
can't open /dev/s3c2410_serial0: No such file or directory
的错误  

换成SLAB就正常了    新版本内核SLUB的内存分配器   看来有一些问题  不知道怎么解决?
天嵌_support1 发表于 2010-10-7 16:12:01 | 显示全部楼层
10# panch

恭喜你拉,网友。分享你的喜悦
 楼主| panch 发表于 2010-10-8 04:30:48 | 显示全部楼层
12# embedsky_lxt


要说用SLUB性能好一些   但不知道板子用 2.6.35的内核为什么开启SLUB就会出那个问题,我想问一下有没有解决的方法?
pflysky 发表于 2011-1-15 09:00:53 | 显示全部楼层
新版本内核SLUB的内存分配器   看来有一些问题  不知道怎么解决?
我对这个问题也关注,希望知道的高手赐教
阳光梦 发表于 2012-2-18 15:24:49 | 显示全部楼层
Freeing init memory: 112K
': No such file or director
can't open /dev/tq2440_serial0: No such file or director
can't open /dev/tq2440_serial0: No such file or director
can't open /dev/tq2440_serial0: No such file or director
can't open /dev/tq2440_serial0: No such file or director
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-29 05:26 , Processed in 1.035196 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表