ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 3722
Committed: Sun Feb 6 16:37:04 2011 UTC (13 years, 4 months ago) by laffer1
File size: 28195 byte(s)
Log Message:
eeemon(4) mention

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.111