ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3352
Committed: Fri Mar 12 01:04:34 2010 UTC (14 years, 2 months ago) by laffer1
File size: 25356 byte(s)
Log Message:
MKSH R39c.. missed it by a few hours.

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.83