UPDATING revision 170613
1Updating Information for FreeBSD current users
2
3This file is maintained and copyrighted by M. Warner Losh
4<imp@village.org>.  See end of file for further details.  For commonly
5done items, please see the COMMON ITEMS: section later in the file.
6
7Items affecting the ports and packages system can be found in
8/usr/ports/UPDATING.  Please read that file before running
9portupgrade.
10
11NOTE TO PEOPLE WHO THINK THAT FreeBSD 7.x IS SLOW:
12	FreeBSD 7.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.
23
2420070612:
25	The IPv4 multicast socket code has been considerably modified, and
26	moved to the file sys/netinet/in_mcast.c. Initial support for the
27	RFC 3678 Source-Specific Multicast Socket API has been added to
28	the IPv4 network stack.
29
30	Strict multicast and broadcast reception is now the default for
31	UDP/IPv4 sockets; the net.inet.udp.strict_mcast_mship sysctl variable
32	has now been removed.
33
34	The RFC 1724 hack for interface selection has been removed; the use
35	of the Linux-derived ip_mreqn structure with IP_MULTICAST_IF has
36	been added to replace it. Consumers such as routed will soon be
37	updated to reflect this.
38
39	These changes affect users who are running routed(8) or rdisc(8)
40	from the FreeBSD base system on point-to-point or unnumbered
41	interfaces.
42
4320070610:
44	The net80211 layer has changed significantly and all wireless
45	drivers that depend on it need to be recompiled.  Further these
46	changes require that any program that interacts with the wireless
47	support in the kernel be recompiled; this includes: ifconfig,
48	wpa_supplicant, hostapd, and wlanstats.  Users must also, for
49	the moment, kldload the wlan_scan_sta and/or wlan_scan_ap modules
50	if they use modules for wireless support.  These modules implement
51	scanning support for station and ap modes, respectively.  Failure
52	to load the appropriate module before marking a wireless interface
53	up will result in a message to the console and the device not
54	operating properly.
55
5620070610:
57	The pam_nologin(8) module ceases to provide an authentication
58	function and starts providing an account management function.
59	Consequent changes to /etc/pam.d should be brought in using
60	mergemaster(8).  Third-party files in /usr/local/etc/pam.d may
61	need manual editing as follows.  Locate this line (or similar):
62
63		auth	required	pam_nologin.so	no_warn
64
65	and change it according to this example:
66
67		account	required	pam_nologin.so	no_warn
68
69	That is, the first word needs to be changed from "auth" to
70	"account".  The new line can be moved to the account section
71	within the file for clarity.  Not updating pam.conf(5) files
72	will result in nologin(5) ignored by the respective services.
73
7420070529:
75	The ether_ioctl() function has been synchronized with ioctl(2)
76	and ifnet.if_ioctl.  Due to that, the size of one of its arguments
77	has changed on 64-bit architectures.  All kernel modules using
78	ether_ioctl() need to be rebuilt on such architectures.
79
8020070516:
81	Improved INCLUDE_CONFIG_FILE support has been introduced to the
82	config(8) utility. In order to take advantage of this new
83	functionality, you are expected to recompile and install
84	src/usr.sbin/config. If you don't rebuild config(8), and your
85	kernel configuration depends on INCLUDE_CONFIG_FILE, the kernel
86	build will be broken because of a missing "kernconfstring"
87	symbol.
88
8920070513:
90	Symbol versioning is enabled by default.  To disable it, use
91	option WITHOUT_SYMVER.  It is not advisable to attempt to
92	disable symbol versioning once it is enabled; your installworld
93	will break because a symbol version-less libc will get installed
94	before the install tools.  As a result, the old install tools,
95	which previously had symbol dependencies to FBSD_1.0, will fail
96	because the freshly installed libc will not have them.
97
98	The default threading library has been changed to libthr.  If
99	you wish to have libpthread as your default, use option
100	DEFAULT_THREAD_LIB=libpthread for the buildworld.
101
10220070423:
103        The ABI breakage in sendmail(8)'s libmilter has been repaired
104        so it is no longer necessary to recompile mail filters (aka,
105        milters).  If you recompiled mail filters after the 20070408
106        note, it is not necessary to recompile them again.
107
10820070417:
109	The new trunk(4) driver has been renamed to lagg(4) as it better
110	reflects its purpose. ifconfig will need to be recompiled.
111
11220070408:
113	sendmail(8) has been updated to version 8.14.1.  Mail filters
114	(aka, milters) compiled against the libmilter included in the
115	base operating system should be recompiled.
116
11720070302:
118	Firmwares for ipw(4) and iwi(4) are now included in the base tree.
119	In order to use them one must agree to the respective LICENSE in
120	share/doc/legal and define legal.intel_<name>.license_ack=1 via
121	loader.conf(5) or kenv(1).  Make sure to deinstall the now
122	deprecated modules from the respective firmware ports.
123
12420070228:
125	The name resolution/mapping functions addr2ascii(3) and ascii2addr(3)
126	were removed from FreeBSD's libc. These originally came from INRIA
127	IPv6. Nothing in FreeBSD ever used them. They may be regarded as
128	deprecated in previous releases.
129	The AF_LINK support for getnameinfo(3) was merged from NetBSD to
130	replace it as a more portable (and re-entrant) API.
131
13220070224:
133	To support interrupt filtering a modification to the newbus API 
134	has occurred, ABI was broken and __FreeBSD_version was bumped
135	to 700031. Please make sure that your kernel and modules are in 
136	sync. For more info:
137	http://docs.freebsd.org/cgi/mid.cgi?20070221233124.GA13941
138
13920070224:
140	The IPv6 multicast forwarding code may now be loaded into GENERIC
141	kernels by loading the ip_mroute.ko module. This is built into the
142	module unless WITHOUT_INET6 or WITHOUT_INET6_SUPPORT options are
143	set; see src.conf(5) for more information.
144
14520070214:
146	The output of netstat -r has changed. Without -n, we now only
147	print a "network name" without the prefix length if the network
148	address and mask exactly match a Class A/B/C network, and an entry
149	exists in the nsswitch "networks" map.
150	With -n, we print the full unabbreviated CIDR network prefix in
151	the form "a.b.c.d/p". 0.0.0.0/0 is always printed as "default".
152	This change is in preparation for changes such as equal-cost
153	multipath, and to more generally assist operational deployment
154	of FreeBSD as a modern IPv4 router.
155
15620070210:
157	PIM has been turned on by default in the IPv4 multicast
158	routing code. The kernel option 'PIM' has now been removed.
159	PIM is now built by default if option 'MROUTING' is specified.
160	It may now be loaded into GENERIC kernels by loading the
161	ip_mroute.ko module.
162
16320070207:
164	Support for IPIP tunnels (VIFF_TUNNEL) in IPv4 multicast routing
165	has been removed. Its functionality may be achieved by explicitly
166	configuring gif(4) interfaces and using the 'phyint' keyword in
167	mrouted.conf.
168	XORP does not support source-routed IPv4 multicast tunnels nor the
169	integrated IPIP tunneling, therefore it is not affected by this
170	change. The __FreeBSD_version macro has been bumped to 700030.
171
17220061221:
173	Support for PCI Message Signalled Interrupts has been
174	re-enabled in the bge driver, only for those chips which are
175	believed to support it properly.  If there are any problems,
176	MSI can be disabled completely by setting the
177	'hw.pci.enable_msi' and 'hw.pci.enable_msix' tunables to 0
178	in the loader.
179
18020061214:
181	Support for PCI Message Signalled Interrupts has been
182	disabled again in the bge driver.  Many revisions of the
183	hardware fail to support it properly.  Support can be
184	re-enabled by removing the #define of BGE_DISABLE_MSI in
185	"src/sys/dev/bge/if_bge.c".
186
18720061214:
188	Support for PCI Message Signalled Interrupts has been added
189	to the bge driver.  If there are any problems, MSI can be
190	disabled completely by setting the 'hw.pci.enable_msi' and
191	'hw.pci.enable_msix' tunables to 0 in the loader.
192
19320061205:
194	The removal of several facets of the experimental Threading 
195	system from the kernel means that the proc and thread structures 
196	have changed quite a bit. I suggest all kernel modules that might
197	reference these structures be recompiled.. Especially the
198	linux module.
199
20020061126:
201	Sound infrastructure has been updated with various fixes and
202	improvements. Most of the changes are pretty much transparent,
203	with exceptions of followings:
204	1) All sound driver specific sysctls (hw.snd.pcm%d.*) have been
205	   moved to their own dev sysctl nodes, for example:
206		hw.snd.pcm0.vchans -> dev.pcm.0.vchans
207	2) /dev/dspr%d.%d has been deprecated. Each channel now has its
208	   own chardev in the form of "dsp%d.<function>%d", where <function>
209	   is p = playback, r = record and v = virtual, respectively. Users
210	   are encouraged to use these devs instead of (old) "/dev/dsp%d.%d".
211	   This does not affect those who are using "/dev/dsp".
212
21320061122:
214	The following binaries have been disconnected from the build:
215	mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs, mount_linprocfs,
216	and mount_std.  The functionality of these programs has been
217	moved into the mount program.  For example, to mount a devfs
218	filesystem, instead of using mount_devfs, use: "mount -t devfs".
219	This does not affect entries in /etc/fstab, since entries in
220	/etc/fstab are always processed with "mount -t fstype".
221
22220061113:
223	Support for PCI Message Signalled Interrupts on i386 and amd64
224	has been added to the kernel and various drivers will soon be
225	updated to use MSI when it is available.  If there are any problems,
226	MSI can be disabled completely by setting the 'hw.pci.enable_msi'
227	and 'hw.pci.enable_msix' tunables to 0 in the loader.
228
22920061110:
230	The MUTEX_PROFILING option has been renamed to LOCK_PROFILING.
231	The lockmgr object layout has been changed as a result of having
232	a lock_object embedded in it. As a consequence all file system
233	kernel modules must be re-compiled. The mutex profiling man page 
234	has not yet been updated to reflect this change.
235
23620061026:
237	KSE in the kernel has now been made optional and turned on by
238	default. Use 'nooption KSE' in your kernel config to turn it
239	off. All kernel modules *must* be recompiled after this change.
240	There-after, modules from a KSE kernel should be compatible with
241	modules from a NOKSE kernel due to the temporary padding fields
242	added to 'struct proc'.
243
24420060929:
245	mrouted and its utilities have been removed from the base system.
246
24720060927:
248	Some ioctl(2) command codes have changed.  Full backward ABI
249	compatibility is provided if the "options COMPAT_FREEBSD6" is
250	present in the kernel configuration file.  Make sure to add
251	this option to your kernel config file, or recompile X.Org
252	and the rest of ports; otherwise they may refuse to work.
253
25420060924:
255	tcpslice has been removed from the base system.
256
25720060913:
258	The sizes of struct tcpcb (and struct xtcpcb) have changed due to
259	the rewrite of TCP syncookies.  Tools like netstat, sockstat, and
260	systat needs to be rebuilt.
261
26220060903:
263	libpcap updated to v0.9.4 and tcpdump to v3.9.4
264
26520060816:
266	The IPFIREWALL_FORWARD_EXTENDED option is gone and the behaviour
267	for IPFIREWALL_FORWARD is now as it was before when it was first
268	committed and for years after. The behaviour is now ON.
269
27020060725:
271	enigma(1)/crypt(1) utility has been changed on 64 bit architectures.
272	Now it can decrypt files created from different architectures.
273	Unfortunately, it is no longer able to decrypt a cipher text
274	generated with an older version on 64 bit architectures.
275	If you have such a file, you need old utility to decrypt it.
276
27720060709:
278 	The interface version of the i4b kernel part has changed. So
279 	after updating the kernel sources and compiling a new kernel,
280 	the i4b user space tools in "/usr/src/usr.sbin/i4b" must also
281 	be rebuilt, and vice versa.
282 
28320060627:
284	The XBOX kernel now defaults to the nfe(4) driver instead of
285	the nve(4) driver. Please update your configuration
286	accordingly.
287
28820060514:
289	The i386-only lnc(4) driver for the AMD Am7900 LANCE and Am79C9xx
290	PCnet family of NICs has been removed. The new le(4) driver serves
291	as an equivalent but cross-platform replacement with the pcn(4)
292	driver still providing performance-optimized support for the subset
293	of AMD Am79C971 PCnet-FAST and greater chips as before.
294
29520060511:
296	The machdep.* sysctls and the adjkerntz utility have been
297	modified a bit.  The new adjkerntz utility uses the new
298	sysctl names and sysctlbyname() calls, so it may be impossible
299	to run an old /sbin/adjkerntz utility in single-user mode
300	with a new kernel.  Replace the `adjkerntz -i' step before
301	`make installworld' with:
302
303	    /usr/obj/usr/src/sbin/adjkerntz/adjkerntz -i
304
305	and proceed as usual with the rest of the installworld-stage
306	steps.  Otherwise, you risk installing binaries with their
307	timestamp set several hours in the future, especially if
308	you are running with local time set to GMT+X hours.
309
31020060412:
311	The ip6fw utility has been removed.  The behavior provided by
312	ip6fw has been in ipfw2 for a good while and the rc.d scripts
313	have been updated to deal with it.  There are some rules that
314	might not migrate cleanly.  Use rc.firewall6 as a template to
315	rewrite rules.
316
31720060428:
318	The puc(4) driver has been overhauled. The ebus(4) and sbus(4)
319	attachments have been removed. Make sure to configure scc(4)
320	on sparc64. Note also that by default puc(4) will use uart(4)
321	and not sio(4) for serial ports because interrupt handling has
322	been optimized for multi-port serial cards and only uart(4)
323	implements the interface to support it.
324
32520060330:
326	The scc(4) driver replaces puc(4) for Serial Communications
327	Controllers (SCCs) like the Siemens SAB82532 and the Zilog
328	Z8530. On sparc64, it is advised to add scc(4) to the kernel
329	configuration to make sure that the serial ports remain
330	functional.
331
33220060317:
333	Most world/kernel related NO_* build options changed names.
334	New knobs have common prefixes WITHOUT_*/WITH_* (modelled
335	after FreeBSD ports) and should be set in /etc/src.conf
336	(the src.conf(5) manpage is provided).  Full backwards
337	compatibility is maintained for the time being though it's
338	highly recommended to start moving old options out of the
339	system-wide /etc/make.conf file into the new /etc/src.conf
340	while also properly renaming them.  More conversions will
341	likely follow.  Posting to current@:
342
343	http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
344
34520060305:
346	The NETSMBCRYPTO kernel option has been retired because its
347	functionality is always included in NETSMB and smbfs.ko now.
348
34920060303:
350	The TDFX_LINUX kernel option was retired and replaced by the
351	tdfx_linux device.  The latter can be loaded as the 3dfx_linux.ko
352	kernel module.  Loading it alone should suffice to get 3dfx support
353	for Linux apps because it will pull in 3dfx.ko and linux.ko through
354	its dependencies.
355
35620060204:
357	The 'audit' group was added to support the new auditing functionality
358	in the base system.  Be sure to follow the directions for updating,
359	including the requirement to run mergemaster -p.
360
36120060201:
362	The kernel ABI to file system modules was changed on i386.
363	Please make sure that your kernel and modules are in sync.
364	
36520060118:
366	This actually occured some time ago, but installing the kernel
367	now also installs a bunch of symbol files for the kernel modules.
368	This increases the size of /boot/kernel to about 67Mbytes. You
369	will need twice this if you will eventually back this up to kernel.old
370	on your next install.
371	If you have a shortage of room in your root partition, you should add
372	-DINSTALL_NODEBUG to your make arguments or add INSTALL_NODEBUG="yes"
373	to your /etc/make.conf.
374
37520060113:
376	libc's malloc implementation has been replaced.  This change has the
377	potential to uncover application bugs that previously went unnoticed.
378	See the malloc(3) manual page for more details.
379
38020060112:
381	The generic netgraph(4) cookie has been changed. If you upgrade
382	kernel passing this point, you also need to upgrade userland
383	and netgraph(4) utilities like ports/net/mpd or ports/net/mpd4.
384
38520060106:
386	si(4)'s device files now contain the unit number.
387	Uses of {cua,tty}A[0-9a-f] should be replaced by {cua,tty}A0[0-9a-f].
388
38920060106:
390	The kernel ABI was mostly destroyed due to a change in the size
391	of struct lock_object which is nested in other structures such
392	as mutexes which are nested in all sorts of other structures.
393	Make sure your kernel and modules are in sync.
394
39520051231:
396	The page coloring algorithm in the VM subsystem was converted
397	from tuning with kernel options to autotuning. Please remove
398	any PQ_* option except PQ_NOOPT from your kernel config.
399
40020051211:
401	The net80211-related tools in the tools/tools/ath directory
402	have been moved to tools/tools/net80211 and renamed with a
403	"wlan" prefix.  Scripts that use them should be adjusted
404	accordingly.
405
40620051202:
407	Scripts in the local_startup directories (as defined in
408	/etc/defaults/rc.conf) that have the new rc.d semantics will
409	now be run as part of the base system rcorder. If there are
410	errors or problems with one of these local scripts, it could
411	cause boot problems. If you encounter such problems, boot in
412	single user mode, remove that script from the */rc.d directory.
413	Please report the problem to the port's maintainer, and the
414	freebsd-ports@freebsd.org mailing list.
415
41620051129:
417	The nodev mount option was deprecated in RELENG_6 (where it
418	was a no-op), and is now unsupported.  If you have nodev or dev listed
419	in /etc/fstab, remove it, otherwise it will result in a mount error.
420
42120051129:
422	ABI between ipfw(4) and ipfw(8) has been changed. You need
423	to rebuild ipfw(8) when rebuilding kernel.
424
42520051108:
426	rp(4)'s device files now contain the unit number.
427	Uses of {cua,tty}R[0-9a-f] should be replaced by {cua,tty}R0[0-9a-f].
428
42920051029:
430	/etc/rc.d/ppp-user has been renamed to /etc/rc.d/ppp.
431	Its /etc/rc.conf.d configuration file has been `ppp' from
432	the beginning, and hence there is no need to touch it.
433
43420051014:
435	Now most modules get their build-time options from the kernel
436	configuration file.  A few modules still have fixed options
437	due to their non-conformant implementation, but they will be
438	corrected eventually.  You may need to review the options of
439	the modules in use, explicitly specify the non-default options
440	in the kernel configuration file, and rebuild the kernel and
441	modules afterwards.
442
44320051001:
444	kern.polling.enable sysctl MIB is now deprecated. Use ifconfig(8)
445	to turn polling(4) on your interfaces.
446
44720050927:
448	The old bridge(4) implementation was retired.  The new
449	if_bridge(4) serves as a full functional replacement.
450
45120050722:
452	The ai_addrlen of a struct addrinfo was changed to a socklen_t
453	to conform to POSIX-2001.  This change broke an ABI
454	compatibility on 64 bit architecture.  You have to recompile
455	userland programs that use getaddrinfo(3) on 64 bit
456	architecture.
457
45820050711:
459	RELENG_6 branched here.
460
46120050629:
462	The pccard_ifconfig rc.conf variable has been removed and a new
463	variable, ifconfig_DEFAULT has been introduced.  Unlike
464	pccard_ifconfig, ifconfig_DEFAULT applies to ALL interfaces that
465	do not have ifconfig_ifn entries rather than just those in
466	removable_interfaces.
467
46820050616:
469	Some previous versions of PAM have permitted the use of
470	non-absolute paths in /etc/pam.conf or /etc/pam.d/* when referring
471	to third party PAM modules in /usr/local/lib.  A change has been
472	made to require the use of absolute paths in order to avoid
473	ambiguity and dependence on library path configuration, which may
474	affect existing configurations.
475
47620050610:
477	Major changes to network interface API.  All drivers must be
478	recompiled.  Drivers not in the base system will need to be
479	updated to the new APIs.
480
48120050609:
482	Changes were made to kinfo_proc in sys/user.h.  Please recompile
483	userland, or commands like `fstat', `pkill', `ps', `top' and `w'
484	will not behave correctly.
485
486	The API and ABI for hwpmc(4) have changed with the addition
487	of sampling support.  Please recompile lib/libpmc(3) and
488	usr.sbin/{pmcstat,pmccontrol}.
489
49020050606:
491	The OpenBSD dhclient was imported in place of the ISC dhclient
492	and the network interface configuration scripts were updated
493	accordingly.  If you use DHCP to configure your interfaces, you
494	must now run devd.  Also, DNS updating was lost so you will need
495	to find a workaround if you use this feature.
496
497	The '_dhcp' user was added to support the OpenBSD dhclient.  Be
498	sure to run mergemaster -p (like you are supposed to do every time
499	anyway).
500
50120050605:
502	if_bridge was added to the tree. This has changed struct ifnet.
503	Please recompile userland and all network related modules.
504
50520050603:
506	The n_net of a struct netent was changed to an uint32_t, and
507	1st argument of getnetbyaddr() was changed to an uint32_t, to
508	conform to POSIX-2001.  These changes broke an ABI
509	compatibility on 64 bit architecture.  With these changes,
510	shlib major of libpcap was bumped.  You have to recompile
511	userland programs that use getnetbyaddr(3), getnetbyname(3),
512	getnetent(3) and/or libpcap on 64 bit architecture.
513
51420050528:
515	Kernel parsing of extra options on '#!' first lines of shell
516	scripts has changed.  Lines with multiple options likely will
517	fail after this date.  For full details, please see
518		http://people.freebsd.org/~gad/Updating-20050528.txt
519
52020050503:
521	The packet filter (pf) code has been updated to OpenBSD 3.7
522	Please note the changed anchor syntax and the fact that
523	authpf(8) now needs a mounted fdescfs(5) to function.
524
52520050415:
526	The NO_MIXED_MODE kernel option has been removed from the i386
527	amd64 platforms as its use has been superceded by the new local
528	APIC timer code.  Any kernel config files containing this option
529	should be updated.
530
53120050227:
532	The on-disk format of LC_CTYPE files was changed to be machine
533	independent.  Please make sure NOT to use NO_CLEAN buildworld
534	when crossing this point. Crossing this point also requires
535	recompile or reinstall of all locale depended packages.
536
53720050225:
538	The ifi_epoch member of struct if_data has been changed to
539	contain the uptime at which the interface was created or the
540	statistics zeroed rather then the wall clock time because
541	wallclock time may go backwards.  This should have no impact
542	unless an snmp implementation is using this value (I know of
543	none at this point.)
544
54520050224:
546	The acpi_perf and acpi_throttle drivers are now part of the
547	acpi(4) main module.  They are no longer built separately.
548
54920050223:
550	The layout of struct image_params has changed. You have to
551	recompile all compatibility modules (linux, svr4, etc) for use
552	with the new kernel.
553
55420050223:
555	The p4tcc driver has been merged into cpufreq(4).  This makes
556	"options CPU_ENABLE_TCC" obsolete.  Please load cpufreq.ko or
557	compile in "device cpufreq" to restore this functionality.
558
55920050220:
560	The responsibility of recomputing the file system summary of
561	a SoftUpdates-enabled dirty volume has been transferred to the
562	background fsck.  A rebuild of fsck(8) utility is recommended
563	if you have updated the kernel.
564
565	To get the old behavior (recompute file system summary at mount
566	time), you can set vfs.ffs.compute_summary_at_mount=1 before
567	mounting the new volume.
568
56920050206:
570	The cpufreq import is complete.  As part of this, the sysctls for
571	acpi(4) throttling have been removed.  The power_profile script
572	has been updated, so you can use performance/economy_cpu_freq in
573	rc.conf(5) to set AC on/offline cpu frequencies.
574
57520050206:
576	NG_VERSION has been increased. Recompiling kernel (or ng_socket.ko)
577	requires recompiling libnetgraph and userland netgraph utilities.
578
57920050114:
580	Support for abbreviated forms of a number of ipfw options is
581	now deprecated.  Warnings are printed to stderr indicating the
582	correct full form when a match occurs.  Some abbreviations may
583	be supported at a later date based on user feedback.  To be
584	considered for support, abbreviations must be in use prior to
585	this commit and unlikely to be confused with current key words.
586
58720041221:
588	By a popular demand, a lot of NOFOO options were renamed
589	to NO_FOO (see bsd.compat.mk for a full list).  The old
590	spellings are still supported, but will cause annoying
591	warnings on stderr.  Make sure you upgrade properly (see
592	the COMMON ITEMS: section later in this file).
593
59420041219:
595	Auto-loading of ancillary wlan modules such as wlan_wep has
596	been temporarily disabled; you need to statically configure
597	the modules you need into your kernel or explicitly load them
598	prior to use.  Specifically, if you intend to use WEP encryption
599	with an 802.11 device load/configure wlan_wep; if you want to
600	use WPA with the ath driver load/configure wlan_tkip, wlan_ccmp,
601	and wlan_xauth as required.
602
60320041213:
604	The behaviour of ppp(8) has changed slightly.  If lqr is enabled
605	(``enable lqr''), older versions would revert to LCP ECHO mode on
606	negotiation failure.  Now, ``enable echo'' is required for this
607	behaviour.  The ppp version number has been bumped to 3.4.2 to
608	reflect the change.
609
61020041201:
611	The wlan support has been updated to split the crypto support
612	into separate modules.  For static WEP you must configure the
613	wlan_wep module in your system or build and install the module
614	in place where it can be loaded (the kernel will auto-load
615	the module when a wep key is configured).
616
61720041201:
618	The ath driver has been updated to split the tx rate control
619	algorithm into a separate module.  You need to include either
620	ath_rate_onoe or ath_rate_amrr when configuring the kernel.
621
62220041116:
623	Support for systems with an 80386 CPU has been removed.  Please
624	use FreeBSD 5.x or earlier on systems with an 80386.
625
62620041110:
627	We have had a hack which would mount the root filesystem
628	R/W if the device were named 'md*'.  As part of the vnode
629	work I'm doing I have had to remove this hack.  People
630	building systems which use preloaded MD root filesystems
631	may need to insert a "/sbin/mount -u -o rw /dev/md0 /" in
632	their /etc/rc scripts.
633
63420041104:
635	FreeBSD 5.3 shipped here.
636
63720041102:
638	The size of struct tcpcb has changed again due to the removal
639	of RFC1644 T/TCP.  You have to recompile userland programs that
640	read kmem for tcp sockets directly (netstat, sockstat, etc.)
641
64220041022:
643	The size of struct tcpcb has changed.  You have to recompile
644	userland programs that read kmem for tcp sockets directly
645	(netstat, sockstat, etc.)
646
64720041016:
648	RELENG_5 branched here.  For older entries, please see updating
649	in the RELENG_5 branch.
650
651COMMON ITEMS:
652
653	General Notes
654	-------------
655	Avoid using make -j when upgrading.  From time to time in the
656	past there have been problems using -j with buildworld and/or
657	installworld.  This is especially true when upgrading between
658	"distant" versions (eg one that cross a major release boundary
659	or several minor releases, or when several months have passed
660	on the -current branch).
661
662	Sometimes, obscure build problems are the result of environment
663	poisoning.  This can happen because the make utility reads its
664	environment when searching for values for global variables.
665	To run your build attempts in an "environmental clean room",
666	prefix all make commands with 'env -i '.  See the env(1) manual
667	page for more details.
668
669	When upgrading from one major version to another it is generally
670	best to upgrade to the latest code in the currently installed branch
671	first, then do an upgrade to the new branch. This is the best-tested
672	upgrade path, and has the highest probability of being successful.
673	Please try this approach before reporting problems with a major
674	version upgrade.
675
676	To build a kernel
677	-----------------
678	If you are updating from a prior version of FreeBSD (even one just
679	a few days old), you should follow this procedure.  It is the most
680	failsafe as it uses a /usr/obj tree with a fresh mini-buildworld,
681
682	make kernel-toolchain
683	make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
684	make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
685
686	To test a kernel once
687	---------------------
688	If you just want to boot a kernel once (because you are not sure
689	if it works, or if you want to boot a known bad kernel to provide
690	debugging information) run
691	make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
692	nextboot -k testkernel
693
694	To just build a kernel when you know that it won't mess you up
695	--------------------------------------------------------------
696	This assumes you are already running a 5.X system.  Replace
697	${arch} with the architecture of your machine (e.g. "i386",
698	"alpha", "amd64", "ia64", "pc98", "sparc64", etc).
699
700	cd src/sys/${arch}/conf
701	config KERNEL_NAME_HERE
702	cd ../compile/KERNEL_NAME_HERE
703	make depend
704	make
705	make install
706
707	If this fails, go to the "To build a kernel" section.
708
709	To rebuild everything and install it on the current system.
710	-----------------------------------------------------------
711	# Note: sometimes if you are running current you gotta do more than
712	# is listed here if you are upgrading from a really old current.
713
714	<make sure you have good level 0 dumps>
715	make buildworld
716	make kernel KERNCONF=YOUR_KERNEL_HERE
717							[1]
718	<reboot in single user>				[3]
719	mergemaster -p					[5]
720	make installworld
721	make delete-old
722	mergemaster					[4]
723	<reboot>
724
725
726	To cross-install current onto a separate partition
727	--------------------------------------------------
728	# In this approach we use a separate partition to hold
729	# current's root, 'usr', and 'var' directories.   A partition
730	# holding "/", "/usr" and "/var" should be about 2GB in
731	# size.
732
733	<make sure you have good level 0 dumps>
734	<boot into -stable>
735	make buildworld
736	make buildkernel KERNCONF=YOUR_KERNEL_HERE
737	<maybe newfs current's root partition>
738	<mount current's root partition on directory ${CURRENT_ROOT}>
739	make installworld DESTDIR=${CURRENT_ROOT}
740	make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
741	make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
742	cp /etc/fstab ${CURRENT_ROOT}/etc/fstab 		   # if newfs'd
743	<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
744	<reboot into current>
745	<do a "native" rebuild/install as described in the previous section>
746	<maybe install compatibility libraries from src/lib/compat>
747 	<reboot>
748
749
750	To upgrade in-place from 5.x-stable to current
751	----------------------------------------------
752	<make sure you have good level 0 dumps>
753	make buildworld					[9]
754	make kernel KERNCONF=YOUR_KERNEL_HERE		[8]
755							[1]
756	<reboot in single user>				[3]
757	mergemaster -p					[5]
758	make installworld
759	make delete-old
760	mergemaster -i					[4]
761	<reboot>
762
763	Make sure that you've read the UPDATING file to understand the
764	tweaks to various things you need.  At this point in the life
765	cycle of current, things change often and you are on your own
766	to cope.  The defaults can also change, so please read ALL of
767	the UPDATING entries.
768
769	Also, if you are tracking -current, you must be subscribed to
770	freebsd-current@freebsd.org.  Make sure that before you update
771	your sources that you have read and understood all the recent
772	messages there.  If in doubt, please track -stable which has
773	much fewer pitfalls.
774
775	[1] If you have third party modules, such as vmware, you
776	should disable them at this point so they don't crash your
777	system on reboot.
778
779	[3] From the bootblocks, boot -s, and then do
780		fsck -p
781		mount -u /
782		mount -a
783		cd src
784		adjkerntz -i		# if CMOS is wall time
785	Also, when doing a major release upgrade, it is required that
786	you boot into single user mode to do the installworld.
787
788	[4] Note: This step is non-optional.  Failure to do this step
789	can result in a significant reduction in the functionality of the
790	system.  Attempting to do it by hand is not recommended and those
791	that pursue this avenue should read this file carefully, as well
792	as the archives of freebsd-current and freebsd-hackers mailing lists
793	for potential gotchas.
794
795	[5] Usually this step is a noop.  However, from time to time
796	you may need to do this if you get unknown user in the following
797	step.  It never hurts to do it all the time.  You may need to
798	install a new mergemaster (cd src/usr.sbin/mergemaster && make
799	install) after the buildworld before this step if you last updated
800	from current before 20020224 or from -stable before 20020408.
801
802	[8] In order to have a kernel that can run the 4.x binaries
803	needed to do an installworld, you must include the COMPAT_FREEBSD4
804	option in your kernel.  Failure to do so may leave you with a system
805	that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
806	is required to run the 5.x binaries on more recent kernels.
807
808	Make sure that you merge any new devices from GENERIC since the
809	last time you updated your kernel config file.
810
811	[9] When checking out sources, you must include the -P flag to have
812	cvs prune empty directories.
813
814	If CPUTYPE is defined in your /etc/make.conf, make sure to use the
815	"?=" instead of the "=" assignment operator, so that buildworld can
816	override the CPUTYPE if it needs to.
817
818	MAKEOBJDIRPREFIX must be defined in an environment variable, and
819	not on the command line, or in /etc/make.conf.  buildworld will
820	warn if it is improperly defined.
821FORMAT:
822
823This file contains a list, in reverse chronological order, of major
824breakages in tracking -current.  Not all things will be listed here,
825and it only starts on October 16, 2004.  Updating files can found in
826previous releases if your system is older than this.
827
828Copyright information:
829
830Copyright 1998-2005 M. Warner Losh.  All Rights Reserved.
831
832Redistribution, publication, translation and use, with or without
833modification, in full or in part, in any form or format of this
834document are permitted without further permission from the author.
835
836THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
837IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
838WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
839DISCLAIMED.  IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
840INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
841(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
842SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
843HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
844STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
845IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
846POSSIBILITY OF SUCH DAMAGE.
847
848If you find this document useful, and you want to, you may buy the
849author a beer.
850
851Contact Warner Losh if you have any questions about your use of
852this document.
853
854$FreeBSD: head/UPDATING 170613 2007-06-12 16:24:56Z bms $
855