init: cannot load libc.so.0, kernel panic:trying to kill init

Mahanteshwari Hiremath Mahanteshwari.Hiremath at lnties.com
Fri Oct 21 10:02:55 UTC 2011


Hi WANG.Jiong,

Thanks for your reply.
It really helped me to run standalone application on my linux machine.
Problem what I am facing is with the x86 board, which is failing to boot.
I have used rootfs generated from buildroot along with toolchains which gives the following error during boot :

 >/sbin/init:can't load libc.so.0
 >kernel panic: trying to kill init

Please help me out in solving the issue. Im not even able to do anything as it is showing kernel panic.

Regards,
Mahanteshwari Hiremath.

________________________________________
From: WANG.Jiong [wong.kwongyuan at gmail.com]
Sent: Friday, October 21, 2011 12:48 PM
To: Mahanteshwari Hiremath
Cc: uclibc at uclibc.org
Subject: Re: init: cannot load libc.so.0, kernel panic:trying to kill init

Hi Mahanteshwari:

  some of my suggestions:

    1. make sure libc.so.0 exists

    2.  write a simple helloworld, for example:
          ...
           int main() {
             while (1) {
                 printf("hello\n");
                 sleep(5);
             }
          }
         ...

         compile it by  -static to genearte a static linked version.

         then soft link your init to this helloworld

         after reboot, if this works correctly, then those basic things
shoule be OK

    3. compile it without -static
        reboot and see if dynamic version works OK.
        if it crashes with the same error as you reported, you can add
some trace
        code at _dl_get_ready_to_run in ldso/ldso.c to see what happen

---
Regards,
WANG.Jiong

On 10/21/2011 02:12 PM, Mahanteshwari Hiremath wrote:
> Hi,
>       I have built kernel , root file system and toolchain for my X86 based target using buildroot.
> I am using 2.6.29 version kernel. i flashed ext2 RFS on one of my partition and trying to boot my kernel , it starts booting and finally it stops saying
>
> init:can't load libc.so.0
> kernel panic: trying to kill init
>
> I have copied all toolchain related library files onto /lib and tried but still getting the same error..
> can anyone give me suggestion, how to solve this?
> I got stucked really....
>
>
>
>
> Thanks & Regards,
> MPHiremath.
>
>
> Larsen & Toubro Limited
>
> www.larsentoubro.com
>
> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc



Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.


More information about the uClibc mailing list