Skip to contentSkip to conversation

tiny-init: Setup /dev/ptmx in init

PATCH Applied Darren Hart 2 participants 3 messages Aug 1, 2012

lore
Share & tools
lore
#0 lore raw

cover tiny-init: Setup /dev/ptmx in init

The following changes since commit fd6251ef548da7dbca354754cc0b666b2ccd0c45:

imagetest-qemu.bbclass: Fix whitespace issues (2012-08-01 09:10:41 +0100)

are available in the git repository at:
git://git.yoctoproject.org/poky-contrib dvhart/bug2382-ssh-tiny
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dvhart/bug2382-ssh-tiny

Darren Hart (1):
tiny-init: Setup /dev/ptmx in init

 meta-yocto/recipes-core/tiny-init/files/init   |    3 +++
 meta-yocto/recipes-core/tiny-init/tiny-init.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 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.

CC Reinette Chatre <[email protected]>
---
 meta-yocto/recipes-core/tiny-init/files/init   |    3 +++
 meta-yocto/recipes-core/tiny-init/tiny-init.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
meta-yocto/recipes-core/tiny-init/files/init +3 -0
index bf2817d..89fe39e 100644
@@ -3,6 +3,9 @@
 # Mount the Linux kernel virtual filesystems
 mount none -t proc /proc
 mount none -t sysfs /sys
+
+# Setup PTY infrastructure
+mknod /dev/ptmx c 5 2
 mkdir /dev/pts
 mount none -t devpts /dev/pts
 
meta-yocto/recipes-core/tiny-init/tiny-init.bb +1 -1
index f5892ed..394d70f 100644
@@ -3,7 +3,7 @@ DESCRIPTION = "Basic init system for poky-tiny"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-PR = "r0"
+PR = "r1"
 
 RDEPENDS_${PN} = "busybox"
 
Signature · 1 line
1.7.5.4
#2 lore raw
Quoted 8 lines · Darren Hart

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.

Quoted 6 lines
CC Reinette Chatre <[email protected]>
---
 meta-yocto/recipes-core/tiny-init/files/init   |    3 +++
 meta-yocto/recipes-core/tiny-init/tiny-init.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard