1 |
Updating Information for MidnightBSD users |
2 |
|
3 |
Items affecting the mports and packages system can be found in |
4 |
/usr/mports/UPDATING. |
5 |
|
6 |
20070314: |
7 |
Remove send-pr from src. |
8 |
|
9 |
Switch to NetBSD's gzip. |
10 |
|
11 |
Bump MBSD minor revision. |
12 |
|
13 |
20070313: |
14 |
Imported OpenSSH 4.6p1. |
15 |
|
16 |
Imported FreeBSD's libarchive and updated tar to work with it. |
17 |
|
18 |
Disabled debug statements cluttering up /var/log/messages for |
19 |
the tcp autobuf patch applied previously. |
20 |
|
21 |
20070312: |
22 |
Synced several audio changes from FreeBSD 6.1. Removed the |
23 |
BSD Daemon files from src/share. |
24 |
|
25 |
20070308: |
26 |
Added mfi which supports LSI Logic MegaRAID SAS devices including |
27 |
the Dell perc5i. |
28 |
|
29 |
20070206: |
30 |
Imported OpenBSD's sudo into source. Please install |
31 |
/usr/src/usr.bin/sudo/lib first before building. |
32 |
|
33 |
Those who install from a snapshot after this date |
34 |
will not be effected. |
35 |
|
36 |
20070119: |
37 |
Added audit group. Be sure to add audit to your /etc/group file |
38 |
before installing world. |
39 |
|
40 |
hostapd was updated to 0.4.8. |
41 |
|
42 |
An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to |
43 |
unbreak world. |
44 |
|
45 |
wpa_supplicant was updated. |
46 |
|
47 |
For stability and compatibility reasons, it was decided that MidnightBSD |
48 |
sync with FreeBSD 6.1 Release. Nearly every change between the original |
49 |
fork date of February 24, 2006 and the release of FreeBSD 6.1 in May |
50 |
2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and |
51 |
will not sync every little change with FreeBSD. |
52 |
|
53 |
20061231: |
54 |
Updated COPYRIGHT for 2007. |
55 |
|
56 |
Updated and bumped libutil after importing NetBSD efun(3) functions. |
57 |
|
58 |
Added MidnightBSD_version and bumped the FreeBSD version as we've |
59 |
synced all commits between the fork and that version. It is now safe |
60 |
to assume MidnightBSD is compatible with FreeBSD RELENG_6 from |
61 |
Feb 26, 2006. |
62 |
|
63 |
Added spell(1) and deroff(1) from NetBSD. Also added additional |
64 |
dict files to work with it. /usr/share/dict/american, |
65 |
/usr/share/dict/british and /usr/share/dict/special/math |
66 |
|
67 |
Numerous man page and bug fixes. |
68 |
|
69 |
20061226: |
70 |
Setup /usr/share/examples/cvsup SUPfiles for the new |
71 |
MidnightBSD CVSup server. |
72 |
|
73 |
Fix a bug in burncd where it would continue forever while |
74 |
erasing CDRW media. |
75 |
|
76 |
Add csup to /usr/bin. csup is a CVSup replacement written |
77 |
in C. |
78 |
|
79 |
Fixed a bug with bsnmpd build from Oct 30. |
80 |
|
81 |
Corrected some race conditions and fixed a few bugs in |
82 |
geom. Imported changes from FreeBSD RELENG_6. |
83 |
|
84 |
20061225: |
85 |
Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c |
86 |
that caused long double to long and long long |
87 |
conversion of negative numbers to always result in -1. |
88 |
|
89 |
20061221: |
90 |
Fixed acpi_battery.c to not report an ERROR if no |
91 |
batteries are present. |
92 |
|
93 |
Performed some minor updates on the RL and RE NIC drivers. |
94 |
RL should no longer panic when trying to print errors. |
95 |
|
96 |
Corrected a bug with TTY. |
97 |
|
98 |
20061218: |
99 |
Corrected a bug with libpthread where newly created suspended |
100 |
threads don't get scheduled. |
101 |
|
102 |
20061206: |
103 |
Fixed a typo with the firewire security patch. |
104 |
|
105 |
20061129: |
106 |
Minor cleanups to utilities in bin. |
107 |
|
108 |
Fixed msdos file system short file name behavior to match |
109 |
FreeBSD. |
110 |
|
111 |
20061031: |
112 |
Updated man pages in section 7. |
113 |
|
114 |
20061030: |
115 |
Updated sys/dev/drm to support intel 915 and radeon |
116 |
r300 cards properly. |
117 |
|
118 |
Synced snmpd with FreeBSD-stable. |
119 |
|
120 |
Fixed a bug in rm which could cause data loss. |
121 |
|
122 |
20061027: |
123 |
Added Intel ICH8 and nForce 5 support to ATA. cam, mpt, |
124 |
random, kbdmux, atkbd, and usb were updated. Changes |
125 |
to clearing registers on SSE enabled processors (i386) |
126 |
commited. |
127 |
|
128 |
lukemftpd updated. |
129 |
|
130 |
openssh rc script was altered which effects initial |
131 |
seeding. |
132 |
|
133 |
20061014: |
134 |
Workaround for em driver problem on shared IRQ. |
135 |
|
136 |
Started removal of alpha support. |
137 |
|
138 |
20061013: |
139 |
ATA driver was updated. USB/USB1/USB2 types added. |
140 |
|
141 |
20061010: |
142 |
OpenSSH was updated to 4.4p1. |
143 |
|
144 |
20060909: |
145 |
OpenNTPD was added to MidnightBSD. Run make delete-old to remove |
146 |
the old ntpd daemon. |
147 |
|
148 |
cat has a new option -D which allows you to timestamp output |
149 |
on a per line basis. |
150 |
|
151 |
The kernel has a keyboard mux which allows you to have multiple |
152 |
keyboard connected simultaneously. USB keyboard support was also |
153 |
improved with this patch. |
154 |
|
155 |
The Intel em driver was updated. Network performance was greatly |
156 |
increased on many systems. Additional models are supported. |
157 |
|
158 |
The ATA driver was patched to fix a potential deadlock. |
159 |
|
160 |
Bind was patched to fix a potential denial of service condition. |
161 |
|
162 |
20060817: |
163 |
ksh has been added to the base system. If you previously had |
164 |
the port installed, it will be overwritten on the next buildworld. |
165 |
|
166 |
|
167 |
|
168 |
To build a kernel |
169 |
----------------- |
170 |
If you are updating from a prior version of MidnightBSD (even one just |
171 |
a few days old), you should follow this procedure. With a |
172 |
/usr/obj tree with a fresh buildworld, |
173 |
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE |
174 |
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE |
175 |
|
176 |
To test a kernel once |
177 |
--------------------- |
178 |
If you just want to boot a kernel once (because you are not sure |
179 |
if it works, or if you want to boot a known bad kernel to provide |
180 |
debugging information) run |
181 |
make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel |
182 |
nextboot -k testkernel |
183 |
|
184 |
To just build a kernel when you know that it won't mess you up |
185 |
-------------------------------------------------------------- |
186 |
This assumes you are already running a 6.X system. Replace |
187 |
${arch} with the architecture of your machine (e.g. "i386", |
188 |
"amd64", "ia64", "pc98", "sparc64", etc). |
189 |
|
190 |
cd src/sys/${arch}/conf |
191 |
config KERNEL_NAME_HERE |
192 |
cd ../compile/KERNEL_NAME_HERE |
193 |
make depend |
194 |
make |
195 |
make install |
196 |
|
197 |
If this fails, go to the "To build a kernel" section. |
198 |
|
199 |
To rebuild everything and install it on the current system. |
200 |
----------------------------------------------------------- |
201 |
# Note: sometimes if you are running current you gotta do more than |
202 |
# is listed here if you are upgrading from a really old current. |
203 |
|
204 |
<make sure you have good level 0 dumps> |
205 |
make buildworld |
206 |
make kernel KERNCONF=YOUR_KERNEL_HERE |
207 |
[1] |
208 |
<reboot in single user> [3] |
209 |
mergemaster -p [5] |
210 |
make installworld |
211 |
make delete-old |
212 |
mergemaster [4] |
213 |
<reboot> |
214 |
|
215 |
|
216 |
To cross-install current onto a separate partition |
217 |
-------------------------------------------------- |
218 |
# In this approach we use a separate partition to hold |
219 |
# current's root, 'usr', and 'var' directories. A partition |
220 |
# holding "/", "/usr" and "/var" should be about 2GB in |
221 |
# size. |
222 |
|
223 |
<make sure you have good level 0 dumps> |
224 |
<boot into -stable> |
225 |
make buildworld |
226 |
make buildkernel KERNCONF=YOUR_KERNEL_HERE |
227 |
<maybe newfs current's root partition> |
228 |
<mount current's root partition on directory ${CURRENT_ROOT}> |
229 |
make installworld DESTDIR=${CURRENT_ROOT} |
230 |
cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd |
231 |
make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} |
232 |
cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd |
233 |
<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> |
234 |
<reboot into current> |
235 |
<do a "native" rebuild/install as described in the previous section> |
236 |
<maybe install compatibility libraries from src/lib/compat> |
237 |
<reboot> |
238 |
|
239 |
|
240 |
To upgrade in-place from 5.x-stable or higher to 6.x-stable |
241 |
----------------------------------------------------------- |
242 |
<make sure you have good level 0 dumps> |
243 |
make buildworld [9] |
244 |
make kernel KERNCONF=YOUR_KERNEL_HERE [8] |
245 |
[1] |
246 |
<reboot in single user> [3] |
247 |
mergemaster -p [5] |
248 |
make installworld |
249 |
make delete-old |
250 |
mergemaster -i [4] |
251 |
<reboot> |
252 |
|
253 |
Make sure that you've read the UPDATING file to understand the |
254 |
tweaks to various things you need. At this point in the life |
255 |
cycle of current, things change often and you are on your own |
256 |
to cope. The defaults can also change, so please read ALL of |
257 |
the UPDATING entries. |
258 |
|
259 |
Also, if you are tracking -current, you must be subscribed to |
260 |
freebsd-current@freebsd.org. Make sure that before you update |
261 |
your sources that you have read and understood all the recent |
262 |
messages there. If in doubt, please track -stable which has |
263 |
much fewer pitfalls. |
264 |
|
265 |
[1] If you have third party modules, such as vmware, you |
266 |
should disable them at this point so they don't crash your |
267 |
system on reboot. |
268 |
|
269 |
[3] From the bootblocks, boot -s, and then do |
270 |
fsck -p |
271 |
mount -u / |
272 |
mount -a |
273 |
cd src |
274 |
adjkerntz -i # if CMOS is wall time |
275 |
Also, when doing a major release upgrade, it is required that |
276 |
you boot into single user mode to do the installworld. |
277 |
|
278 |
[4] Note: This step is non-optional. Failure to do this step |
279 |
can result in a significant reduction in the functionality of the |
280 |
system. Attempting to do it by hand is not recommended and those |
281 |
that pursue this avenue should read this file carefully, as well |
282 |
as the archives of freebsd-current and freebsd-hackers mailing lists |
283 |
for potential gotchas. |
284 |
|
285 |
[5] Usually this step is a noop. However, from time to time |
286 |
you may need to do this if you get unknown user in the following |
287 |
step. It never hurts to do it all the time. |
288 |
|
289 |
[8] In order to have a kernel that can run the 5.x binaries |
290 |
needed to do an installworld, you must include the COMPAT_FREEBSD5 |
291 |
option in your kernel. Failure to do so may leave you with a system |
292 |
that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 |
293 |
is required to run the 5.x binaries on more recent kernels. |
294 |
|
295 |
Make sure that you merge any new devices from GENERIC since the |
296 |
last time you updated your kernel config file. |
297 |
|
298 |
[9] When checking out sources, you must include the -P flag to have |
299 |
cvs prune empty directories. |
300 |
|
301 |
If CPUTYPE is defined in your /etc/make.conf, make sure to use the |
302 |
"?=" instead of the "=" assignment operator, so that buildworld can |
303 |
override the CPUTYPE if it needs to. |
304 |
|
305 |
MAKEOBJDIRPREFIX must be defined in an environment variable, and |
306 |
not on the command line, or in /etc/make.conf. buildworld will |
307 |
warn if it is improperly defined. |
308 |
|
309 |
Copyright information: |
310 |
|
311 |
Copyright 1998-2005 M. Warner Losh. All Rights Reserved. |
312 |
|
313 |
Redistribution, publication, translation and use, with or without |
314 |
modification, in full or in part, in any form or format of this |
315 |
document are permitted without further permission from the author. |
316 |
|
317 |
THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR |
318 |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
319 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
320 |
DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, |
321 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
322 |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
323 |
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
324 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
325 |
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
326 |
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
327 |
POSSIBILITY OF SUCH DAMAGE. |
328 |
|
329 |
If you find this document useful, and you want to, you may buy the |
330 |
author a beer. |
331 |
|
332 |
Contact Warner Losh if you have any questions about your use of |
333 |
this document. |
334 |
|
335 |
$FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $ |
336 |
$MidnightBSD: src/UPDATING,v 1.14 2007/03/14 03:37:31 laffer1 Exp $ |