-
Notifications
You must be signed in to change notification settings - Fork 44
/
README.bsd
135 lines (93 loc) · 1.65 KB
/
README.bsd
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# yaft (yet another framebuffer terminal)
## test environment
using qemu (i386, vga cirrus)
- FreeBSD 10.1
- OpenBSD 5.7
- NetBSD 6.1.5
## FreeBSD
### kernel rebuild
edit /usr/src/sys/i386/conf/GENERIC
~~~
options VESA
options SC_PIXEL_MODE
~~~
build
~~~
# cd /usr/src
# make buildkernel
# make installkernel
~~~
### module load (no kernel rebuild)
~~~
# kldload vesa
# echo "vesa_load=\"YES\"" >> /boot/loader.conf
~~~
### vesa mode
check available mode
~~~
# vidcontrol -i mode
~~~
change mode
~~~
# vidcontrol MODE_XXX
# echo "allscreens_flags=\"MODE_XXX\"" >> /etc/rc.conf
~~~
### keyrepeat
~~~
# kbdcontrol -r fast
~~~
### write-combine
~~~
# memcontrol set -b 0xe0000000 -l 0x10000000 -o SVGA write-combine
~~~
## NetBSD
### vesa mode
check available mode
~~~
(boot prompt)
> vesa list
~~~
edit /boot.cfg
~~~
menu=Boot normally:rndseed /var/db/entropy-file;vesa 1024x768x32;boot netbsd
~~~
### key repeat
~~~
# wsconsctl -w repeat.del1=200 repeat.deln=50
~~~
~~~
# echo "setvar repeat.del1=200" >> /etc/wscons.conf
# echo "setvar repeat.deln=50" >> /etc/wscons.conf
~~~
## OpenBSD
### kernel
- patch http://mlterm.sf.net/openbsd-5.3-fixvesa.patch
edit /usr/src/sys/arch/i386/conf/GENERIC
~~~
vesabios0 at mainbus?
option VESAFB
~~~
build
~~~
# cd /usr/src/sys/arch/i386/compile/GENERIC
# make clean && make depend && make
# make install
# reboot
~~~
### change vesa mode
edit yaft/fb/openbsd.h
~~~
enum {
FB_WIDTH = 640,
FB_HEIGHT = 480,
FB_DEPTH = 8,
};
~~~
### key repeat
~~~
# wsconsctl -w repeat.del1=200 repeat.deln=50
~~~
~~~
# echo "setvar repeat.del1=200" >> /etc/wscons.conf
# echo "setvar repeat.deln=50" >> /etc/wscons.conf
~~~