Re: Create ttyN

From: Unknown (nope_at_way.cc)
Date: 11/14/05


Date: Mon, 14 Nov 2005 17:07:56 GMT

On Sun, 13 Nov 2005 14:36:48 +0100, Pizza67 wrote:

> Hi.
>
> I'm running a linux 2.4.30 kernel on a development platform for STB with a
> MIPS cpu. When the target starts I just have /dev/tty and /dev/console, but
> I need to use virtual consoles to run some applications based on X and SDL.
> So I need to create /dev/tty0, tty1 etc. but if I simply make nodes with:
>
> mknod ttyN c 4 N
>
> and I try to
>
> cat file > ttyN
>
> I have "no such device" error.
>
> I also tried to add a command line such as:
>
> console=ttyN
>
> but it doesn't create the specified device in /dev folder.
>
> Do you have any suggestion?
>

> Thanks in advance,
> Pizza67

Did you enable pty support in the kernel config ?

Jon

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
# CONFIG_TIPAR is not set