[Buildroot] [PATCH] Create /dev/null along with /dev/console when building cpio rootfs

Dan Moulding dan.moulding at rackwareinc.com
Tue Apr 29 15:12:57 UTC 2014


I am currently forced to support an older kernel (2.6.18). That kernel
does not have devtmpfs support. However, I'd still like to be able to
use mdev for automatic /dev management. mdev seems to be more than
happy to work on top of just plain tmpfs (well, technically, in my
case it is the special rootfs instance of tmpfs). However, init is
unhappy because /dev/null hasn't been created by the time init
runs. This patch creates /dev/null in addition to /dev/console when
building the cpio rootfs, so that /dev/null will be there when init
runs. Afterward, mdev is able to take care of the rest.

Dan Moulding (1):
  Create /dev/null device node when building a cpio rootfs

 fs/cpio/cpio.mk | 1 +
 1 file changed, 1 insertion(+)

-- 
1.8.2.1



More information about the buildroot mailing list