ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3752
Committed: Wed Feb 9 00:30:41 2011 UTC (13 years, 3 months ago) by laffer1
File size: 28271 byte(s)
Log Message:
Bind 9.6.3

File Contents

# Content
1 Updating Information for MidnightBSD users
2
3 20110208:
4 BIND 9.6.3 which fixes a bug with DNSSEC records getting added.
5
6 20110206:
7 eeemon(4) added to monitor Asus Eee PC.
8
9 20110205:
10 OpenSSH 5.7p1
11
12 GNU sort 6.9 (coreutils)
13
14 20110203:
15 one true awk 20100523 imported
16
17 sqlite 3.7.5
18
19 OpenSSL 0.9.8q
20
21 20110202:
22 tcsh 6.17.00
23
24 file 5.05
25
26 20110122:
27 Import it(4) and lm(4), with support for Super I/O hardware monitors. This
28 uses the sensors framework ported by Constantine A. Murenin (GSOC2007)
29
30 20110120:
31 BIND 9.6.2-P3
32
33 sudo 1.7.4-p6
34
35 20110115:
36 Add experimental jme(4) for Jmicron ethernet devices.
37
38 20101130:
39 A double free exists in the SSL client ECDH handling code, when
40 processing specially crafted public keys with invalid prime
41 numbers. [CVE-2010-2939]
42
43 20101120:
44 Several portions of the kernel and userland code related to UFS file
45 systems (and UFS2) cannot properly handle inode counts above 2^31 due
46 to use of int types. Based on a patch from FreeBSD, I've modified
47 our UFS2 implementation to handle unsigned values for inode counts
48 which should allow for file systems greater than 16TB.
49
50 newfs and growfs was also modified.
51
52 20101110:
53 Fix a security issue with pseudofs which could result in running code in kernel
54 context or a kernel panic depending on system configuration. This affects file
55 systems such as procfs for instance.
56
57 20101021:
58 sysrc is a utility to print and modify name/value pairs in /etc/rc.conf easily.
59 This is similar to functions present in many linux distros. The utility was
60 written by Devin Teske for FreeBSD.
61
62 20100920:
63 bzip2 security patch for integer overflow.
64
65 20100905:
66 MidnightBSD RELENG_0_3 branch created. Aggressive development continues here
67 for 0.4.
68
69 20100902:
70 Fix a security issue with libutil that allows users to bypass cpu limits in
71 login.conf in some cases. This combined with OpenSSH for example can allow
72 the user to get more resources than they're allowed.
73
74 20100822:
75 Import Apple's mDNSResponder (mdnsd).
76
77 20100814:
78 libdispatch added to MidnightBSD. This provides functionality found in
79 Mac OS X's GCD. We do not have blocks support yet. As this code is
80 licensed under Apache 2, we create a new MK_APACHE option so that
81 it's not required for all users to run code under a license they
82 may not like.
83
84 20100713:
85 mbuf readonly fix related to sendfile(2) data corruption.
86
87 20100704:
88 brainfuck(1) imported from MirBSD.
89
90 20100505:
91 zlib 1.2.5
92
93 20100430:
94 Sudo 1.7.2p6 imported
95
96 20100321:
97 Update zlib to 1.2.4
98
99 20100319:
100 Removed i586 from default i386 generic kernel.
101
102 20100317:
103 Update to tzdata2010e (time zones). This includes changes in
104 Mexico.
105
106 Add support for several newer sound cards via hda including
107 ATI and Realtek chipsets.
108
109 20100313:
110 CPU detection has been changed. VIA Padlock detection added.
111
112 20100312:
113 Fix a number of bugs and compiler warnings in libmport. Handle
114 plus signs in paths for mport.check-fake
115
116 20100311:
117 mksh R39c
118
119 20100309:
120 Sudo 1.7.2p5
121
122 sqlite3 3.6.23
123
124 mksh R39b
125
126 libffi (ffi) 3.0.9
127
128 20100206:
129 WITHOUT_LIB32 is no longer needed on AMD64. GCC was fixed to
130 properly pass arguments to ld.
131
132 re(4) and rl(4) have been updated to support several new
133 realtek chipsets. Performance has been improved on re(4).
134
135 20100204:
136 Fix a bug cropping up on AMD64 MidnightBSD with sftp
137 segfaulting.
138
139 20100116:
140 Import ash changes from FreeBSD (bin/sh) 8-Stable.
141
142 BIND 9.6.1-P2
143
144 20100110:
145 Import Sendmail 8.14.4. Fix for SSL vulnerability.
146
147 posix_spawn(3) added to MidnightBSD libc. Users may need to build and
148 install libc before doing a full buildworld when upating from 0.2 or
149 older current systems.
150
151 kqueue(2) was modified to support portions of libdispatch functionality.
152
153 20100106:
154 Bind security update. Fix a bug with DNSSEC that causes negative
155 cache entries and thus a possible DNS cache poisoning attack.
156
157 Fix a bug in ZFS that can reset permissions on system crashes.
158
159 20091228:
160 amdtemp(4) was added. It allows one to monitor to the temperature
161 of an AMD CPU such as a Phenom.
162
163 20091205:
164 OpenSSL security fix
165
166 The SSL version 3 and TLS protocols support session renegotiation without
167 cryptographically tying the new session parameters to the old parameters.
168
169 20091128:
170 OpenBSD sensors framework imported including sensorsd(8)
171
172 20091126:
173 OpenNTPD 4.4 import
174
175 Update OpenSSH to 5.3p1
176
177 mksh R39
178
179 20091124:
180 cpdup updated from DragonFly to 1.15
181
182 tzdata2009s updated with latest timezone data for November 2009.
183
184 20091010:
185 amd64 users should use WITHOUT_LIB32=yes in /etc/make.conf for now
186 to test current.
187
188 Revert unicode filename fixes from ntfs code. This was causing chaos
189 on amd64 systems.
190
191 20091006:
192 Update timezone data with tzdata2009n with the Pakistan and
193 Argentina changes.
194
195 Sync several userland utilities with versions from FreeBSD 7.0 in
196 sbin and usr.sbin.
197
198 20090919:
199 Update timezone data with tzdate2009m from September 2009.
200
201 20090729:
202 Patch for Bind 9 security vulnerability. a dynmaic update packet
203 can trigger an assertion and cause named to exit
204
205 20090606:
206 Remove PCC from the base system. This compiler will not work
207 as a system compiler for us as we've got some userland investment
208 in C++ code and may have Objective-C in the future. We're stuck
209 with a solution that supports these three languages at a minimum.
210
211 I had wanted to keep it as an optional compiler because it is
212 fast, however too many users want to try to use it for the base
213 system which makes no sense.
214
215 A hack was added for Cypress based usb hard drive enclosures to
216 the kernel. This should cut down on commands it claims to support
217 but does not (at the cam layer). Found while testing ZFS on
218 an external device.
219
220 20090520:
221 The powerd daemon no longer starts automatically to improve
222 compatibility with many systems. However, there is a new
223 installer option in the startup section to enable it. This
224 makes it easier to enable for users that have working systems. I thought it was only a problem on older hardware, but it freaks
225 out my new Phenom too.
226
227 20090502:
228 OpenSSH 5.2p1 import
229
230 ale(4) connected to the build. (kernel module only)
231
232 20090501:
233 Imported makefs utility from NetBSD/FreeBSD
234
235 20090422:
236 OpenSSL security update
237
238 The function ASN1_STRING_print_ex does not properly validate the lengths
239 of BMPString or UniversalString objects before attempting to print them.
240
241 20090415:
242 Created a Symbol.map for libc/ohash symbols
243
244 Updated several usr/bin usr/sbin utilities.
245
246 Corrected a bug with Makefile.inc1 causing the bootstrap
247 tools to fail.
248
249 20090405:
250 xorg 7.4 wants to configure its input devices via hald which does not
251 yet work with USB. If the keyboard/mouse does not work in xorg then
252 add
253 Option "AllowEmptyInput" "off"
254 to your ServerLayout section. This will cause X to use the configured
255 kbd and mouse sections from your xorg.conf
256
257 20090403:
258 mksh was disconnected a few day ago do to bugs with
259 buildworld and mports. Now, connect it back
260 for use as /bin/sh with a conditional called
261 MK_ASH. By default, ash is the standard /bin/sh
262 but we may change this later. This will allow further
263 testing by users and developers of mksh without
264 causing an unpleasant default experience. In the
265 long run, we need to fix mksh compatibility.
266
267 20090328:
268 Bring in mksh R37 from CVS. The dot.mkshrc files for root
269 and skel were changed. mksh(1) now replaces ash aka sh(1)
270 as the default /bin/sh. Please report bugs with
271 ports, etc. The ash code will remain in the repo for awhile
272 as I decide if we'll add something like MK_SHELL_ASH as
273 an optional build parameter.
274
275 ahd was disconnected from the lint environment until
276 the compiler bug is sorted (by updating gcc?)
277
278 Remove freebsd-tips from fortune files and change the
279 default for login and profile.
280
281 20090327:
282 Update libarchive to 2.5.5, tar, and add bsdcpio.
283
284 Also previously, ctriv has been connecting Perl 5.10
285 to the build (part of os). This will have an impact
286 on mports.
287
288 20090325:
289 Update Bind to 9.4.3-P1
290
291 Update mksh to R36b
292
293 Update tcpdump to 3.9.8, fix libpcap to work with current.
294
295 Update pnpinfo, sync with FreeBSD.
296
297 20090115:
298 Fix a problem with DNSSEC and BIND.
299
300 20090110:
301 For applications using OpenSSL for SSL connections, an invalid SSL
302 certificate may be interpreted as valid. This could for example be
303 used by an attacker to perform a man-in-the-middle attack.
304
305 Other applications which use the OpenSSL EVP API may similarly be
306 affected.
307
308 Stop cross site request forgery attacks in lukemftpd
309
310 20090104:
311 Import GNU libreadline 5.2
312
313 20090101:
314 Update time zone data to 2008i.
315
316 20081231:
317 Correct a problem where bluetooth and netgraph sockets are not
318 properly initialized.
319
320 Happy 2009.
321
322 20081206:
323 Due to the massive change in the underlying system under way,
324 we're naming the next release 1.0. The sys/sys/param.h was
325 changed accordingly. ipfilter and ncurses were corrected
326 using __MidnightBSD__ tests in the code.
327
328 The GENERIC kernel config was caught up on i386 today. Consider
329 i386 still broken, but amd64 is running again.
330
331 mdoc.local was updated with the new MidnightBSD version info.
332
333 batt(1) was rewritten in C. It now supports several flags and
334 runs about 8 times faster on my laptop. The default output
335 shows the number of minutes of battery life remaining and the
336 percentage. You can use -u to display the number of batteries or
337 -c to get script friendly output. Consult the man page for more.
338
339 20081204:
340 Work has completed on importing ZFS, jemalloc, several
341 new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel
342 support, improved locking for file desc., audit (openbsm),
343 openssl .98e, nfe, imporved intel high def audio, midi, updated
344 intel gigabit (em), support for several wifi cards (intel), ...
345
346 Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version
347 data from param.h instead of the FreeBSD version. This means
348 testing is now possible in the ports tree for the version
349 and that any ports or code relying on the FreeBSD version from
350 sys/sys/param.h will need to be fixed.
351
352 20080905:
353 update nve(4) to support new hardware.
354
355 20080801:
356 Import OpenBSM 1.0
357
358 Modify src/release to create 3 isos instead of 2 for packages.
359
360 etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats.
361
362 Many ia64, alpha, powerpc items were removed.
363
364 The recent diffutils 2.8.7 import was fixed.
365
366 20080703:
367 pcc was not installed properly when setting DESTDIR for live cds,
368 or posibly jails.
369
370 20080627:
371 Add firmware(9), WEP, CCMP, TKIP to GENERIC.
372
373 Add glabel to GENERIC.
374
375 Intel ICH8 mobile chipset used on some iMacs included with ata.
376
377 pcc connected to the build on i386. (alternative compiler)
378
379 ath added to GENERIC. (Atheros wireless NICs) on amd64/i386
380
381 20080528:
382 Sendmail 8.14.3
383
384 20080516:
385 ssh-vulnkey allows you to look for vulnerable ssh keys that
386 were generated on Debian and Ubuntu hosts over the last
387 few years. sshd can block offending keys with a configuration
388 option.
389
390 The elf note on binaries is now set to MidnightBSD.
391
392 20080514:
393 Fixed a number of problems with pcc. It is not yet connected
394 to the build, but usable on i386 hosts. You may use it
395 by make; make install in /usr/src/usr.bin/pcc. It will
396 install in /usr/local as some of the files conflict with
397 GCC versions. __MidnightBSD__ is defined in PCC as well.
398
399 System headers were fixed to allow pcc to compile many binaries
400 on MidnightBSD. bin/cp will work now for instance.
401
402 20080430:
403 __MidnightBSD__ is now defined via gcc. This can be tested
404 to determine we're running on MidnightBSD in the preprocessor.
405
406 20080429:
407 Import bind 9.4.2 with threading
408
409 libpthread (KSE) and libthr are built earlier
410
411 pcvt(4) removed!
412
413 Alias added for core2 cpus.
414
415 Alpha and PC98 only utilities removed from usr/sbin
416
417 syslogd, adduser, rmuser, mergemaster and mailwrapper have been
418 improved. See the man pages for info.
419
420 periodic scripts will not send emails with empty message bodies.
421 See mailwrapper fix.
422
423 20080410:
424 Sync cpdup with DragonFly. Add parallel transaction support and
425 -l flag to line-buffer stdout and stderr.
426
427 20080406:
428 Import bzip2 1.05
429 Import OpenSSH 4.9p1
430
431 20080322:
432 The default umask was changed to 022.
433
434 /usr/X11R6 paths were removed from several config files.
435
436 .mkshrc files are now installed for root.
437
438 20080316:
439 FIx a problem with gif0 tunnels and neighbors with IPV6.
440
441 20080312:
442 Add lndir from X.org. This aides in the porting of MirPorts.
443
444 New OS versions were added to the mapage code (groff)
445
446 20080310:
447 Correct a buffer overflow in ppp.
448
449 20080308:
450 Remove /usr/X11R6 from manpath config.
451
452 20080307:
453 Atheros driver no longer has several options set
454 which corrects building in tinderbox on all three platforms.
455
456 Added a new macro to sx.h which returns true if the current
457 thread holds an exclusive lock on a specifix sx.
458
459 Removed OS/2's HPFS file system. It's not maintained and
460 I don't know anyone using OS/2 or ecomstation these days.
461 My copy is in the closet collecting dust.
462
463 20080306:
464 Synced tinderbox with FreeBSD. Modified it for MidnightBSD.
465 Developers can now use it to check src builds.
466
467 20080303:
468 Add mksh to /etc/shells, made some adjustments to options
469 for mksh builds per suggestion upstream.
470
471 USB HID table updated with modern hardware list.
472
473 Updated BSD family true (we're not in there yet)
474
475 iso3166 file updated and import of tzdata2007k for
476 new time zones.
477
478 Updated mksh to latest version R33.
479
480 20080228:
481 Remplaced the random IP id generation code with a new
482 version by Amit Klein.
483
484 20080221:
485 Sendfile write only permissions fix.
486
487 Removed some HPFS and PC98 code.
488
489 iso639 file sycned with DragonFly.
490
491 20080128:
492 Changed NTP configuration so that ips aren't cached
493 so multiple servers are used.
494
495 Fix an issue with fork() in libpthread.
496
497 20080121:
498 Add virtualization detection to set the HZ rate
499 according to a VM present. VMWare and Parallels
500 should work better like this.
501
502 Change to full x11 install in sysinstall. Add
503 xorg 7 support.
504
505 20080115:
506 Fix the handling of PTY's. CVE-2008-0216
507
508 20080105:
509 mport delete code added, USE_MPORT_TOOLS knob aded.
510
511 20080101:
512 Happy New Year
513
514 20071123:
515 Update sendmail to 8.14.2
516
517 20071120:
518 Update system compiler to gcc 3.4.6.
519
520 20071023:
521 Updated mksh to R31d.
522
523 20070911:
524 Updated mksh to version R31b.
525
526 Fixed stderr output in libpthread. Previously it was
527 written to stdout.
528
529 20070831:
530 Added dot.mkshrc file to support the recent change to
531 mksh from OpenBSD's ksh derived from pdksh.
532
533 Added new firewall configuration. ipfw is enabled by default
534 with a "desktop" configuration. Consult /etc/rc.firewall
535 or ipfw show to see the ruleset used. You can disable
536 ipfw by setting firewall_enable="NO" in /etc/rc.conf This
537 change only effects IPv4. IPv6 does not have a firewall
538 enabled by default.
539
540 20070814:
541 Removed GNU tar source. We've been using BSD tar
542 for awhile.
543
544 20070806:
545 Finished removing umapfs and autofs from the tree.
546
547 20070804:
548 BIND and Tcpdump have been patched for recent vulnerabilities.
549
550 We switched to BSD cpio (pax).
551
552 20070719:
553 Imported cpdup from DragonFly as /bin/cpdup
554
555 20070716:
556 Update GNU cpio to 2.8.
557
558 20070410:
559 cvs was updated to 1.12.13. cvsbug was removed.
560 cvs now behaves similarly to DragonFly's cvs with
561 most of their local changes.
562
563 20070409:
564 RELENG_0_1 was created. More aggresive changes will
565 continue here.
566
567 20070406:
568 Back out propolice. propolice caused several problems
569 with our threading libraries libthr and libpthread.
570 curthread was often NULL after the patch and many
571 multithreaded applications would crash. We plan to
572 work on either bringing in gcc 4.1 or developing a new
573 patch which also corrects our threading issues later.
574
575 It is more important to have a stable system for our
576 mport work and other projects at this time.
577
578 This is not a clean removal. It is recommended that you
579 have a recently SNAP CD handy. You can either reinstall
580 or perform a make buildworld and make buildkernel and
581 make installkernel. Reboot on the cd and copy the contents
582 of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin,
583 /usr/lib, and /usr/libexec to the respective directories on
584 your disk. Then you should be able to boot into single user
585 mode and run make installworld. You will need to run
586 chflags noschg on some of the files if you can't overwrite
587 them.
588
589 You will get __guard missing errors since we had to remove
590 this from libc.
591
592 You will need to rebuild any ports built while propolice was
593 installed.
594
595 20070401:
596 Importing propolice into MidnightBSD. Propolice is going to
597 provide us with much greater security and stability in the
598 long run. If upgrading from a pre-propolice system, please
599 follow the these instructions:
600
601 cd /usr/src/lib/libc && make obj && make && make install
602 cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
603 cd /usr/src/lib/libpthread && make obj && make && make install
604 cd /usr/src/lib/libthr && make obj && make && make install
605 buildworld and kernel
606
607 It is adviced that any mports which were installed and/or built
608 prior to the propolice update also be updated. If any errors
609 or issue are encounted, please contact security@midnightbsd.org
610 and we will be sure to investigate and come up with an expeditious
611 fix.
612
613 20070314:
614 Remove send-pr from src.
615
616 Switch to NetBSD's gzip.
617
618 Bump MBSD minor revision.
619
620 20070313:
621 Imported OpenSSH 4.6p1.
622
623 Imported FreeBSD's libarchive and updated tar to work with it.
624
625 Disabled debug statements cluttering up /var/log/messages for
626 the tcp autobuf patch applied previously.
627
628 20070312:
629 Synced several audio changes from FreeBSD 6.1. Removed the
630 BSD Daemon files from src/share.
631
632 20070308:
633 Added mfi which supports LSI Logic MegaRAID SAS devices including
634 the Dell perc5i.
635
636 20070206:
637 Imported OpenBSD's sudo into source. Please install
638 /usr/src/usr.bin/sudo/lib first before building.
639
640 Those who install from a snapshot after this date
641 will not be effected.
642
643 20070119:
644 Added audit group. Be sure to add audit to your /etc/group file
645 before installing world.
646
647 hostapd was updated to 0.4.8.
648
649 An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
650 unbreak world.
651
652 wpa_supplicant was updated.
653
654 For stability and compatibility reasons, it was decided that MidnightBSD
655 sync with FreeBSD 6.1 Release. Nearly every change between the original
656 fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
657 2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
658 will not sync every little change with FreeBSD.
659
660 20061231:
661 Updated COPYRIGHT for 2007.
662
663 Updated and bumped libutil after importing NetBSD efun(3) functions.
664
665 Added MidnightBSD_version and bumped the FreeBSD version as we've
666 synced all commits between the fork and that version. It is now safe
667 to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
668 Feb 26, 2006.
669
670 Added spell(1) and deroff(1) from NetBSD. Also added additional
671 dict files to work with it. /usr/share/dict/american,
672 /usr/share/dict/british and /usr/share/dict/special/math
673
674 Numerous man page and bug fixes.
675
676 20061226:
677 Setup /usr/share/examples/cvsup SUPfiles for the new
678 MidnightBSD CVSup server.
679
680 Fix a bug in burncd where it would continue forever while
681 erasing CDRW media.
682
683 Add csup to /usr/bin. csup is a CVSup replacement written
684 in C.
685
686 Fixed a bug with bsnmpd build from Oct 30.
687
688 Corrected some race conditions and fixed a few bugs in
689 geom. Imported changes from FreeBSD RELENG_6.
690
691 20061225:
692 Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
693 that caused long double to long and long long
694 conversion of negative numbers to always result in -1.
695
696 20061221:
697 Fixed acpi_battery.c to not report an ERROR if no
698 batteries are present.
699
700 Performed some minor updates on the RL and RE NIC drivers.
701 RL should no longer panic when trying to print errors.
702
703 Corrected a bug with TTY.
704
705 20061218:
706 Corrected a bug with libpthread where newly created suspended
707 threads don't get scheduled.
708
709 20061206:
710 Fixed a typo with the firewire security patch.
711
712 20061129:
713 Minor cleanups to utilities in bin.
714
715 Fixed msdos file system short file name behavior to match
716 FreeBSD.
717
718 20061031:
719 Updated man pages in section 7.
720
721 20061030:
722 Updated sys/dev/drm to support intel 915 and radeon
723 r300 cards properly.
724
725 Synced snmpd with FreeBSD-stable.
726
727 Fixed a bug in rm which could cause data loss.
728
729 20061027:
730 Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
731 random, kbdmux, atkbd, and usb were updated. Changes
732 to clearing registers on SSE enabled processors (i386)
733 commited.
734
735 lukemftpd updated.
736
737 openssh rc script was altered which effects initial
738 seeding.
739
740 20061014:
741 Workaround for em driver problem on shared IRQ.
742
743 Started removal of alpha support.
744
745 20061013:
746 ATA driver was updated. USB/USB1/USB2 types added.
747
748 20061010:
749 OpenSSH was updated to 4.4p1.
750
751 20060909:
752 OpenNTPD was added to MidnightBSD. Run make delete-old to remove
753 the old ntpd daemon.
754
755 cat has a new option -D which allows you to timestamp output
756 on a per line basis.
757
758 The kernel has a keyboard mux which allows you to have multiple
759 keyboard connected simultaneously. USB keyboard support was also
760 improved with this patch.
761
762 The Intel em driver was updated. Network performance was greatly
763 increased on many systems. Additional models are supported.
764
765 The ATA driver was patched to fix a potential deadlock.
766
767 Bind was patched to fix a potential denial of service condition.
768
769 20060817:
770 ksh has been added to the base system. If you previously had
771 the port installed, it will be overwritten on the next buildworld.
772
773
774
775 To build a kernel
776 -----------------
777 If you are updating from a prior version of MidnightBSD (even one just
778 a few days old), you should follow this procedure. With a
779 /usr/obj tree with a fresh buildworld,
780 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
781 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
782
783 To test a kernel once
784 ---------------------
785 If you just want to boot a kernel once (because you are not sure
786 if it works, or if you want to boot a known bad kernel to provide
787 debugging information) run
788 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
789 nextboot -k testkernel
790
791 To just build a kernel when you know that it won't mess you up
792 --------------------------------------------------------------
793 This assumes you are already running a 6.X system. Replace
794 ${arch} with the architecture of your machine (e.g. "i386",
795 "amd64", "ia64", "pc98", "sparc64", etc).
796
797 cd src/sys/${arch}/conf
798 config KERNEL_NAME_HERE
799 cd ../compile/KERNEL_NAME_HERE
800 make depend
801 make
802 make install
803
804 If this fails, go to the "To build a kernel" section.
805
806 To rebuild everything and install it on the current system.
807 -----------------------------------------------------------
808 # Note: sometimes if you are running current you gotta do more than
809 # is listed here if you are upgrading from a really old current.
810
811 <make sure you have good level 0 dumps>
812 make buildworld
813 make kernel KERNCONF=YOUR_KERNEL_HERE
814 [1]
815 <reboot in single user> [3]
816 mergemaster -p [5]
817 make installworld
818 make delete-old
819 mergemaster [4]
820 <reboot>
821
822
823 To cross-install current onto a separate partition
824 --------------------------------------------------
825 # In this approach we use a separate partition to hold
826 # current's root, 'usr', and 'var' directories. A partition
827 # holding "/", "/usr" and "/var" should be about 2GB in
828 # size.
829
830 <make sure you have good level 0 dumps>
831 <boot into -stable>
832 make buildworld
833 make buildkernel KERNCONF=YOUR_KERNEL_HERE
834 <maybe newfs current's root partition>
835 <mount current's root partition on directory ${CURRENT_ROOT}>
836 make installworld DESTDIR=${CURRENT_ROOT}
837 cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
838 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
839 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
840 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
841 <reboot into current>
842 <do a "native" rebuild/install as described in the previous section>
843 <maybe install compatibility libraries from src/lib/compat>
844 <reboot>
845
846
847 To upgrade in-place from 5.x-stable or higher to 6.x-stable
848 -----------------------------------------------------------
849 <make sure you have good level 0 dumps>
850 make buildworld [9]
851 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
852 [1]
853 <reboot in single user> [3]
854 mergemaster -p [5]
855 make installworld
856 make delete-old
857 mergemaster -i [4]
858 <reboot>
859
860 Make sure that you've read the UPDATING file to understand the
861 tweaks to various things you need. At this point in the life
862 cycle of current, things change often and you are on your own
863 to cope. The defaults can also change, so please read ALL of
864 the UPDATING entries.
865
866 Also, if you are tracking -current, you must be subscribed to
867 freebsd-current@freebsd.org. Make sure that before you update
868 your sources that you have read and understood all the recent
869 messages there. If in doubt, please track -stable which has
870 much fewer pitfalls.
871
872 [1] If you have third party modules, such as vmware, you
873 should disable them at this point so they don't crash your
874 system on reboot.
875
876 [3] From the bootblocks, boot -s, and then do
877 fsck -p
878 mount -u /
879 mount -a
880 cd src
881 adjkerntz -i # if CMOS is wall time
882 Also, when doing a major release upgrade, it is required that
883 you boot into single user mode to do the installworld.
884
885 [4] Note: This step is non-optional. Failure to do this step
886 can result in a significant reduction in the functionality of the
887 system. Attempting to do it by hand is not recommended and those
888 that pursue this avenue should read this file carefully, as well
889 as the archives of freebsd-current and freebsd-hackers mailing lists
890 for potential gotchas.
891
892 [5] Usually this step is a noop. However, from time to time
893 you may need to do this if you get unknown user in the following
894 step. It never hurts to do it all the time.
895
896 [8] In order to have a kernel that can run the 5.x binaries
897 needed to do an installworld, you must include the COMPAT_FREEBSD5
898 option in your kernel. Failure to do so may leave you with a system
899 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
900 is required to run the 5.x binaries on more recent kernels.
901
902 Make sure that you merge any new devices from GENERIC since the
903 last time you updated your kernel config file.
904
905 [9] When checking out sources, you must include the -P flag to have
906 cvs prune empty directories.
907
908 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
909 "?=" instead of the "=" assignment operator, so that buildworld can
910 override the CPUTYPE if it needs to.
911
912 MAKEOBJDIRPREFIX must be defined in an environment variable, and
913 not on the command line, or in /etc/make.conf. buildworld will
914 warn if it is improperly defined.
915
916 Copyright information:
917
918 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
919
920 Redistribution, publication, translation and use, with or without
921 modification, in full or in part, in any form or format of this
922 document are permitted without further permission from the author.
923
924 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
925 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
926 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
927 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
928 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
929 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
930 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
931 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
932 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
933 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
934 POSSIBILITY OF SUCH DAMAGE.
935
936 If you find this document useful, and you want to, you may buy the
937 author a beer.
938
939 Contact Warner Losh if you have any questions about your use of
940 this document.
941
942 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
943 $MidnightBSD: src/UPDATING,v 1.111 2011/02/06 16:37:04 laffer1 Exp $

Properties

Name Value
cvs2svn:cvs-rev 1.112