ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3766
Committed: Wed Feb 16 00:30:23 2011 UTC (13 years, 3 months ago) by laffer1
File size: 28290 byte(s)
Log Message:
age(4)

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.113