init: cannot load libc.so.0, kernel panic:trying to kill init
WANG.Jiong
wong.kwongyuan at gmail.com
Fri Oct 21 07:18:44 UTC 2011
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
More information about the uClibc
mailing list