ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Download File | Root Listing
root/midnightbsd-cvs/src/UPDATING
Revision: 1.43
Committed: Fri Sep 5 19:02:59 2008 UTC (15 years, 7 months ago) by laffer1
Branch: MAIN
Changes since 1.42: +4 -1 lines
Log Message:
Update nve(4) to support newer hardware.

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 20080905:
7 update nve(4) to support new hardware.
8
9 20080801:
10 Import OpenBSM 1.0
11
12 Modify src/release to create 3 isos instead of 2 for packages.
13
14 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
15
16 Many ia64, alpha, powerpc items were removed.
17
18 The recent diffutils 2.8.7 import was fixed.
19
20 20080703:
21 pcc was not installed properly when setting DESTDIR for live cds,
22 or posibly jails.
23
24 20080627:
25 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
26
27 Add glabel to GENERIC.
28
29 Intel ICH8 mobile chipset used on some iMacs included with ata.
30
31 pcc connected to the build on i386. (alternative compiler)
32
33 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
34
35 20080528:
36 Sendmail 8.14.3
37
38 20080516:
39 ssh-vulnkey allows you to look for vulnerable ssh keys that
40 were generated on Debian and Ubuntu hosts over the last
41 few years. sshd can block offending keys with a configuration
42 option.
43
44 The elf note on binaries is now set to MidnightBSD.
45
46 20080514:
47 Fixed a number of problems with pcc. It is not yet connected
48 to the build, but usable on i386 hosts. You may use it
49 by make; make install in /usr/src/usr.bin/pcc. It will
50 install in /usr/local as some of the files conflict with
51 GCC versions. __MidnightBSD__ is defined in PCC as well.
52
53 System headers were fixed to allow pcc to compile many binaries
54 on MidnightBSD. bin/cp will work now for instance.
55
56 20080430:
57 __MidnightBSD__ is now defined via gcc. This can be tested
58 to determine we're running on MidnightBSD in the preprocessor.
59
60 20080429:
61 Import bind 9.4.2 with threading
62
63 libpthread (KSE) and libthr are built earlier
64
65 pcvt(4) removed!
66
67 Alias added for core2 cpus.
68
69 Alpha and PC98 only utilities removed from usr/sbin
70
71 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
72 improved. See the man pages for info.
73
74 periodic scripts will not send emails with empty message bodies.
75 See mailwrapper fix.
76
77 20080410:
78 Sync cpdup with DragonFly. Add parallel transaction support and
79 -l flag to line-buffer stdout and stderr.
80
81 20080406:
82 Import bzip2 1.05
83 Import OpenSSH 4.9p1
84
85 20080322:
86 The default umask was changed to 022.
87
88 /usr/X11R6 paths were removed from several config files.
89
90 .mkshrc files are now installed for root.
91
92 20080316:
93 FIx a problem with gif0 tunnels and neighbors with IPV6.
94
95 20080312:
96 Add lndir from X.org. This aides in the porting of MirPorts.
97
98 New OS versions were added to the mapage code (groff)
99
100 20080310:
101 Correct a buffer overflow in ppp.
102
103 20080308:
104 Remove /usr/X11R6 from manpath config.
105
106 20080307:
107 Atheros driver no longer has several options set
108 which corrects building in tinderbox on all three platforms.
109
110 Added a new macro to sx.h which returns true if the current
111 thread holds an exclusive lock on a specifix sx.
112
113 Removed OS/2's HPFS file system. It's not maintained and
114 I don't know anyone using OS/2 or ecomstation these days.
115 My copy is in the closet collecting dust.
116
117 20080306:
118 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
119 Developers can now use it to check src builds.
120
121 20080303:
122 Add mksh to /etc/shells, made some adjustments to options
123 for mksh builds per suggestion upstream.
124
125 USB HID table updated with modern hardware list.
126
127 Updated BSD family true (we're not in there yet)
128
129 iso3166 file updated and import of tzdata2007k for
130 new time zones.
131
132 Updated mksh to latest version R33.
133
134 20080228:
135 Remplaced the random IP id generation code with a new
136 version by Amit Klein.
137
138 20080221:
139 Sendfile write only permissions fix.
140
141 Removed some HPFS and PC98 code.
142
143 iso639 file sycned with DragonFly.
144
145 20080128:
146 Changed NTP configuration so that ips aren't cached
147 so multiple servers are used.
148
149 Fix an issue with fork() in libpthread.
150
151 20080121:
152 Add virtualization detection to set the HZ rate
153 according to a VM present. VMWare and Parallels
154 should work better like this.
155
156 Change to full x11 install in sysinstall. Add
157 xorg 7 support.
158
159 20080115:
160 Fix the handling of PTY's. CVE-2008-0216
161
162 20080105:
163 mport delete code added, USE_MPORT_TOOLS knob aded.
164
165 20080101:
166 Happy New Year
167
168 20071123:
169 Update sendmail to 8.14.2
170
171 20071120:
172 Update system compiler to gcc 3.4.6.
173
174 20071023:
175 Updated mksh to R31d.
176
177 20070911:
178 Updated mksh to version R31b.
179
180 Fixed stderr output in libpthread. Previously it was
181 written to stdout.
182
183 20070831:
184 Added dot.mkshrc file to support the recent change to
185 mksh from OpenBSD's ksh derived from pdksh.
186
187 Added new firewall configuration. ipfw is enabled by default
188 with a "desktop" configuration. Consult /etc/rc.firewall
189 or ipfw show to see the ruleset used. You can disable
190 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
191 change only effects IPv4. IPv6 does not have a firewall
192 enabled by default.
193
194 20070814:
195 Removed GNU tar source. We've been using BSD tar
196 for awhile.
197
198 20070806:
199 Finished removing umapfs and autofs from the tree.
200
201 20070804:
202 BIND and Tcpdump have been patched for recent vulnerabilities.
203
204 We switched to BSD cpio (pax).
205
206 20070719:
207 Imported cpdup from DragonFly as /bin/cpdup
208
209 20070716:
210 Update GNU cpio to 2.8.
211
212 20070410:
213 cvs was updated to 1.12.13. cvsbug was removed.
214 cvs now behaves similarly to DragonFly's cvs with
215 most of their local changes.
216
217 20070409:
218 RELENG_0_1 was created. More aggresive changes will
219 continue here.
220
221 20070406:
222 Back out propolice. propolice caused several problems
223 with our threading libraries libthr and libpthread.
224 curthread was often NULL after the patch and many
225 multithreaded applications would crash. We plan to
226 work on either bringing in gcc 4.1 or developing a new
227 patch which also corrects our threading issues later.
228
229 It is more important to have a stable system for our
230 mport work and other projects at this time.
231
232 This is not a clean removal. It is recommended that you
233 have a recently SNAP CD handy. You can either reinstall
234 or perform a make buildworld and make buildkernel and
235 make installkernel. Reboot on the cd and copy the contents
236 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
237 /usr/lib, and /usr/libexec to the respective directories on
238 your disk. Then you should be able to boot into single user
239 mode and run make installworld. You will need to run
240 chflags noschg on some of the files if you can't overwrite
241 them.
242
243 You will get __guard missing errors since we had to remove
244 this from libc.
245
246 You will need to rebuild any ports built while propolice was
247 installed.
248
249 20070401:
250 Importing propolice into MidnightBSD. Propolice is going to
251 provide us with much greater security and stability in the
252 long run. If upgrading from a pre-propolice system, please
253 follow the these instructions:
254
255 cd /usr/src/lib/libc && make obj && make && make install
256 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
257 cd /usr/src/lib/libpthread && make obj && make && make install
258 cd /usr/src/lib/libthr && make obj && make && make install
259 buildworld and kernel
260
261 It is adviced that any mports which were installed and/or built
262 prior to the propolice update also be updated. If any errors
263 or issue are encounted, please contact security@midnightbsd.org
264 and we will be sure to investigate and come up with an expeditious
265 fix.
266
267 20070314:
268 Remove send-pr from src.
269
270 Switch to NetBSD's gzip.
271
272 Bump MBSD minor revision.
273
274 20070313:
275 Imported OpenSSH 4.6p1.
276
277 Imported FreeBSD's libarchive and updated tar to work with it.
278
279 Disabled debug statements cluttering up /var/log/messages for
280 the tcp autobuf patch applied previously.
281
282 20070312:
283 Synced several audio changes from FreeBSD 6.1. Removed the
284 BSD Daemon files from src/share.
285
286 20070308:
287 Added mfi which supports LSI Logic MegaRAID SAS devices including
288 the Dell perc5i.
289
290 20070206:
291 Imported OpenBSD's sudo into source. Please install
292 /usr/src/usr.bin/sudo/lib first before building.
293
294 Those who install from a snapshot after this date
295 will not be effected.
296
297 20070119:
298 Added audit group. Be sure to add audit to your /etc/group file
299 before installing world.
300
301 hostapd was updated to 0.4.8.
302
303 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
304 unbreak world.
305
306 wpa_supplicant was updated.
307
308 For stability and compatibility reasons, it was decided that MidnightBSD
309 sync with FreeBSD 6.1 Release. Nearly every change between the original
310 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
311 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
312 will not sync every little change with FreeBSD.
313
314 20061231:
315 Updated COPYRIGHT for 2007.
316
317 Updated and bumped libutil after importing NetBSD efun(3) functions.
318
319 Added MidnightBSD_version and bumped the FreeBSD version as we've
320 synced all commits between the fork and that version. It is now safe
321 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
322 Feb 26, 2006.
323
324 Added spell(1) and deroff(1) from NetBSD. Also added additional
325 dict files to work with it. /usr/share/dict/american,
326 /usr/share/dict/british and /usr/share/dict/special/math
327
328 Numerous man page and bug fixes.
329
330 20061226:
331 Setup /usr/share/examples/cvsup SUPfiles for the new
332 MidnightBSD CVSup server.
333
334 Fix a bug in burncd where it would continue forever while
335 erasing CDRW media.
336
337 Add csup to /usr/bin. csup is a CVSup replacement written
338 in C.
339
340 Fixed a bug with bsnmpd build from Oct 30.
341
342 Corrected some race conditions and fixed a few bugs in
343 geom. Imported changes from FreeBSD RELENG_6.
344
345 20061225:
346 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
347 that caused long double to long and long long
348 conversion of negative numbers to always result in -1.
349
350 20061221:
351 Fixed acpi_battery.c to not report an ERROR if no
352 batteries are present.
353
354 Performed some minor updates on the RL and RE NIC drivers.
355 RL should no longer panic when trying to print errors.
356
357 Corrected a bug with TTY.
358
359 20061218:
360 Corrected a bug with libpthread where newly created suspended
361 threads don't get scheduled.
362
363 20061206:
364 Fixed a typo with the firewire security patch.
365
366 20061129:
367 Minor cleanups to utilities in bin.
368
369 Fixed msdos file system short file name behavior to match
370 FreeBSD.
371
372 20061031:
373 Updated man pages in section 7.
374
375 20061030:
376 Updated sys/dev/drm to support intel 915 and radeon
377 r300 cards properly.
378
379 Synced snmpd with FreeBSD-stable.
380
381 Fixed a bug in rm which could cause data loss.
382
383 20061027:
384 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
385 random, kbdmux, atkbd, and usb were updated. Changes
386 to clearing registers on SSE enabled processors (i386)
387 commited.
388
389 lukemftpd updated.
390
391 openssh rc script was altered which effects initial
392 seeding.
393
394 20061014:
395 Workaround for em driver problem on shared IRQ.
396
397 Started removal of alpha support.
398
399 20061013:
400 ATA driver was updated. USB/USB1/USB2 types added.
401
402 20061010:
403 OpenSSH was updated to 4.4p1.
404
405 20060909:
406 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
407 the old ntpd daemon.
408
409 cat has a new option -D which allows you to timestamp output
410 on a per line basis.
411
412 The kernel has a keyboard mux which allows you to have multiple
413 keyboard connected simultaneously. USB keyboard support was also
414 improved with this patch.
415
416 The Intel em driver was updated. Network performance was greatly
417 increased on many systems. Additional models are supported.
418
419 The ATA driver was patched to fix a potential deadlock.
420
421 Bind was patched to fix a potential denial of service condition.
422
423 20060817:
424 ksh has been added to the base system. If you previously had
425 the port installed, it will be overwritten on the next buildworld.
426
427
428
429 To build a kernel
430 -----------------
431 If you are updating from a prior version of MidnightBSD (even one just
432 a few days old), you should follow this procedure. With a
433 /usr/obj tree with a fresh buildworld,
434 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
435 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
436
437 To test a kernel once
438 ---------------------
439 If you just want to boot a kernel once (because you are not sure
440 if it works, or if you want to boot a known bad kernel to provide
441 debugging information) run
442 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
443 nextboot -k testkernel
444
445 To just build a kernel when you know that it won't mess you up
446 --------------------------------------------------------------
447 This assumes you are already running a 6.X system. Replace
448 ${arch} with the architecture of your machine (e.g. "i386",
449 "amd64", "ia64", "pc98", "sparc64", etc).
450
451 cd src/sys/${arch}/conf
452 config KERNEL_NAME_HERE
453 cd ../compile/KERNEL_NAME_HERE
454 make depend
455 make
456 make install
457
458 If this fails, go to the "To build a kernel" section.
459
460 To rebuild everything and install it on the current system.
461 -----------------------------------------------------------
462 # Note: sometimes if you are running current you gotta do more than
463 # is listed here if you are upgrading from a really old current.
464
465 <make sure you have good level 0 dumps>
466 make buildworld
467 make kernel KERNCONF=YOUR_KERNEL_HERE
468 [1]
469 <reboot in single user> [3]
470 mergemaster -p [5]
471 make installworld
472 make delete-old
473 mergemaster [4]
474 <reboot>
475
476
477 To cross-install current onto a separate partition
478 --------------------------------------------------
479 # In this approach we use a separate partition to hold
480 # current's root, 'usr', and 'var' directories. A partition
481 # holding "/", "/usr" and "/var" should be about 2GB in
482 # size.
483
484 <make sure you have good level 0 dumps>
485 <boot into -stable>
486 make buildworld
487 make buildkernel KERNCONF=YOUR_KERNEL_HERE
488 <maybe newfs current's root partition>
489 <mount current's root partition on directory ${CURRENT_ROOT}>
490 make installworld DESTDIR=${CURRENT_ROOT}
491 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
492 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
493 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
494 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
495 <reboot into current>
496 <do a "native" rebuild/install as described in the previous section>
497 <maybe install compatibility libraries from src/lib/compat>
498 <reboot>
499
500
501 To upgrade in-place from 5.x-stable or higher to 6.x-stable
502 -----------------------------------------------------------
503 <make sure you have good level 0 dumps>
504 make buildworld [9]
505 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
506 [1]
507 <reboot in single user> [3]
508 mergemaster -p [5]
509 make installworld
510 make delete-old
511 mergemaster -i [4]
512 <reboot>
513
514 Make sure that you've read the UPDATING file to understand the
515 tweaks to various things you need. At this point in the life
516 cycle of current, things change often and you are on your own
517 to cope. The defaults can also change, so please read ALL of
518 the UPDATING entries.
519
520 Also, if you are tracking -current, you must be subscribed to
521 freebsd-current@freebsd.org. Make sure that before you update
522 your sources that you have read and understood all the recent
523 messages there. If in doubt, please track -stable which has
524 much fewer pitfalls.
525
526 [1] If you have third party modules, such as vmware, you
527 should disable them at this point so they don't crash your
528 system on reboot.
529
530 [3] From the bootblocks, boot -s, and then do
531 fsck -p
532 mount -u /
533 mount -a
534 cd src
535 adjkerntz -i # if CMOS is wall time
536 Also, when doing a major release upgrade, it is required that
537 you boot into single user mode to do the installworld.
538
539 [4] Note: This step is non-optional. Failure to do this step
540 can result in a significant reduction in the functionality of the
541 system. Attempting to do it by hand is not recommended and those
542 that pursue this avenue should read this file carefully, as well
543 as the archives of freebsd-current and freebsd-hackers mailing lists
544 for potential gotchas.
545
546 [5] Usually this step is a noop. However, from time to time
547 you may need to do this if you get unknown user in the following
548 step. It never hurts to do it all the time.
549
550 [8] In order to have a kernel that can run the 5.x binaries
551 needed to do an installworld, you must include the COMPAT_FREEBSD5
552 option in your kernel. Failure to do so may leave you with a system
553 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
554 is required to run the 5.x binaries on more recent kernels.
555
556 Make sure that you merge any new devices from GENERIC since the
557 last time you updated your kernel config file.
558
559 [9] When checking out sources, you must include the -P flag to have
560 cvs prune empty directories.
561
562 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
563 "?=" instead of the "=" assignment operator, so that buildworld can
564 override the CPUTYPE if it needs to.
565
566 MAKEOBJDIRPREFIX must be defined in an environment variable, and
567 not on the command line, or in /etc/make.conf. buildworld will
568 warn if it is improperly defined.
569
570 Copyright information:
571
572 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
573
574 Redistribution, publication, translation and use, with or without
575 modification, in full or in part, in any form or format of this
576 document are permitted without further permission from the author.
577
578 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
579 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
580 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
581 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
582 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
583 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
584 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
585 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
586 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
587 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
588 POSSIBILITY OF SUCH DAMAGE.
589
590 If you find this document useful, and you want to, you may buy the
591 author a beer.
592
593 Contact Warner Losh if you have any questions about your use of
594 this document.
595
596 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
597 $MidnightBSD: src/UPDATING,v 1.42 2008/09/02 02:02:36 laffer1 Exp $