1 Updating Information for FreeBSD current users
3 This file is maintained and copyrighted by M. Warner Losh
4 <imp@village.org>. See end of file for further details. For commonly
5 done items, please see the COMMON ITEMS: section later in the file.
7 Items affecting the ports and packages system can be found in
8 /usr/ports/UPDATING. Please read that file before running
11 NOTE TO PEOPLE WHO THINK THAT FreeBSD 8.x IS SLOW:
12 FreeBSD 8.x has many debugging features turned on, in
13 both the kernel and userland. These features attempt to detect
14 incorrect use of system primitives, and encourage loud failure
15 through extra sanity checking and fail stop semantics. They
16 also substantially impact system performance. If you want to
17 do performance measurement, benchmarking, and optimization,
18 you'll want to turn them off. This includes various WITNESS-
19 related kernel options, INVARIANTS, malloc debugging flags
20 in userland, and various verbose features in the kernel. Many
21 developers choose to disable these features on build machines
22 to maximize performance.
25 The AT keyboard emulation of sunkbd(4) has been turned on
26 by default. In order to make the special symbols of the Sun
27 keyboards driven by sunkbd(4) work under X these now have
28 to be configured the same way as Sun USB keyboards driven
29 by ukbd(4) (which also does AT keyboard emulation), f.e.:
31 Option "XkbLayout" "us"
32 Option "XkbRules" "xorg"
33 Option "XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"
36 It has been decided that it is desirable to provide ABI
37 backwards compatibility to the FreeBSD 4/5/6 versions of the
38 PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was
39 broken with the introduction of PCI domain support (see the
40 20070930 entry). Unfortunately, this required the ABI of
41 PCIOCGETCONF to be broken again in order to be able to
42 provide backwards compatibility to the old version of that
43 IOCTL. Thus consumers of PCIOCGETCONF have to be recompiled
44 again. As for prominent ports this affects neither pciutils
45 nor xorg-server this time, the hal port needs to be rebuilt
49 The misnamed kthread_create() and friends have been renamed
50 to kproc_create() etc. Many of the callers already
52 I will return kthread_create() and friends in a while
53 with implementations that actually create threads, not procs.
54 Renaming corresponds with version 800002.
60 Setting WITHOUT_LIBPTHREAD now means WITHOUT_LIBKSE and
61 WITHOUT_LIBTHR are set.
64 The PCI code has been made aware of PCI domains. This means that
65 the location strings as used by pciconf(8) etc are now in the
66 following format: pci<domain>:<bus>:<device>[:<function>]. It
67 also means that consumers of <sys/pciio.h> potentially need to
68 be recompiled; this includes the hal and xorg-server ports.
71 The caching daemon (cached) was renamed to nscd. nscd.conf
72 configuration file should be used instead of cached.conf and
73 nscd_enable, nscd_pidfile and nscd_flags options should be used
74 instead of cached_enable, cached_pidfile and cached_flags in
78 The getfacl(1) utility now prints owning user and group name
79 instead of owning uid and gid in the three line comment header.
80 This is the same behavior as getfacl(1) on Solaris and Linux.
83 The new IPsec code is now compiled in using the IPSEC option. The
84 IPSEC option now requires "device crypto" be defined in your kernel
85 configuration. The FAST_IPSEC kernel option is now deprecated.
88 The packet filter (pf) code has been updated to OpenBSD 4.1 Please
89 note the changed syntax - keep state is now on by default. Also
90 note the fact that ftp-proxy(8) has been changed from bottom up and
91 has been moved from libexec to usr/sbin. Changes in the ALTQ
92 handling also affect users of IPFW's ALTQ capabilities.
95 Remove KAME IPsec in favor of FAST_IPSEC, which is now the
96 only IPsec supported by FreeBSD. The new IPsec stack
97 supports both IPv4 and IPv6. The kernel option will change
98 after the code changes have settled in. For now the kernel
99 option IPSEC is deprecated and FAST_IPSEC is the only option, that
100 will change after some settling time.
103 The wicontrol(8) utility has been removed from the base system. wi(4)
104 cards should be configured using ifconfig(8), see the man page for more
108 The i386/amd64 GENERIC kernel now defaults to the nfe(4) driver
109 instead of the nve(4) driver. Please update your configuration
113 By default, /etc/rc.d/sendmail no longer rebuilds the aliases
114 database if it is missing or older than the aliases file. If
115 desired, set the new rc.conf option sendmail_rebuild_aliases
116 to "YES" to restore that functionality.
119 The IPv4 multicast socket code has been considerably modified, and
120 moved to the file sys/netinet/in_mcast.c. Initial support for the
121 RFC 3678 Source-Specific Multicast Socket API has been added to
122 the IPv4 network stack.
124 Strict multicast and broadcast reception is now the default for
125 UDP/IPv4 sockets; the net.inet.udp.strict_mcast_mship sysctl variable
126 has now been removed.
128 The RFC 1724 hack for interface selection has been removed; the use
129 of the Linux-derived ip_mreqn structure with IP_MULTICAST_IF has
130 been added to replace it. Consumers such as routed will soon be
131 updated to reflect this.
133 These changes affect users who are running routed(8) or rdisc(8)
134 from the FreeBSD base system on point-to-point or unnumbered
138 The net80211 layer has changed significantly and all wireless
139 drivers that depend on it need to be recompiled. Further these
140 changes require that any program that interacts with the wireless
141 support in the kernel be recompiled; this includes: ifconfig,
142 wpa_supplicant, hostapd, and wlanstats. Users must also, for
143 the moment, kldload the wlan_scan_sta and/or wlan_scan_ap modules
144 if they use modules for wireless support. These modules implement
145 scanning support for station and ap modes, respectively. Failure
146 to load the appropriate module before marking a wireless interface
147 up will result in a message to the console and the device not
151 The pam_nologin(8) module ceases to provide an authentication
152 function and starts providing an account management function.
153 Consequent changes to /etc/pam.d should be brought in using
154 mergemaster(8). Third-party files in /usr/local/etc/pam.d may
155 need manual editing as follows. Locate this line (or similar):
157 auth required pam_nologin.so no_warn
159 and change it according to this example:
161 account required pam_nologin.so no_warn
163 That is, the first word needs to be changed from "auth" to
164 "account". The new line can be moved to the account section
165 within the file for clarity. Not updating pam.conf(5) files
166 will result in nologin(5) ignored by the respective services.
169 The ether_ioctl() function has been synchronized with ioctl(2)
170 and ifnet.if_ioctl. Due to that, the size of one of its arguments
171 has changed on 64-bit architectures. All kernel modules using
172 ether_ioctl() need to be rebuilt on such architectures.
175 Improved INCLUDE_CONFIG_FILE support has been introduced to the
176 config(8) utility. In order to take advantage of this new
177 functionality, you are expected to recompile and install
178 src/usr.sbin/config. If you don't rebuild config(8), and your
179 kernel configuration depends on INCLUDE_CONFIG_FILE, the kernel
180 build will be broken because of a missing "kernconfstring"
184 Symbol versioning is enabled by default. To disable it, use
185 option WITHOUT_SYMVER. It is not advisable to attempt to
186 disable symbol versioning once it is enabled; your installworld
187 will break because a symbol version-less libc will get installed
188 before the install tools. As a result, the old install tools,
189 which previously had symbol dependencies to FBSD_1.0, will fail
190 because the freshly installed libc will not have them.
192 The default threading library (providing "libpthread") has been
193 changed to libthr. If you wish to have libkse as your default,
194 use option DEFAULT_THREAD_LIB=libkse for the buildworld.
197 The ABI breakage in sendmail(8)'s libmilter has been repaired
198 so it is no longer necessary to recompile mail filters (aka,
199 milters). If you recompiled mail filters after the 20070408
200 note, it is not necessary to recompile them again.
203 The new trunk(4) driver has been renamed to lagg(4) as it better
204 reflects its purpose. ifconfig will need to be recompiled.
207 sendmail(8) has been updated to version 8.14.1. Mail filters
208 (aka, milters) compiled against the libmilter included in the
209 base operating system should be recompiled.
212 Firmwares for ipw(4) and iwi(4) are now included in the base tree.
213 In order to use them one must agree to the respective LICENSE in
214 share/doc/legal and define legal.intel_<name>.license_ack=1 via
215 loader.conf(5) or kenv(1). Make sure to deinstall the now
216 deprecated modules from the respective firmware ports.
219 The name resolution/mapping functions addr2ascii(3) and ascii2addr(3)
220 were removed from FreeBSD's libc. These originally came from INRIA
221 IPv6. Nothing in FreeBSD ever used them. They may be regarded as
222 deprecated in previous releases.
223 The AF_LINK support for getnameinfo(3) was merged from NetBSD to
224 replace it as a more portable (and re-entrant) API.
227 To support interrupt filtering a modification to the newbus API
228 has occurred, ABI was broken and __FreeBSD_version was bumped
229 to 700031. Please make sure that your kernel and modules are in
231 http://docs.freebsd.org/cgi/mid.cgi?20070221233124.GA13941
234 The IPv6 multicast forwarding code may now be loaded into GENERIC
235 kernels by loading the ip_mroute.ko module. This is built into the
236 module unless WITHOUT_INET6 or WITHOUT_INET6_SUPPORT options are
237 set; see src.conf(5) for more information.
240 The output of netstat -r has changed. Without -n, we now only
241 print a "network name" without the prefix length if the network
242 address and mask exactly match a Class A/B/C network, and an entry
243 exists in the nsswitch "networks" map.
244 With -n, we print the full unabbreviated CIDR network prefix in
245 the form "a.b.c.d/p". 0.0.0.0/0 is always printed as "default".
246 This change is in preparation for changes such as equal-cost
247 multipath, and to more generally assist operational deployment
248 of FreeBSD as a modern IPv4 router.
251 PIM has been turned on by default in the IPv4 multicast
252 routing code. The kernel option 'PIM' has now been removed.
253 PIM is now built by default if option 'MROUTING' is specified.
254 It may now be loaded into GENERIC kernels by loading the
258 Support for IPIP tunnels (VIFF_TUNNEL) in IPv4 multicast routing
259 has been removed. Its functionality may be achieved by explicitly
260 configuring gif(4) interfaces and using the 'phyint' keyword in
262 XORP does not support source-routed IPv4 multicast tunnels nor the
263 integrated IPIP tunneling, therefore it is not affected by this
264 change. The __FreeBSD_version macro has been bumped to 700030.
267 Support for PCI Message Signalled Interrupts has been
268 re-enabled in the bge driver, only for those chips which are
269 believed to support it properly. If there are any problems,
270 MSI can be disabled completely by setting the
271 'hw.pci.enable_msi' and 'hw.pci.enable_msix' tunables to 0
275 Support for PCI Message Signalled Interrupts has been
276 disabled again in the bge driver. Many revisions of the
277 hardware fail to support it properly. Support can be
278 re-enabled by removing the #define of BGE_DISABLE_MSI in
279 "src/sys/dev/bge/if_bge.c".
282 Support for PCI Message Signalled Interrupts has been added
283 to the bge driver. If there are any problems, MSI can be
284 disabled completely by setting the 'hw.pci.enable_msi' and
285 'hw.pci.enable_msix' tunables to 0 in the loader.
288 The removal of several facets of the experimental Threading
289 system from the kernel means that the proc and thread structures
290 have changed quite a bit. I suggest all kernel modules that might
291 reference these structures be recompiled.. Especially the
295 Sound infrastructure has been updated with various fixes and
296 improvements. Most of the changes are pretty much transparent,
297 with exceptions of followings:
298 1) All sound driver specific sysctls (hw.snd.pcm%d.*) have been
299 moved to their own dev sysctl nodes, for example:
300 hw.snd.pcm0.vchans -> dev.pcm.0.vchans
301 2) /dev/dspr%d.%d has been deprecated. Each channel now has its
302 own chardev in the form of "dsp%d.<function>%d", where <function>
303 is p = playback, r = record and v = virtual, respectively. Users
304 are encouraged to use these devs instead of (old) "/dev/dsp%d.%d".
305 This does not affect those who are using "/dev/dsp".
308 The following binaries have been disconnected from the build:
309 mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs, mount_linprocfs,
310 and mount_std. The functionality of these programs has been
311 moved into the mount program. For example, to mount a devfs
312 filesystem, instead of using mount_devfs, use: "mount -t devfs".
313 This does not affect entries in /etc/fstab, since entries in
314 /etc/fstab are always processed with "mount -t fstype".
317 Support for PCI Message Signalled Interrupts on i386 and amd64
318 has been added to the kernel and various drivers will soon be
319 updated to use MSI when it is available. If there are any problems,
320 MSI can be disabled completely by setting the 'hw.pci.enable_msi'
321 and 'hw.pci.enable_msix' tunables to 0 in the loader.
324 The MUTEX_PROFILING option has been renamed to LOCK_PROFILING.
325 The lockmgr object layout has been changed as a result of having
326 a lock_object embedded in it. As a consequence all file system
327 kernel modules must be re-compiled. The mutex profiling man page
328 has not yet been updated to reflect this change.
331 KSE in the kernel has now been made optional and turned on by
332 default. Use 'nooption KSE' in your kernel config to turn it
333 off. All kernel modules *must* be recompiled after this change.
334 There-after, modules from a KSE kernel should be compatible with
335 modules from a NOKSE kernel due to the temporary padding fields
336 added to 'struct proc'.
339 mrouted and its utilities have been removed from the base system.
342 Some ioctl(2) command codes have changed. Full backward ABI
343 compatibility is provided if the "options COMPAT_FREEBSD6" is
344 present in the kernel configuration file. Make sure to add
345 this option to your kernel config file, or recompile X.Org
346 and the rest of ports; otherwise they may refuse to work.
349 tcpslice has been removed from the base system.
352 The sizes of struct tcpcb (and struct xtcpcb) have changed due to
353 the rewrite of TCP syncookies. Tools like netstat, sockstat, and
354 systat needs to be rebuilt.
357 libpcap updated to v0.9.4 and tcpdump to v3.9.4
360 The IPFIREWALL_FORWARD_EXTENDED option is gone and the behaviour
361 for IPFIREWALL_FORWARD is now as it was before when it was first
362 committed and for years after. The behaviour is now ON.
365 enigma(1)/crypt(1) utility has been changed on 64 bit architectures.
366 Now it can decrypt files created from different architectures.
367 Unfortunately, it is no longer able to decrypt a cipher text
368 generated with an older version on 64 bit architectures.
369 If you have such a file, you need old utility to decrypt it.
372 The interface version of the i4b kernel part has changed. So
373 after updating the kernel sources and compiling a new kernel,
374 the i4b user space tools in "/usr/src/usr.sbin/i4b" must also
375 be rebuilt, and vice versa.
378 The XBOX kernel now defaults to the nfe(4) driver instead of
379 the nve(4) driver. Please update your configuration
383 The i386-only lnc(4) driver for the AMD Am7900 LANCE and Am79C9xx
384 PCnet family of NICs has been removed. The new le(4) driver serves
385 as an equivalent but cross-platform replacement with the pcn(4)
386 driver still providing performance-optimized support for the subset
387 of AMD Am79C971 PCnet-FAST and greater chips as before.
390 The machdep.* sysctls and the adjkerntz utility have been
391 modified a bit. The new adjkerntz utility uses the new
392 sysctl names and sysctlbyname() calls, so it may be impossible
393 to run an old /sbin/adjkerntz utility in single-user mode
394 with a new kernel. Replace the `adjkerntz -i' step before
395 `make installworld' with:
397 /usr/obj/usr/src/sbin/adjkerntz/adjkerntz -i
399 and proceed as usual with the rest of the installworld-stage
400 steps. Otherwise, you risk installing binaries with their
401 timestamp set several hours in the future, especially if
402 you are running with local time set to GMT+X hours.
405 The ip6fw utility has been removed. The behavior provided by
406 ip6fw has been in ipfw2 for a good while and the rc.d scripts
407 have been updated to deal with it. There are some rules that
408 might not migrate cleanly. Use rc.firewall6 as a template to
412 The puc(4) driver has been overhauled. The ebus(4) and sbus(4)
413 attachments have been removed. Make sure to configure scc(4)
414 on sparc64. Note also that by default puc(4) will use uart(4)
415 and not sio(4) for serial ports because interrupt handling has
416 been optimized for multi-port serial cards and only uart(4)
417 implements the interface to support it.
420 The scc(4) driver replaces puc(4) for Serial Communications
421 Controllers (SCCs) like the Siemens SAB82532 and the Zilog
422 Z8530. On sparc64, it is advised to add scc(4) to the kernel
423 configuration to make sure that the serial ports remain
427 Most world/kernel related NO_* build options changed names.
428 New knobs have common prefixes WITHOUT_*/WITH_* (modelled
429 after FreeBSD ports) and should be set in /etc/src.conf
430 (the src.conf(5) manpage is provided). Full backwards
431 compatibility is maintained for the time being though it's
432 highly recommended to start moving old options out of the
433 system-wide /etc/make.conf file into the new /etc/src.conf
434 while also properly renaming them. More conversions will
435 likely follow. Posting to current@:
437 http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
440 The NETSMBCRYPTO kernel option has been retired because its
441 functionality is always included in NETSMB and smbfs.ko now.
444 The TDFX_LINUX kernel option was retired and replaced by the
445 tdfx_linux device. The latter can be loaded as the 3dfx_linux.ko
446 kernel module. Loading it alone should suffice to get 3dfx support
447 for Linux apps because it will pull in 3dfx.ko and linux.ko through
451 The 'audit' group was added to support the new auditing functionality
452 in the base system. Be sure to follow the directions for updating,
453 including the requirement to run mergemaster -p.
456 The kernel ABI to file system modules was changed on i386.
457 Please make sure that your kernel and modules are in sync.
460 This actually occured some time ago, but installing the kernel
461 now also installs a bunch of symbol files for the kernel modules.
462 This increases the size of /boot/kernel to about 67Mbytes. You
463 will need twice this if you will eventually back this up to kernel.old
464 on your next install.
465 If you have a shortage of room in your root partition, you should add
466 -DINSTALL_NODEBUG to your make arguments or add INSTALL_NODEBUG="yes"
467 to your /etc/make.conf.
470 libc's malloc implementation has been replaced. This change has the
471 potential to uncover application bugs that previously went unnoticed.
472 See the malloc(3) manual page for more details.
475 The generic netgraph(4) cookie has been changed. If you upgrade
476 kernel passing this point, you also need to upgrade userland
477 and netgraph(4) utilities like ports/net/mpd or ports/net/mpd4.
480 si(4)'s device files now contain the unit number.
481 Uses of {cua,tty}A[0-9a-f] should be replaced by {cua,tty}A0[0-9a-f].
484 The kernel ABI was mostly destroyed due to a change in the size
485 of struct lock_object which is nested in other structures such
486 as mutexes which are nested in all sorts of other structures.
487 Make sure your kernel and modules are in sync.
490 The page coloring algorithm in the VM subsystem was converted
491 from tuning with kernel options to autotuning. Please remove
492 any PQ_* option except PQ_NOOPT from your kernel config.
495 The net80211-related tools in the tools/tools/ath directory
496 have been moved to tools/tools/net80211 and renamed with a
497 "wlan" prefix. Scripts that use them should be adjusted
501 Scripts in the local_startup directories (as defined in
502 /etc/defaults/rc.conf) that have the new rc.d semantics will
503 now be run as part of the base system rcorder. If there are
504 errors or problems with one of these local scripts, it could
505 cause boot problems. If you encounter such problems, boot in
506 single user mode, remove that script from the */rc.d directory.
507 Please report the problem to the port's maintainer, and the
508 freebsd-ports@freebsd.org mailing list.
511 The nodev mount option was deprecated in RELENG_6 (where it
512 was a no-op), and is now unsupported. If you have nodev or dev listed
513 in /etc/fstab, remove it, otherwise it will result in a mount error.
516 ABI between ipfw(4) and ipfw(8) has been changed. You need
517 to rebuild ipfw(8) when rebuilding kernel.
520 rp(4)'s device files now contain the unit number.
521 Uses of {cua,tty}R[0-9a-f] should be replaced by {cua,tty}R0[0-9a-f].
524 /etc/rc.d/ppp-user has been renamed to /etc/rc.d/ppp.
525 Its /etc/rc.conf.d configuration file has been `ppp' from
526 the beginning, and hence there is no need to touch it.
529 Now most modules get their build-time options from the kernel
530 configuration file. A few modules still have fixed options
531 due to their non-conformant implementation, but they will be
532 corrected eventually. You may need to review the options of
533 the modules in use, explicitly specify the non-default options
534 in the kernel configuration file, and rebuild the kernel and
538 kern.polling.enable sysctl MIB is now deprecated. Use ifconfig(8)
539 to turn polling(4) on your interfaces.
542 The old bridge(4) implementation was retired. The new
543 if_bridge(4) serves as a full functional replacement.
546 The ai_addrlen of a struct addrinfo was changed to a socklen_t
547 to conform to POSIX-2001. This change broke an ABI
548 compatibility on 64 bit architecture. You have to recompile
549 userland programs that use getaddrinfo(3) on 64 bit
553 RELENG_6 branched here.
556 The pccard_ifconfig rc.conf variable has been removed and a new
557 variable, ifconfig_DEFAULT has been introduced. Unlike
558 pccard_ifconfig, ifconfig_DEFAULT applies to ALL interfaces that
559 do not have ifconfig_ifn entries rather than just those in
560 removable_interfaces.
563 Some previous versions of PAM have permitted the use of
564 non-absolute paths in /etc/pam.conf or /etc/pam.d/* when referring
565 to third party PAM modules in /usr/local/lib. A change has been
566 made to require the use of absolute paths in order to avoid
567 ambiguity and dependence on library path configuration, which may
568 affect existing configurations.
571 Major changes to network interface API. All drivers must be
572 recompiled. Drivers not in the base system will need to be
573 updated to the new APIs.
576 Changes were made to kinfo_proc in sys/user.h. Please recompile
577 userland, or commands like `fstat', `pkill', `ps', `top' and `w'
578 will not behave correctly.
580 The API and ABI for hwpmc(4) have changed with the addition
581 of sampling support. Please recompile lib/libpmc(3) and
582 usr.sbin/{pmcstat,pmccontrol}.
585 The OpenBSD dhclient was imported in place of the ISC dhclient
586 and the network interface configuration scripts were updated
587 accordingly. If you use DHCP to configure your interfaces, you
588 must now run devd. Also, DNS updating was lost so you will need
589 to find a workaround if you use this feature.
591 The '_dhcp' user was added to support the OpenBSD dhclient. Be
592 sure to run mergemaster -p (like you are supposed to do every time
596 if_bridge was added to the tree. This has changed struct ifnet.
597 Please recompile userland and all network related modules.
600 The n_net of a struct netent was changed to an uint32_t, and
601 1st argument of getnetbyaddr() was changed to an uint32_t, to
602 conform to POSIX-2001. These changes broke an ABI
603 compatibility on 64 bit architecture. With these changes,
604 shlib major of libpcap was bumped. You have to recompile
605 userland programs that use getnetbyaddr(3), getnetbyname(3),
606 getnetent(3) and/or libpcap on 64 bit architecture.
609 Kernel parsing of extra options on '#!' first lines of shell
610 scripts has changed. Lines with multiple options likely will
611 fail after this date. For full details, please see
612 http://people.freebsd.org/~gad/Updating-20050528.txt
615 The packet filter (pf) code has been updated to OpenBSD 3.7
616 Please note the changed anchor syntax and the fact that
617 authpf(8) now needs a mounted fdescfs(5) to function.
620 The NO_MIXED_MODE kernel option has been removed from the i386
621 amd64 platforms as its use has been superceded by the new local
622 APIC timer code. Any kernel config files containing this option
626 The on-disk format of LC_CTYPE files was changed to be machine
627 independent. Please make sure NOT to use NO_CLEAN buildworld
628 when crossing this point. Crossing this point also requires
629 recompile or reinstall of all locale depended packages.
632 The ifi_epoch member of struct if_data has been changed to
633 contain the uptime at which the interface was created or the
634 statistics zeroed rather then the wall clock time because
635 wallclock time may go backwards. This should have no impact
636 unless an snmp implementation is using this value (I know of
640 The acpi_perf and acpi_throttle drivers are now part of the
641 acpi(4) main module. They are no longer built separately.
644 The layout of struct image_params has changed. You have to
645 recompile all compatibility modules (linux, svr4, etc) for use
649 The p4tcc driver has been merged into cpufreq(4). This makes
650 "options CPU_ENABLE_TCC" obsolete. Please load cpufreq.ko or
651 compile in "device cpufreq" to restore this functionality.
654 The responsibility of recomputing the file system summary of
655 a SoftUpdates-enabled dirty volume has been transferred to the
656 background fsck. A rebuild of fsck(8) utility is recommended
657 if you have updated the kernel.
659 To get the old behavior (recompute file system summary at mount
660 time), you can set vfs.ffs.compute_summary_at_mount=1 before
661 mounting the new volume.
664 The cpufreq import is complete. As part of this, the sysctls for
665 acpi(4) throttling have been removed. The power_profile script
666 has been updated, so you can use performance/economy_cpu_freq in
667 rc.conf(5) to set AC on/offline cpu frequencies.
670 NG_VERSION has been increased. Recompiling kernel (or ng_socket.ko)
671 requires recompiling libnetgraph and userland netgraph utilities.
674 Support for abbreviated forms of a number of ipfw options is
675 now deprecated. Warnings are printed to stderr indicating the
676 correct full form when a match occurs. Some abbreviations may
677 be supported at a later date based on user feedback. To be
678 considered for support, abbreviations must be in use prior to
679 this commit and unlikely to be confused with current key words.
682 By a popular demand, a lot of NOFOO options were renamed
683 to NO_FOO (see bsd.compat.mk for a full list). The old
684 spellings are still supported, but will cause annoying
685 warnings on stderr. Make sure you upgrade properly (see
686 the COMMON ITEMS: section later in this file).
689 Auto-loading of ancillary wlan modules such as wlan_wep has
690 been temporarily disabled; you need to statically configure
691 the modules you need into your kernel or explicitly load them
692 prior to use. Specifically, if you intend to use WEP encryption
693 with an 802.11 device load/configure wlan_wep; if you want to
694 use WPA with the ath driver load/configure wlan_tkip, wlan_ccmp,
695 and wlan_xauth as required.
698 The behaviour of ppp(8) has changed slightly. If lqr is enabled
699 (``enable lqr''), older versions would revert to LCP ECHO mode on
700 negotiation failure. Now, ``enable echo'' is required for this
701 behaviour. The ppp version number has been bumped to 3.4.2 to
705 The wlan support has been updated to split the crypto support
706 into separate modules. For static WEP you must configure the
707 wlan_wep module in your system or build and install the module
708 in place where it can be loaded (the kernel will auto-load
709 the module when a wep key is configured).
712 The ath driver has been updated to split the tx rate control
713 algorithm into a separate module. You need to include either
714 ath_rate_onoe or ath_rate_amrr when configuring the kernel.
717 Support for systems with an 80386 CPU has been removed. Please
718 use FreeBSD 5.x or earlier on systems with an 80386.
721 We have had a hack which would mount the root filesystem
722 R/W if the device were named 'md*'. As part of the vnode
723 work I'm doing I have had to remove this hack. People
724 building systems which use preloaded MD root filesystems
725 may need to insert a "/sbin/mount -u -o rw /dev/md0 /" in
726 their /etc/rc scripts.
729 FreeBSD 5.3 shipped here.
732 The size of struct tcpcb has changed again due to the removal
733 of RFC1644 T/TCP. You have to recompile userland programs that
734 read kmem for tcp sockets directly (netstat, sockstat, etc.)
737 The size of struct tcpcb has changed. You have to recompile
738 userland programs that read kmem for tcp sockets directly
739 (netstat, sockstat, etc.)
742 RELENG_5 branched here. For older entries, please see updating
743 in the RELENG_5 branch.
749 Avoid using make -j when upgrading. From time to time in the
750 past there have been problems using -j with buildworld and/or
751 installworld. This is especially true when upgrading between
752 "distant" versions (eg one that cross a major release boundary
753 or several minor releases, or when several months have passed
754 on the -current branch).
756 Sometimes, obscure build problems are the result of environment
757 poisoning. This can happen because the make utility reads its
758 environment when searching for values for global variables.
759 To run your build attempts in an "environmental clean room",
760 prefix all make commands with 'env -i '. See the env(1) manual
761 page for more details.
763 When upgrading from one major version to another it is generally
764 best to upgrade to the latest code in the currently installed branch
765 first, then do an upgrade to the new branch. This is the best-tested
766 upgrade path, and has the highest probability of being successful.
767 Please try this approach before reporting problems with a major
772 If you are updating from a prior version of FreeBSD (even one just
773 a few days old), you should follow this procedure. It is the most
774 failsafe as it uses a /usr/obj tree with a fresh mini-buildworld,
776 make kernel-toolchain
777 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
778 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
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
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 5.X system. Replace
791 ${arch} with the architecture of your machine (e.g. "i386",
792 "alpha", "amd64", "ia64", "pc98", "sparc64", etc).
794 cd src/sys/${arch}/conf
795 config KERNEL_NAME_HERE
796 cd ../compile/KERNEL_NAME_HERE
801 If this fails, go to the "To build a kernel" section.
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.
808 <make sure you have good level 0 dumps>
810 make kernel KERNCONF=YOUR_KERNEL_HERE
812 <reboot in single user> [3]
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
827 <make sure you have good level 0 dumps>
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 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>
844 To upgrade in-place from 5.x-stable to current
845 ----------------------------------------------
846 <make sure you have good level 0 dumps>
848 make kernel KERNCONF=YOUR_KERNEL_HERE [8]
850 <reboot in single user> [3]
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.
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
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
873 [3] From the bootblocks, boot -s, and then do
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.
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.
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. You may need to
892 install a new mergemaster (cd src/usr.sbin/mergemaster && make
893 install) after the buildworld before this step if you last updated
894 from current before 20020224 or from -stable before 20020408.
896 [8] In order to have a kernel that can run the 4.x binaries
897 needed to do an installworld, you must include the COMPAT_FREEBSD4
898 option in your kernel. Failure to do so may leave you with a system
899 that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
900 is required to run the 5.x binaries on more recent kernels.
902 Make sure that you merge any new devices from GENERIC since the
903 last time you updated your kernel config file.
905 [9] When checking out sources, you must include the -P flag to have
906 cvs prune empty directories.
908 If CPUTYPE is defined in your /etc/make.conf, make sure to use the
909 "?=" instead of the "=" assignment operator, so that buildworld can
910 override the CPUTYPE if it needs to.
912 MAKEOBJDIRPREFIX must be defined in an environment variable, and
913 not on the command line, or in /etc/make.conf. buildworld will
914 warn if it is improperly defined.
917 This file contains a list, in reverse chronological order, of major
918 breakages in tracking -current. Not all things will be listed here,
919 and it only starts on October 16, 2004. Updating files can found in
920 previous releases if your system is older than this.
922 Copyright information:
924 Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
926 Redistribution, publication, translation and use, with or without
927 modification, in full or in part, in any form or format of this
928 document are permitted without further permission from the author.
930 THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
931 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
932 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
933 DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
934 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
935 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
936 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
937 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
938 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
939 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
940 POSSIBILITY OF SUCH DAMAGE.
942 If you find this document useful, and you want to, you may buy the
945 Contact Warner Losh if you have any questions about your use of