linux-mips
[Top] [All Lists]

Re: problem bring up initramfs and busybox

To: myuboot@fastmail.fm
Subject: Re: problem bring up initramfs and busybox
From: Chris Dearman <chris@mips.com>
Date: Tue, 17 Nov 2009 13:54:00 -0800
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <4B030F76.1040904@paralogos.com>
Organization: MIPS Technologies
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1255735395.30097.1340523469@webmail.messagingengine.com> <4AD906D8.3020404@caviumnetworks.com> <1257898975.30125.1344591929@webmail.messagingengine.com> <4AFA6B7F.10404@walsimou.com> <1258417281.1921.1345554581@webmail.messagingengine.com> <20091117093330.GA24000@linux-mips.org> <1258479580.17116.1345691629@webmail.messagingengine.com> <4B030F76.1040904@paralogos.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Kevin D. Kissell wrote:
This looks like another boot file system setup problem to me. Are you sure that there's an executable init image at /mnt/root/sbin/init? I'm pretty sure that the path that you provide to your new init has to be relative to the new root.

That sounds right.

Andrew, my suggestion would be to change your initramfs /init script to invoke "/bin/busybox sh" as the last command instead of "exec switch_root". The "Kernel panic - not syncing: Attempted to kill init!" says that switch_root is exiting for some reason. It could be anything from missing files/devices on the /mnt/root file system to a bug in busy_box. By booting into the shell you can run the command by hand (maybe with strace if you have it) to help identify where the problem is.

Chris

--
Chris Dearman               Desk: +1 408 530 5092  Cell: +1 408 398 5531
MIPS Technologies Inc            955 East Arques Ave, Sunnyvale CA 94085

<Prev in Thread] Current Thread [Next in Thread>