UPDATING revision 263508
1219089SpjdUpdating Information for FreeBSD current users
2219089Spjd
3219089SpjdThis file is maintained and copyrighted by M. Warner Losh <imp@freebsd.org>.
4219089SpjdSee end of file for further details.  For commonly done items, please see the
5219089SpjdCOMMON ITEMS: section later in the file.  These instructions assume that you
6219089Spjdbasically know what you are doing.  If not, then please consult the FreeBSD
7219089Spjdhandbook:
8219089Spjd
9219089Spjd    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
10219089Spjd
11219089SpjdItems affecting the ports and packages system can be found in
12219089Spjd/usr/ports/UPDATING.  Please read that file before running portupgrade.
13219089Spjd
14219089SpjdNOTE: FreeBSD has switched from gcc to clang. If you have trouble bootstrapping
15219089Spjdfrom older versions of FreeBSD, try WITHOUT_CLANG to bootstrap to the tip of
16219089Spjdstable/10, and then rebuild without this option. The bootstrap process from
17219089Spjdolder version of current is a bit fragile.
18219089Spjd
19219089Spjd
20219089Spjd20140321:
21219089Spjd	Clang and llvm have been upgraded to 3.4 release.
22219089Spjd
23219089Spjd20140306:
24249195Smm	If a Makefile in a tests/ directory was auto-generating a Kyuafile
25219089Spjd	instead of providing an explicit one, this would prevent such
26219089Spjd	Makefile from providing its own Kyuafile in the future during
27219089Spjd	NO_CLEAN builds.  This has been fixed in the Makefiles but manual
28219089Spjd	intervention is needed to clean an objdir if you use NO_CLEAN:
29219089Spjd	  # find /usr/obj -name Kyuafile | xargs rm -f
30219089Spjd
31219089Spjd20140303:
32219089Spjd	OpenSSH will now ignore errors caused by kernel lacking of Capsicum
33219089Spjd	capability mode support.  Please note that enabling the feature in
34219089Spjd	kernel is still highly recommended.
35219089Spjd
36219089Spjd20140227:
37219089Spjd	OpenSSH is now built with sandbox support, and will use sandbox as
38219089Spjd	the default privilege separation method.  This requires Capsicum
39219089Spjd	capability mode support in kernel.
40219089Spjd
41219089Spjd20140216:
42219089Spjd	The nve(4) driver for NVIDIA nForce MCP Ethernet adapters has
43219089Spjd	been deprecated and will not be part of FreeBSD 11.0 and later
44219089Spjd	releases.  If you use this driver, please consider switching to
45219089Spjd	the nfe(4) driver instead.
46219089Spjd
47219089Spjd20140120:
48219089Spjd	10.0-RELEASE.
49219089Spjd
50219089Spjd20131216:
51219089Spjd	The behavior of gss_pseudo_random() for the krb5 mechanism
52219089Spjd	has changed, for applications requesting a longer random string
53219089Spjd	than produced by the underlying enctype's pseudo-random() function.
54219089Spjd	In particular, the random string produced from a session key of
55219089Spjd	enctype aes256-cts-hmac-sha1-96 or aes256-cts-hmac-sha1-96 will
56219089Spjd	be different at the 17th octet and later, after this change.
57219089Spjd	The counter used in the PRF+ construction is now encoded as a
58219089Spjd	big-endian integer in accordance with RFC 4402.
59219089Spjd	__FreeBSD_version is bumped to 1000701.
60219089Spjd
61219089Spjd20131108:
62219089Spjd	The WITHOUT_ATF build knob has been removed and its functionality
63219089Spjd	has been subsumed into the more generic WITHOUT_TESTS.  If you were
64219089Spjd	using the former to disable the build of the ATF libraries, you
65219089Spjd	should change your settings to use the latter.
66219089Spjd
67219089Spjd20131031:
68219089Spjd	The default version of mtree is nmtree which is obtained from
69219089Spjd	NetBSD.  The output is generally the same, but may vary
70219089Spjd	slightly.  If you found you need identical output adding
71219089Spjd	"-F freebsd9" to the command line should do the trick.  For the
72219089Spjd	time being, the old mtree is available as fmtree.
73219089Spjd
74219089Spjd20131014:
75219089Spjd	libbsdyml has been renamed to libyaml and moved to /usr/lib/private.
76219089Spjd	This will break ports-mgmt/pkg. Rebuild the port, or upgrade to pkg
77219089Spjd	1.1.4_8 and verify bsdyml not linked in, before running "make
78219089Spjd	delete-old-libs":
79219089Spjd	  # make -C /usr/ports/ports-mgmt/pkg build deinstall install clean
80219089Spjd	  or
81219089Spjd	  # pkg install pkg; ldd /usr/local/sbin/pkg | grep bsdyml
82219089Spjd
83219089Spjd20131010:
84219089Spjd	The rc.d/jail script has been updated to support jail(8)
85219089Spjd	configuration file.  The "jail_<jname>_*" rc.conf(5) variables
86219089Spjd	for per-jail configuration are automatically converted to
87219089Spjd	/var/run/jail.<jname>.conf before the jail(8) utility is invoked.
88219089Spjd	This is transparently backward compatible.  See below about some
89219089Spjd	incompatibilities and rc.conf(5) manual page for more details.
90219089Spjd
91219089Spjd	These variables are now deprecated in favor of jail(8) configuration
92245264Sdelphij	file.  One can use "rc.d/jail config <jname>" command to generate
93219089Spjd	a jail(8) configuration file in /var/run/jail.<jname>.conf without
94219089Spjd	running the jail(8) utility.   The default pathname of the
95219089Spjd	configuration file is /etc/jail.conf and can be specified by
96219089Spjd	using $jail_conf or $jail_<jname>_conf variables.
97219089Spjd
98245264Sdelphij	Please note that jail_devfs_ruleset accepts an integer at
99219089Spjd	this moment.  Please consider to rewrite the ruleset name
100219089Spjd	with an integer.
101219089Spjd
102219089Spjd20130930:
103219089Spjd	BIND has been removed from the base system.  If all you need
104219089Spjd	is a local resolver, simply enable and start the local_unbound
105219089Spjd	service instead.  Otherwise, several versions of BIND are
106219089Spjd	available in the ports tree.   The dns/bind99 port is one example.
107219089Spjd
108219089Spjd	With this change, nslookup(1) and dig(1) are no longer in the base
109219089Spjd	system.  Users should instead use host(1) and drill(1) which are
110219089Spjd	in the base system.  Alternatively, nslookup and dig can
111219089Spjd	be obtained by installing the dns/bind-tools port.
112219089Spjd
113245264Sdelphij20130916:
114219089Spjd	With the addition of unbound(8), a new unbound user is now
115219089Spjd	required during installworld.  "mergemaster -p" can be used to
116219089Spjd	add the user prior to installworld, as documented in the handbook.
117219089Spjd
118219089Spjd20130911:
119219089Spjd	OpenSSH is now built with DNSSEC support, and will by default
120219089Spjd	silently trust signed SSHFP records.  This can be controlled with
121219089Spjd	the VerifyHostKeyDNS client configuration setting.  DNSSEC support
122219089Spjd	can be disabled entirely with the WITHOUT_LDNS option in src.conf.
123219089Spjd
124219089Spjd20130906:
125219089Spjd	The GNU Compiler Collection and C++ standard library (libstdc++)
126219089Spjd	are no longer built by default on platforms where clang is the system
127219089Spjd	compiler.  You can enable them with the WITH_GCC and WITH_GNUCXX
128219089Spjd	options in src.conf.  
129219089Spjd
130219089Spjd20130905:
131219089Spjd	The PROCDESC kernel option is now part of the GENERIC kernel
132219089Spjd	configuration and is required for the rwhod(8) to work.
133219089Spjd	If you are using custom kernel configuration, you should include
134245264Sdelphij	'options PROCDESC'.
135245264Sdelphij
136245264Sdelphij20130905:
137245264Sdelphij	The API and ABI related to the Capsicum framework was modified
138245264Sdelphij	in backward incompatible way. The userland libraries and programs
139219089Spjd	have to be recompiled to work with the new kernel. This includes the
140219089Spjd	following libraries and programs, but the whole buildworld is
141219089Spjd	advised: libc, libprocstat, dhclient, tcpdump, hastd, hastctl,
142219089Spjd	kdump, procstat, rwho, rwhod, uniq.
143219089Spjd
144219089Spjd20130903:
145219089Spjd	AES-NI intrinsic support has been added to gcc.  The AES-NI module
146219089Spjd	has been updated to use this support.  A new gcc is required to build
147219089Spjd	the aesni module on both i386 and amd64.
148219089Spjd
149219089Spjd20130821:
150219089Spjd	The PADLOCK_RNG and RDRAND_RNG kernel options are now devices.
151219089Spjd	Thus "device padlock_rng" and "device rdrand_rng" should be
152245264Sdelphij	used instead of "options PADLOCK_RNG" & "options RDRAND_RNG".
153219089Spjd
154219089Spjd20130813:
155219089Spjd	WITH_ICONV has been split into two feature sets.  WITH_ICONV now
156219089Spjd	enables just the iconv* functionality and is now on by default.
157219089Spjd	WITH_LIBICONV_COMPAT enables the libiconv api and link time
158219089Spjd	compatability.  Set WITHOUT_ICONV to build the old way.
159219089Spjd	If you have been using WITH_ICONV before, you will very likely
160219089Spjd	need to turn on WITH_LIBICONV_COMPAT.
161219089Spjd
162219089Spjd20130806:
163219089Spjd	INVARIANTS option now enables DEBUG for code with OpenSolaris and
164219089Spjd	Illumos origin, including ZFS.  If you have INVARIANTS in your
165245264Sdelphij	kernel configuration, then there is no need to set DEBUG or ZFS_DEBUG
166219089Spjd	explicitly.
167245264Sdelphij	DEBUG used to enable witness(9) tracking of OpenSolaris (mostly ZFS)
168219089Spjd	locks if WITNESS option was set.  Because that generated a lot of
169219089Spjd	witness(9) reports and all of them were believed to be false
170219089Spjd	positives, this is no longer done.  New option OPENSOLARIS_WITNESS
171219089Spjd	can be used to achieve the previous behavior.
172219089Spjd
173219089Spjd20130806:
174219089Spjd	Timer values in IPv6 data structures now use time_uptime instead
175219089Spjd	of time_second.  Although this is not a user-visible functional
176219089Spjd	change, userland utilities which directly use them---ndp(8),
177249195Smm	rtadvd(8), and rtsold(8) in the base system---need to be updated
178219089Spjd	to r253970 or later.
179219089Spjd
180219089Spjd20130802:
181219089Spjd	find -delete can now delete the pathnames given as arguments,
182219089Spjd	instead of only files found below them or if the pathname did
183219089Spjd	not contain any slashes. Formerly, the following error message
184219089Spjd	would result:
185219089Spjd
186219089Spjd	find: -delete: <path>: relative path potentially not safe
187219089Spjd
188219089Spjd	Deleting the pathnames given as arguments can be prevented
189219089Spjd	without error messages using -mindepth 1 or by changing
190219089Spjd	directory and passing "." as argument to find. This works in the
191219089Spjd	old as well as the new version of find.
192219089Spjd
193219089Spjd20130726:
194219089Spjd	Behavior of devfs rules path matching has been changed.
195219089Spjd	Pattern is now always matched against fully qualified devfs
196219089Spjd	path and slash characters must be explicitly matched by
197219089Spjd	slashes in pattern (FNM_PATHNAME). Rulesets involving devfs
198219089Spjd	subdirectories must be reviewed.
199219089Spjd
200219089Spjd20130716:
201219089Spjd	The default ARM ABI has changed to the ARM EABI. The old ABI is
202219089Spjd	incompatible with the ARM EABI and all programs and modules will
203219089Spjd	need to be rebuilt to work with a new kernel.
204219089Spjd
205219089Spjd	To keep using the old ABI ensure the WITHOUT_ARM_EABI knob is set.
206219089Spjd
207219089Spjd	NOTE: Support for the old ABI will be removed in the future and
208219089Spjd	users are advised to upgrade.
209219089Spjd
210219089Spjd20130709:
211219089Spjd	pkg_install has been disconnected from the build if you really need it
212219089Spjd	you should add WITH_PKGTOOLS in your src.conf(5).
213219089Spjd
214219089Spjd20130709:
215219089Spjd	Most of network statistics structures were changed to be able
216219089Spjd	keep 64-bits counters. Thus all tools, that work with networking
217219089Spjd	statistics, must be rebuilt (netstat(1), bsnmpd(1), etc.)
218219089Spjd
219219089Spjd20130629:
220219089Spjd	Fix targets that run multiple make's to use && rather than ;
221219089Spjd	so that subsequent steps depend on success of previous.
222219089Spjd
223219089Spjd	NOTE: if building 'universe' with -j* on stable/8 or stable/9
224245264Sdelphij	it would be better to start the build using bmake, to avoid
225245264Sdelphij	overloading the machine.
226219089Spjd
227219089Spjd20130618:
228219089Spjd	Fix a bug that allowed a tracing process (e.g. gdb) to write
229219089Spjd	to a memory-mapped file in the traced process's address space
230245264Sdelphij	even if neither the traced process nor the tracing process had
231219089Spjd	write access to that file.
232219089Spjd
233219089Spjd20130615:
234219089Spjd	CVS has been removed from the base system.  An exact copy
235219089Spjd	of the code is available from the devel/cvs port.
236219089Spjd
237219089Spjd20130613:
238249195Smm	Some people report the following error after the switch to bmake:
239219089Spjd
240219089Spjd		make: illegal option -- J
241219089Spjd		usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable]
242219089Spjd			...
243219089Spjd		*** [buildworld] Error code 2
244219089Spjd
245219089Spjd	this likely due to an old instance of make in
246219089Spjd	${MAKEPATH} (${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE})
247219089Spjd	which src/Makefile will use that blindly, if it exists, so if
248219089Spjd	you see the above error:
249219089Spjd
250219089Spjd		rm -rf `make -V MAKEPATH`
251219089Spjd
252219089Spjd	should resolve it.
253219089Spjd
254219089Spjd20130516:
255219089Spjd	Use bmake by default.
256219089Spjd	Whereas before one could choose to build with bmake via
257219089Spjd	-DWITH_BMAKE one must now use -DWITHOUT_BMAKE to use the old
258219089Spjd	make. The goal is to remove these knobs for 10-RELEASE.
259219089Spjd
260219089Spjd	It is worth noting that bmake (like gmake) treats the command
261219089Spjd	line as the unit of failure, rather than statements within the
262219089Spjd	command line.  Thus '(cd some/where && dosomething)' is safer
263219089Spjd	than 'cd some/where; dosomething'. The '()' allows consistent
264219089Spjd	behavior in parallel build.
265219089Spjd
266219089Spjd20130429:
267219089Spjd        Fix a bug that allows NFS clients to issue READDIR on files.
268219089Spjd
269219089Spjd20130426:
270219089Spjd	The WITHOUT_IDEA option has been removed because
271219089Spjd	the IDEA patent expired.
272219089Spjd
273219089Spjd20130426:
274219089Spjd	The sysctl which controls TRIM support under ZFS has been renamed
275219089Spjd	from vfs.zfs.trim_disable -> vfs.zfs.trim.enabled and has been
276219089Spjd	enabled by default.
277219089Spjd
278219089Spjd20130425:
279219089Spjd	The mergemaster command now uses the default MAKEOBJDIRPREFIX
280219089Spjd	rather than creating it's own in the temporary directory in
281219089Spjd	order allow access to bootstrapped versions of tools such as
282219089Spjd	install and mtree.  When upgrading from version of FreeBSD where
283219089Spjd	the install command does not support -l, you will need to
284219089Spjd	install a new mergemaster command if mergemaster -p is required.
285219089Spjd	This can be accomplished with the command (cd src/usr.sbin/mergemaster
286219089Spjd	&& make install).
287219089Spjd
288219089Spjd20130404:
289219089Spjd	Legacy ATA stack, disabled and replaced by new CAM-based one since
290219089Spjd	FreeBSD 9.0, completely removed from the sources.  Kernel modules
291219089Spjd	atadisk and atapi*, user-level tools atacontrol and burncd are
292219089Spjd	removed.  Kernel option `options ATA_CAM` is now permanently enabled
293219089Spjd	and removed.
294219089Spjd
295219089Spjd20130319:
296219089Spjd	SOCK_CLOEXEC and SOCK_NONBLOCK flags have been added to socket(2)
297219089Spjd	and socketpair(2). Software, in particular Kerberos, may
298219089Spjd	automatically detect and use these during building. The resulting
299219089Spjd	binaries will not work on older kernels.
300219089Spjd
301219089Spjd20130308:
302219089Spjd	CTL_DISABLE has also been added to the sparc64 GENERIC (for further
303219089Spjd	information, see the respective 20130304 entry).
304219089Spjd
305219089Spjd20130304:
306219089Spjd	Recent commits to callout(9) changed the size of struct callout,
307219089Spjd	so the KBI is probably heavily disturbed. Also, some functions
308219089Spjd	in callout(9)/sleep(9)/sleepqueue(9)/condvar(9) KPIs were replaced
309219089Spjd	by macros. Every kernel module using it won't load, so rebuild
310219089Spjd	is requested.
311219089Spjd
312219089Spjd	The ctl device has been re-enabled in GENERIC for i386 and amd64,
313219089Spjd	but does not initialize by default (because of the new CTL_DISABLE
314219089Spjd	option) to save memory.  To re-enable it, remove the CTL_DISABLE
315219089Spjd	option from the kernel config file or set kern.cam.ctl.disable=0
316219089Spjd	in /boot/loader.conf.
317219089Spjd
318219089Spjd20130301:
319219089Spjd	The ctl device has been disabled in GENERIC for i386 and amd64.
320219089Spjd	This was done due to the extra memory being allocated at system
321219089Spjd	initialisation time by the ctl driver which was only used if
322219089Spjd	a CAM target device was created.  This makes a FreeBSD system
323219089Spjd	unusable on 128MB or less of RAM.
324219089Spjd
325219089Spjd20130208:
326219089Spjd	A new compression method (lz4) has been merged to -HEAD.  Please
327219089Spjd	refer to zpool-features(7) for more information.
328219089Spjd
329219089Spjd	Please refer to the "ZFS notes" section of this file for information
330219089Spjd	on upgrading boot ZFS pools.
331219089Spjd
332219089Spjd20130129:
333219089Spjd	A BSD-licensed patch(1) variant has been added and is installed
334219089Spjd	as bsdpatch, being the GNU version the default patch.
335219089Spjd	To inverse the logic and use the BSD-licensed one as default,
336219089Spjd	while having the GNU version installed as gnupatch, rebuild
337219089Spjd	and install world with the WITH_BSD_PATCH knob set.
338219089Spjd
339219089Spjd20130121:
340219089Spjd	Due to the use of the new -l option to install(1) during build
341219089Spjd	and install, you must take care not to directly set the INSTALL
342219089Spjd	make variable in your /etc/make.conf, /etc/src.conf, or on the
343219089Spjd	command line.  If you wish to use the -C flag for all installs
344219089Spjd	you may be able to add INSTALL+=-C to /etc/make.conf or
345219089Spjd	/etc/src.conf.
346219089Spjd
347219089Spjd20130118:
348219089Spjd	The install(1) option -M has changed meaning and now takes an
349219089Spjd	argument that is a file or path to append logs to.  In the
350219089Spjd	unlikely event that -M was the last option on the command line
351219089Spjd	and the command line contained at least two files and a target
352219089Spjd	directory the first file will have logs appended to it.  The -M
353219089Spjd	option served little practical purpose in the last decade so its
354219089Spjd	use is expected to be extremely rare.
355219089Spjd
356219089Spjd20121223:
357219089Spjd	After switching to Clang as the default compiler some users of ZFS
358219089Spjd	on i386 systems started to experience stack overflow kernel panics.
359219089Spjd	Please consider using 'options KSTACK_PAGES=4' in such configurations.
360219089Spjd
361219089Spjd20121222:
362219089Spjd	GEOM_LABEL now mangles label names read from file system metadata.
363219089Spjd	Mangling affect labels containing spaces, non-printable characters,
364219089Spjd	'%' or '"'. Device names in /etc/fstab and other places may need to
365219089Spjd	be updated.
366219089Spjd
367219089Spjd20121217:
368219089Spjd	By default, only the 10 most recent kernel dumps will be saved.  To
369219089Spjd	restore the previous behaviour (no limit on the number of kernel dumps
370219089Spjd	stored in the dump directory) add the following line to /etc/rc.conf:
371219089Spjd
372219089Spjd		savecore_flags=""
373219089Spjd
374219089Spjd20121201:
375219089Spjd	With the addition of auditdistd(8), a new auditdistd user is now
376219089Spjd	required during installworld.  "mergemaster -p" can be used to
377219089Spjd	add the user prior to installworld, as documented in the handbook.
378219089Spjd
379219089Spjd20121117:
380219089Spjd	The sin6_scope_id member variable in struct sockaddr_in6 is now
381219089Spjd	filled by the kernel before passing the structure to the userland via
382219089Spjd	sysctl or routing socket.  This means the KAME-specific embedded scope
383219089Spjd	id in sin6_addr.s6_addr[2] is always cleared in userland application.
384219089Spjd	This behavior can be controlled by net.inet6.ip6.deembed_scopeid.
385219089Spjd	__FreeBSD_version is bumped to 1000025.
386219089Spjd
387219089Spjd20121105:
388219089Spjd	On i386 and amd64 systems WITH_CLANG_IS_CC is now the default.
389219089Spjd	This means that the world and kernel will be compiled with clang
390219089Spjd	and that clang will be installed as /usr/bin/cc, /usr/bin/c++,
391219089Spjd	and /usr/bin/cpp.  To disable this behavior and revert to building
392219089Spjd	with gcc, compile with WITHOUT_CLANG_IS_CC. Really old versions
393219089Spjd	of current may need to bootstrap WITHOUT_CLANG first if the clang
394219089Spjd	build fails (its compatibility window doesn't extend to the 9 stable
395219089Spjd	branch point).
396219089Spjd
397219089Spjd20121102:
398219089Spjd	The IPFIREWALL_FORWARD kernel option has been removed. Its
399219089Spjd	functionality now turned on by default.
400219089Spjd
401219089Spjd20121023:
402219089Spjd	The ZERO_COPY_SOCKET kernel option has been removed and
403219089Spjd	split into SOCKET_SEND_COW and SOCKET_RECV_PFLIP.
404219089Spjd	NB: SOCKET_SEND_COW uses the VM page based copy-on-write
405219089Spjd	mechanism which is not safe and may result in kernel crashes.
406219089Spjd	NB: The SOCKET_RECV_PFLIP mechanism is useless as no current
407219089Spjd	driver supports disposeable external page sized mbuf storage.
408219089Spjd	Proper replacements for both zero-copy mechanisms are under
409219089Spjd	consideration and will eventually lead to complete removal
410219089Spjd	of the two kernel options.
411219089Spjd
412219089Spjd20121023:
413219089Spjd	The IPv4 network stack has been converted to network byte
414219089Spjd	order. The following modules need to be recompiled together
415219089Spjd	with kernel: carp(4), divert(4), gif(4), siftr(4), gre(4),
416219089Spjd	pf(4), ipfw(4), ng_ipfw(4), stf(4).
417219089Spjd
418219089Spjd20121022:
419219089Spjd	Support for non-MPSAFE filesystems was removed from VFS. The
420219089Spjd	VFS_VERSION was bumped, all filesystem modules shall be
421219089Spjd	recompiled.
422219089Spjd
423219089Spjd20121018:
424219089Spjd	All the non-MPSAFE filesystems have been disconnected from
425219089Spjd	the build. The full list includes: codafs, hpfs, ntfs, nwfs,
426219089Spjd	portalfs, smbfs, xfs.
427219089Spjd
428219089Spjd20121016:
429219089Spjd	The interface cloning API and ABI has changed. The following
430219089Spjd	modules need to be recompiled together with kernel:
431219089Spjd	ipfw(4), pfsync(4), pflog(4), usb(4), wlan(4), stf(4),
432219089Spjd	vlan(4), disc(4), edsc(4), if_bridge(4), gif(4), tap(4),
433219089Spjd	faith(4), epair(4), enc(4), tun(4), if_lagg(4), gre(4).
434219089Spjd
435219089Spjd20121015:
436219089Spjd	The sdhci driver was split in two parts: sdhci (generic SD Host
437219089Spjd	Controller logic) and sdhci_pci (actual hardware driver).
438219089Spjd	No kernel config modifications are required, but if you
439219089Spjd	load sdhc as a module you must switch to sdhci_pci instead.
440219089Spjd
441219089Spjd20121014:
442219089Spjd	Import the FUSE kernel and userland support into base system.
443219089Spjd
444219089Spjd20121013:
445219089Spjd	The GNU sort(1) program has been removed since the BSD-licensed
446219089Spjd	sort(1) has been the default for quite some time and no serious
447219089Spjd	problems have been reported.  The corresponding WITH_GNU_SORT
448219089Spjd	knob has also gone.
449219089Spjd
450219089Spjd20121006:
451219089Spjd	The pfil(9) API/ABI for AF_INET family has been changed. Packet
452219089Spjd	filtering modules: pf(4), ipfw(4), ipfilter(4) need to be recompiled
453219089Spjd	with new kernel.
454219089Spjd
455219089Spjd20121001:
456219089Spjd	The net80211(4) ABI has been changed to allow for improved driver
457219089Spjd	PS-POLL and power-save support.  All wireless drivers need to be
458219089Spjd	recompiled to work with the new kernel.
459219089Spjd
460219089Spjd20120913:
461219089Spjd	The random(4) support for the VIA hardware random number
462219089Spjd	generator (`PADLOCK') is no longer enabled unconditionally.
463219089Spjd	Add the padlock_rng device in the custom kernel config if
464219089Spjd	needed.  The GENERIC kernels on i386 and amd64 do include the
465219089Spjd	device, so the change only affects the custom kernel
466219089Spjd	configurations.
467219089Spjd
468219089Spjd20120908:
469219089Spjd	The pf(4) packet filter ABI has been changed. pfctl(8) and
470219089Spjd	snmp_pf module need to be recompiled to work with new kernel.
471219089Spjd
472219089Spjd20120828:
473219089Spjd	A new ZFS feature flag "com.delphix:empty_bpobj" has been merged
474219089Spjd	to -HEAD. Pools that have empty_bpobj in active state can not be
475219089Spjd	imported read-write with ZFS implementations that do not support
476219089Spjd	this feature. For more information read the zpool-features(5)
477219089Spjd	manual page.
478219089Spjd
479219089Spjd20120727:
480219089Spjd	The sparc64 ZFS loader has been changed to no longer try to auto-
481219089Spjd	detect ZFS providers based on diskN aliases but now requires these
482219089Spjd	to be explicitly listed in the OFW boot-device environment variable. 
483219089Spjd
484219089Spjd20120712:
485219089Spjd	The OpenSSL has been upgraded to 1.0.1c.  Any binaries requiring
486219089Spjd	libcrypto.so.6 or libssl.so.6 must be recompiled.  Also, there are
487219089Spjd	configuration changes.  Make sure to merge /etc/ssl/openssl.cnf.
488219089Spjd
489219089Spjd20120712:
490219089Spjd	The following sysctls and tunables have been renamed for consistency
491219089Spjd	with other variables:
492219089Spjd	  kern.cam.da.da_send_ordered   -> kern.cam.da.send_ordered
493219089Spjd	  kern.cam.ada.ada_send_ordered -> kern.cam.ada.send_ordered
494219089Spjd
495219089Spjd20120628:
496219089Spjd	The sort utility has been replaced with BSD sort.  For now, GNU sort
497219089Spjd	is also available as "gnusort" or the default can be set back to
498219089Spjd	GNU sort by setting WITH_GNU_SORT.  In this case, BSD sort will be
499219089Spjd	installed as "bsdsort".
500219089Spjd
501219089Spjd20120611:
502219089Spjd	A new version of ZFS (pool version 5000) has been merged to -HEAD.
503219089Spjd	Starting with this version the old system of ZFS pool versioning
504219089Spjd	is superseded by "feature flags". This concept enables forward
505219089Spjd	compatibility against certain future changes in functionality of ZFS
506219089Spjd	pools. The first read-only compatible "feature flag" for ZFS pools
507219089Spjd	is named "com.delphix:async_destroy". For more information
508219089Spjd	read the new zpool-features(5) manual page.
509219089Spjd	Please refer to the "ZFS notes" section of this file for information
510219089Spjd	on upgrading boot ZFS pools.
511219089Spjd
512219089Spjd20120417:
513219089Spjd	The malloc(3) implementation embedded in libc now uses sources imported
514219089Spjd	as contrib/jemalloc.  The most disruptive API change is to
515219089Spjd	/etc/malloc.conf.  If your system has an old-style /etc/malloc.conf,
516219089Spjd	delete it prior to installworld, and optionally re-create it using the
517219089Spjd	new format after rebooting.  See malloc.conf(5) for details
518219089Spjd	(specifically the TUNING section and the "opt.*" entries in the MALLCTL
519219089Spjd	NAMESPACE section).
520219089Spjd
521219089Spjd20120328:
522219089Spjd	Big-endian MIPS TARGET_ARCH values no longer end in "eb".  mips64eb
523219089Spjd	is now spelled mips64.  mipsn32eb is now spelled mipsn32.  mipseb is
524219089Spjd	now spelled mips.  This is to aid compatibility with third-party
525219089Spjd	software that expects this naming scheme in uname(3).  Little-endian
526219089Spjd	settings are unchanged. If you are updating a big-endian mips64 machine
527219089Spjd	from before this change, you may need to set MACHINE_ARCH=mips64 in
528219089Spjd	your environment before the new build system will recognize your machine.
529219089Spjd
530219089Spjd20120306:
531219089Spjd	Disable by default the option VFS_ALLOW_NONMPSAFE for all supported
532219089Spjd	platforms.
533219089Spjd
534219089Spjd20120229:
535219089Spjd	Now unix domain sockets behave "as expected" on	nullfs(5). Previously
536219089Spjd	nullfs(5) did not pass through all behaviours to the underlying layer,
537219089Spjd	as a result if we bound to a socket on the lower layer we could connect
538219089Spjd	only to the lower path; if we bound to the upper layer we could connect
539219089Spjd	only to	the upper path. The new behavior is one can connect to both the
540219089Spjd	lower and the upper paths regardless what layer path one binds to.
541219089Spjd
542219089Spjd20120211:
543219089Spjd	The getifaddrs upgrade path broken with 20111215 has been restored.
544219089Spjd	If you have upgraded in between 20111215 and 20120209 you need to
545219089Spjd	recompile libc again with your kernel.  You still need to recompile
546219089Spjd	world to be able to configure CARP but this restriction already
547219089Spjd	comes from 20111215.
548219089Spjd
549219089Spjd20120114:
550219089Spjd	The set_rcvar() function has been removed from /etc/rc.subr.  All
551219089Spjd	base and ports rc.d scripts have been updated, so if you have a
552219089Spjd	port installed with a script in /usr/local/etc/rc.d you can either
553219089Spjd	hand-edit the rcvar= line, or reinstall the port.
554219089Spjd
555219089Spjd	An easy way to handle the mass-update of /etc/rc.d:
556219089Spjd	rm /etc/rc.d/* && mergemaster -i
557219089Spjd
558219089Spjd20120109:
559219089Spjd	panic(9) now stops other CPUs in the SMP systems, disables interrupts
560219089Spjd	on the current CPU and prevents other threads from running.
561219089Spjd	This behavior can be reverted using the kern.stop_scheduler_on_panic
562219089Spjd	tunable/sysctl.
563219089Spjd	The new behavior can be incompatible with kern.sync_on_panic.
564219089Spjd
565219089Spjd20111215:
566219089Spjd	The carp(4) facility has been changed significantly. Configuration
567219089Spjd	of the CARP protocol via ifconfig(8) has changed, as well as format
568219089Spjd	of CARP events submitted to devd(8) has changed. See manual pages
569219089Spjd	for more information. The arpbalance feature of carp(4) is currently
570219089Spjd	not supported anymore.
571219089Spjd
572219089Spjd	Size of struct in_aliasreq, struct in6_aliasreq has changed. User
573219089Spjd	utilities using SIOCAIFADDR, SIOCAIFADDR_IN6, e.g. ifconfig(8),
574219089Spjd	need to be recompiled.
575219089Spjd
576219089Spjd20111122:
577219089Spjd	The acpi_wmi(4) status device /dev/wmistat has been renamed to
578219089Spjd	/dev/wmistat0.
579219089Spjd
580219089Spjd20111108:
581219089Spjd	The option VFS_ALLOW_NONMPSAFE option has been added in order to
582219089Spjd	explicitely support non-MPSAFE filesystems.
583219089Spjd	It is on by default for all supported platform at this present
584219089Spjd	time.
585219089Spjd
586219089Spjd20111101:
587219089Spjd	The broken amd(4) driver has been replaced with esp(4) in the amd64,
588219089Spjd	i386 and pc98 GENERIC kernel configuration files.
589219089Spjd
590219089Spjd20110930:
591219089Spjd	sysinstall has been removed
592219089Spjd
593219089Spjd20110923:
594219089Spjd	The stable/9 branch created in subversion.  This corresponds to the
595219089Spjd	RELENG_9 branch in CVS.
596219089Spjd
597219089Spjd20110913:
598219089Spjd	This commit modifies vfs_register() so that it uses a hash
599219089Spjd	calculation to set vfc_typenum, which is enabled by default.
600219089Spjd	The first time a system is booted after this change, the
601219089Spjd	vfc_typenum values will change for all file systems. The
602219089Spjd	main effect of this is a change to the NFS server file handles
603219089Spjd	for file systems that use vfc_typenum in their fsid, such as ZFS.
604219089Spjd	It will, however, prevent vfc_typenum from changing when file
605219089Spjd	systems are loaded in a different order for subsequent reboots.
606219089Spjd	To disable this, you can set vfs.typenumhash=0 in /boot/loader.conf
607219089Spjd	until you are ready to remount all NFS clients after a reboot.
608219089Spjd
609219089Spjd20110828:
610219089Spjd	Bump the shared library version numbers for libraries that
611219089Spjd	do not use symbol versioning, have changed the ABI compared
612219089Spjd	to stable/8 and which shared library version was not bumped.
613219089Spjd	Done as part of 9.0-RELEASE cycle.
614219089Spjd
615219089Spjd20110815:
616219089Spjd	During the merge of Capsicum features, the fget(9) KPI was modified.
617219089Spjd	This may require the rebuilding of out-of-tree device drivers --
618219089Spjd	issues have been reported specifically with the nVidia device driver.
619219089Spjd	__FreeBSD_version is bumped to 900041.
620219089Spjd
621219089Spjd	Also, there is a period between 20110811 and 20110814 where the
622219089Spjd	special devices /dev/{stdin,stdout,stderr} did not work correctly.
623219089Spjd	Building world from a kernel during that window may not work.
624219089Spjd
625219089Spjd20110628:
626219089Spjd	The packet filter (pf) code has been updated to OpenBSD 4.5.
627219089Spjd	You need to update userland tools to be in sync with kernel.
628219089Spjd	This update breaks backward compatibility with earlier pfsync(4)
629219089Spjd	versions.  Care must be taken when updating redundant firewall setups.
630219089Spjd
631219089Spjd20110608:
632219089Spjd	The following sysctls and tunables are retired on x86 platforms:
633219089Spjd		machdep.hlt_cpus
634219089Spjd		machdep.hlt_logical_cpus
635219089Spjd	The following sysctl is retired:
636219089Spjd		machdep.hyperthreading_allowed
637219089Spjd	The sysctls were supposed to provide a way to dynamically offline and
638219089Spjd	online selected CPUs on x86 platforms, but the implementation has not
639219089Spjd	been reliable especially with SCHED_ULE scheduler.
640219089Spjd	machdep.hyperthreading_allowed tunable is still available to ignore
641219089Spjd	hyperthreading CPUs at OS level.
642219089Spjd	Individual CPUs can be disabled using hint.lapic.X.disabled tunable,
643219089Spjd	where X is an APIC ID of a CPU.  Be advised, though, that disabling
644219089Spjd	CPUs in non-uniform fashion will result in non-uniform topology and
645219089Spjd	may lead to sub-optimal system performance with SCHED_ULE, which is
646219089Spjd	a default scheduler.
647219089Spjd
648219089Spjd20110607:
649219089Spjd	cpumask_t type is retired and cpuset_t is used in order to describe
650219089Spjd	a mask of CPUs.
651219089Spjd
652219089Spjd20110531:
653219089Spjd	Changes to ifconfig(8) for dynamic address family detection mandate
654219089Spjd	that you are running a kernel of 20110525 or later.  Make sure to
655219089Spjd	follow the update procedure to boot a new kernel before installing
656219089Spjd	world.
657219089Spjd
658219089Spjd20110513:
659219089Spjd	Support for sun4v architecture is officially dropped
660219089Spjd
661219089Spjd20110503:
662219089Spjd	Several KPI breaking changes have been committed to the mii(4) layer,
663219089Spjd	the PHY drivers and consequently some Ethernet drivers using mii(4).
664219089Spjd	This means that miibus.ko and the modules of the affected Ethernet
665219089Spjd	drivers need to be recompiled.
666219089Spjd
667219089Spjd	Note to kernel developers: Given that the OUI bit reversion problem
668219089Spjd	was fixed as part of these changes all mii(4) commits related to OUIs,
669219089Spjd	i.e. to sys/dev/mii/miidevs, PHY driver probing and vendor specific
670219089Spjd	handling, no longer can be merged verbatim to stable/8 and previous
671219089Spjd	branches.
672219089Spjd
673219089Spjd20110430:
674219089Spjd	Users of the Atheros AR71xx SoC code now need to add 'device ar71xx_pci'
675219089Spjd	into their kernel configurations along with 'device pci'.
676219089Spjd
677219089Spjd20110427:
678219089Spjd	The default NFS client is now the new NFS client, so fstype "newnfs"
679219089Spjd	is now "nfs" and the regular/old NFS client is now fstype "oldnfs".
680219089Spjd	Although mounts via fstype "nfs" will usually work without userland
681219089Spjd	changes, it is recommended that the mount(8) and mount_nfs(8)
682219089Spjd	commands be rebuilt from sources and that a link to mount_nfs called
683219089Spjd	mount_oldnfs be created. The new client is compiled into the
684219089Spjd	kernel with "options NFSCL" and this is needed for diskless root
685219089Spjd	file systems. The GENERIC kernel configs have been changed to use
686219089Spjd	NFSCL and NFSD (the new server) instead of NFSCLIENT and NFSSERVER.
687219089Spjd	To use the regular/old client, you can "mount -t oldnfs ...". For
688219089Spjd	a diskless root file system, you must also include a line like:
689219089Spjd	
690219089Spjd	vfs.root.mountfrom="oldnfs:"
691219089Spjd
692219089Spjd	in the boot/loader.conf on the root fs on the NFS server to make
693219089Spjd	a diskless root fs use the old client.
694219089Spjd
695219089Spjd20110424:
696219089Spjd	The GENERIC kernels for all architectures now default to the new
697219089Spjd	CAM-based ATA stack. It means that all legacy ATA drivers were
698219089Spjd	removed and replaced by respective CAM drivers. If you are using
699219089Spjd	ATA device names in /etc/fstab or other places, make sure to update
700219089Spjd	them respectively (adX -> adaY, acdX -> cdY, afdX -> daY, astX -> saY,
701219089Spjd	where 'Y's are the sequential numbers starting from zero for each type
702219089Spjd	in order of detection, unless configured otherwise with tunables,
703219089Spjd	see cam(4)). There will be symbolic links created in /dev/ to map
704219089Spjd	old adX devices to the respective adaY. They should provide basic
705219089Spjd	compatibility for file systems mounting in most cases, but they do
706219089Spjd	not support old user-level APIs and do not have respective providers
707219089Spjd	in GEOM. Consider using updated management tools with new device names.
708219089Spjd
709219089Spjd	It is possible to load devices ahci, ata, siis and mvs as modules,
710219089Spjd	but option ATA_CAM should remain in kernel configuration to make ata
711219089Spjd	module work as CAM driver supporting legacy ATA controllers. Device ata
712219089Spjd	still can be used in modular fashion (atacore + ...). Modules atadisk
713219089Spjd	and atapi* are not used and won't affect operation in ATA_CAM mode.
714219089Spjd	Note that to use CAM-based ATA kernel should include CAM devices
715219089Spjd	scbus, pass, da (or explicitly ada), cd and optionally others. All of
716219089Spjd	them are parts of the cam module.
717219089Spjd
718219089Spjd	ataraid(4) functionality is now supported by the RAID GEOM class.
719219089Spjd	To use it you can load geom_raid kernel module and use graid(8) tool
720219089Spjd	for management. Instead of /dev/arX device names, use /dev/raid/rX.
721219089Spjd
722219089Spjd	No kernel config options or code have been removed, so if a problem
723219089Spjd	arises, please report it and optionally revert to the old ATA stack.
724219089Spjd	In order to do it you can remove from the kernel config:
725219089Spjd	    options        ATA_CAM
726219089Spjd	    device         ahci
727219089Spjd	    device         mvs
728219089Spjd	    device         siis
729219089Spjd	, and instead add back:
730219089Spjd	    device         atadisk         # ATA disk drives
731219089Spjd	    device         ataraid         # ATA RAID drives
732219089Spjd	    device         atapicd         # ATAPI CDROM drives
733219089Spjd	    device         atapifd         # ATAPI floppy drives
734219089Spjd	    device         atapist         # ATAPI tape drives
735219089Spjd
736219089Spjd20110423:
737219089Spjd	The default NFS server has been changed to the new server, which
738219089Spjd	was referred to as the experimental server. If you need to switch
739219089Spjd	back to the old NFS server, you must now put the "-o" option on
740219089Spjd	both the mountd and nfsd commands. This can be done using the
741219089Spjd	mountd_flags and nfs_server_flags rc.conf variables until an
742219089Spjd	update to the rc scripts is committed, which is coming soon.
743219089Spjd
744219089Spjd20110418:
745219089Spjd	The GNU Objective-C runtime library (libobjc), and other Objective-C
746219089Spjd	related components have been removed from the base system.  If you
747219089Spjd	require an Objective-C library, please use one of the available ports.
748219089Spjd
749219089Spjd20110331:
750219089Spjd	ath(4) has been split into bus- and device- modules. if_ath contains
751219089Spjd	the HAL, the TX rate control and the network device code. if_ath_pci
752219089Spjd	contains the PCI bus glue. For Atheros MIPS embedded systems, if_ath_ahb
753219089Spjd	contains the AHB glue. Users need to load both if_ath_pci and if_ath
754219089Spjd	in order to use ath on everything else.
755219089Spjd
756219089Spjd	TO REPEAT: if_ath_ahb is not needed for normal users. Normal users only
757219089Spjd	need to load if_ath and if_ath_pci for ath(4) operation.
758219089Spjd
759219089Spjd20110314:
760219089Spjd	As part of the replacement of sysinstall, the process of building
761219089Spjd	release media has changed significantly. For details, please re-read
762219089Spjd	release(7), which has been updated to reflect the new build process.
763219089Spjd
764219089Spjd20110218:
765219089Spjd	GNU binutils 2.17.50 (as of 2007-07-03) has been merged to -HEAD.  This
766219089Spjd	is the last available version under GPLv2.  It brings a number of new
767219089Spjd	features, such as support for newer x86 CPU's (with SSE-3, SSSE-3, SSE
768219089Spjd	4.1 and SSE 4.2), better support for powerpc64, a number of new
769219089Spjd	directives, and lots of other small improvements.  See the ChangeLog
770219089Spjd	file in contrib/binutils for the full details.
771219089Spjd
772219089Spjd20110218:
773219089Spjd	IPsec's HMAC_SHA256-512 support has been fixed to be RFC4868
774219089Spjd	compliant, and will now use half of hash for authentication.
775219089Spjd	This will break interoperability with all stacks (including all
776219089Spjd	actual FreeBSD versions) who implement
777219089Spjd	draft-ietf-ipsec-ciph-sha-256-00 (they use 96 bits of hash for
778219089Spjd	authentication).
779219089Spjd	The only workaround with such peers is to use another HMAC
780219089Spjd	algorithm for IPsec ("phase 2") authentication.
781219089Spjd
782219089Spjd20110207:
783219089Spjd	Remove the uio_yield prototype and symbol.  This function has
784219089Spjd	been misnamed since it was introduced and should not be
785219089Spjd	globally exposed with this name.  The equivalent functionality
786219089Spjd	is now available using kern_yield(curthread->td_user_pri).
787219089Spjd	The function remains undocumented.
788219089Spjd
789219089Spjd20110112:
790219089Spjd	A SYSCTL_[ADD_]UQUAD was added for unsigned uint64_t pointers,
791219089Spjd	symmetric with the existing SYSCTL_[ADD_]QUAD.  Type checking
792219089Spjd	for scalar sysctls is defined but disabled.  Code that needs
793219089Spjd	UQUAD to pass the type checking that must compile on older
794219089Spjd	systems where the define is not present can check against
795219089Spjd	__FreeBSD_version >= 900030.
796219089Spjd
797219089Spjd	The system dialog(1) has been replaced with a new version previously
798219089Spjd	in ports as devel/cdialog. dialog(1) is mostly command-line compatible
799219089Spjd	with the previous version, but the libdialog associated with it has
800219089Spjd	a largely incompatible API. As such, the original version of libdialog
801219089Spjd	will be kept temporarily as libodialog, until its base system consumers
802219089Spjd	are replaced or updated. Bump __FreeBSD_version to 900030.
803219089Spjd
804219089Spjd20110103:
805219089Spjd	If you are trying to run make universe on a -stable system, and you get
806219089Spjd	the following warning:
807219089Spjd	"Makefile", line 356: "Target architecture for i386/conf/GENERIC 
808219089Spjd	unknown.  config(8) likely too old."
809219089Spjd	or something similar to it, then you must upgrade your -stable system
810219089Spjd	to 8.2-Release or newer (really, any time after r210146 7/15/2010 in
811219089Spjd	stable/8) or build the config from the latest stable/8 branch and
812219089Spjd	install it on your system.
813219089Spjd
814219089Spjd	Prior to this date, building a current universe on 8-stable system from
815219089Spjd	between 7/15/2010 and 1/2/2011 would result in a weird shell parsing
816219089Spjd	error in the first kernel build phase.  A new config on those old 
817219089Spjd	systems will fix that problem for older versions of -current.
818219089Spjd
819219089Spjd20101228:
820219089Spjd	The TCP stack has been modified to allow Khelp modules to interact with
821219089Spjd	it via helper hook points and store per-connection data in the TCP
822219089Spjd	control block. Bump __FreeBSD_version to 900029. User space tools that
823219089Spjd	rely on the size of struct tcpcb in tcp_var.h (e.g. sockstat) need to
824219089Spjd	be recompiled.
825219089Spjd
826219089Spjd20101114:
827219089Spjd	Generic IEEE 802.3 annex 31B full duplex flow control support has been
828219089Spjd	added to mii(4) and bge(4), bce(4), msk(4), nfe(4) and stge(4) along
829219089Spjd	with brgphy(4), e1000phy(4) as well as ip1000phy() have been converted
830219089Spjd	to take advantage of it instead of using custom implementations.  This
831219089Spjd	means that these drivers now no longer unconditionally advertise
832219089Spjd	support for flow control but only do so if flow control is a selected
833219089Spjd	media option.  This was implemented in the generic support that way in
834219089Spjd	order to allow flow control to be switched on and off via ifconfig(8)
835219089Spjd	with the PHY specific default to typically off in order to protect
836219089Spjd	from unwanted effects.  Consequently, if you used flow control with
837219089Spjd	one of the above mentioned drivers you now need to explicitly enable
838219089Spjd	it, for example via:
839219089Spjd		ifconfig bge0 media auto mediaopt flowcontrol
840219089Spjd
841219089Spjd	Along with the above mentioned changes generic support for setting
842219089Spjd	1000baseT master mode also has been added and brgphy(4), ciphy(4),
843219089Spjd	e1000phy(4) as well as ip1000phy(4) have been converted to take
844219089Spjd	advantage of it.  This means that these drivers now no longer take the
845219089Spjd	link0 parameter for selecting master mode but the master media option
846219089Spjd	has to be used instead, for example like in the following:
847219089Spjd		ifconfig bge0 media 1000baseT mediaopt full-duplex,master
848219089Spjd
849219089Spjd	Selection of master mode now is also available with all other PHY
850219089Spjd	drivers supporting 1000baseT.
851219089Spjd
852219089Spjd20101111:
853219089Spjd	The TCP stack has received a significant update to add support for
854219089Spjd	modularised congestion control and generally improve the clarity of
855219089Spjd	congestion control decisions. Bump __FreeBSD_version to 900025. User
856219089Spjd	space tools that rely on the size of struct tcpcb in tcp_var.h (e.g.
857219089Spjd	sockstat) need to be recompiled.
858219089Spjd
859219089Spjd20101002:
860219089Spjd	The man(1) utility has been replaced by a new version that no longer
861219089Spjd	uses /etc/manpath.config. Please consult man.conf(5) for how to
862219089Spjd	migrate local entries to the new format.
863219089Spjd
864219089Spjd20100928:
865219089Spjd	The copyright strings printed by login(1) and sshd(8) at the time of a
866219089Spjd	new connection have been removed to follow other operating systems and
867219089Spjd	upstream sshd.
868219089Spjd
869219089Spjd20100915:
870219089Spjd	A workaround for a fixed ld bug has been removed in kernel code,
871219089Spjd	so make sure that your system ld is built from sources after
872219089Spjd	revision 210245 from 2010-07-19 (r211583 if building head kernel
873219089Spjd	on stable/8, r211584 for stable/7; both from 2010-08-21).
874219089Spjd	A symptom of incorrect ld version is different addresses for
875219089Spjd	set_pcpu section and __start_set_pcpu symbol in kernel and/or modules.
876219089Spjd
877219089Spjd20100913:
878219089Spjd	The $ipv6_prefer variable in rc.conf(5) has been split into
879219089Spjd	$ip6addrctl_policy and $ipv6_activate_all_interfaces.
880219089Spjd
881219089Spjd	The $ip6addrctl_policy is a variable to choose a pre-defined
882219089Spjd	address selection policy set by ip6addrctl(8).  A value
883219089Spjd	"ipv4_prefer", "ipv6_prefer" or "AUTO" can be specified.  The
884219089Spjd	default is "AUTO".
885219089Spjd
886219089Spjd	The $ipv6_activate_all_interfaces specifies whether IFDISABLED
887219089Spjd	flag (see an entry of 20090926) is set on an interface with no
888219089Spjd	corresponding $ifconfig_IF_ipv6 line.  The default is "NO" for
889219089Spjd	security reason.  If you want IPv6 link-local address on all
890219089Spjd	interfaces by default, set this to "YES".
891219089Spjd
892219089Spjd	The old ipv6_prefer="YES" is equivalent to
893219089Spjd	ipv6_activate_all_interfaces="YES" and
894219089Spjd	ip6addrctl_policy="ipv6_prefer".
895219089Spjd
896219089Spjd20100913:
897219089Spjd	DTrace has grown support for userland tracing. Due to this, DTrace is
898219089Spjd	now i386 and amd64 only.
899219089Spjd	dtruss(1) is now installed by default on those systems and a new
900219089Spjd	kernel module is needed for userland tracing: fasttrap.
901219089Spjd	No changes to your kernel config file are necessary to enable
902219089Spjd	userland tracing, but you might consider adding 'STRIP=' and
903219089Spjd	'CFLAGS+=-fno-omit-frame-pointer' to your make.conf if you want
904219089Spjd	to have informative userland stack traces in DTrace (ustack).
905219089Spjd
906219089Spjd20100725:
907219089Spjd	The acpi_aiboost(4) driver has been removed in favor of the new
908219089Spjd	aibs(4) driver. You should update your kernel configuration file.
909219089Spjd
910219089Spjd20100722:
911219089Spjd	BSD grep has been imported to the base system and it is built by
912219089Spjd	default.  It is completely BSD licensed, highly GNU-compatible, uses
913219089Spjd	less memory than its GNU counterpart and has a small codebase.
914219089Spjd	However, it is slower than its GNU counterpart, which is mostly
915219089Spjd	noticeable for larger searches, for smaller ones it is measurable
916219089Spjd	but not significant.  The reason is complex, the most important factor
917219089Spjd	is that we lack a modern and efficient regex library and GNU
918219089Spjd	overcomes this by optimizing the searches internally.  Future work
919219089Spjd	on improving the regex performance is planned, for the meantime,
920219089Spjd	users that need better performance, can build GNU grep instead by
921219089Spjd	setting the WITH_GNU_GREP knob.
922219089Spjd
923219089Spjd20100713:
924219089Spjd	Due to the import of powerpc64 support, all existing powerpc kernel
925219089Spjd	configuration files must be updated with a machine directive like this:
926219089Spjd	    machine powerpc powerpc
927219089Spjd
928219089Spjd	In addition, an updated config(8) is required to build powerpc kernels
929219089Spjd	after this change.
930219089Spjd
931219089Spjd20100713:
932219089Spjd	A new version of ZFS (version 15) has been merged to -HEAD.
933219089Spjd	This version uses a python library for the following subcommands:
934219089Spjd	zfs allow, zfs unallow, zfs groupspace, zfs userspace.
935219089Spjd	For full functionality of these commands the following port must
936219089Spjd	be installed: sysutils/py-zfs
937219089Spjd
938219089Spjd20100429:
939219089Spjd	'vm_page's are now hashed by physical address to an array of mutexes.
940219089Spjd	Currently this is only used to serialize access to hold_count. Over 
941219089Spjd	time the page queue mutex will be peeled away. This changes the size
942219089Spjd	of pmap on every architecture. And requires all callers of vm_page_hold
943219089Spjd	and vm_page_unhold to be updated. 
944219089Spjd 
945219089Spjd20100402:
946219089Spjd	WITH_CTF can now be specified in src.conf (not recommended, there
947219089Spjd	are some problems with static executables), make.conf (would also
948219089Spjd	affect ports which do not use GNU make and do not override the
949219089Spjd	compile targets) or in the kernel config (via "makeoptions
950219089Spjd	WITH_CTF=yes").
951219089Spjd	When WITH_CTF was specified there before this was silently ignored,
952219089Spjd	so make sure that WITH_CTF is not used in places which could lead
953219089Spjd	to unwanted behavior.
954219089Spjd
955219089Spjd20100311:
956219089Spjd	The kernel option COMPAT_IA32 has been replaced with COMPAT_FREEBSD32
957219089Spjd	to allow 32-bit compatibility on non-x86 platforms. All kernel
958219089Spjd	configurations on amd64 and ia64 platforms using these options must
959219089Spjd	be modified accordingly.
960219089Spjd
961219089Spjd20100113:
962219089Spjd	The utmp user accounting database has been replaced with utmpx,
963219089Spjd	the user accounting interface standardized by POSIX.
964219089Spjd	Unfortunately the semantics of utmp and utmpx don't match,
965219089Spjd	making it practically impossible to support both interfaces.
966219089Spjd	The user accounting database is used by tools like finger(1),
967219089Spjd	last(1), talk(1), w(1) and ac(8).
968219089Spjd
969219089Spjd	All applications in the base system use utmpx.  This means only
970219089Spjd	local binaries (e.g. from the ports tree) may still use these
971219089Spjd	utmp database files.  These applications must be rebuilt to make
972219089Spjd	use of utmpx.
973219089Spjd
974219089Spjd	After the system has been upgraded, it is safe to remove the old
975219089Spjd	log files (/var/run/utmp, /var/log/lastlog and /var/log/wtmp*),
976219089Spjd	assuming their contents is of no importance anymore.  Old wtmp
977219089Spjd	databases can only be used by last(1) and ac(8) after they have
978219089Spjd	been converted to the new format using wtmpcvt(1).
979219089Spjd
980219089Spjd20100108:
981219089Spjd	Introduce the kernel thread "deadlock resolver" (which can be enabled
982219089Spjd	via the DEADLKRES option, see NOTES for more details) and the
983219089Spjd	sleepq_type() function for sleepqueues.
984219089Spjd
985219089Spjd20091202:
986219089Spjd	The rc.firewall and rc.firewall6 were unified, and
987219089Spjd	rc.firewall6 and rc.d/ip6fw were removed.
988219089Spjd	According to the removal of rc.d/ip6fw, ipv6_firewall_* rc
989219089Spjd	variables are obsoleted.  Instead, the following new rc
990219089Spjd	variables are added to rc.d/ipfw:
991219089Spjd
992219089Spjd		firewall_client_net_ipv6, firewall_simple_iif_ipv6,
993219089Spjd		firewall_simple_inet_ipv6, firewall_simple_oif_ipv6,
994219089Spjd		firewall_simple_onet_ipv6, firewall_trusted_ipv6
995219089Spjd
996219089Spjd	The meanings correspond to the relevant IPv4 variables.
997219089Spjd
998219089Spjd20091125:
999219089Spjd	8.0-RELEASE.
1000219089Spjd
1001219089Spjd20091113:
1002219089Spjd	The default terminal emulation for syscons(4) has been changed
1003219089Spjd	from cons25 to xterm on all platforms except pc98.  This means
1004219089Spjd	that the /etc/ttys file needs to be updated to ensure correct
1005219089Spjd	operation of applications on the console.
1006219089Spjd
1007219089Spjd	The terminal emulation style can be toggled per window by using
1008219089Spjd	vidcontrol(1)'s -T flag.  The TEKEN_CONS25 kernel configuration
1009219089Spjd	options can be used to change the compile-time default back to
1010219089Spjd	cons25.
1011219089Spjd
1012219089Spjd	To prevent graphical artifacts, make sure the TERM environment
1013219089Spjd	variable is set to match the terminal emulation that is being
1014219089Spjd	performed by syscons(4).
1015219089Spjd
1016219089Spjd20091109:
1017219089Spjd	The layout of the structure ieee80211req_scan_result has changed.
1018219089Spjd	Applications that require wireless scan results (e.g. ifconfig(8))
1019219089Spjd	from net80211 need to be recompiled.
1020219089Spjd
1021219089Spjd	Applications such as wpa_supplicant(8) may require a full world
1022219089Spjd	build without using NO_CLEAN in order to get synchronized with the
1023219089Spjd	new structure.
1024219089Spjd
1025219089Spjd20091025:
1026219089Spjd	The iwn(4) driver has been updated to support the 5000 and 5150 series.
1027219089Spjd	There's one kernel module for each firmware. Adding "device iwnfw"
1028219089Spjd	to the kernel configuration file means including all three firmware
1029219089Spjd	images inside the kernel. If you want to include just the one for
1030219089Spjd	your wireless card, use the devices iwn4965fw, iwn5000fw or
1031219089Spjd	iwn5150fw.
1032219089Spjd
1033219089Spjd20090926:
1034219089Spjd	The rc.d/network_ipv6, IPv6 configuration script has been integrated
1035219089Spjd	into rc.d/netif.  The changes are the following:
1036219089Spjd
1037219089Spjd	1. To use IPv6, simply define $ifconfig_IF_ipv6 like $ifconfig_IF
1038219089Spjd	   for IPv4.  For aliases, $ifconfig_IF_aliasN should be used.
1039219089Spjd	   Note that both variables need the "inet6" keyword at the head.
1040219089Spjd
1041219089Spjd	   Do not set $ipv6_network_interfaces manually if you do not
1042219089Spjd	   understand what you are doing.  It is not needed in most cases. 
1043219089Spjd
1044219089Spjd	   $ipv6_ifconfig_IF and $ipv6_ifconfig_IF_aliasN still work, but
1045219089Spjd	   they are obsolete.
1046219089Spjd
1047219089Spjd	2. $ipv6_enable is obsolete.  Use $ipv6_prefer and
1048219089Spjd	   "inet6 accept_rtadv" keyword in ifconfig(8) instead.
1049219089Spjd
1050219089Spjd	   If you define $ipv6_enable=YES, it means $ipv6_prefer=YES and
1051219089Spjd	   all configured interfaces have "inet6 accept_rtadv" in the
1052219089Spjd	   $ifconfig_IF_ipv6.  These are for backward compatibility.
1053219089Spjd
1054219089Spjd	3. A new variable $ipv6_prefer has been added.  If NO, IPv6
1055219089Spjd	   functionality of interfaces with no corresponding
1056219089Spjd	   $ifconfig_IF_ipv6 is disabled by using "inet6 ifdisabled" flag,
1057219089Spjd	   and the default address selection policy of ip6addrctl(8) 
1058219089Spjd	   is the IPv4-preferred one (see rc.d/ip6addrctl for more details).
1059219089Spjd	   Note that if you want to configure IPv6 functionality on the
1060219089Spjd	   disabled interfaces after boot, first you need to clear the flag by
1061219089Spjd	   using ifconfig(8) like:
1062219089Spjd
1063219089Spjd		ifconfig em0 inet6 -ifdisabled
1064219089Spjd
1065219089Spjd	   If YES, the default address selection policy is set as
1066219089Spjd	   IPv6-preferred.
1067219089Spjd
1068219089Spjd	   The default value of $ipv6_prefer is NO.
1069219089Spjd
1070219089Spjd	4. If your system need to receive Router Advertisement messages,
1071219089Spjd	   define "inet6 accept_rtadv" in $ifconfig_IF_ipv6.  The rc(8)
1072219089Spjd	   scripts automatically invoke rtsol(8) when the interface becomes
1073219089Spjd	   UP.  The Router Advertisement messages are used for SLAAC
1074219089Spjd	   (State-Less Address AutoConfiguration).
1075219089Spjd
1076219089Spjd20090922:
1077219089Spjd	802.11s D3.03 support was committed. This is incompatible with the
1078219089Spjd	previous code, which was based on D3.0.
1079236884Smm
1080236884Smm20090912:
1081236884Smm	A sysctl variable net.inet6.ip6.accept_rtadv now sets the default value
1082219089Spjd	of a per-interface flag ND6_IFF_ACCEPT_RTADV, not a global knob to
1083219089Spjd	control whether accepting Router Advertisement messages or not.
1084219089Spjd	Also, a per-interface flag ND6_IFF_AUTO_LINKLOCAL has been added and
1085219089Spjd	a sysctl variable net.inet6.ip6.auto_linklocal is its default value.
1086219089Spjd	The ifconfig(8) utility now supports these flags.
1087219089Spjd
1088219089Spjd20090910:
1089219089Spjd	ZFS snapshots are now mounted with MNT_IGNORE flag. Use -v option for
1090245264Sdelphij	mount(8) and -a option for df(1) to see them.
1091219089Spjd
1092219089Spjd20090825:
1093219089Spjd	The old tunable hw.bus.devctl_disable has been superseded by
1094245264Sdelphij	hw.bus.devctl_queue.  hw.bus.devctl_disable=1 in loader.conf should be
1095245264Sdelphij	replaced by hw.bus.devctl_queue=0.  The default for this new tunable
1096245264Sdelphij	is 1000.
1097219089Spjd
1098219089Spjd20090813:
1099219089Spjd	Remove the option STOP_NMI.  The default action is now to use NMI only
1100219089Spjd	for KDB via the newly introduced function stop_cpus_hard() and
1101219089Spjd	maintain stop_cpus() to just use a normal IPI_STOP on ia32 and amd64.
1102219089Spjd
1103219089Spjd20090803:
1104219089Spjd	The stable/8 branch created in subversion.  This corresponds to the
1105219089Spjd	RELENG_8 branch in CVS.
1106219089Spjd
1107219089Spjd20090719:
1108219089Spjd	Bump the shared library version numbers for all libraries that do not
1109219089Spjd	use symbol versioning as part of the 8.0-RELEASE cycle.  Bump
1110219089Spjd	__FreeBSD_version to 800105.
1111219089Spjd
1112219089Spjd20090714:
1113219089Spjd	Due to changes in the implementation of virtual network stack support,
1114219089Spjd	all network-related kernel modules must be recompiled.  As this change
1115219089Spjd	breaks the ABI, bump __FreeBSD_version to 800104.
1116219089Spjd
1117219089Spjd20090713:
1118219089Spjd	The TOE interface to the TCP syncache has been modified to remove
1119219089Spjd	struct tcpopt (<netinet/tcp_var.h>) from the ABI of the network stack.
1120219089Spjd	The cxgb driver is the only TOE consumer affected by this change, and
1121219089Spjd	needs to be recompiled along with the kernel. As this change breaks
1122219089Spjd	the ABI, bump __FreeBSD_version to 800103.
1123219089Spjd
1124219089Spjd20090712: 
1125219089Spjd	Padding has been added to struct tcpcb, sackhint and tcpstat in
1126219089Spjd	<netinet/tcp_var.h> to facilitate future MFCs and bug fixes whilst
1127219089Spjd	maintaining the ABI. However, this change breaks the ABI, so bump
1128219089Spjd	__FreeBSD_version to 800102. User space tools that rely on the size of
1129219089Spjd	any of these structs (e.g. sockstat) need to be recompiled.
1130219089Spjd
1131219089Spjd20090630:
1132219089Spjd	The NFS_LEGACYRPC option has been removed along with the old kernel
1133219089Spjd	RPC implementation that this option selected. Kernel configurations
1134219089Spjd	may need to be adjusted.
1135219089Spjd
1136219089Spjd20090629:
1137219089Spjd	The network interface device nodes at /dev/net/<interface> have been
1138219089Spjd	removed.  All ioctl operations can be performed the normal way using
1139219089Spjd	routing sockets.  The kqueue functionality can generally be replaced
1140219089Spjd	with routing sockets.
1141219089Spjd
1142219089Spjd20090628:
1143219089Spjd	The documentation from the FreeBSD Documentation Project (Handbook,
1144219089Spjd	FAQ, etc.) is now installed via packages by sysinstall(8) and under
1145219089Spjd	the /usr/local/share/doc/freebsd directory instead of /usr/share/doc.
1146219089Spjd
1147219089Spjd20090624:
1148219089Spjd	The ABI of various structures related to the SYSV IPC API have been
1149219089Spjd	changed.  As a result, the COMPAT_FREEBSD[456] and COMPAT_43 kernel
1150219089Spjd	options now all require COMPAT_FREEBSD7.  Bump __FreeBSD_version to
1151219089Spjd	800100.
1152219089Spjd
1153219089Spjd20090622:
1154219089Spjd	Layout of struct vnet has changed as routing related variables were
1155219089Spjd	moved to their own Vimage module. Modules need to be recompiled.  Bump
1156219089Spjd	__FreeBSD_version to 800099.
1157219089Spjd
1158219089Spjd20090619:
1159219089Spjd	NGROUPS_MAX and NGROUPS have been increased from 16 to 1023 and 1024
1160249195Smm	respectively.  As long as no more than 16 groups per process are used,
1161219089Spjd	no changes should be visible.  When more than 16 groups are used, old
1162	binaries may fail if they call getgroups() or getgrouplist() with
1163	statically sized storage.  Recompiling will work around this, but
1164	applications should be modified to use dynamically allocated storage
1165	for group arrays as POSIX.1-2008 does not cap an implementation's
1166	number of supported groups at NGROUPS_MAX+1 as previous versions did.
1167
1168	NFS and portalfs mounts may also be affected as the list of groups is
1169	truncated to 16.  Users of NFS who use more than 16 groups, should
1170	take care that negative group permissions are not used on the exported
1171	file systems as they will not be reliable unless a GSSAPI based
1172	authentication method is used.
1173
117420090616: 
1175	The compiling option ADAPTIVE_LOCKMGRS has been introduced.  This
1176	option compiles in the support for adaptive spinning for lockmgrs
1177	which want to enable it.  The lockinit() function now accepts the flag
1178	LK_ADAPTIVE in order to make the lock object subject to adaptive
1179	spinning when both held in write and read mode.
1180
118120090613:
1182	The layout of the structure returned by IEEE80211_IOC_STA_INFO has
1183	changed.  User applications that use this ioctl need to be rebuilt.
1184
118520090611:
1186	The layout of struct thread has changed.  Kernel and modules need to
1187	be rebuilt.
1188
118920090608:
1190	The layout of structs ifnet, domain, protosw and vnet_net has changed.
1191	Kernel modules need to be rebuilt.  Bump __FreeBSD_version to 800097.
1192
119320090602:
1194	window(1) has been removed from the base system. It can now be
1195	installed from ports. The port is called misc/window.
1196
119720090601:
1198	The way we are storing and accessing `routing table' entries has
1199	changed. Programs reading the FIB, like netstat, need to be
1200	re-compiled.
1201
120220090601:
1203	A new netisr implementation has been added for FreeBSD 8.  Network
1204	file system modules, such as igmp, ipdivert, and others, should be
1205	rebuilt.
1206	Bump __FreeBSD_version to 800096.
1207
120820090530:
1209	Remove the tunable/sysctl debug.mpsafevfs as its initial purpose is no
1210	more valid.
1211
121220090530:
1213	Add VOP_ACCESSX(9).  File system modules need to be rebuilt.
1214	Bump __FreeBSD_version to 800094.
1215
121620090529:
1217	Add mnt_xflag field to 'struct mount'.  File system modules need to be
1218	rebuilt.
1219	Bump __FreeBSD_version to 800093.
1220
122120090528:
1222	The compiling option ADAPTIVE_SX has been retired while it has been
1223	introduced the option NO_ADAPTIVE_SX which handles the reversed logic.
1224	The KPI for sx_init_flags() changes as accepting flags:
1225	SX_ADAPTIVESPIN flag has been retired while the SX_NOADAPTIVE flag has
1226	been introduced in order to handle the reversed logic.
1227	Bump __FreeBSD_version to 800092.
1228
122920090527:
1230	Add support for hierarchical jails.  Remove global securelevel.
1231	Bump __FreeBSD_version to 800091.
1232
123320090523:
1234	The layout of struct vnet_net has changed, therefore modules
1235	need to be rebuilt.
1236	Bump __FreeBSD_version to 800090.
1237
123820090523:
1239	The newly imported zic(8) produces a new format in the output. Please
1240	run tzsetup(8) to install the newly created data to /etc/localtime.
1241
124220090520:
1243	The sysctl tree for the usb stack has renamed from hw.usb2.* to
1244	hw.usb.* and is now consistent again with previous releases.
1245
124620090520:
1247	802.11 monitor mode support was revised and driver api's were changed.
1248	Drivers dependent on net80211 now support DLT_IEEE802_11_RADIO instead
1249	of DLT_IEEE802_11.  No user-visible data structures were changed but
1250	applications that use DLT_IEEE802_11 may require changes.
1251	Bump __FreeBSD_version to 800088.
1252
125320090430:
1254	The layout of the following structs has changed: sysctl_oid,
1255	socket, ifnet, inpcbinfo, tcpcb, syncache_head, vnet_inet,
1256	vnet_inet6 and vnet_ipfw.  Most modules need to be rebuild or
1257	panics may be experienced.  World rebuild is required for
1258	correctly checking networking state from userland.
1259	Bump __FreeBSD_version to 800085.
1260
126120090429:
1262	MLDv2 and Source-Specific Multicast (SSM) have been merged
1263	to the IPv6 stack. VIMAGE hooks are in but not yet used.
1264	The implementation of SSM within FreeBSD's IPv6 stack closely
1265	follows the IPv4 implementation.
1266
1267	For kernel developers:
1268
1269	* The most important changes are that the ip6_output() and
1270	  ip6_input() paths no longer take the IN6_MULTI_LOCK,
1271	  and this lock has been downgraded to a non-recursive mutex.
1272
1273	* As with the changes to the IPv4 stack to support SSM, filtering
1274	  of inbound multicast traffic must now be performed by transport
1275	  protocols within the IPv6 stack. This does not apply to TCP and
1276	  SCTP, however, it does apply to UDP in IPv6 and raw IPv6.
1277
1278	* The KPIs used by IPv6 multicast are similar to those used by
1279	  the IPv4 stack, with the following differences:
1280	   * im6o_mc_filter() is analogous to imo_multicast_filter().
1281	   * The legacy KAME entry points in6_joingroup and in6_leavegroup()
1282	     are shimmed to in6_mc_join() and in6_mc_leave() respectively.
1283	   * IN6_LOOKUP_MULTI() has been deprecated and removed.
1284	   * IPv6 relies on MLD for the DAD mechanism. KAME's internal KPIs
1285	     for MLDv1 have an additional 'timer' argument which is used to
1286	     jitter the initial membership report for the solicited-node
1287	     multicast membership on-link.
1288	   * This is not strictly needed for MLDv2, which already jitters
1289	     its report transmissions.  However, the 'timer' argument is
1290	     preserved in case MLDv1 is active on the interface.
1291
1292	* The KAME linked-list based IPv6 membership implementation has
1293	  been refactored to use a vector similar to that used by the IPv4
1294	  stack.
1295	  Code which maintains a list of its own multicast memberships
1296	  internally, e.g. carp, has been updated to reflect the new
1297	  semantics.
1298
1299	* There is a known Lock Order Reversal (LOR) due to in6_setscope()
1300	  acquiring the IF_AFDATA_LOCK and being called within ip6_output().
1301	  Whilst MLDv2 tries to avoid this otherwise benign LOR, it is an
1302	  implementation constraint which needs to be addressed in HEAD.
1303
1304	For application developers:
1305
1306	* The changes are broadly similar to those made for the IPv4
1307	  stack.
1308
1309	* The use of IPv4 and IPv6 multicast socket options on the same
1310	  socket, using mapped addresses, HAS NOT been tested or supported.
1311
1312	* There are a number of issues with the implementation of various
1313	  IPv6 multicast APIs which need to be resolved in the API surface
1314	  before the implementation is fully compatible with KAME userland
1315	  use, and these are mostly to do with interface index treatment.
1316
1317	* The literature available discusses the use of either the delta / ASM
1318	  API with setsockopt(2)/getsockopt(2), or the full-state / ASM API
1319	  using setsourcefilter(3)/getsourcefilter(3). For more information
1320	  please refer to RFC 3768, 'Socket Interface Extensions for
1321	  Multicast Source Filters'.
1322
1323	* Applications which use the published RFC 3678 APIs should be fine.
1324
1325	For systems administrators:
1326
1327	* The mtest(8) utility has been refactored to support IPv6, in
1328	  addition to IPv4. Interface addresses are no longer accepted
1329	  as arguments, their names must be used instead. The utility
1330	  will map the interface name to its first IPv4 address as
1331	  returned by getifaddrs(3).
1332
1333	* The ifmcstat(8) utility has also been updated to print the MLDv2
1334	  endpoint state and source filter lists via sysctl(3).
1335
1336	* The net.inet6.ip6.mcast.loop sysctl may be tuned to 0 to disable
1337	  loopback of IPv6 multicast datagrams by default; it defaults to 1
1338	  to preserve the existing behaviour. Disabling multicast loopback is
1339	  recommended for optimal system performance.
1340
1341	* The IPv6 MROUTING code has been changed to examine this sysctl
1342	  instead of attempting to perform a group lookup before looping
1343	  back forwarded datagrams.
1344
1345	Bump __FreeBSD_version to 800084.
1346
134720090422:
1348	Implement low-level Bluetooth HCI API.
1349	Bump __FreeBSD_version to 800083.
1350
135120090419:
1352	The layout of struct malloc_type, used by modules to register new
1353	memory allocation types, has changed.  Most modules will need to
1354	be rebuilt or panics may be experienced.
1355	Bump __FreeBSD_version to 800081.
1356
135720090415:
1358	Anticipate overflowing inp_flags - add inp_flags2.
1359	This changes most offsets in inpcb, so checking v4 connection
1360	state will require a world rebuild.
1361	Bump __FreeBSD_version to 800080.
1362
136320090415:
1364	Add an llentry to struct route and struct route_in6. Modules
1365	embedding a struct route will need to be recompiled.
1366	Bump __FreeBSD_version to 800079.
1367
136820090414:
1369	The size of rt_metrics_lite and by extension rtentry has changed.
1370	Networking administration apps will need to be recompiled.
1371	The route command now supports show as an alias for get, weighting
1372	of routes, sticky and nostick flags to alter the behavior of stateful
1373	load balancing.
1374	Bump __FreeBSD_version to 800078.
1375
137620090408:
1377	Do not use Giant for kbdmux(4) locking. This is wrong and
1378	apparently causing more problems than it solves. This will
1379	re-open the issue where interrupt handlers may race with
1380	kbdmux(4) in polling mode. Typical symptoms include (but
1381	not limited to) duplicated and/or missing characters when
1382	low level console functions (such as gets) are used while
1383	interrupts are enabled (for example geli password prompt,
1384	mountroot prompt etc.). Disabling kbdmux(4) may help.
1385
138620090407:
1387	The size of structs vnet_net, vnet_inet and vnet_ipfw has changed;
1388	kernel modules referencing any of the above need to be recompiled.
1389	Bump __FreeBSD_version to 800075.
1390
139120090320:
1392	GEOM_PART has become the default partition slicer for storage devices,
1393	replacing GEOM_MBR, GEOM_BSD, GEOM_PC98 and GEOM_GPT slicers. It
1394	introduces some changes:
1395
1396	MSDOS/EBR: the devices created from MSDOS extended partition entries
1397	(EBR) can be named differently than with GEOM_MBR and are now symlinks
1398	to devices with offset-based names. fstabs may need to be modified.
1399
1400	BSD: the "geometry does not match label" warning is harmless in most
1401	cases but it points to problems in file system misalignment with
1402	disk geometry. The "c" partition is now implicit, covers the whole
1403	top-level drive and cannot be (mis)used by users.
1404
1405	General: Kernel dumps are now not allowed to be written to devices
1406	whose partition types indicate they are meant to be used for file
1407	systems (or, in case of MSDOS partitions, as something else than
1408	the "386BSD" type).
1409
1410	Most of these changes date approximately from 200812.
1411
141220090319:
1413	The uscanner(4) driver has been removed from the kernel. This follows
1414	Linux removing theirs in 2.6 and making libusb the default interface
1415	(supported by sane).
1416
141720090319:
1418	The multicast forwarding code has been cleaned up. netstat(1)
1419	only relies on KVM now for printing bandwidth upcall meters.
1420	The IPv4 and IPv6 modules are split into ip_mroute_mod and
1421	ip6_mroute_mod respectively. The config(5) options for statically
1422	compiling this code remain the same, i.e. 'options MROUTING'.
1423
142420090315:
1425	Support for the IFF_NEEDSGIANT network interface flag has been
1426	removed, which means that non-MPSAFE network device drivers are no
1427	longer supported.  In particular, if_ar, if_sr, and network device
1428	drivers from the old (legacy) USB stack can no longer be built or
1429	used.
1430
143120090313:
1432	POSIX.1 Native Language Support (NLS) has been enabled in libc and
1433	a bunch of new language catalog files have also been added.
1434	This means that some common libc messages are now localized and
1435	they depend on the LC_MESSAGES environmental variable.
1436
143720090313:
1438	The k8temp(4) driver has been renamed to amdtemp(4) since
1439	support for Family 10 and Family 11 CPU families was added.
1440
144120090309:
1442	IGMPv3 and Source-Specific Multicast (SSM) have been merged
1443	to the IPv4 stack. VIMAGE hooks are in but not yet used.
1444
1445	For kernel developers, the most important changes are that the
1446	ip_output() and ip_input() paths no longer take the IN_MULTI_LOCK(),
1447	and this lock has been downgraded to a non-recursive mutex.
1448
1449	Transport protocols (UDP, Raw IP) are now responsible for filtering
1450	inbound multicast traffic according to group membership and source
1451	filters. The imo_multicast_filter() KPI exists for this purpose.
1452	Transports which do not use multicast (SCTP, TCP) already reject
1453	multicast by default. Forwarding and receive performance may improve
1454	as a mutex acquisition is no longer needed in the ip_input()
1455	low-level input path.  in_addmulti() and in_delmulti() are shimmed
1456	to new KPIs which exist to support SSM in-kernel.
1457
1458	For application developers, it is recommended that loopback of
1459	multicast datagrams be disabled for best performance, as this
1460	will still cause the lock to be taken for each looped-back
1461	datagram transmission. The net.inet.ip.mcast.loop sysctl may
1462	be tuned to 0 to disable loopback by default; it defaults to 1
1463	to preserve the existing behaviour.
1464
1465	For systems administrators, to obtain best performance with
1466	multicast reception and multiple groups, it is always recommended
1467	that a card with a suitably precise hash filter is used. Hash
1468	collisions will still result in the lock being taken within the
1469	transport protocol input path to check group membership.
1470
1471	If deploying FreeBSD in an environment with IGMP snooping switches,
1472	it is recommended that the net.inet.igmp.sendlocal sysctl remain
1473	enabled; this forces 224.0.0.0/24 group membership to be announced
1474	via IGMP.
1475
1476	The size of 'struct igmpstat' has changed; netstat needs to be
1477	recompiled to reflect this.
1478	Bump __FreeBSD_version to 800070.
1479
148020090309:
1481	libusb20.so.1 is now installed as libusb.so.1 and the ports system
1482	updated to use it. This requires a buildworld/installworld in order to
1483	update the library and dependencies (usbconfig, etc). Its advisable to
1484	rebuild all ports which uses libusb. More specific directions are given
1485	in the ports collection UPDATING file. Any /etc/libmap.conf entries for
1486	libusb are no longer required and can be removed.
1487
148820090302:
1489	A workaround is committed to allow the creation of System V shared
1490	memory segment of size > 2 GB on the 64-bit architectures.
1491	Due to a limitation of the existing ABI, the shm_segsz member
1492	of the struct shmid_ds, returned by shmctl(IPC_STAT) call is
1493	wrong for large segments. Note that limits must be explicitly
1494	raised to allow such segments to be created.
1495
149620090301:
1497	The layout of struct ifnet has changed, requiring a rebuild of all
1498	network device driver modules.
1499
150020090227:
1501	The /dev handling for the new USB stack has changed, a
1502	buildworld/installworld is required for libusb20.
1503
150420090223:
1505	The new USB2 stack has now been permanently moved in and all kernel and
1506	module names reverted to their previous values (eg, usb, ehci, ohci,
1507	ums, ...).  The old usb stack can be compiled in by prefixing the name
1508	with the letter 'o', the old usb modules have been removed.
1509	Updating entry 20090216 for xorg and 20090215 for libmap may still
1510	apply.
1511
151220090217:
1513	The rc.conf(5) option if_up_delay has been renamed to
1514	defaultroute_delay to better reflect its purpose. If you have
1515	customized this setting in /etc/rc.conf you need to update it to
1516	use the new name.
1517
151820090216:
1519	xorg 7.4 wants to configure its input devices via hald which does not
1520	yet work with USB2. If the keyboard/mouse does not work in xorg then
1521	add
1522		Option "AllowEmptyInput" "off"
1523	to your ServerLayout section.  This will cause X to use the configured
1524	kbd and mouse sections from your xorg.conf.
1525
152620090215:
1527	The GENERIC kernels for all architectures now default to the new USB2
1528	stack. No kernel config options or code have been removed so if a
1529	problem arises please report it and optionally revert to the old USB
1530	stack. If you are loading USB kernel modules or have a custom kernel
1531	that includes GENERIC then ensure that usb names are also changed over,
1532	eg uftdi -> usb2_serial_ftdi.
1533
1534	Older programs linked against the ports libusb 0.1 need to be
1535	redirected to the new stack's libusb20.  /etc/libmap.conf can
1536	be used for this:
1537		# Map old usb library to new one for usb2 stack
1538		libusb-0.1.so.8	libusb20.so.1
1539
154020090209:
1541	All USB ethernet devices now attach as interfaces under the name ueN
1542	(eg. ue0). This is to provide a predictable name as vendors often
1543	change usb chipsets in a product without notice.
1544
154520090203:
1546	The ichsmb(4) driver has been changed to require SMBus slave
1547	addresses be left-justified (xxxxxxx0b) rather than right-justified.
1548	All of the other SMBus controller drivers require left-justified
1549	slave addresses, so this change makes all the drivers provide the
1550	same interface.
1551
155220090201:
1553	INET6 statistics (struct ip6stat) was updated.
1554	netstat(1) needs to be recompiled.
1555
155620090119:
1557	NTFS has been removed from GENERIC kernel on amd64 to match
1558	GENERIC on i386. Should not cause any issues since mount_ntfs(8)
1559	will load ntfs.ko module automatically when NTFS support is
1560	actually needed, unless ntfs.ko is not installed or security
1561	level prohibits loading kernel modules. If either is the case,
1562	"options NTFS" has to be added into kernel config.
1563
156420090115:
1565	TCP Appropriate Byte Counting (RFC 3465) support added to kernel.
1566	New field in struct tcpcb breaks ABI, so bump __FreeBSD_version to
1567	800061. User space tools that rely on the size of struct tcpcb in
1568	tcp_var.h (e.g. sockstat) need to be recompiled.
1569
157020081225:
1571	ng_tty(4) module updated to match the new TTY subsystem.
1572	Due to API change, user-level applications must be updated.
1573	New API support added to mpd5 CVS and expected to be present
1574	in next mpd5.3 release.
1575
157620081219:
1577	With __FreeBSD_version 800060 the makefs tool is part of
1578	the base system (it was a port).
1579
158020081216:
1581	The afdata and ifnet locks have been changed from mutexes to
1582	rwlocks, network modules will need to be re-compiled.
1583
158420081214:
1585	__FreeBSD_version 800059 incorporates the new arp-v2 rewrite.
1586	RTF_CLONING, RTF_LLINFO and RTF_WASCLONED flags are eliminated.
1587	The new code reduced struct rtentry{} by 16 bytes on 32-bit
1588	architecture and 40 bytes on 64-bit architecture. The userland
1589	applications "arp" and "ndp" have been updated accordingly.
1590	The output from "netstat -r" shows only routing entries and
1591	none of the L2 information.
1592
159320081130:
1594	__FreeBSD_version 800057 marks the switchover from the
1595	binary ath hal to source code. Users must add the line:
1596
1597	options	AH_SUPPORT_AR5416
1598
1599	to their kernel config files when specifying:
1600
1601	device	ath_hal
1602
1603	The ath_hal module no longer exists; the code is now compiled
1604	together with the driver in the ath module.  It is now
1605	possible to tailor chip support (i.e. reduce the set of chips
1606	and thereby the code size); consult ath_hal(4) for details.
1607
160820081121:
1609	__FreeBSD_version 800054 adds memory barriers to
1610	<machine/atomic.h>, new interfaces to ifnet to facilitate
1611	multiple hardware transmit queues for cards that support
1612	them, and a lock-less ring-buffer implementation to
1613	enable drivers to more efficiently manage queueing of
1614	packets.
1615
161620081117:
1617	A new version of ZFS (version 13) has been merged to -HEAD.
1618	This version has zpool attribute "listsnapshots" off by
1619	default, which means "zfs list" does not show snapshots,
1620	and is the same as Solaris behavior.
1621
162220081028:
1623	dummynet(4) ABI has changed. ipfw(8) needs to be recompiled.
1624
162520081009:
1626	The uhci, ohci, ehci and slhci USB Host controller drivers have
1627	been put into separate modules. If you load the usb module
1628	separately through loader.conf you will need to load the
1629	appropriate *hci module as well. E.g. for a UHCI-based USB 2.0
1630	controller add the following to loader.conf:
1631
1632		uhci_load="YES"
1633		ehci_load="YES"
1634
163520081009:
1636	The ABI used by the PMC toolset has changed.  Please keep
1637	userland (libpmc(3)) and the kernel module (hwpmc(4)) in
1638	sync.
1639
164020081009:
1641	atapci kernel module now includes only generic PCI ATA
1642	driver. AHCI driver moved to ataahci kernel module.
1643	All vendor-specific code moved into separate kernel modules:
1644	ataacard, ataacerlabs, ataadaptec, ataamd, ataati, atacenatek,
1645	atacypress, atacyrix, atahighpoint, ataintel, ataite, atajmicron,
1646	atamarvell, atamicron, atanational, atanetcell, atanvidia,
1647	atapromise, ataserverworks, atasiliconimage, atasis, atavia
1648
164920080820:
1650	The TTY subsystem of the kernel has been replaced by a new
1651	implementation, which provides better scalability and an
1652	improved driver model. Most common drivers have been migrated to
1653	the new TTY subsystem, while others have not. The following
1654	drivers have not yet been ported to the new TTY layer:
1655
1656	PCI/ISA:
1657		cy, digi, rc, rp, sio
1658
1659	USB:
1660		ubser, ucycom
1661
1662	Line disciplines:
1663		ng_h4, ng_tty, ppp, sl, snp
1664
1665	Adding these drivers to your kernel configuration file shall
1666	cause compilation to fail.
1667
166820080818:
1669	ntpd has been upgraded to 4.2.4p5.
1670
167120080801:
1672	OpenSSH has been upgraded to 5.1p1.
1673
1674	For many years, FreeBSD's version of OpenSSH preferred DSA
1675	over RSA for host and user authentication keys.  With this
1676	upgrade, we've switched to the vendor's default of RSA over
1677	DSA.  This may cause upgraded clients to warn about unknown
1678	host keys even for previously known hosts.  Users should
1679	follow the usual procedure for verifying host keys before
1680	accepting the RSA key.
1681
1682	This can be circumvented by setting the "HostKeyAlgorithms"
1683	option to "ssh-dss,ssh-rsa" in ~/.ssh/config or on the ssh
1684	command line.
1685
1686	Please note that the sequence of keys offered for
1687	authentication has been changed as well.  You may want to
1688	specify IdentityFile in a different order to revert this
1689	behavior.
1690
169120080713:
1692	The sio(4) driver has been removed from the i386 and amd64
1693	kernel configuration files. This means uart(4) is now the
1694	default serial port driver on those platforms as well.
1695
1696	To prevent collisions with the sio(4) driver, the uart(4) driver
1697	uses different names for its device nodes. This means the
1698	onboard serial port will now most likely be called "ttyu0"
1699	instead of "ttyd0". You may need to reconfigure applications to
1700	use the new device names.
1701
1702	When using the serial port as a boot console, be sure to update
1703	/boot/device.hints and /etc/ttys before booting the new kernel.
1704	If you forget to do so, you can still manually specify the hints
1705	at the loader prompt:
1706
1707		set hint.uart.0.at="isa"
1708		set hint.uart.0.port="0x3F8"
1709		set hint.uart.0.flags="0x10"
1710		set hint.uart.0.irq="4"
1711		boot -s
1712
171320080609:
1714	The gpt(8) utility has been removed. Use gpart(8) to partition
1715	disks instead.
1716
171720080603:
1718	The version that Linuxulator emulates was changed from 2.4.2
1719	to 2.6.16. If you experience any problems with Linux binaries
1720	please try to set sysctl compat.linux.osrelease to 2.4.2 and
1721	if it fixes the problem contact emulation mailing list.
1722
172320080525:
1724	ISDN4BSD (I4B) was removed from the src tree. You may need to
1725	update a your kernel configuration and remove relevant entries.
1726
172720080509:
1728	I have checked in code to support multiple routing tables.
1729	See the man pages setfib(1) and setfib(2).
1730	This is a hopefully backwards compatible version,
1731	but to make use of it you need to compile your kernel
1732	with options ROUTETABLES=2 (or more up to 16).
1733
173420080420:
1735	The 802.11 wireless support was redone to enable multi-bss
1736	operation on devices that are capable.  The underlying device
1737	is no longer used directly but instead wlanX devices are
1738	cloned with ifconfig.  This requires changes to rc.conf files.
1739	For example, change:
1740		ifconfig_ath0="WPA DHCP"
1741	to
1742		wlans_ath0=wlan0
1743		ifconfig_wlan0="WPA DHCP"
1744	see rc.conf(5) for more details.  In addition, mergemaster of
1745	/etc/rc.d is highly recommended.  Simultaneous update of userland
1746	and kernel wouldn't hurt either.
1747
1748	As part of the multi-bss changes the wlan_scan_ap and wlan_scan_sta
1749	modules were merged into the base wlan module.  All references
1750	to these modules (e.g. in kernel config files) must be removed.
1751
175220080408:
1753	psm(4) has gained write(2) support in native operation level.
1754	Arbitrary commands can be written to /dev/psm%d and status can
1755	be read back from it.  Therefore, an application is responsible
1756	for status validation and error recovery.  It is a no-op in
1757	other operation levels.
1758
175920080312:
1760	Support for KSE threading has been removed from the kernel.  To
1761	run legacy applications linked against KSE libmap.conf may
1762	be used.  The following libmap.conf may be used to ensure
1763	compatibility with any prior release:
1764
1765	libpthread.so.1 libthr.so.1
1766	libpthread.so.2 libthr.so.2
1767	libkse.so.3 libthr.so.3
1768
176920080301:
1770	The layout of struct vmspace has changed. This affects libkvm
1771	and any executables that link against libkvm and use the
1772	kvm_getprocs() function. In particular, but not exclusively,
1773	it affects ps(1), fstat(1), pkill(1), systat(1), top(1) and w(1).
1774	The effects are minimal, but it's advisable to upgrade world
1775	nonetheless.
1776
177720080229:
1778	The latest em driver no longer has support in it for the
1779	82575 adapter, this is now moved to the igb driver. The
1780	split was done to make new features that are incompatible
1781	with older hardware easier to do.
1782
178320080220:
1784	The new geom_lvm(4) geom class has been renamed to geom_linux_lvm(4),
1785	likewise the kernel option is now GEOM_LINUX_LVM.
1786
178720080211:
1788	The default NFS mount mode has changed from UDP to TCP for
1789	increased reliability.  If you rely on (insecurely) NFS
1790	mounting across a firewall you may need to update your
1791	firewall rules.
1792
179320080208:
1794	Belatedly note the addition of m_collapse for compacting
1795	mbuf chains.
1796
179720080126:
1798	The fts(3) structures have been changed to use adequate
1799	integer types for their members and so to be able to cope
1800	with huge file trees.  The old fts(3) ABI is preserved
1801	through symbol versioning in libc, so third-party binaries
1802	using fts(3) should still work, although they will not take
1803	advantage of the extended types.  At the same time, some
1804	third-party software might fail to build after this change
1805	due to unportable assumptions made in its source code about
1806	fts(3) structure members.  Such software should be fixed
1807	by its vendor or, in the worst case, in the ports tree.
1808	FreeBSD_version 800015 marks this change for the unlikely
1809	case that a portable fix is impossible.
1810
181120080123:
1812	To upgrade to -current after this date, you must be running
1813	FreeBSD not older than 6.0-RELEASE.  Upgrading to -current
1814	from 5.x now requires a stop over at RELENG_6 or RELENG_7 systems.
1815
181620071128:
1817	The ADAPTIVE_GIANT kernel option has been retired because its
1818	functionality is the default now.
1819
182020071118:
1821	The AT keyboard emulation of sunkbd(4) has been turned on
1822	by default. In order to make the special symbols of the Sun
1823	keyboards driven by sunkbd(4) work under X these now have
1824	to be configured the same way as Sun USB keyboards driven
1825	by ukbd(4) (which also does AT keyboard emulation), f.e.:
1826
1827	Option	"XkbLayout" "us"
1828	Option	"XkbRules" "xorg"
1829	Option	"XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"
1830
183120071024:
1832	It has been decided that it is desirable to provide ABI
1833	backwards compatibility to the FreeBSD 4/5/6 versions of the
1834	PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was
1835	broken with the introduction of PCI domain support (see the
1836	20070930 entry). Unfortunately, this required the ABI of
1837	PCIOCGETCONF to be broken again in order to be able to
1838	provide backwards compatibility to the old version of that
1839	IOCTL. Thus consumers of PCIOCGETCONF have to be recompiled
1840	again. As for prominent ports this affects neither pciutils
1841	nor xorg-server this time, the hal port needs to be rebuilt
1842	however.
1843
184420071020:
1845	The misnamed kthread_create() and friends have been renamed
1846	to kproc_create() etc. Many of the callers already
1847	used kproc_start()..
1848	I will return kthread_create() and friends in a while
1849	with implementations that actually create threads, not procs.
1850	Renaming corresponds with version 800002.
1851
185220071010:
1853	RELENG_7 branched.
1854
1855COMMON ITEMS:
1856
1857	General Notes
1858	-------------
1859	Avoid using make -j when upgrading.  While generally safe, there are
1860	sometimes problems using -j to upgrade.  If your upgrade fails with
1861	-j, please try again without -j.  From time to time in the past there
1862	have been problems using -j with buildworld and/or installworld.  This
1863	is especially true when upgrading between "distant" versions (eg one
1864	that cross a major release boundary or several minor releases, or when
1865	several months have passed on the -current branch).
1866
1867	Sometimes, obscure build problems are the result of environment
1868	poisoning.  This can happen because the make utility reads its
1869	environment when searching for values for global variables.  To run
1870	your build attempts in an "environmental clean room", prefix all make
1871	commands with 'env -i '.  See the env(1) manual page for more details.
1872
1873	When upgrading from one major version to another it is generally best
1874	to upgrade to the latest code in the currently installed branch first,
1875	then do an upgrade to the new branch. This is the best-tested upgrade
1876	path, and has the highest probability of being successful.  Please try
1877	this approach before reporting problems with a major version upgrade.
1878
1879	When upgrading a live system, having a root shell around before
1880	installing anything can help undo problems. Not having a root shell
1881	around can lead to problems if pam has changed too much from your
1882	starting point to allow continued authentication after the upgrade.
1883
1884	ZFS notes
1885	---------
1886	When upgrading the boot ZFS pool to a new version, always follow
1887	these two steps:
1888
1889	1.) recompile and reinstall the ZFS boot loader and boot block
1890	(this is part of "make buildworld" and "make installworld")
1891
1892	2.) update the ZFS boot block on your boot drive
1893
1894	The following example updates the ZFS boot block on the first
1895	partition (freebsd-boot) of a GPT partitioned drive ad0:
1896	"gpart bootcode -p /boot/gptzfsboot -i 1 ad0"
1897
1898	Non-boot pools do not need these updates.
1899
1900	To build a kernel
1901	-----------------
1902	If you are updating from a prior version of FreeBSD (even one just
1903	a few days old), you should follow this procedure.  It is the most
1904	failsafe as it uses a /usr/obj tree with a fresh mini-buildworld,
1905
1906	make kernel-toolchain
1907	make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
1908	make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
1909
1910	To test a kernel once
1911	---------------------
1912	If you just want to boot a kernel once (because you are not sure
1913	if it works, or if you want to boot a known bad kernel to provide
1914	debugging information) run
1915	make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
1916	nextboot -k testkernel
1917
1918	To just build a kernel when you know that it won't mess you up
1919	--------------------------------------------------------------
1920	This assumes you are already running a CURRENT system.  Replace
1921	${arch} with the architecture of your machine (e.g. "i386",
1922	"arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc).
1923
1924	cd src/sys/${arch}/conf
1925	config KERNEL_NAME_HERE
1926	cd ../compile/KERNEL_NAME_HERE
1927	make depend
1928	make
1929	make install
1930
1931	If this fails, go to the "To build a kernel" section.
1932
1933	To rebuild everything and install it on the current system.
1934	-----------------------------------------------------------
1935	# Note: sometimes if you are running current you gotta do more than
1936	# is listed here if you are upgrading from a really old current.
1937
1938	<make sure you have good level 0 dumps>
1939	make buildworld
1940	make kernel KERNCONF=YOUR_KERNEL_HERE
1941							[1]
1942	<reboot in single user>				[3]
1943	mergemaster -p					[5]
1944	make installworld
1945	mergemaster -i					[4]
1946	make delete-old					[6]
1947	<reboot>
1948
1949	To cross-install current onto a separate partition
1950	--------------------------------------------------
1951	# In this approach we use a separate partition to hold
1952	# current's root, 'usr', and 'var' directories.   A partition
1953	# holding "/", "/usr" and "/var" should be about 2GB in
1954	# size.
1955
1956	<make sure you have good level 0 dumps>
1957	<boot into -stable>
1958	make buildworld
1959	make buildkernel KERNCONF=YOUR_KERNEL_HERE
1960	<maybe newfs current's root partition>
1961	<mount current's root partition on directory ${CURRENT_ROOT}>
1962	make installworld DESTDIR=${CURRENT_ROOT}
1963	make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
1964	make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
1965	cp /etc/fstab ${CURRENT_ROOT}/etc/fstab 		   # if newfs'd
1966	<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
1967	<reboot into current>
1968	<do a "native" rebuild/install as described in the previous section>
1969	<maybe install compatibility libraries from ports/misc/compat*>
1970	<reboot>
1971
1972
1973	To upgrade in-place from stable to current
1974	----------------------------------------------
1975	<make sure you have good level 0 dumps>
1976	make buildworld					[9]
1977	make kernel KERNCONF=YOUR_KERNEL_HERE		[8]
1978							[1]
1979	<reboot in single user>				[3]
1980	mergemaster -p					[5]
1981	make installworld
1982	mergemaster -i					[4]
1983	make delete-old					[6]
1984	<reboot>
1985
1986	Make sure that you've read the UPDATING file to understand the
1987	tweaks to various things you need.  At this point in the life
1988	cycle of current, things change often and you are on your own
1989	to cope.  The defaults can also change, so please read ALL of
1990	the UPDATING entries.
1991
1992	Also, if you are tracking -current, you must be subscribed to
1993	freebsd-current@freebsd.org.  Make sure that before you update
1994	your sources that you have read and understood all the recent
1995	messages there.  If in doubt, please track -stable which has
1996	much fewer pitfalls.
1997
1998	[1] If you have third party modules, such as vmware, you
1999	should disable them at this point so they don't crash your
2000	system on reboot.
2001
2002	[3] From the bootblocks, boot -s, and then do
2003		fsck -p
2004		mount -u /
2005		mount -a
2006		cd src
2007		adjkerntz -i		# if CMOS is wall time
2008	Also, when doing a major release upgrade, it is required that
2009	you boot into single user mode to do the installworld.
2010
2011	[4] Note: This step is non-optional.  Failure to do this step
2012	can result in a significant reduction in the functionality of the
2013	system.  Attempting to do it by hand is not recommended and those
2014	that pursue this avenue should read this file carefully, as well
2015	as the archives of freebsd-current and freebsd-hackers mailing lists
2016	for potential gotchas.  The -U option is also useful to consider.
2017	See mergemaster(8) for more information.
2018
2019	[5] Usually this step is a noop.  However, from time to time
2020	you may need to do this if you get unknown user in the following
2021	step.  It never hurts to do it all the time.  You may need to
2022	install a new mergemaster (cd src/usr.sbin/mergemaster && make
2023	install) after the buildworld before this step if you last updated
2024	from current before 20130425 or from -stable before 20130430.
2025
2026	[6] This only deletes old files and directories. Old libraries
2027	can be deleted by "make delete-old-libs", but you have to make
2028	sure that no program is using those libraries anymore.
2029
2030	[8] In order to have a kernel that can run the 4.x binaries needed to
2031	do an installworld, you must include the COMPAT_FREEBSD4 option in
2032	your kernel.  Failure to do so may leave you with a system that is
2033	hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 is
2034	required to run the 5.x binaries on more recent kernels.  And so on
2035	for COMPAT_FREEBSD6 and COMPAT_FREEBSD7.
2036
2037	Make sure that you merge any new devices from GENERIC since the
2038	last time you updated your kernel config file.
2039
2040	[9] When checking out sources, you must include the -P flag to have
2041	cvs prune empty directories.
2042
2043	If CPUTYPE is defined in your /etc/make.conf, make sure to use the
2044	"?=" instead of the "=" assignment operator, so that buildworld can
2045	override the CPUTYPE if it needs to.
2046
2047	MAKEOBJDIRPREFIX must be defined in an environment variable, and
2048	not on the command line, or in /etc/make.conf.  buildworld will
2049	warn if it is improperly defined.
2050FORMAT:
2051
2052This file contains a list, in reverse chronological order, of major
2053breakages in tracking -current.  It is not guaranteed to be a complete
2054list of such breakages, and only contains entries since October 10, 2007.
2055If you need to see UPDATING entries from before that date, you will need
2056to fetch an UPDATING file from an older FreeBSD release.
2057
2058Copyright information:
2059
2060Copyright 1998-2009 M. Warner Losh.  All Rights Reserved.
2061
2062Redistribution, publication, translation and use, with or without
2063modification, in full or in part, in any form or format of this
2064document are permitted without further permission from the author.
2065
2066THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
2067IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2068WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2069DISCLAIMED.  IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
2070INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2071(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2072SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2073HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2074STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
2075IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2076POSSIBILITY OF SUCH DAMAGE.
2077
2078Contact Warner Losh if you have any questions about your use of
2079this document.
2080
2081$FreeBSD: stable/10/UPDATING 263508 2014-03-21 17:53:59Z dim $
2082