Bummer, could not run '/etc/init.d/rcS': No such file or directory

Sachin Rane sachin.rane at lgsoftindia.com
Thu Apr 27 08:29:09 UTC 2006


Hi,

 

Just check the format of the file by running following command on 'HOST'
machine. 

$>file rcS

If it is not a 'Unix' format file then use 'dos2unix' command to change
it to UNIX format.

 

If you are creating a 'initrd.img'(RAMFS), then before including the
file in the image use 'dos2unix' command to change it to UNIX format.

 

Regards,

Sachin 

 

 

________________________________

From: busybox-bounces at busybox.net [mailto:busybox-bounces at busybox.net]
On Behalf Of Prakash N
Sent: Thursday, April 27, 2006 1:44 PM
To: busybox at busybox.net
Subject: Bummer, could not run '/etc/init.d/rcS': No such file or
directory

 

Hi 
Iam trying to port linux2.4.26 from montavista to powerPC xilinx-board.
I could successfully check the kernel in board. But the problem comes
when the busybox-1.1.2 is used for root file system. I get an error
saying rcS file is not there in etc/init.d. But Iam sure the file exists
in the directory. My inittab file is 
-----------------------------------------inittab
file-------------------------------------------------
::sysinit:/etc/init.d/rcS
#::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty 9600 tts/0

------------------------------- minicom log after boot
--------------------------------
loaded at:     00400000 004C11E4
board data at: 004BE13C 004BE154
relocated to:  00405634 0040564C
zimage at:     00405BF9 004BDD33
avail ram:     004C2000 10000000

Linux/PPC load: console=ttyS0,9600 root=/dev/xsysace/disc0/part2 rw
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.4.26 (root at edvl28.cedt.iisc.ernet.in) (gcc version
3.4.1) #16 Sat Apr 22 15:19:6Xilinx Virtex-II Pro port (C) 2002
MontaVista Software, Inc. (source at mvista.com)
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 root=/dev/xsysace/disc0/part2 rw
Xilinx INTC #0 at 0x41200000 mapped to 0xFDFFE000
Calibrating delay loop... 299.00 BogoMIPS
Memory: 257332k available (1284k kernel code, 380k data, 60k init, 0k
highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
Communications AB.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0xfdfff003 (irq = 29) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Partition check:
 xsysacea: p1 p2
System ACE at 0x41800000 mapped to 0xD1070000, irq=30, 250880KB
eth0: using fifo mode.
eth0: No PHY detected.  Assuming a PHY at address 0.
eth0: Xilinx EMAC #0 at 0x40C00000 mapped to 0xD1083000, irq=31
eth0: id 2.0h; block id 7, type 1
SCSI subsystem driver Revision: 1.00
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 60k init
init started:  BusyBox v1.1.2 (2006.04.27-06:47+0000) multi-call binary
Starting pid 11, console /dev/console: '/etc/init.d/rcS'
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Bummer, could not run '/etc/init.d/rcS': No such file
ML300 powerpc linux 2.4.21-pre7 E.I.S. edition
(none) login:
------------------------------------------------------------------------
---------------------------------------


I use mkrootfs script from klingaufs for making root file system. I used
unix2dos for sample etc directory provided by him.
 
My lib directory contains
ld-2.3.3.so            libdl.so.2              libnss_dns.so.2
libpthread.so.0
ld.so.1                 libgcc_s_nof.so.1       libnss_files-2.3.3.so
libresolv-2.3.3.so
libanl-2.3.3.so      libgcc_s.so.1           libnss_files.so.2
libresolv.so.2
libanl.so.1             libm-2.3.3.so           libnss_hesiod-2.3.3.so
librt-2.3.3.so
libBrokenLocale-2.3.3.so  libmemusage.so          libnss_hesiod.so.2
librt.so.1
libBrokenLocale.so.1     libm.so.6               libnss_nis-2.3.3.so
libSegFault.so
libc-2.3.3.so             libnsl-2.3.3.so
libnss_nisplus-2.3.3.so  libstdc++.so.6
libcrypt-2.3.3.so     libnsl.so.1             libnss_nisplus.so.2
libthread_db-1.0.so
libcrypt.so.1       libnss_compat-2.3.3.so  libnss_nis.so.2
libthread_db.so.1
libc.so.6                 libnss_compat.so.2      libpcprofile.so
libutil-2.3.3.so
libdl-2.3.3.so            libnss_dns-2.3.3.so     libpthread-0.10.so
libutil.so.1

Could anyone help me in getting rid of this problem,
Prakash

________________________________

Jiyo cricket on Yahoo! India cricket
<http://us.rd.yahoo.com/mail/in/mailcricket/*http:/in.sports.yahoo.com/c
ricket/> 
Yahoo! Messenger Mobile
<http://us.rd.yahoo.com/mail/in/mailmobilemessenger/*http:/in.mobile.yah
oo.com/new/messenger/>  Stay in touch with your buddies all the time.

#########################################################
THIS EMAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED
RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND PRIVILEGED
INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR
DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS
PLEASE CHECK FOR VIRUSES AND DEFECTS.IF YOU ARE NOT THE
INTENDED RECIPIENT, PLEASE NOTIFY US IMMEDIATELY BY REPLY
E-MAIL AND DELETE THE ORIGINAL MESSAGE.
##########################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20060427/a7e0f687/attachment-0001.html


More information about the busybox mailing list