[Netkit.users] Legacy (BSD) PTY support

Massimo Rimondini rimondin at dia.uniroma3.it
Fri Apr 23 16:10:53 CEST 2010

Dear Silvia,

static entries in /dev (like those you need) can be created automatically by using the /sbin/MAKEDEV utility, which is available in most Linux distributions and inside the Netkit filesystem as well.
In order to make permanent changes to the filesystem image, you can use this guide: http://wiki.netkit.org/index.php/FAQ#How_can_I_install.2Fupgrade_packages_or_other_additional_software_inside_Netkit.3F, particularly the first part where it explains how to start a virtual machine where changes are written directly to the filesystem image.

Therefore, you could proceed as follows:
1) Start a virtual machine using option -W.
2) Create the required device nodes using a command like "/sbin/MAKEDEV pty". If it does not work, or does not satisfy your needs, you can manually create each required entry using the "mknod" command instead. Refer to http://lxr.linux.no/linux+v2.6.33/Documentation/devices.txt for information about minor and major numbers for PTY devices.
3) Gracefully halt the virtual machine using the "halt" command.


From: netkit.users-bounces a list.dia.uniroma3.it [mailto:netkit.users-bounces a list.dia.uniroma3.it] On Behalf Of silvia filippi 
Sent: Friday, April 23, 2010 10:49 AM
To: netkit.users a list.dia.uniroma3.it
Subject: [Netkit.users] Legacy (BSD) PTY support

Hi all
I'm using Netkit to simulate a rack including more that 20 boards. I need to include the Legacy (BSD) PTY support.
I have properly configured the kernel (under kernel/build/linux- enabling the check box under Device Drivers/Chacacter sevices/Legacy (BSD) PTY support and 128 as maximum number of legacy PTY in use).
the command to configure is

make ARCH=um menuconfig

I have compiled the kernel running the following command in the <netkit-dir>/kernel/ dir

make -f Makefile.devel kernel

The new kernel works fine, but I don't see the usual pseudo files in the /dev directory: /dev/ptyp0,1,2 ...../dev/ttp0,1,2.
My feeling is that some other change should be also done to the root FS. Is there any script to be run in order to create those devices under /dev? Which is the best approach to modify the root FS?
Any help will be appreciated.

Best regards

Silvia Filippi

Kasko Networks Srl

More information about the Netkit.users mailing list