linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Init hangs
@ 2004-08-05  9:54 Marco Schramel
  2004-08-05 10:33 ` Wolfgang Denk
  0 siblings, 1 reply; 14+ messages in thread
From: Marco Schramel @ 2004-08-05  9:54 UTC (permalink / raw)
  To: PPC_LINUX


Hi,

my kernel hangs by initializing the system. My target is mpc8270-based. I use ELDK 3.0 and mount my root-fs over nfs.
Denx-kernel 2.4.25.


I added some printk's in the function "static int init(void * unused)" of  linux/init/main.c to see what happens.

#############################################################

	.
	.
	.
	(void) dup(0);
	(void) dup(0);

	/*
	 * We try each of these until one succeeds.
	 *
	 * The Bourne shell can be used instead of init if we are
	 * trying to recover a really broken machine.
	 */
	if (execute_command)
		run_init_process(execute_command);
	printk("before /sbin/init\n");
	run_init_process("/sbin/init");
	printk("before /etc/init\n");
	run_init_process("/etc/init");
	printk("before  /bin/init\n");
	run_init_process("/bin/init");
	printk("before  /bin/sh\n");
	run_init_process("/bin/sh");

##################################

the last lines of my boot messages
#######################################
IP-Config: Complete:
      device=eth0, addr=192.168.55.3, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.55.3, domain=, nis-domain=(none),
     bootserver=192.168.55.1, rootserver=192.168.55.1, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 192.168.55.1
Looking up port of RPC 100005/1 on 192.168.55.1
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 72k init
before /sbin/init

##############################################

It seems like it hangs in "run_init_process("/sbin/init");" or the /sbin/init - file does not work.
Sometimes the message "INIT: version 2.84 booting" is showed. And after printing this message it hangs, too.
But the most times it looks like above.

Any ideas?
Thanks in advance

Marco



---------
Marco Schramel
R&D
Bartec GmbH
Schulstr. 30
94239 Gotteszell, Germany
www.bartec.de
Marco.Schramel@go.bartec.de
Phone:  +49 (0)9929/301332
Fax:      +49 (0)9929/301112

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-08-06 14:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05  9:54 Init hangs Marco Schramel
2004-08-05 10:33 ` Wolfgang Denk
2004-08-05 15:28   ` Marco Schramel
2004-08-05 17:48     ` Wolfgang Denk
2004-08-06  6:26       ` Marco Schramel
2004-08-06  8:11         ` Wolfgang Denk
2004-08-06 11:22           ` Ralph Siemsen
2004-08-06 12:38             ` Dan Malek
2004-08-06 13:14               ` Robert P. J. Day
2004-08-06 13:49                 ` Dan Malek
2004-08-06 12:46             ` Wolfgang Denk
2004-08-06 13:12               ` Ralph Siemsen
2004-08-06 13:44               ` Dan Malek
2004-08-06 14:36                 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).