ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3655
Committed: Wed Feb 2 22:37:10 2011 UTC (13 years, 3 months ago) by laffer1
File size: 28002 byte(s)
Log Message:
tcsh 6.17

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.105