linux-mips
[Top] [All Lists]

[MIPS] Build an embedded initramfs into mips kernel

To: linux-mips@ftp.linux-mips.org, LKML <linux-kernel@vger.kernel.org>
Subject: [MIPS] Build an embedded initramfs into mips kernel
From: "Alon Bar-Lev" <alon.barlev@gmail.com>
Date: Tue, 18 Dec 2007 22:08:12 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=3jyUfH+bAthU59RUNytI0o9Lyld5Eoq7wbaXHZqYonM=; b=xrhw4BfK8JT+IVK9bY2tyFPABFSpnVEZC9pNwm7uWDO4ZK8w70jd0ZXzi8GQIk11wT/Zniyf/zSrTi4/9KFM8tPKf/aVkqUzNEyfBYtzRwGUsKXk3us9+MhrFP4+VoYWQEGgl6Xjipmn0oHM927MsBtxsbf+a85Lu6J0pGyDcR4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DKcVFpoirmGLyqtO90p3XFuWXDXzwuxGN53Q42WLqzRzJ7++Tv5Gt9f1flH59dV7cqqCU2sBFCbKzwu8/ocVTml1t0uE/Jz0TVU5HXxhWXtVgkX2nRrS2CX3ENjGKesE3znMHrM/8AQ4UUVKRoQMeLfUR1151ZgPAfflS8EoJPc=
Original-recipient: rfc822;linux-mips@ftp.linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hello,

I am trying to build a basic initramfs image into the kernel, using
the CONFIG_INITRAMFS_SOURCE. The required result is a single image
loaded into a target containing usermode application (busybox).

I use cross compile mipsel-unknown-linux-uclibc in order to build the
kernel and the initramfs's usermode.

The cpio image is created using cpio -o -H newc command.

The same configuration works with i586-pc-linux-uclibc cross compile.

printk at init/main.c::run_init_process() shows that the
kernel_execve() returns -2 (ENOENT) for /init and -14 (EFAULT) for
/*/init.

Looking at the initramfs /init is available and executable.

Any reason why I get ENOENT?
Any special procedure should be performed for mips arch?

Best Regards,
Alon Bar-Lev.

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