Problems starting /sbin/init

David H. Lynch Jr. dhlii at comcast.net
Sun Jan 15 20:13:38 EST 2006


srideep.devireddy at wipro.com wrote:
> Hello David ,
> 
>   I am bringing up  Montavista Linux on mpc8272 custom board .But as we completed almost all the configurations and linux is booting well till the NFS or Ramdisk file system is mounted . then it hangs  .. when i tried to debug i saw the /sbin/init in the init/main.c is not getting executed . i had printk and checked all the printks are executed but not the /sbin/init and the printks after the init is also executed .so this /sbin/init is not getting excecuting and i am not getting any messages .
> 
> Thanks & Regards
> Srideep Reddy D
> Wipro Technologies
> 
> 
Srideep;

	I was eventually able to resolve my problem. My serial console driver
was inadvertently using the physical address of the uart and not the
virtual address. When the TLB entry created in head_4xx.S for that
physical address eventually got overwritten - which coincidentally
occured after loading /init (or /bin/sh or ....) but prior to their
outputting anything.

	It is possible but unlikely you are having a similar problem.

	Regardless, you can isolate your problem further. You can sprinkle
prink's inside init/main.c to figure out exactly how far you are getting.
	If you are actually getting to attempting to start /init, you can
change main.c to start the program of your choice instead of init.
I started with "Hello World" in ppc assmebler with no library dependencies.
	You can enable SHOW_SYSCALLS and find out what system calls are
occuring immeditely prior to your system running off the rails.

	And I am sure others may have even more and better ideas.


Dave



More information about the Linuxppc-embedded mailing list