From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web8907.mail.in.yahoo.com (web8907.mail.in.yahoo.com [203.84.221.139]) by ozlabs.org (Postfix) with SMTP id 9B171679F0 for ; Thu, 27 Apr 2006 16:13:22 +1000 (EST) Message-ID: <20060427060639.56542.qmail@web8907.mail.in.yahoo.com> Date: Thu, 27 Apr 2006 07:06:39 +0100 (BST) From: Prakash N Subject: linux 2.4.26 bummer problem To: linuxppc-dev@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-513996594-1146117999=:54568" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-513996594-1146117999=:54568 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. Some replies in usenet, which I answered, - 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 (root@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@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@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? 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. <0>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 --------------------------------- Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. --0-513996594-1146117999=:54568 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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.
Some replies in usenet, which I answered,

- 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 (root@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@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@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?
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.
 <0>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


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time. --0-513996594-1146117999=:54568--