linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Re: Trouble with embedding initial root fs into the kernel
Date: Fri, 19 Mar 2010 04:58:25 +0000	[thread overview]
Message-ID: <aec7e5c31003182158o58976fa4y398cc7e74b1fb29d@mail.gmail.com> (raw)
In-Reply-To: <201003161222.05067.fabio.giovagnini@aurion-tech.com>

On Fri, Mar 19, 2010 at 6:07 AM, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> Wher do I have to include the script creating the nodes?

It depends on your user space setup.

I'm using busybox with init enabled together with the following line
in my /etc/inittab:

::sysinit:/etc/init.d/rcS

The file /etc/init.d/rcS looks like this:
#!/bin/sh

# sysfs is mandatory
mount -t sysfs none /sys

# optional filesystem support
mount -t proc none /proc
mount -t tmpfs none /tmp

# use tmpfs for /dev
mount -t tmpfs -o sizedk,mode\a55 tmpfs /dev

# optional /dev/pts filesystem support
mkdir -p /dev/pts
mount -t devpts none /dev/pts

# setup mdev as hotplug handler
if [ -f /proc/sys/kernel/hotplug ]; then
  echo /sbin/mdev > /proc/sys/kernel/hotplug
else
  /sbin/sysctl -w kernel.hotplug=/sbin/mdev
fi

# udev replacement
mdev -s

# setup local network interface
ifconfig lo 127.0.0.1 up

  parent reply	other threads:[~2010-03-19  4:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 11:22 Trouble with embedding initial root fs into the kernel Fabio Giovagnini
2010-03-16 11:32 ` Magnus Damm
2010-03-16 12:04 ` Magnus Damm
2010-03-16 12:11 ` Fabio Giovagnini
2010-03-16 12:28 ` Fabio Giovagnini
2010-03-16 12:29 ` Magnus Damm
2010-03-16 12:35 ` Fabio Giovagnini
2010-03-16 12:41 ` Magnus Damm
2010-03-18 21:05 ` Fabio Giovagnini
2010-03-18 21:07 ` Fabio Giovagnini
2010-03-19  4:58 ` Magnus Damm [this message]
2010-03-19  5:23 ` Fabio Giovagnini
2010-03-19  5:44 ` Magnus Damm

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=aec7e5c31003182158o58976fa4y398cc7e74b1fb29d@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=linux-sh@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).