All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: /sbin/init not found in oe-core
Date: Fri, 25 May 2012 15:30:26 -0500	[thread overview]
Message-ID: <4FBFEBE2.9080905@windriver.com> (raw)
In-Reply-To: <CA+b4E8yzmANrQE43Ck_DZwW-2o1rAAC3rwGeQ96Uy0M9OS2pdw@mail.gmail.com>

On 5/25/12 3:22 PM, Brandon Stafford wrote:
> Hi all,
>
> I'm trying to switch from OE classic to the new openembedded-core.
> Using the latest commit on the denzil branch, I've successfully made a
> meta layer and built a filesystem that looks reasonably similar to the
> old one. But, it seems like something has changed in the boot process.
>
> As the last step in initramfs/init.sh, after mounting the filesystem,
> the kernel would attempt to execute /sbin/init like this:
>
>      exec switch_root -c /dev/console /mnt/root /sbin/init
>
> With the same old kernel and my new filesystem, this occurs:
>
>      switch_root: can't execute '/sbin/init': No such file or directory
>
> When I look at the filesystem, /sbin/init is, of course, nowhere to be found.
>
> Has the boot process changed? What should I be doing instead of
> calling /sbin/init?

You should check your new rootfs.  is there anything called init on it, even in 
a different directory?  Are you using meta-oe and systemd?

You should have some type of an init in the new filesystem.. if not, then 
something is wrong with your image and you'll need to diagnose that first.

--Mark

> Cheers,
> Brandon
> --
> Brandon Stafford
> Rascal Micro: small computers for art and science
> Somerville, MA, USA
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




  reply	other threads:[~2012-05-25 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 20:22 /sbin/init not found in oe-core Brandon Stafford
2012-05-25 20:30 ` Mark Hatle [this message]
2012-05-25 20:52   ` Brandon Stafford
2012-05-25 21:55     ` Mark Hatle
2012-05-30 20:48       ` Brandon Stafford
2012-05-30 21:04         ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FBFEBE2.9080905@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.