ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3386
Committed: Sun Mar 21 20:05:10 2010 UTC (14 years, 1 month ago) by laffer1
File size: 25811 byte(s)
Log Message:
Document zlib 1.2.4 update

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.87