Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Mike Dunn <mikedunn@...>
Subject: Re: gentoo baselayout "Attempted to kill init"
Date: Thu, 21 Apr 2011 19:13:38 -0700
On 04/21/2011 02:18 PM, chris@... wrote:
> I've got a filesystem created with the following toolchain: (from crossdev)
>
> arm-unknown-linux-gnu-
>
> with
>
> arm-unknown-linux-gnu-emerge system
> arm-unknown-linux-gnu-emerge baselayout
>
> I created the kernel separately, and was able to boot it with another
> filesystem that was created by somebody else.
>
> During the boot process the kernel says "Attempted to kill init" because the
> /init program exited for some reason.
> The problem is that I can't get any other error from the init program. I have
> no idea why it's exiting. It could be a missing library, segfault or bad
> invocation, so I have no idea where to start.
>
>

Beyond emerging system and baselayout, there will be some hand tweaking and
sysadmin chores involved with getting a working bootable root filesystem.

The error you see is very common with what you are doing and usually caused by
missing libraries required by the init process.  You can check which libraries
are needed by a particular utility by running (on the build host):
readelf -d /path/to/target/utility | grep NEEDED

I recommend creating a separate minimal rootfs and building it into the kernel
as an initramfs.  The minimal filesystem need only contain a statically built
busybox and a simple /init shell script that does a few things like mounting
/proc and /sys and then execs the shell.
See http://en.gentoo-wiki.com/wiki/Initramfs for some guidance.  Once this has
succesfully booted, you can mount and chroot into your real rootfs and
troubleshoot it.

HTH
Mike



References:
gentoo baselayout "Attempted to kill init"
-- chris
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo baselayout "Attempted to kill init"
Next by thread:
Re: gentoo baselayout "Attempted to kill init"
Previous by date:
gentoo baselayout "Attempted to kill init"
Next by date:
Re: gentoo baselayout "Attempted to kill init"


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.