ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 1055
Committed: Thu Jul 19 06:46:44 2007 UTC (16 years, 10 months ago) by laffer1
File size: 13255 byte(s)
Log Message:
Forgot to log cpio upgrade.

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.22