diff options
author | Darren Hart <dvhart@linux.intel.com> | 2012-08-01 12:01:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-01 23:11:18 +0100 |
commit | 62d42fe3cfa575cb97b484ccf7b2e9a25cc50770 (patch) | |
tree | 4bf5a69e2d51ca6fcec7b24492f25c2e3173848b /meta-yocto/recipes-core | |
parent | acde166f5b865c9d11ca6ec0457fb5cb1f1793f2 (diff) | |
download | poky-62d42fe3cfa575cb97b484ccf7b2e9a25cc50770.tar.gz |
tiny-init: Setup /dev/ptmx in init
Fixes [YOCTO #2382]
Without /dev/ptmx, ssh logins fail with:
"PTY allocation request failed on channel 0"
As the kernel support already exists in the linux-yocto-tiny kernel,
create the /dev/ptmx device in tiny-init so it works as intended.
(From meta-yocto rev: 1b71b9363aa49521896694e43a63cb6fca487da4)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto/recipes-core')
-rw-r--r-- | meta-yocto/recipes-core/tiny-init/files/init | 3 | ||||
-rw-r--r-- | meta-yocto/recipes-core/tiny-init/tiny-init.bb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meta-yocto/recipes-core/tiny-init/files/init b/meta-yocto/recipes-core/tiny-init/files/init index bf2817d099..89fe39ec5a 100644 --- a/meta-yocto/recipes-core/tiny-init/files/init +++ b/meta-yocto/recipes-core/tiny-init/files/init | |||
@@ -3,6 +3,9 @@ | |||
3 | # Mount the Linux kernel virtual filesystems | 3 | # Mount the Linux kernel virtual filesystems |
4 | mount none -t proc /proc | 4 | mount none -t proc /proc |
5 | mount none -t sysfs /sys | 5 | mount none -t sysfs /sys |
6 | |||
7 | # Setup PTY infrastructure | ||
8 | mknod /dev/ptmx c 5 2 | ||
6 | mkdir /dev/pts | 9 | mkdir /dev/pts |
7 | mount none -t devpts /dev/pts | 10 | mount none -t devpts /dev/pts |
8 | 11 | ||
diff --git a/meta-yocto/recipes-core/tiny-init/tiny-init.bb b/meta-yocto/recipes-core/tiny-init/tiny-init.bb index f5892ed472..394d70fd0d 100644 --- a/meta-yocto/recipes-core/tiny-init/tiny-init.bb +++ b/meta-yocto/recipes-core/tiny-init/tiny-init.bb | |||
@@ -3,7 +3,7 @@ DESCRIPTION = "Basic init system for poky-tiny" | |||
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
5 | 5 | ||
6 | PR = "r0" | 6 | PR = "r1" |
7 | 7 | ||
8 | RDEPENDS_${PN} = "busybox" | 8 | RDEPENDS_${PN} = "busybox" |
9 | 9 | ||