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

Hi, Iam trying to run linux 2.4.26 from mvista in xilinx XUPV2P board. During booting I get this error message, Mounted devfs on /dev . Freeing unused kernel memory: 60k init init started: BusyBox v1.1.2 (2006.04.24-13:20+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 ML300 powerpc linux 2.4.21-pre7 E.I.S. edition (none) login: . But I could see in the generated root file system this file is there. Even its not logging with anything.

My inittab file is ::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

Without init options specified in busybox configuration I got, . 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). mount_devfs_fs(): unable to mount devfs, err: -5 Freeing unused kernel memory: 60k init Warning: unable to open an initial console. Kernel panic: No init found. Try passing init= option to kernel.

Any help is appreciated, Prakash

Reply to
prakash.na
Loading thread data ...

- x bits set for this shell script?

- does a shell run?

- try init=/bin/sh as a kernel parameter. Does it run?

- all needed libraries to run available on your target?

Juergen

Reply to
Juergen Beisert

- x bits set for this shell script? SInce Iam new to this embedded linux, could you tell whats that x bits means, is it exec permission (if so for whom,root?).

Reply to
prakash.na

I couldnt put my data here, so Iam continuing the discussion in new discussion

Reply to
prakash.na

- x bits set for this shell script? SInce Iam new to this embedded linux, could you tell whats that x bits means, is it exec permission (if so for whom,root?).

- does a shell run? Iam not clear why does it say /etc/init.d/rcS is not there, while its definitely there. I feel shell is not running. I want to just put what I get in minicom

---------------------------------------------------------------------------------------------------------------------------------------- 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 ( snipped-for-privacy@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. ( snipped-for-privacy@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 ( snipped-for-privacy@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-03:52+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:

----------------------------------------------------------------------------------------------------------------------------------- Here If I type su or root or whatever it asks password but always says incorrect login.

- try init=/bin/sh as a kernel parameter. Does it run?

guide me where Iam wrong Prakash

Reply to
prakash.na

Yes, exec permissions. Try to enable them for all (user, group and world). But I think this is not the problem you have...

To run /etc/init.d/rcS a shell interpreter is required. That's why I asked if at least your shell is running.

But I think it runs, as you are using busybox. And "init" and "sh" are the same binary.

With this kernel parameter you start a shell instead of "init". So there should be no more a login and you can deltete root's password for the future. What kind of bootloader do you are using?

JB

Reply to
Juergen Beisert

Sorry for this kind of reply, as there are some problems in google, not allowing to send more data. - try init=/bin/sh as a kernel parameter. Does it run? My init tab file is

---------------------------------------------------------------------------------------------------------------------------- ::init=/bin/sh ::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

------------------------------------------------------------------------------------------------------------------------------

The log is .......... VFS: Mounted root (ext2 filesystem). mount_devfs_fs(): unable to mount devfs, err: -5 Freeing unused kernel memory: 60k init Warning: unable to open an initial console. Kernel panic: No init found. Try passing init= option to kernel. Rebooting in 180 seconds..

-----------------------------------------------------------------------------------------------------------------

- all needed libraries to run available on your target? I feel yes, as I could see these in lib folder of my RFS.

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

guide me where Iam wrong Prakash

Reply to
prakash.na

Not your inittab, instead kernel parameter "init=/bin/sh" replaces the init process by a shell.

What and where is your filesystem?

Hmmm, what is that? It seems there is nothing in your root filesystem. devfs tries to mount itself on /dev, but there is no directory with this name.

There is no /dev/console device node in your root filesystem, consecutive fault from previous devfs failure.

And at least there is no init binary to execute. Your rootfs is empty. What did you change? In your last mail you where able to boot up to the login prompt????

Check this: $ readelf -d your-busybox-binary

It lists the required dynamic libraries to execute this binary. Are they

*all* on your target rootfs? Note: Instead of "readelf" you should use the cross variant of this command.

JB

Reply to
Juergen Beisert

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.