1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
How to install the pcvt driver on a NetBSD 1.0 machine (pcvt rel. 3.20)
--------------------------------------------------------------------------------
last edit-date: [Thu Jan 5 16:11:17 1995]
(1) you have the choice of two keyboard layouts regarding the placement of
the vt220 function keys and the HELP and DO keys.
both configurations are documented in the files Keyboard.HP and Keyboard.VT
respectively.
decide which one to use and set the "#define" of PCVT_VT220KEYB to
compile the one you choosed. (see also pcvt_hdr.h and pcvt_kbd.c)
(2) add a line ''option PCVT_NETBSD="100"'' into your kernel config file.
(3) there are several other configuration "#define"-able options located at
the beginning of pcvt_conf.h. "user"-settable options all start with
"PCVT_". Please (!!!) read the comments for them in the header file !
(4) edit your kernel configuration file and comment the following line out
by placing a "#" in front of it:
device pc0 at isa? port "IO_KBD" tty irq 1
add a new config-line just below it:
device vt0 at isa? port "IO_KBD" tty irq 1
the lines in my config file look like this:
#device pc0 at isa? port "IO_KBD" tty irq 1
device vt0 at isa? port "IO_KBD" tty irq 1
you can use now either the pccons driver or the pcvt driver (or possibly
other console drivers too!) by simply un-commenting ONE of them.
YOU CANNOT USE/UNCOMMENT MORE THAN __ONE__ CONSOLE DRIVER !!!
(5) configure a new kernel using config(8).
(6) run "make depend" for the new kernel !!!!
(if you upgrade from a previous version of pcvt, or get unresolved
symbols during step 11, it may be necessary to run a "make clean"
prior to running "make depend" !!)
(7) compile the new kernel
(8) test the new kernel (i.e. on a floppy) and check whether it still works
with your keyboard and your videoboard.
if the kernel works, install it on your harddisk and reboot.
(9) change into the distribution subdirectory "Util".
Edit Makefile.inc to suit your needs, especially have a look at "MANDIR"
and "BINDIR". Execute "make depend" and then "make".
this makes all the utilities in their directories. when you are satisfied
with the results, execute "make install". this installs all programs in
all subdirs in "BINDIR" and all manual pages in "MANDIR", all fonts in
"FONTDIR" and the keycap database in "CAPDIR".
change into the distribution subdirectory "Doc" and edit Makefile
to suit your needs. then execute "make" to prepare the manpage for
the driver.
(10) if necessary, edit /usr/share/misc/keycap to match your keyboard.
keycap uses special codes which are documented in Util/kcon/keycap.3
and Util/kcon/keycap.5. also have a look at Util/kcon/kcon.1.
(11) there are example termcap entries for the various screen resolutions
in the file "Etc/Termcap". integrate them into your termcap file if
you don't have a "normal" vt220 entry or want to use pcvt's extensions.
NOTE: pcvt works with an unmodified VT220 termcap entry !
(it was written to do that .... ;-)
Don't forget to make a new compiled termcap database using cap_mkdb !
(12) to use the virtual terminals, one must "mknod" this devices, they have
major number 12 and minor numbers 0 to n:
mknod /dev/ttyv0 c 12 0
mknod /dev/ttyv1 c 12 1
mknod /dev/ttyv2 c 12 2
mknod /dev/ttyv3 c 12 3
...
mknod /dev/ttyv<n> c 12 <n>
There is a shell-script available (Etc/MAKEDEV.pcvt) for this purpose.
(13) edit /etc/ttys to enable login on the virtual consoles, mine looks like
this:
ttyv0 "/usr/libexec/getty console" pcvt25h on secure
ttyv1 "/usr/libexec/getty console" pcvt25h on secure
ttyv2 "/usr/libexec/getty console" pcvt25h on secure
ttyv3 "/usr/libexec/getty console" pcvt25h on secure
(14) because the driver is (mostly) 8-bit clean, the entry to be used with it
in /etc/gettytab has to contain a ":np:" (no parity) entry, the "default"
entry has a ":ap:" (any parity), if you want to use this entry, you have
to change the ":ap:" to ":np:"!
my default entry looks like this:
default:\
:np:fd#1000:im=\r\n NetBSD (%h) (%t)\r\n\r\n:sp#9600:
(15) edit /etc/rc.local to download fonts and establish emulation modes, mine
looks like the example provided in Etc/rc.local
good luck !
|