Hi Mattias, On the host PC I ran: ldd linuxrc and got: linux-vdso.so.1 => (0x000...) ...
This file is missing in my /lib Where can I find it ? Thank you, Z.V _____________________________________ From: busybox [[email protected]] on behalf of Mattias Schlenker [[email protected]] Sent: Tuesday, November 01, 2016 2:58 PM To: [email protected] Subject: Re: Kernel panic - not syncing: No working init found Am 01.11.2016 um 13:41 schrieb Vered Zvi: > Hello, > > I'm working with kernel 3.18.24, busybox 1.24.2 > > /lib contains the following files: > > ld-2.22.so > ld-linux-x86-64.so.2 -> ld-2.22.so > libc-2.22.so > libcrypt-2.22.so > libcrypt.so.1 -> libcrypt-2.22.so > libc.so.6 -> libc-2.22.so > libdl-2.22.so > libdl.so.2 -> libdl-2.22.so > libgcc_s.so > libgcc_s.so.1 > libm-2.22.so > libm.so.6 -> libm-2.22.so > libpthread-2.22.so > libpthread.so.0 -> libpthread-2.22.so > libresolv-2.22.so > libresolv.so.2 -> libresolv-2.22.so > librt.so.1 > libstdc++.so.6 > libthread_db.so.1 > libutil-2.22.so > libutil.so.1 -> libutil-2.22.so > > /lib64 contains the following files: > > ld-linux-x86-64.so.2 -> /lib/ld-2.9.so > libc.so.6 -> /lib/libc.so.6 > libm.so.6 -> /lib/libm.so.6 > > Upon boot I'm getting: > Kernel panic - not syncing: No working init found. Try passing init=option > > Are there any files missing ? > How can I debug such error ? First: Put everything that's in your initramfs to a directory and try to run busybox via chroot from outside, like "chroot /my/root/dir /bin/busybox". You either get a list of compiled in applets or an error telling you which files are missing. Second: If that worked, try to run with "init=/bin/ash" to drop you to a shell. In this shell you can mount filesystems and stuff... Make notes Third: there should be a symlink /init -> /bin/busybox if you are running busybox in inittab mode and of course an inittab and startup scripts. If you are using busybox to pivot root you should use an /linuxrc script to make sure the exec'ed init keeps PID 1. If you want to see how to build a minimal BSD Gentoo like RC script system upon busybox' inittab that is easily readable take a look at one of my side projects - it should also explain which filesystems have to be mounted when, how to invoke the dhcp client and stuff: https://github.com/mschlenker/TinyCrossLinux Regards, Mattias -- Mattias Schlenker - Redaktion + EDV-Beratung + Linux-CD/DVD-Konzepte August-Bebel-Str. 74 - 04275 LEIPZIG - GERMANY Telefon (VoIP "ueberall"), geschaeftlich: +49 341 39290767 Telefon (Festnetz), privat und Fax: +49 341 30393578 Mobil: +49 163 6953657 Bitte fuer geschaeftliche Telefonate vorzugsweise die VoIP-Telefonnummer +49 341 39290767 verwenden, da ich diese aufs Mobiltelefon routen kann! http://blog.rootserverexperiment.de/ http://news.mattiasschlenker.de/ _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox This Email and the attachments were emulated by Check Point ThreatEmulation Service. The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
