xref: /freebsd/UPDATING (revision c3e289e1ce8c9af8d14e9f727632e22b3bf901f9)
157199806SWarner LoshUpdating Information for FreeBSD current users
253dfde79SWarner Losh
3456b5dd8SWarner LoshThis file is maintained and copyrighted by M. Warner Losh <imp@freebsd.org>.
4456b5dd8SWarner LoshSee end of file for further details.  For commonly done items, please see the
5456b5dd8SWarner LoshCOMMON ITEMS: section later in the file.  These instructions assume that you
6456b5dd8SWarner Loshbasically know what you are doing.  If not, then please consult the FreeBSD
7456b5dd8SWarner Loshhandbook.
8e72fd46aSWarner Losh
92c724730SWarner LoshItems affecting the ports and packages system can be found in
10456b5dd8SWarner Losh/usr/ports/UPDATING.  Please read that file before running portupgrade.
112c724730SWarner Losh
12cf48cc9fSKen SmithNOTE TO PEOPLE WHO THINK THAT FreeBSD 9.x IS SLOW:
13456b5dd8SWarner Losh	FreeBSD 9.x has many debugging features turned on, in both the kernel
14456b5dd8SWarner Losh	and userland.  These features attempt to detect incorrect use of
15456b5dd8SWarner Losh	system primitives, and encourage loud failure through extra sanity
16456b5dd8SWarner Losh	checking and fail stop semantics.  They also substantially impact
17456b5dd8SWarner Losh	system performance.  If you want to do performance measurement,
18456b5dd8SWarner Losh	benchmarking, and optimization, you'll want to turn them off.  This
19456b5dd8SWarner Losh	includes various WITNESS- related kernel options, INVARIANTS, malloc
20456b5dd8SWarner Losh	debugging flags in userland, and various verbose features in the
21456b5dd8SWarner Losh	kernel.  Many developers choose to disable these features on build
22456b5dd8SWarner Losh	machines to maximize performance.  (To disable malloc debugging, run
236bea5c3cSTom Rhodes	ln -s aj /etc/malloc.conf.)
24efc06131SSam Leffler
252965a453SKip Macy
268fc25799SMartin Matuska20100713:
27*c3e289e1SNathan Whitehorn	Due to the import of powerpc64 support, all existing powerpc kernel
28*c3e289e1SNathan Whitehorn	configuration files must be updated with a machine directive like this:
29*c3e289e1SNathan Whitehorn	    machine powerpc powerpc
30*c3e289e1SNathan Whitehorn
31*c3e289e1SNathan Whitehorn	In addition, an updated config(8) is required to build powerpc kernels
32*c3e289e1SNathan Whitehorn	after this change.
33*c3e289e1SNathan Whitehorn
34*c3e289e1SNathan Whitehorn20100713:
358fc25799SMartin Matuska	A new version of ZFS (version 15) has been merged to -HEAD.
368fc25799SMartin Matuska	This version uses a python library for the following subcommands:
378fc25799SMartin Matuska	zfs allow, zfs unallow, zfs groupspace, zfs userspace.
388fc25799SMartin Matuska	For full functionality of these commands the following port must
398fc25799SMartin Matuska	be installed: sysutils/py-zfs
408fc25799SMartin Matuska
412965a453SKip Macy20100429:
422965a453SKip Macy	'vm_page's are now hashed by physical address to an array of mutexes.
432965a453SKip Macy	Currently this is only used to serialize access to hold_count. Over
442965a453SKip Macy	time the page queue mutex will be peeled away. This changes the size
452965a453SKip Macy	of pmap on every architecture. And requires all callers of vm_page_hold
462965a453SKip Macy	and vm_page_unhold to be updated.
472965a453SKip Macy
4821edb039SAlexander Leidinger20100402:
4921edb039SAlexander Leidinger	WITH_CTF can now be specified in src.conf (not recommended, there
5021edb039SAlexander Leidinger	are some problems with static executables), make.conf (would also
5121edb039SAlexander Leidinger	affect ports which do not use GNU make and do not override the
5221edb039SAlexander Leidinger	compile targets) or in the kernel config (via "makeoptions
5321edb039SAlexander Leidinger	WITH_CTF=yes").
5421edb039SAlexander Leidinger	When WITH_CTF was specified there before this was silently ignored,
5521edb039SAlexander Leidinger	so make sure that WITH_CTF is not used in places which could lead
5621edb039SAlexander Leidinger	to unwanted behavior.
5721edb039SAlexander Leidinger
58841c0c7eSNathan Whitehorn20100311:
59841c0c7eSNathan Whitehorn	The kernel option COMPAT_IA32 has been replaced with COMPAT_FREEBSD32
60841c0c7eSNathan Whitehorn	to allow 32-bit compatibility on non-x86 platforms. All kernel
61841c0c7eSNathan Whitehorn	configurations on amd64 and ia64 platforms using these options must
62841c0c7eSNathan Whitehorn	be modified accordingly.
63841c0c7eSNathan Whitehorn
64279d8efeSEd Schouten20100113:
65279d8efeSEd Schouten	The utmp user accounting database has been replaced with utmpx,
66279d8efeSEd Schouten	the user accounting interface standardized by POSIX.
67279d8efeSEd Schouten	Unfortunately the semantics of utmp and utmpx don't match,
68279d8efeSEd Schouten	making it practically impossible to support both interfaces.
69279d8efeSEd Schouten	The user accounting database is used by tools like finger(1),
70279d8efeSEd Schouten	last(1), talk(1), w(1) and ac(8).
71279d8efeSEd Schouten
72279d8efeSEd Schouten	All applications in the base system use utmpx.  This means only
73279d8efeSEd Schouten	local binaries (e.g. from the ports tree) may still use these
74279d8efeSEd Schouten	utmp database files.  These applications must be rebuilt to make
75279d8efeSEd Schouten	use of utmpx.
76279d8efeSEd Schouten
77279d8efeSEd Schouten	After the system has been upgraded, it is safe to remove the old
78279d8efeSEd Schouten	log files (/var/run/utmp, /var/log/lastlog and /var/log/wtmp*),
795ab7f1fcSEd Schouten	assuming their contents is of no importance anymore.  Old wtmp
805ab7f1fcSEd Schouten	databases can only be used by last(1) and ac(8) after they have
815ab7f1fcSEd Schouten	been converted to the new format using wtmpcvt(1).
82279d8efeSEd Schouten
83f7829d0dSAttilio Rao20100108:
84f7829d0dSAttilio Rao	Introduce the kernel thread "deadlock resolver" (which can be enabled
85f7829d0dSAttilio Rao	via the DEADLKRES option, see NOTES for more details) and the
86f7829d0dSAttilio Rao	sleepq_type() function for sleepqueues.
87f7829d0dSAttilio Rao
88f2cb5f03SHajimu UMEMOTO20091202:
89f2cb5f03SHajimu UMEMOTO	The rc.firewall and rc.firewall6 were unified, and
90f2cb5f03SHajimu UMEMOTO	rc.firewall6 and rc.d/ip6fw were removed.
91f2cb5f03SHajimu UMEMOTO	According to the removal of rc.d/ip6fw, ipv6_firewall_* rc
92f2cb5f03SHajimu UMEMOTO	variables are obsoleted.  Instead, the following new rc
93f2cb5f03SHajimu UMEMOTO	variables are added to rc.d/ipfw:
94f2cb5f03SHajimu UMEMOTO
95f2cb5f03SHajimu UMEMOTO		firewall_client_net_ipv6, firewall_simple_iif_ipv6,
96f2cb5f03SHajimu UMEMOTO		firewall_simple_inet_ipv6, firewall_simple_oif_ipv6,
97f2cb5f03SHajimu UMEMOTO		firewall_simple_onet_ipv6, firewall_trusted_ipv6
98f2cb5f03SHajimu UMEMOTO
99f2cb5f03SHajimu UMEMOTO	The meanings correspond to the relevant IPv4 variables.
100f2cb5f03SHajimu UMEMOTO
101e409c5c8SChristian Brueffer20091125:
102e409c5c8SChristian Brueffer	8.0-RELEASE.
103e409c5c8SChristian Brueffer
104e42fc368SEd Schouten20091113:
105e42fc368SEd Schouten	The default terminal emulation for syscons(4) has been changed
1064b2361f8SEd Schouten	from cons25 to xterm on all platforms except pc98.  This means
1074b2361f8SEd Schouten	that the /etc/ttys file needs to be updated to ensure correct
1084b2361f8SEd Schouten	operation of applications on the console.
109e42fc368SEd Schouten
110e42fc368SEd Schouten	The terminal emulation style can be toggled per window by using
1114b2361f8SEd Schouten	vidcontrol(1)'s -T flag.  The TEKEN_CONS25 kernel configuration
1124b2361f8SEd Schouten	options can be used to change the compile-time default back to
1134b2361f8SEd Schouten	cons25.
114e42fc368SEd Schouten
115e42fc368SEd Schouten	To prevent graphical artifacts, make sure the TERM environment
116e42fc368SEd Schouten	variable is set to match the terminal emulation that is being
117e42fc368SEd Schouten	performed by syscons(4).
118e42fc368SEd Schouten
11907ddebb5SRui Paulo20091109:
12007ddebb5SRui Paulo	The layout of the structure ieee80211req_scan_result has changed.
12107ddebb5SRui Paulo	Applications that require wireless scan results (e.g. ifconfig(8))
12207ddebb5SRui Paulo	from net80211 need to be recompiled.
12307ddebb5SRui Paulo
12496b4300cSDoug Barton	Applications such as wpa_supplicant(8) may require a full world
12596b4300cSDoug Barton	build without using NO_CLEAN in order to get synchronized with the
12696b4300cSDoug Barton	new structure.
12796b4300cSDoug Barton
12863b49c2bSRui Paulo20091025:
12963b49c2bSRui Paulo	The iwn(4) driver has been updated to support the 5000 and 5150 series.
13063b49c2bSRui Paulo	There's one kernel module for each firmware. Adding "device iwnfw"
13163b49c2bSRui Paulo	to the kernel configuration file means including all three firmware
13263b49c2bSRui Paulo	images inside the kernel. If you want to include just the one for
13363b49c2bSRui Paulo	your wireless card, use the the devices iwn4965fw, iwn5000fw or
13463b49c2bSRui Paulo	iwn5150fw.
13563b49c2bSRui Paulo
1362e77c5abSHiroki Sato20090926:
1372e77c5abSHiroki Sato	The rc.d/network_ipv6, IPv6 configuration script has been integrated
1382e77c5abSHiroki Sato	into rc.d/netif.  The changes are the following:
1392e77c5abSHiroki Sato
1402e77c5abSHiroki Sato	1. To use IPv6, simply define $ifconfig_IF_ipv6 like $ifconfig_IF
1412e77c5abSHiroki Sato	   for IPv4.  For aliases, $ifconfig_IF_aliasN should be used.
1422e77c5abSHiroki Sato	   Note that both variables need the "inet6" keyword at the head.
1432e77c5abSHiroki Sato
1442e77c5abSHiroki Sato	   Do not set $ipv6_network_interfaces manually if you do not
1452e77c5abSHiroki Sato	   understand what you are doing.  It is not needed in most cases.
1462e77c5abSHiroki Sato
1472e77c5abSHiroki Sato	   $ipv6_ifconfig_IF and $ipv6_ifconfig_IF_aliasN still work, but
1482e77c5abSHiroki Sato	   they are obsolete.
1492e77c5abSHiroki Sato
1502e77c5abSHiroki Sato	2. $ipv6_enable is obsolete.  Use $ipv6_prefer and
1512e77c5abSHiroki Sato	   "inet6 accept_rtadv" keyword in ifconfig(8) instead.
1522e77c5abSHiroki Sato
1532e77c5abSHiroki Sato	   If you define $ipv6_enable=YES, it means $ipv6_prefer=YES and
1542e77c5abSHiroki Sato	   all configured interfaces have "inet6 accept_rtadv" in the
1552e77c5abSHiroki Sato	   $ifconfig_IF_ipv6.  These are for backward compatibility.
1562e77c5abSHiroki Sato
1572e77c5abSHiroki Sato	3. A new variable $ipv6_prefer has been added.  If NO, IPv6
1582e77c5abSHiroki Sato	   functionality of interfaces with no corresponding
1592e77c5abSHiroki Sato	   $ifconfig_IF_ipv6 is disabled by using "inet6 ifdisabled" flag,
1602e77c5abSHiroki Sato	   and the default address selection policy of ip6addrctl(8)
1612e77c5abSHiroki Sato	   is the IPv4-preferred one (see rc.d/ip6addrctl for more details).
1622e77c5abSHiroki Sato	   Note that if you want to configure IPv6 functionality on the
1632e77c5abSHiroki Sato	   disabled interfaces after boot, first you need to clear the flag by
1642e77c5abSHiroki Sato	   using ifconfig(8) like:
1652e77c5abSHiroki Sato
1662e77c5abSHiroki Sato		ifconfig em0 inet6 -ifdisabled
1672e77c5abSHiroki Sato
1682e77c5abSHiroki Sato	   If YES, the default address selection policy is set as
1692e77c5abSHiroki Sato	   IPv6-preferred.
1702e77c5abSHiroki Sato
1712e77c5abSHiroki Sato	   The default value of $ipv6_prefer is NO.
1722e77c5abSHiroki Sato
1732e77c5abSHiroki Sato	4. If your system need to receive Router Advertisement messages,
1742e77c5abSHiroki Sato	   define "inet6 accept_rtadv" in $ifconfig_IF_ipv6.  The rc(8)
1752e77c5abSHiroki Sato	   scripts automatically invoke rtsol(8) when the interface becomes
1762e77c5abSHiroki Sato	   UP.  The Router Advertisement messages are used for SLAAC
1772e77c5abSHiroki Sato	   (State-Less Address AutoConfiguration).
1782e77c5abSHiroki Sato
179350036a0SRui Paulo20090922:
180350036a0SRui Paulo	802.11s D3.03 support was committed. This is incompatible with the
181350036a0SRui Paulo	previous code, which was based on D3.0.
182350036a0SRui Paulo
1832e77c5abSHiroki Sato20090912:
1842e77c5abSHiroki Sato	A sysctl variable net.inet6.ip6.accept_rtadv now sets the default value
1852e77c5abSHiroki Sato	of a per-interface flag ND6_IFF_ACCEPT_RTADV, not a global knob to
1862e77c5abSHiroki Sato	control whether accepting Router Advertisement messages or not.
1872e77c5abSHiroki Sato	Also, a per-interface flag ND6_IFF_AUTO_LINKLOCAL has been added and
1882e77c5abSHiroki Sato	a sysctl variable net.inet6.ip6.auto_linklocal is its default value.
1892e77c5abSHiroki Sato	The ifconfig(8) utility now supports these flags.
1902e77c5abSHiroki Sato
19163e1d3dfSPawel Jakub Dawidek20090910:
19263e1d3dfSPawel Jakub Dawidek	ZFS snapshots are now mounted with MNT_IGNORE flag. Use -v option for
19363e1d3dfSPawel Jakub Dawidek	mount(8) and -a option for df(1) to see them.
19463e1d3dfSPawel Jakub Dawidek
195411c7658SWarner Losh20090825:
196411c7658SWarner Losh	The old tunable hw.bus.devctl_disable has been superseded by
197411c7658SWarner Losh	hw.bus.devctl_queue.  hw.bus.devctl_disable=1 in loader.conf should be
198411c7658SWarner Losh	replaced by hw.bus.devctl_queue=0.  The default for this new tunable
199411c7658SWarner Losh	is 1000.
200411c7658SWarner Losh
201dc6fbf65SAttilio Rao20090813:
202456b5dd8SWarner Losh	Remove the option STOP_NMI.  The default action is now to use NMI only
203456b5dd8SWarner Losh	for KDB via the newly introduced function stop_cpus_hard() and
204456b5dd8SWarner Losh	maintain stop_cpus() to just use a normal IPI_STOP on ia32 and amd64.
205456b5dd8SWarner Losh
206456b5dd8SWarner Losh20090803:
207f6a4f4b5SWarner Losh	The stable/8 branch created in subversion.  This corresponds to the
208f6a4f4b5SWarner Losh	RELENG_8 branch in CVS.
209dc6fbf65SAttilio Rao
2103ca3047aSKen Smith20090719:
211456b5dd8SWarner Losh	Bump the shared library version numbers for all libraries that do not
212456b5dd8SWarner Losh	use symbol versioning as part of the 8.0-RELEASE cycle.  Bump
213456b5dd8SWarner Losh	__FreeBSD_version to 800105.
2143ca3047aSKen Smith
215eddfbb76SRobert Watson20090714:
216456b5dd8SWarner Losh	Due to changes in the implementation of virtual network stack support,
217456b5dd8SWarner Losh	all network-related kernel modules must be recompiled.  As this change
218456b5dd8SWarner Losh	breaks the ABI, bump __FreeBSD_version to 800104.
219eddfbb76SRobert Watson
220237fbe0aSLawrence Stewart20090713:
221456b5dd8SWarner Losh	The TOE interface to the TCP syncache has been modified to remove
222456b5dd8SWarner Losh	struct tcpopt (<netinet/tcp_var.h>) from the ABI of the network stack.
223456b5dd8SWarner Losh	The cxgb driver is the only TOE consumer affected by this change, and
224456b5dd8SWarner Losh	needs to be recompiled along with the kernel. As this change breaks
225456b5dd8SWarner Losh	the ABI, bump __FreeBSD_version to 800103.
226237fbe0aSLawrence Stewart
227962ebef8SLawrence Stewart20090712:
228962ebef8SLawrence Stewart	Padding has been added to struct tcpcb, sackhint and tcpstat in
229962ebef8SLawrence Stewart	<netinet/tcp_var.h> to facilitate future MFCs and bug fixes whilst
2301733d35cSRuslan Ermilov	maintaining the ABI. However, this change breaks the ABI, so bump
231962ebef8SLawrence Stewart	__FreeBSD_version to 800102. User space tools that rely on the size of
232962ebef8SLawrence Stewart	any of these structs (e.g. sockstat) need to be recompiled.
233962ebef8SLawrence Stewart
234bab42aadSDoug Rabson20090630:
235456b5dd8SWarner Losh	The NFS_LEGACYRPC option has been removed along with the old kernel
236456b5dd8SWarner Losh	RPC implementation that this option selected. Kernel configurations
237456b5dd8SWarner Losh	may need to be adjusted.
238bab42aadSDoug Rabson
2396cb7f168SBrooks Davis20090629:
240456b5dd8SWarner Losh	The network interface device nodes at /dev/net/<interface> have been
241456b5dd8SWarner Losh	removed.  All ioctl operations can be performed the normal way using
242456b5dd8SWarner Losh	routing sockets.  The kqueue functionality can generally be replaced
243456b5dd8SWarner Losh	with routing sockets.
2446cb7f168SBrooks Davis
245944bc81dSMarc Fonvieille20090628:
246456b5dd8SWarner Losh	The documentation from the FreeBSD Documentation Project (Handbook,
247456b5dd8SWarner Losh	FAQ, etc.) is now installed via packages by sysinstall(8) and under
248456b5dd8SWarner Losh	the /usr/local/share/doc/freebsd directory instead of /usr/share/doc.
249944bc81dSMarc Fonvieille
250f5e4c105SJohn Baldwin20090624:
251456b5dd8SWarner Losh	The ABI of various structures related to the SYSV IPC API have been
252456b5dd8SWarner Losh	changed.  As a result, the COMPAT_FREEBSD[456] and COMPAT_43 kernel
253456b5dd8SWarner Losh	options now all require COMPAT_FREEBSD7.  Bump __FreeBSD_version to
254456b5dd8SWarner Losh	800100.
255f5e4c105SJohn Baldwin
256b58ea5f3SBjoern A. Zeeb20090622:
257456b5dd8SWarner Losh	Layout of struct vnet has changed as routing related variables were
258456b5dd8SWarner Losh	moved to their own Vimage module. Modules need to be recompiled.  Bump
259456b5dd8SWarner Losh	__FreeBSD_version to 800099.
260b58ea5f3SBjoern A. Zeeb
261838d9858SBrooks Davis20090619:
262456b5dd8SWarner Losh	NGROUPS_MAX and NGROUPS have been increased from 16 to 1023 and 1024
263456b5dd8SWarner Losh	respectively.  As long as no more than 16 groups per process are used,
264456b5dd8SWarner Losh	no changes should be visible.  When more than 16 groups are used, old
265456b5dd8SWarner Losh	binaries may fail if they call getgroups() or getgrouplist() with
266456b5dd8SWarner Losh	statically sized storage.  Recompiling will work around this, but
267456b5dd8SWarner Losh	applications should be modified to use dynamically allocated storage
268456b5dd8SWarner Losh	for group arrays as POSIX.1-2008 does not cap an implementation's
269456b5dd8SWarner Losh	number of supported groups at NGROUPS_MAX+1 as previous versions did.
270838d9858SBrooks Davis
271456b5dd8SWarner Losh	NFS and portalfs mounts may also be affected as the list of groups is
272456b5dd8SWarner Losh	truncated to 16.  Users of NFS who use more than 16 groups, should
273456b5dd8SWarner Losh	take care that negative group permissions are not used on the exported
274456b5dd8SWarner Losh	file systems as they will not be reliable unless a GSSAPI based
275456b5dd8SWarner Losh	authentication method is used.
276838d9858SBrooks Davis
277651175c9SAttilio Rao20090616:
278456b5dd8SWarner Losh	The compiling option ADAPTIVE_LOCKMGRS has been introduced.  This
279456b5dd8SWarner Losh	option compiles in the support for adaptive spinning for lockmgrs
280456b5dd8SWarner Losh	which want to enable it.  The lockinit() function now accepts the flag
281456b5dd8SWarner Losh	LK_ADAPTIVE in order to make the lock object subject to adaptive
282456b5dd8SWarner Losh	spinning when both held in write and read mode.
283651175c9SAttilio Rao
2842c727cb9SSam Leffler20090613:
285456b5dd8SWarner Losh	The layout of the structure returned by IEEE80211_IOC_STA_INFO has
286456b5dd8SWarner Losh	changed.  User applications that use this ioctl need to be rebuilt.
2872c727cb9SSam Leffler
288f089869fSMarko Zec20090611:
289456b5dd8SWarner Losh	The layout of struct thread has changed.  Kernel and modules need to
290456b5dd8SWarner Losh	be rebuilt.
291f089869fSMarko Zec
292bc29160dSMarko Zec20090608:
293456b5dd8SWarner Losh	The layout of structs ifnet, domain, protosw and vnet_net has changed.
294456b5dd8SWarner Losh	Kernel modules need to be rebuilt.  Bump __FreeBSD_version to 800097.
295bc29160dSMarko Zec
29689f98d57SEd Schouten20090602:
29789f98d57SEd Schouten	window(1) has been removed from the base system. It can now be
29889f98d57SEd Schouten	installed from ports. The port is called misc/window.
29989f98d57SEd Schouten
300c2c2a7c1SBjoern A. Zeeb20090601:
301456b5dd8SWarner Losh	The way we are storing and accessing `routing table' entries has
302456b5dd8SWarner Losh	changed. Programs reading the FIB, like netstat, need to be
303456b5dd8SWarner Losh	re-compiled.
304c2c2a7c1SBjoern A. Zeeb
305529cb8e3SRobert Watson20090601:
306529cb8e3SRobert Watson	A new netisr implementation has been added for FreeBSD 8.  Network
307529cb8e3SRobert Watson	file system modules, such as igmp, ipdivert, and others, should be
308529cb8e3SRobert Watson	rebuilt.
309529cb8e3SRobert Watson	Bump __FreeBSD_version to 800096.
310529cb8e3SRobert Watson
3112a61ba47SEdward Tomasz Napierala20090530:
312456b5dd8SWarner Losh	Remove the tunable/sysctl debug.mpsafevfs as its initial purpose is no
313456b5dd8SWarner Losh	more valid.
314faef64ccSAttilio Rao
315faef64ccSAttilio Rao20090530:
3162a61ba47SEdward Tomasz Napierala	Add VOP_ACCESSX(9).  File system modules need to be rebuilt.
3172a61ba47SEdward Tomasz Napierala	Bump __FreeBSD_version to 800094.
3182a61ba47SEdward Tomasz Napierala
319b89fed67SEdward Tomasz Napierala20090529:
320456b5dd8SWarner Losh	Add mnt_xflag field to 'struct mount'.  File system modules need to be
321456b5dd8SWarner Losh	rebuilt.
322b89fed67SEdward Tomasz Napierala	Bump __FreeBSD_version to 800093.
323b89fed67SEdward Tomasz Napierala
3241ae1c2a3SAttilio Rao20090528:
3251ae1c2a3SAttilio Rao	The compiling option ADAPTIVE_SX has been retired while it has been
3261ae1c2a3SAttilio Rao	introduced the option NO_ADAPTIVE_SX which handles the reversed logic.
3271ae1c2a3SAttilio Rao	The KPI for sx_init_flags() changes as accepting flags:
328456b5dd8SWarner Losh	SX_ADAPTIVESPIN flag has been retired while the SX_NOADAPTIVE flag has
329456b5dd8SWarner Losh	been introduced in order to handle the reversed logic.
3301ae1c2a3SAttilio Rao	Bump __FreeBSD_version to 800092.
3311ae1c2a3SAttilio Rao
3320304c731SJamie Gritton20090527:
3330304c731SJamie Gritton	Add support for hierarchical jails.  Remove global securelevel.
3340304c731SJamie Gritton	Bump __FreeBSD_version to 800091.
3350304c731SJamie Gritton
336dfc79e89SEdwin Groothuis20090523:
33737f17770SMarko Zec	The layout of struct vnet_net has changed, therefore modules
33837f17770SMarko Zec	need to be rebuilt.
33937f17770SMarko Zec	Bump __FreeBSD_version to 800090.
34037f17770SMarko Zec
34137f17770SMarko Zec20090523:
342456b5dd8SWarner Losh	The newly imported zic(8) produces a new format in the output. Please
343456b5dd8SWarner Losh	run tzsetup(8) to install the newly created data to /etc/localtime.
344dfc79e89SEdwin Groothuis
34523790ac0SSam Leffler20090520:
3469360ae40SAndrew Thompson	The sysctl tree for the usb stack has renamed from hw.usb2.* to
3479360ae40SAndrew Thompson	hw.usb.* and is now consistent again with previous releases.
3489360ae40SAndrew Thompson
3499360ae40SAndrew Thompson20090520:
350456b5dd8SWarner Losh	802.11 monitor mode support was revised and driver api's were changed.
351456b5dd8SWarner Losh	Drivers dependent on net80211 now support DLT_IEEE802_11_RADIO instead
352456b5dd8SWarner Losh	of DLT_IEEE802_11.  No user-visible data structures were changed but
353456b5dd8SWarner Losh	applications that use DLT_IEEE802_11 may require changes.
35423790ac0SSam Leffler	Bump __FreeBSD_version to 800088.
35523790ac0SSam Leffler
356f6dfe47aSMarko Zec20090430:
357f6dfe47aSMarko Zec	The layout of the following structs has changed: sysctl_oid,
358f6dfe47aSMarko Zec	socket, ifnet, inpcbinfo, tcpcb, syncache_head, vnet_inet,
359f6dfe47aSMarko Zec	vnet_inet6 and vnet_ipfw.  Most modules need to be rebuild or
360f6dfe47aSMarko Zec	panics may be experienced.  World rebuild is required for
361f6dfe47aSMarko Zec	correctly checking networking state from userland.
362f6dfe47aSMarko Zec	Bump __FreeBSD_version to 800085.
363f6dfe47aSMarko Zec
36433cde130SBruce M Simpson20090429:
36533cde130SBruce M Simpson	MLDv2 and Source-Specific Multicast (SSM) have been merged
36633cde130SBruce M Simpson	to the IPv6 stack. VIMAGE hooks are in but not yet used.
36733cde130SBruce M Simpson	The implementation of SSM within FreeBSD's IPv6 stack closely
36833cde130SBruce M Simpson	follows the IPv4 implementation.
36933cde130SBruce M Simpson
37033cde130SBruce M Simpson	For kernel developers:
37133cde130SBruce M Simpson
37233cde130SBruce M Simpson	* The most important changes are that the ip6_output() and
37333cde130SBruce M Simpson	  ip6_input() paths no longer take the IN6_MULTI_LOCK,
37433cde130SBruce M Simpson	  and this lock has been downgraded to a non-recursive mutex.
37533cde130SBruce M Simpson
37633cde130SBruce M Simpson	* As with the changes to the IPv4 stack to support SSM, filtering
37733cde130SBruce M Simpson	  of inbound multicast traffic must now be performed by transport
37833cde130SBruce M Simpson	  protocols within the IPv6 stack. This does not apply to TCP and
37933cde130SBruce M Simpson	  SCTP, however, it does apply to UDP in IPv6 and raw IPv6.
38033cde130SBruce M Simpson
38133cde130SBruce M Simpson	* The KPIs used by IPv6 multicast are similar to those used by
38233cde130SBruce M Simpson	  the IPv4 stack, with the following differences:
38333cde130SBruce M Simpson	   * im6o_mc_filter() is analogous to imo_multicast_filter().
38433cde130SBruce M Simpson	   * The legacy KAME entry points in6_joingroup and in6_leavegroup()
38533cde130SBruce M Simpson	     are shimmed to in6_mc_join() and in6_mc_leave() respectively.
38633cde130SBruce M Simpson	   * IN6_LOOKUP_MULTI() has been deprecated and removed.
38733cde130SBruce M Simpson	   * IPv6 relies on MLD for the DAD mechanism. KAME's internal KPIs
38833cde130SBruce M Simpson	     for MLDv1 have an additional 'timer' argument which is used to
38933cde130SBruce M Simpson	     jitter the initial membership report for the solicited-node
39033cde130SBruce M Simpson	     multicast membership on-link.
39133cde130SBruce M Simpson	   * This is not strictly needed for MLDv2, which already jitters
39233cde130SBruce M Simpson	     its report transmissions.  However, the 'timer' argument is
39333cde130SBruce M Simpson	     preserved in case MLDv1 is active on the interface.
39433cde130SBruce M Simpson
39533cde130SBruce M Simpson	* The KAME linked-list based IPv6 membership implementation has
39633cde130SBruce M Simpson	  been refactored to use a vector similar to that used by the IPv4
39733cde130SBruce M Simpson	  stack.
39833cde130SBruce M Simpson	  Code which maintains a list of its own multicast memberships
39933cde130SBruce M Simpson	  internally, e.g. carp, has been updated to reflect the new
40033cde130SBruce M Simpson	  semantics.
40133cde130SBruce M Simpson
40233cde130SBruce M Simpson	* There is a known Lock Order Reversal (LOR) due to in6_setscope()
40333cde130SBruce M Simpson	  acquiring the IF_AFDATA_LOCK and being called within ip6_output().
40433cde130SBruce M Simpson	  Whilst MLDv2 tries to avoid this otherwise benign LOR, it is an
40533cde130SBruce M Simpson	  implementation constraint which needs to be addressed in HEAD.
40633cde130SBruce M Simpson
40733cde130SBruce M Simpson	For application developers:
40833cde130SBruce M Simpson
40933cde130SBruce M Simpson	* The changes are broadly similar to those made for the IPv4
41033cde130SBruce M Simpson	  stack.
41133cde130SBruce M Simpson
41233cde130SBruce M Simpson	* The use of IPv4 and IPv6 multicast socket options on the same
41333cde130SBruce M Simpson	  socket, using mapped addresses, HAS NOT been tested or supported.
41433cde130SBruce M Simpson
41533cde130SBruce M Simpson	* There are a number of issues with the implementation of various
41633cde130SBruce M Simpson	  IPv6 multicast APIs which need to be resolved in the API surface
41733cde130SBruce M Simpson	  before the implementation is fully compatible with KAME userland
41833cde130SBruce M Simpson	  use, and these are mostly to do with interface index treatment.
41933cde130SBruce M Simpson
42033cde130SBruce M Simpson	* The literature available discusses the use of either the delta / ASM
42133cde130SBruce M Simpson	  API with setsockopt(2)/getsockopt(2), or the full-state / ASM API
42233cde130SBruce M Simpson	  using setsourcefilter(3)/getsourcefilter(3). For more information
42333cde130SBruce M Simpson	  please refer to RFC 3768, 'Socket Interface Extensions for
42433cde130SBruce M Simpson	  Multicast Source Filters'.
42533cde130SBruce M Simpson
42633cde130SBruce M Simpson	* Applications which use the published RFC 3678 APIs should be fine.
42733cde130SBruce M Simpson
42833cde130SBruce M Simpson	For systems administrators:
42933cde130SBruce M Simpson
43033cde130SBruce M Simpson	* The mtest(8) utility has been refactored to support IPv6, in
43133cde130SBruce M Simpson	  addition to IPv4. Interface addresses are no longer accepted
43233cde130SBruce M Simpson	  as arguments, their names must be used instead. The utility
43333cde130SBruce M Simpson	  will map the interface name to its first IPv4 address as
43433cde130SBruce M Simpson	  returned by getifaddrs(3).
43533cde130SBruce M Simpson
43633cde130SBruce M Simpson	* The ifmcstat(8) utility has also been updated to print the MLDv2
43733cde130SBruce M Simpson	  endpoint state and source filter lists via sysctl(3).
43833cde130SBruce M Simpson
43933cde130SBruce M Simpson	* The net.inet6.ip6.mcast.loop sysctl may be tuned to 0 to disable
44033cde130SBruce M Simpson	  loopback of IPv6 multicast datagrams by default; it defaults to 1
44133cde130SBruce M Simpson	  to preserve the existing behaviour. Disabling multicast loopback is
44233cde130SBruce M Simpson	  recommended for optimal system performance.
44333cde130SBruce M Simpson
44433cde130SBruce M Simpson	* The IPv6 MROUTING code has been changed to examine this sysctl
44533cde130SBruce M Simpson	  instead of attempting to perform a group lookup before looping
44633cde130SBruce M Simpson	  back forwarded datagrams.
44733cde130SBruce M Simpson
44833cde130SBruce M Simpson	Bump __FreeBSD_version to 800084.
44933cde130SBruce M Simpson
4508b8bf775SRobert Watson20090422:
451131cdffbSMaksim Yevmenkin	Implement low-level Bluetooth HCI API.
452131cdffbSMaksim Yevmenkin	Bump __FreeBSD_version to 800083.
453131cdffbSMaksim Yevmenkin
4548b8bf775SRobert Watson20090419:
4558b8bf775SRobert Watson	The layout of struct malloc_type, used by modules to register new
4568b8bf775SRobert Watson	memory allocation types, has changed.  Most modules will need to
4578b8bf775SRobert Watson	be rebuilt or panics may be experienced.
4588b8bf775SRobert Watson	Bump __FreeBSD_version to 800081.
4598b8bf775SRobert Watson
460de4ab55eSKip Macy20090415:
461773b573aSKip Macy	Anticipate overflowing inp_flags - add inp_flags2.
462773b573aSKip Macy	This changes most offsets in inpcb, so checking v4 connection
463773b573aSKip Macy	state will require a world rebuild.
464773b573aSKip Macy	Bump __FreeBSD_version to 800080.
465f146c211SXin LI
466773b573aSKip Macy20090415:
467de4ab55eSKip Macy	Add an llentry to struct route and struct route_in6. Modules
468de4ab55eSKip Macy	embedding a struct route will need to be recompiled.
469de4ab55eSKip Macy	Bump __FreeBSD_version to 800079.
470de4ab55eSKip Macy
471427ac07fSKip Macy20090414:
472427ac07fSKip Macy	The size of rt_metrics_lite and by extension rtentry has changed.
473427ac07fSKip Macy	Networking administration apps will need to be recompiled.
474427ac07fSKip Macy	The route command now supports show as an alias for get, weighting
475427ac07fSKip Macy	of routes, sticky and nostick flags to alter the behavior of stateful
476427ac07fSKip Macy	load balancing.
477427ac07fSKip Macy	Bump __FreeBSD_version to 800078.
4788713ec3dSRenato Botelho
47987437955SMaksim Yevmenkin20090408:
48087437955SMaksim Yevmenkin	Do not use Giant for kbdmux(4) locking. This is wrong and
48187437955SMaksim Yevmenkin	apparently causing more problems than it solves. This will
48287437955SMaksim Yevmenkin	re-open the issue where interrupt handlers may race with
48387437955SMaksim Yevmenkin	kbdmux(4) in polling mode. Typical symptoms include (but
48487437955SMaksim Yevmenkin	not limited to) duplicated and/or missing characters when
48587437955SMaksim Yevmenkin	low level console functions (such as gets) are used while
48687437955SMaksim Yevmenkin	interrupts are enabled (for example geli password prompt,
48787437955SMaksim Yevmenkin	mountroot prompt etc.). Disabling kbdmux(4) may help.
48887437955SMaksim Yevmenkin
4892f6a1858SMarko Zec20090407:
4902f6a1858SMarko Zec	The size of structs vnet_net, vnet_inet and vnet_ipfw has changed;
4912f6a1858SMarko Zec	kernel modules referencing any of the above need to be recompiled.
4922f6a1858SMarko Zec	Bump __FreeBSD_version to 800075.
4932f6a1858SMarko Zec
494781d043cSIvan Voras20090320:
495781d043cSIvan Voras	GEOM_PART has become the default partition slicer for storage devices,
496781d043cSIvan Voras	replacing GEOM_MBR, GEOM_BSD, GEOM_PC98 and GEOM_GPT slicers. It
4979a07b548SIvan Voras	introduces some changes:
4989a07b548SIvan Voras
4999a07b548SIvan Voras	MSDOS/EBR: the devices created from MSDOS extended partition entries
5009a07b548SIvan Voras	(EBR) can be named differently than with GEOM_MBR and are now symlinks
5019a07b548SIvan Voras	to devices with offset-based names. fstabs may need to be modified.
5029a07b548SIvan Voras
5039a07b548SIvan Voras	BSD: the "geometry does not match label" warning is harmless in most
5049a07b548SIvan Voras	cases but it points to problems in file system misalignment with
5059a07b548SIvan Voras	disk geometry. The "c" partition is now implicit, covers the whole
5069a07b548SIvan Voras	top-level drive and cannot be (mis)used by users.
5079a07b548SIvan Voras
5089a07b548SIvan Voras	General: Kernel dumps are now not allowed to be written to devices
5099a07b548SIvan Voras	whose partition types indicate they are meant to be used for file
5109a07b548SIvan Voras	systems (or, in case of MSDOS partitions, as something else than
5119a07b548SIvan Voras	the "386BSD" type).
5129a07b548SIvan Voras
5139a07b548SIvan Voras	Most of these changes date approximately from 200812.
514781d043cSIvan Voras
515443fc317SBruce M Simpson20090319:
5162b78d306SAndrew Thompson	The uscanner(4) driver has been removed from the kernel. This follows
5172b78d306SAndrew Thompson	Linux removing theirs in 2.6 and making libusb the default interface
5182b78d306SAndrew Thompson	(supported by sane).
5192b78d306SAndrew Thompson
5202b78d306SAndrew Thompson20090319:
521443fc317SBruce M Simpson	The multicast forwarding code has been cleaned up. netstat(1)
522443fc317SBruce M Simpson	only relies on KVM now for printing bandwidth upcall meters.
523443fc317SBruce M Simpson	The IPv4 and IPv6 modules are split into ip_mroute_mod and
524443fc317SBruce M Simpson	ip6_mroute_mod respectively. The config(5) options for statically
525443fc317SBruce M Simpson	compiling this code remain the same, i.e. 'options MROUTING'.
526443fc317SBruce M Simpson
5271df14375SRobert Watson20090315:
5281df14375SRobert Watson	Support for the IFF_NEEDSGIANT network interface flag has been
5291df14375SRobert Watson	removed, which means that non-MPSAFE network device drivers are no
5301df14375SRobert Watson	longer supported.  In particular, if_ar, if_sr, and network device
5311df14375SRobert Watson	drivers from the old (legacy) USB stack can no longer be built or
5321df14375SRobert Watson	used.
5331df14375SRobert Watson
534e667034dSRui Paulo20090313:
5357e06afcaSGabor Kovesdan	POSIX.1 Native Language Support (NLS) has been enabled in libc and
5367e06afcaSGabor Kovesdan	a bunch of new language catalog files have also been added.
5377e06afcaSGabor Kovesdan	This means that some common libc messages are now localized and
5387e06afcaSGabor Kovesdan	they depend on the LC_MESSAGES environmental variable.
5397e06afcaSGabor Kovesdan
5407e06afcaSGabor Kovesdan20090313:
541e667034dSRui Paulo	The k8temp(4) driver has been renamed to amdtemp(4) since
5428fb1e038SDavid E. O'Brien	support for Family 10 and Family 11 CPU families was added.
543e667034dSRui Paulo
544a091d2a5SAndrew Thompson20090309:
545d10910e6SBruce M Simpson	IGMPv3 and Source-Specific Multicast (SSM) have been merged
546d10910e6SBruce M Simpson	to the IPv4 stack. VIMAGE hooks are in but not yet used.
547d10910e6SBruce M Simpson
548d10910e6SBruce M Simpson	For kernel developers, the most important changes are that the
549d10910e6SBruce M Simpson	ip_output() and ip_input() paths no longer take the IN_MULTI_LOCK(),
550d10910e6SBruce M Simpson	and this lock has been downgraded to a non-recursive mutex.
551d10910e6SBruce M Simpson
552d10910e6SBruce M Simpson	Transport protocols (UDP, Raw IP) are now responsible for filtering
553d10910e6SBruce M Simpson	inbound multicast traffic according to group membership and source
554d10910e6SBruce M Simpson	filters. The imo_multicast_filter() KPI exists for this purpose.
555d10910e6SBruce M Simpson	Transports which do not use multicast (SCTP, TCP) already reject
556d10910e6SBruce M Simpson	multicast by default. Forwarding and receive performance may improve
557d10910e6SBruce M Simpson	as a mutex acquisition is no longer needed in the ip_input()
558d10910e6SBruce M Simpson	low-level input path.  in_addmulti() and in_delmulti() are shimmed
559d10910e6SBruce M Simpson	to new KPIs which exist to support SSM in-kernel.
560d10910e6SBruce M Simpson
561d10910e6SBruce M Simpson	For application developers, it is recommended that loopback of
562d10910e6SBruce M Simpson	multicast datagrams be disabled for best performance, as this
563d10910e6SBruce M Simpson	will still cause the lock to be taken for each looped-back
564d10910e6SBruce M Simpson	datagram transmission. The net.inet.ip.mcast.loop sysctl may
565d10910e6SBruce M Simpson	be tuned to 0 to disable loopback by default; it defaults to 1
566d10910e6SBruce M Simpson	to preserve the existing behaviour.
567d10910e6SBruce M Simpson
568d10910e6SBruce M Simpson	For systems administrators, to obtain best performance with
569d10910e6SBruce M Simpson	multicast reception and multiple groups, it is always recommended
570d10910e6SBruce M Simpson	that a card with a suitably precise hash filter is used. Hash
571d10910e6SBruce M Simpson	collisions will still result in the lock being taken within the
572d10910e6SBruce M Simpson	transport protocol input path to check group membership.
573d10910e6SBruce M Simpson
574d10910e6SBruce M Simpson	If deploying FreeBSD in an environment with IGMP snooping switches,
575d10910e6SBruce M Simpson	it is recommended that the net.inet.igmp.sendlocal sysctl remain
576d10910e6SBruce M Simpson	enabled; this forces 224.0.0.0/24 group membership to be announced
577d10910e6SBruce M Simpson	via IGMP.
578d10910e6SBruce M Simpson
579d10910e6SBruce M Simpson	The size of 'struct igmpstat' has changed; netstat needs to be
580d10910e6SBruce M Simpson	recompiled to reflect this.
581d10910e6SBruce M Simpson	Bump __FreeBSD_version to 800070.
582d10910e6SBruce M Simpson
583d10910e6SBruce M Simpson20090309:
584a091d2a5SAndrew Thompson	libusb20.so.1 is now installed as libusb.so.1 and the ports system
585a091d2a5SAndrew Thompson	updated to use it. This requires a buildworld/installworld in order to
586a091d2a5SAndrew Thompson	update the library and dependencies (usbconfig, etc). Its advisable to
587cb2fe9b1SStanislav Sedov	rebuild all ports which uses libusb. More specific directions are given
5880ee5826eSAndrew Thompson	in the ports collection UPDATING file. Any /etc/libmap.conf entries for
5893296f80dSAndrew Thompson	libusb are no longer required and can be removed.
590a091d2a5SAndrew Thompson
59165067cc8SKonstantin Belousov20090302:
5929f960e98SKonstantin Belousov	A workaround is committed to allow the creation of System V shared
5939f960e98SKonstantin Belousov	memory segment of size > 2 GB on the 64-bit architectures.
5949f960e98SKonstantin Belousov	Due to a limitation of the existing ABI, the shm_segsz member
59565067cc8SKonstantin Belousov	of the struct shmid_ds, returned by shmctl(IPC_STAT) call is
596813bb2c9SJoel Dahl	wrong for large segments. Note that limits must be explicitly
59765067cc8SKonstantin Belousov	raised to allow such segments to be created.
59865067cc8SKonstantin Belousov
599176273eaSRobert Watson20090301:
600176273eaSRobert Watson	The layout of struct ifnet has changed, requiring a rebuild of all
601176273eaSRobert Watson	network device driver modules.
602176273eaSRobert Watson
603a13a5664SAndrew Thompson20090227:
604a13a5664SAndrew Thompson	The /dev handling for the new USB stack has changed, a
605a13a5664SAndrew Thompson	buildworld/installworld is required for libusb20.
606a13a5664SAndrew Thompson
60771e9286cSAndrew Thompson20090223:
60871e9286cSAndrew Thompson	The new USB2 stack has now been permanently moved in and all kernel and
609200dcf9aSAndrew Thompson	module names reverted to their previous values (eg, usb, ehci, ohci,
6109c1e15b5SAndrew Thompson	ums, ...).  The old usb stack can be compiled in by prefixing the name
61171e9286cSAndrew Thompson	with the letter 'o', the old usb modules have been removed.
612a709c9a6SWarner Losh	Updating entry 20090216 for xorg and 20090215 for libmap may still
613a709c9a6SWarner Losh	apply.
61471e9286cSAndrew Thompson
615553bf6a4SMike Makonnen20090217:
616553bf6a4SMike Makonnen	The rc.conf(5) option if_up_delay has been renamed to
617553bf6a4SMike Makonnen	defaultroute_delay to better reflect its purpose. If you have
618553bf6a4SMike Makonnen	customized this setting in /etc/rc.conf you need to update it to
619553bf6a4SMike Makonnen	use the new name.
620553bf6a4SMike Makonnen
621bb71e4b6SAndrew Thompson20090216:
622bb71e4b6SAndrew Thompson	xorg 7.4 wants to configure its input devices via hald which does not
623bb71e4b6SAndrew Thompson	yet work with USB2. If the keyboard/mouse does not work in xorg then
624bb71e4b6SAndrew Thompson	add
625bb71e4b6SAndrew Thompson		Option "AllowEmptyInput" "off"
626bb71e4b6SAndrew Thompson	to your ServerLayout section.  This will cause X to use the configured
627cbb9c89eSMaxim Konovalov	kbd and mouse sections from your xorg.conf.
628bb71e4b6SAndrew Thompson
629e4edc14eSAndrew Thompson20090215:
630e4edc14eSAndrew Thompson	The GENERIC kernels for all architectures now default to the new USB2
631e4edc14eSAndrew Thompson	stack. No kernel config options or code have been removed so if a
632e4edc14eSAndrew Thompson	problem arises please report it and optionally revert to the old USB
633e4edc14eSAndrew Thompson	stack. If you are loading USB kernel modules or have a custom kernel
634e4edc14eSAndrew Thompson	that includes GENERIC then ensure that usb names are also changed over,
635cbb9c89eSMaxim Konovalov	eg uftdi -> usb2_serial_ftdi.
636e4edc14eSAndrew Thompson
637a709c9a6SWarner Losh	Older programs linked against the ports libusb 0.1 need to be
638a709c9a6SWarner Losh	redirected to the new stack's libusb20.  /etc/libmap.conf can
639a709c9a6SWarner Losh	be used for this:
640a709c9a6SWarner Losh		# Map old usb library to new one for usb2 stack
641a709c9a6SWarner Losh		libusb-0.1.so.8	libusb20.so.1
642a709c9a6SWarner Losh
64321293e70SAndrew Thompson20090209:
64421293e70SAndrew Thompson	All USB ethernet devices now attach as interfaces under the name ueN
64521293e70SAndrew Thompson	(eg. ue0). This is to provide a predictable name as vendors often
64621293e70SAndrew Thompson	change usb chipsets in a product without notice.
64721293e70SAndrew Thompson
64814943437SJohn Baldwin20090203:
64914943437SJohn Baldwin	The ichsmb(4) driver has been changed to require SMBus slave
65014943437SJohn Baldwin	addresses be left-justified (xxxxxxx0b) rather than right-justified.
65114943437SJohn Baldwin	All of the other SMBus controller drivers require left-justified
65214943437SJohn Baldwin	slave addresses, so this change makes all the drivers provide the
65314943437SJohn Baldwin	same interface.
65414943437SJohn Baldwin
65509f8c3ffSBjoern A. Zeeb20090201:
65609f8c3ffSBjoern A. Zeeb	INET6 statistics (struct ip6stat) was updated.
65709f8c3ffSBjoern A. Zeeb	netstat(1) needs to be recompiled.
65809f8c3ffSBjoern A. Zeeb
65974f91fb9SMaxim Sobolev20090119:
66074f91fb9SMaxim Sobolev	NTFS has been removed from GENERIC kernel on amd64 to match
66174f91fb9SMaxim Sobolev	GENERIC on i386. Should not cause any issues since mount_ntfs(8)
66274f91fb9SMaxim Sobolev	will load ntfs.ko module automatically when NTFS support is
66374f91fb9SMaxim Sobolev	actually needed, unless ntfs.ko is not installed or security
66474f91fb9SMaxim Sobolev	level prohibits loading kernel modules. If either is the case,
66574f91fb9SMaxim Sobolev	"options NTFS" has to be added into kernel config.
66674f91fb9SMaxim Sobolev
66724cb0f22SLawrence Stewart20090115:
66824cb0f22SLawrence Stewart	TCP Appropriate Byte Counting (RFC 3465) support added to kernel.
66924cb0f22SLawrence Stewart	New field in struct tcpcb breaks ABI, so bump __FreeBSD_version to
67024cb0f22SLawrence Stewart	800061. User space tools that rely on the size of struct tcpcb in
67124cb0f22SLawrence Stewart	tcp_var.h (e.g. sockstat) need to be recompiled.
67224cb0f22SLawrence Stewart
6735d55747eSAlexander Motin20081225:
6745d55747eSAlexander Motin	ng_tty(4) module updated to match the new TTY subsystem.
6755d55747eSAlexander Motin	Due to API change, user-level applications must be updated.
6765d55747eSAlexander Motin	New API support added to mpd5 CVS and expected to be present
6775d55747eSAlexander Motin	in next mpd5.3 release.
6785d55747eSAlexander Motin
679efc06131SSam Leffler20081219:
680a1c64cafSSam Leffler	With __FreeBSD_version 800060 the makefs tool is part of
681a1c64cafSSam Leffler	the base system (it was a port).
682efc06131SSam Leffler
683991f8615SKip Macy20081216:
684991f8615SKip Macy	The afdata and ifnet locks have been changed from mutexes to
685991f8615SKip Macy	rwlocks, network modules will need to be re-compiled.
6861d7e99caSJohn Baldwin
6876e6b3f7cSQing Li20081214:
6886e6b3f7cSQing Li	__FreeBSD_version 800059 incorporates the new arp-v2 rewrite.
6896e6b3f7cSQing Li	RTF_CLONING, RTF_LLINFO and RTF_WASCLONED flags are eliminated.
6906e6b3f7cSQing Li	The new code reduced struct rtentry{} by 16 bytes on 32-bit
6916e6b3f7cSQing Li	architecture and 40 bytes on 64-bit architecture. The userland
6926e6b3f7cSQing Li	applications "arp" and "ndp" have been updated accordingly.
6936e6b3f7cSQing Li	The output from "netstat -r" shows only routing entries and
6946e6b3f7cSQing Li	none of the L2 information.
6956e6b3f7cSQing Li
69633644623SSam Leffler20081130:
69733644623SSam Leffler	__FreeBSD_version 800057 marks the switchover from the
69833644623SSam Leffler	binary ath hal to source code. Users must add the line:
69933644623SSam Leffler
700c60b227cSSam Leffler	options	AH_SUPPORT_AR5416
70133644623SSam Leffler
70233644623SSam Leffler	to their kernel config files when specifying:
70333644623SSam Leffler
70433644623SSam Leffler	device	ath_hal
70533644623SSam Leffler
70633644623SSam Leffler	The ath_hal module no longer exists; the code is now compiled
70733644623SSam Leffler	together with the driver in the ath module.  It is now
70833644623SSam Leffler	possible to tailor chip support (i.e. reduce the set of chips
70933644623SSam Leffler	and thereby the code size); consult ath_hal(4) for details.
71033644623SSam Leffler
711db7f0b97SKip Macy20081121:
712db7f0b97SKip Macy	__FreeBSD_version 800054 adds memory barriers to
713db7f0b97SKip Macy	<machine/atomic.h>, new interfaces to ifnet to facilitate
714db7f0b97SKip Macy	multiple hardware transmit queues for cards that support
715db7f0b97SKip Macy	them, and a lock-less ring-buffer implementation to
716db7f0b97SKip Macy	enable drivers to more efficiently manage queueing of
717db7f0b97SKip Macy	packets.
718db7f0b97SKip Macy
719de2e1b35SXin LI20081117:
720de2e1b35SXin LI	A new version of ZFS (version 13) has been merged to -HEAD.
721de3a91a0SXin LI	This version has zpool attribute "listsnapshots" off by
722de3a91a0SXin LI	default, which means "zfs list" does not show snapshots,
723de2e1b35SXin LI	and is the same as Solaris behavior.
724de2e1b35SXin LI
72502d09f79SOleg Bulyzhin20081028:
72602d09f79SOleg Bulyzhin	dummynet(4) ABI has changed. ipfw(8) needs to be recompiled.
72702d09f79SOleg Bulyzhin
728e91c7c81SJoseph Koshy20081009:
729d8135f4aSNick Hibma	The uhci, ohci, ehci and slhci USB Host controller drivers have
730d8135f4aSNick Hibma	been put into separate modules. If you load the usb module
731d8135f4aSNick Hibma	separately through loader.conf you will need to load the
732d8135f4aSNick Hibma	appropriate *hci module as well. E.g. for a UHCI-based USB 2.0
733d8135f4aSNick Hibma	controller add the following to loader.conf:
734d8135f4aSNick Hibma
735d8135f4aSNick Hibma		uhci_load="YES"
736d8135f4aSNick Hibma		ehci_load="YES"
737d8135f4aSNick Hibma
738d8135f4aSNick Hibma20081009:
739e91c7c81SJoseph Koshy	The ABI used by the PMC toolset has changed.  Please keep
740e91c7c81SJoseph Koshy	userland (libpmc(3)) and the kernel module (hwpmc(4)) in
741e91c7c81SJoseph Koshy	sync.
742e91c7c81SJoseph Koshy
743b868265dSAlexander Motin20081009:
744b868265dSAlexander Motin	atapci kernel module now includes only generic PCI ATA
745b868265dSAlexander Motin	driver. AHCI driver moved to ataahci kernel module.
746b868265dSAlexander Motin	All vendor-specific code moved into separate kernel modules:
747b868265dSAlexander Motin	ataacard, ataacerlabs, ataadaptec, ataamd, ataati, atacenatek,
748b868265dSAlexander Motin	atacypress, atacyrix, atahighpoint, ataintel, ataite, atajmicron,
749b868265dSAlexander Motin	atamarvell, atamicron, atanational, atanetcell, atanvidia,
750b868265dSAlexander Motin	atapromise, ataserverworks, atasiliconimage, atasis, atavia
751b868265dSAlexander Motin
752bc093719SEd Schouten20080820:
753bc093719SEd Schouten	The TTY subsystem of the kernel has been replaced by a new
754bc093719SEd Schouten	implementation, which provides better scalability and an
755bc093719SEd Schouten	improved driver model. Most common drivers have been migrated to
756bc093719SEd Schouten	the new TTY subsystem, while others have not. The following
757bc093719SEd Schouten	drivers have not yet been ported to the new TTY layer:
758bc093719SEd Schouten
759bc093719SEd Schouten	PCI/ISA:
76066e7dc38SEd Schouten		cy, digi, rc, rp, sio
761bc093719SEd Schouten
762bc093719SEd Schouten	USB:
76366e7dc38SEd Schouten		ubser, ucycom
764bc093719SEd Schouten
765bc093719SEd Schouten	Line disciplines:
766bc093719SEd Schouten		ng_h4, ng_tty, ppp, sl, snp
767bc093719SEd Schouten
768bc093719SEd Schouten	Adding these drivers to your kernel configuration file shall
769bc093719SEd Schouten	cause compilation to fail.
770bc093719SEd Schouten
7719d965219SOllivier Robert20080818:
7729d965219SOllivier Robert	ntpd has been upgraded to 4.2.4p5.
7739d965219SOllivier Robert
774eaeb50d4SDag-Erling Smørgrav20080801:
775eaeb50d4SDag-Erling Smørgrav	OpenSSH has been upgraded to 5.1p1.
776eaeb50d4SDag-Erling Smørgrav
777eaeb50d4SDag-Erling Smørgrav	For many years, FreeBSD's version of OpenSSH preferred DSA
778eaeb50d4SDag-Erling Smørgrav	over RSA for host and user authentication keys.  With this
779eaeb50d4SDag-Erling Smørgrav	upgrade, we've switched to the vendor's default of RSA over
780eaeb50d4SDag-Erling Smørgrav	DSA.  This may cause upgraded clients to warn about unknown
781eaeb50d4SDag-Erling Smørgrav	host keys even for previously known hosts.  Users should
782eaeb50d4SDag-Erling Smørgrav	follow the usual procedure for verifying host keys before
783eaeb50d4SDag-Erling Smørgrav	accepting the RSA key.
784eaeb50d4SDag-Erling Smørgrav
785eaeb50d4SDag-Erling Smørgrav	This can be circumvented by setting the "HostKeyAlgorithms"
786eaeb50d4SDag-Erling Smørgrav	option to "ssh-dss,ssh-rsa" in ~/.ssh/config or on the ssh
787eaeb50d4SDag-Erling Smørgrav	command line.
788eaeb50d4SDag-Erling Smørgrav
789737d990aSXin LI	Please note that the sequence of keys offered for
790737d990aSXin LI	authentication has been changed as well.  You may want to
791737d990aSXin LI	specify IdentityFile in a different order to revert this
792737d990aSXin LI	behavior.
793737d990aSXin LI
794f4d811f0SEd Schouten20080713:
795f4d811f0SEd Schouten	The sio(4) driver has been removed from the i386 and amd64
796f4d811f0SEd Schouten	kernel configuration files. This means uart(4) is now the
797f4d811f0SEd Schouten	default serial port driver on those platforms as well.
798f4d811f0SEd Schouten
799f4d811f0SEd Schouten	To prevent collisions with the sio(4) driver, the uart(4) driver
800f4d811f0SEd Schouten	uses different names for its device nodes. This means the
801f4d811f0SEd Schouten	onboard serial port will now most likely be called "ttyu0"
802f4d811f0SEd Schouten	instead of "ttyd0". You may need to reconfigure applications to
803f4d811f0SEd Schouten	use the new device names.
804f4d811f0SEd Schouten
805db96ec0bSEd Schouten	When using the serial port as a boot console, be sure to update
806db96ec0bSEd Schouten	/boot/device.hints and /etc/ttys before booting the new kernel.
807db96ec0bSEd Schouten	If you forget to do so, you can still manually specify the hints
808db96ec0bSEd Schouten	at the loader prompt:
809db96ec0bSEd Schouten
810db96ec0bSEd Schouten		set hint.uart.0.at="isa"
811db96ec0bSEd Schouten		set hint.uart.0.port="0x3F8"
812db96ec0bSEd Schouten		set hint.uart.0.flags="0x10"
813db96ec0bSEd Schouten		set hint.uart.0.irq="4"
814db96ec0bSEd Schouten		boot -s
815db96ec0bSEd Schouten
816bdc03b37SMarcel Moolenaar20080609:
817bdc03b37SMarcel Moolenaar	The gpt(8) utility has been removed. Use gpart(8) to partition
818bdc03b37SMarcel Moolenaar	disks instead.
819bdc03b37SMarcel Moolenaar
82027f7c387SRoman Divacky20080603:
821a47444d5SRoman Divacky	The version that Linuxulator emulates was changed from 2.4.2
822a47444d5SRoman Divacky	to 2.6.16. If you experience any problems with Linux binaries
823a47444d5SRoman Divacky	please try to set sysctl compat.linux.osrelease to 2.4.2 and
824a47444d5SRoman Divacky	if it fixes the problem contact emulation mailing list.
825a47444d5SRoman Divacky
8262e598474SBjoern A. Zeeb20080525:
8272e598474SBjoern A. Zeeb	ISDN4BSD (I4B) was removed from the src tree. You may need to
8282e598474SBjoern A. Zeeb	update a your kernel configuration and remove relevant entries.
8292e598474SBjoern A. Zeeb
8304dcedde3SJulian Elischer20080509:
8314dcedde3SJulian Elischer	I have checked in code to support multiple routing tables.
832032e0bf8SMaxim Konovalov	See the man pages setfib(1) and setfib(2).
8334dcedde3SJulian Elischer	This is a hopefully backwards compatible version,
8344dcedde3SJulian Elischer	but to make use of it you need to compile your kernel
8354dcedde3SJulian Elischer	with options ROUTETABLES=2 (or more up to 16).
8364dcedde3SJulian Elischer
837de570baaSSam Leffler20080420:
838de570baaSSam Leffler	The 802.11 wireless support was redone to enable multi-bss
839de570baaSSam Leffler	operation on devices that are capable.  The underlying device
840de570baaSSam Leffler	is no longer used directly but instead wlanX devices are
841de570baaSSam Leffler	cloned with ifconfig.  This requires changes to rc.conf files.
8425318f840SWarner Losh	For example, change:
8435318f840SWarner Losh		ifconfig_ath0="WPA DHCP"
8445318f840SWarner Losh	to
8455318f840SWarner Losh		wlans_ath0=wlan0
8465318f840SWarner Losh		ifconfig_wlan0="WPA DHCP"
8470f95e625SWarner Losh	see rc.conf(5) for more details.  In addition, mergemaster of
8480f95e625SWarner Losh	/etc/rc.d is highly recommended.  Simultaneous update of userland
8490f95e625SWarner Losh	and kernel wouldn't hurt either.
850de570baaSSam Leffler
851de570baaSSam Leffler	As part of the multi-bss changes the wlan_scan_ap and wlan_scan_sta
852de570baaSSam Leffler	modules were merged into the base wlan module.  All references
853de570baaSSam Leffler	to these modules (e.g. in kernel config files) must be removed.
854de570baaSSam Leffler
855ff0af72cSJung-uk Kim20080408:
856ff0af72cSJung-uk Kim	psm(4) has gained write(2) support in native operation level.
857ff0af72cSJung-uk Kim	Arbitrary commands can be written to /dev/psm%d and status can
858ff0af72cSJung-uk Kim	be read back from it.  Therefore, an application is responsible
859ff0af72cSJung-uk Kim	for status validation and error recovery.  It is a no-op in
860ff0af72cSJung-uk Kim	other operation levels.
861ff0af72cSJung-uk Kim
862e4c67b94SJeff Roberson20080312:
863e4c67b94SJeff Roberson	Support for KSE threading has been removed from the kernel.  To
864e4c67b94SJeff Roberson	run legacy applications linked against KSE libmap.conf may
865e4c67b94SJeff Roberson	be used.  The following libmap.conf may be used to ensure
866e4c67b94SJeff Roberson	compatibility with any prior release:
867e4c67b94SJeff Roberson
868e4c67b94SJeff Roberson	libpthread.so.1 libthr.so.1
869e4c67b94SJeff Roberson	libpthread.so.2 libthr.so.2
870e4c67b94SJeff Roberson	libkse.so.3 libthr.so.3
871e4c67b94SJeff Roberson
8728775db6fSMarcel Moolenaar20080301:
8738775db6fSMarcel Moolenaar	The layout of struct vmspace has changed. This affects libkvm
8748775db6fSMarcel Moolenaar	and any executables that link against libkvm and use the
8758775db6fSMarcel Moolenaar	kvm_getprocs() function. In particular, but not exclusively,
8768775db6fSMarcel Moolenaar	it affects ps(1), fstat(1), pkill(1), systat(1), top(1) and w(1).
8778775db6fSMarcel Moolenaar	The effects are minimal, but it's advisable to upgrade world
8788775db6fSMarcel Moolenaar	nonetheless.
8798775db6fSMarcel Moolenaar
880df09ebc0SJack F Vogel20080229:
881df09ebc0SJack F Vogel	The latest em driver no longer has support in it for the
882df09ebc0SJack F Vogel	82575 adapter, this is now moved to the igb driver. The
883df09ebc0SJack F Vogel	split was done to make new features that are incompatible
884df09ebc0SJack F Vogel	with older hardware easier to do.
885df09ebc0SJack F Vogel
8861669d8afSAndrew Thompson20080220:
8871669d8afSAndrew Thompson	The new geom_lvm(4) geom class has been renamed to geom_linux_lvm(4),
8881669d8afSAndrew Thompson	likewise the kernel option is now GEOM_LINUX_LVM.
8891669d8afSAndrew Thompson
8902427fa19SKris Kennaway20080211:
8912427fa19SKris Kennaway	The default NFS mount mode has changed from UDP to TCP for
8922427fa19SKris Kennaway	increased reliability.  If you rely on (insecurely) NFS
8932427fa19SKris Kennaway	mounting across a firewall you may need to update your
8942427fa19SKris Kennaway	firewall rules.
8952427fa19SKris Kennaway
8965e9f6b73SSam Leffler20080208:
8975e9f6b73SSam Leffler	Belatedly note the addition of m_collapse for compacting
8985e9f6b73SSam Leffler	mbuf chains.
8995e9f6b73SSam Leffler
90048aaad5fSYaroslav Tykhiy20080126:
90148aaad5fSYaroslav Tykhiy	The fts(3) structures have been changed to use adequate
90248aaad5fSYaroslav Tykhiy	integer types for their members and so to be able to cope
90348aaad5fSYaroslav Tykhiy	with huge file trees.  The old fts(3) ABI is preserved
90448aaad5fSYaroslav Tykhiy	through symbol versioning in libc, so third-party binaries
90548aaad5fSYaroslav Tykhiy	using fts(3) should still work, although they will not take
90648aaad5fSYaroslav Tykhiy	advantage of the extended types.  At the same time, some
90748aaad5fSYaroslav Tykhiy	third-party software might fail to build after this change
90848aaad5fSYaroslav Tykhiy	due to unportable assumptions made in its source code about
90948aaad5fSYaroslav Tykhiy	fts(3) structure members.  Such software should be fixed
91048aaad5fSYaroslav Tykhiy	by its vendor or, in the worst case, in the ports tree.
91148aaad5fSYaroslav Tykhiy	FreeBSD_version 800015 marks this change for the unlikely
91248aaad5fSYaroslav Tykhiy	case that a portable fix is impossible.
91348aaad5fSYaroslav Tykhiy
91451dc1e12SRuslan Ermilov20080123:
9158015f45cSWarner Losh	To upgrade to -current after this date, you must be running
91651dc1e12SRuslan Ermilov	FreeBSD not older than 6.0-RELEASE.  Upgrading to -current
9178015f45cSWarner Losh	from 5.x now requires a stop over at RELENG_6 or RELENG_7 systems.
9188015f45cSWarner Losh
919ab4a2c41SMatteo Riondato20071128:
920ab4a2c41SMatteo Riondato	The ADAPTIVE_GIANT kernel option has been retired because its
921ab4a2c41SMatteo Riondato	functionality is the default now.
922ab4a2c41SMatteo Riondato
923e393af84SMarius Strobl20071118:
924e393af84SMarius Strobl	The AT keyboard emulation of sunkbd(4) has been turned on
925e393af84SMarius Strobl	by default. In order to make the special symbols of the Sun
926e393af84SMarius Strobl	keyboards driven by sunkbd(4) work under X these now have
927e393af84SMarius Strobl	to be configured the same way as Sun USB keyboards driven
928e393af84SMarius Strobl	by ukbd(4) (which also does AT keyboard emulation), f.e.:
929e393af84SMarius Strobl
930e393af84SMarius Strobl	Option	"XkbLayout" "us"
931e393af84SMarius Strobl	Option	"XkbRules" "xorg"
932e393af84SMarius Strobl	Option	"XkbSymbols" "pc(pc105)+sun_vndr/usb(sun_usb)+us"
933e393af84SMarius Strobl
93433d3fffaSMarius Strobl20071024:
93533d3fffaSMarius Strobl	It has been decided that it is desirable to provide ABI
93633d3fffaSMarius Strobl	backwards compatibility to the FreeBSD 4/5/6 versions of the
93733d3fffaSMarius Strobl	PCIOCGETCONF, PCIOCREAD and PCIOCWRITE IOCTLs, which was
93833d3fffaSMarius Strobl	broken with the introduction of PCI domain support (see the
93933d3fffaSMarius Strobl	20070930 entry). Unfortunately, this required the ABI of
94033d3fffaSMarius Strobl	PCIOCGETCONF to be broken again in order to be able to
94133d3fffaSMarius Strobl	provide backwards compatibility to the old version of that
94233d3fffaSMarius Strobl	IOCTL. Thus consumers of PCIOCGETCONF have to be recompiled
94333d3fffaSMarius Strobl	again. As for prominent ports this affects neither pciutils
94433d3fffaSMarius Strobl	nor xorg-server this time, the hal port needs to be rebuilt
94533d3fffaSMarius Strobl	however.
94633d3fffaSMarius Strobl
9473d461febSJulian Elischer20071020:
9483d461febSJulian Elischer	The misnamed kthread_create() and friends have been renamed
9493d461febSJulian Elischer	to kproc_create() etc. Many of the callers already
9503d461febSJulian Elischer	used kproc_start()..
9513d461febSJulian Elischer	I will return kthread_create() and friends in a while
9523d461febSJulian Elischer	with implementations that actually create threads, not procs.
9533d461febSJulian Elischer	Renaming corresponds with version 800002.
9543d461febSJulian Elischer
955c15e0967SKen Smith20071010:
956c15e0967SKen Smith	RELENG_7 branched.
957c15e0967SKen Smith
958dc0dbf5cSWarner LoshCOMMON ITEMS:
959dc0dbf5cSWarner Losh
960a24eff53SWarner Losh	General Notes
961a24eff53SWarner Losh	-------------
962456b5dd8SWarner Losh	Avoid using make -j when upgrading.  While generally safe, there are
963456b5dd8SWarner Losh	sometimes problems using -j to upgrade.  If your upgrade fails with
9641733d35cSRuslan Ermilov	-j, please try again without -j.  From time to time in the past there
965456b5dd8SWarner Losh	have been problems using -j with buildworld and/or installworld.  This
966456b5dd8SWarner Losh	is especially true when upgrading between "distant" versions (eg one
967456b5dd8SWarner Losh	that cross a major release boundary or several minor releases, or when
968456b5dd8SWarner Losh	several months have passed on the -current branch).
969a24eff53SWarner Losh
9705780f3baSWarner Losh	Sometimes, obscure build problems are the result of environment
9715780f3baSWarner Losh	poisoning.  This can happen because the make utility reads its
972456b5dd8SWarner Losh	environment when searching for values for global variables.  To run
973456b5dd8SWarner Losh	your build attempts in an "environmental clean room", prefix all make
974456b5dd8SWarner Losh	commands with 'env -i '.  See the env(1) manual page for more details.
9755780f3baSWarner Losh
976456b5dd8SWarner Losh	When upgrading from one major version to another it is generally best
977456b5dd8SWarner Losh	to upgrade to the latest code in the currently installed branch first,
978456b5dd8SWarner Losh	then do an upgrade to the new branch. This is the best-tested upgrade
979456b5dd8SWarner Losh	path, and has the highest probability of being successful.  Please try
980456b5dd8SWarner Losh	this approach before reporting problems with a major version upgrade.
981081ff8acSDoug Barton
9828fc25799SMartin Matuska	ZFS notes
9838fc25799SMartin Matuska	---------
9848fc25799SMartin Matuska	When upgrading the boot ZFS pool to a new version, always follow
9858fc25799SMartin Matuska	these two steps:
9868fc25799SMartin Matuska
9878fc25799SMartin Matuska	1.) recompile and reinstall the ZFS boot loader and boot block
9888fc25799SMartin Matuska	(this is part of "make buildworld" and "make installworld")
9898fc25799SMartin Matuska
9908fc25799SMartin Matuska	2.) update the ZFS boot block on your boot drive
9918fc25799SMartin Matuska
9928fc25799SMartin Matuska	The following example updates the ZFS boot block on the first
9938fc25799SMartin Matuska	partition (freebsd-boot) of a GPT partitioned drive ad0:
9948fc25799SMartin Matuska	"gpart bootcode -p /boot/gptzfsboot -i 1 ad0"
9958fc25799SMartin Matuska
9968fc25799SMartin Matuska	Non-boot pools do not need these updates.
9978fc25799SMartin Matuska
998dc0dbf5cSWarner Losh	To build a kernel
999dc0dbf5cSWarner Losh	-----------------
1000ba01eb20SWarner Losh	If you are updating from a prior version of FreeBSD (even one just
10011cf0ef11SDavid E. O'Brien	a few days old), you should follow this procedure.  It is the most
10021cf0ef11SDavid E. O'Brien	failsafe as it uses a /usr/obj tree with a fresh mini-buildworld,
10031cf0ef11SDavid E. O'Brien
10041cf0ef11SDavid E. O'Brien	make kernel-toolchain
1005282e0f01SRuslan Ermilov	make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
1006282e0f01SRuslan Ermilov	make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
1007dc0dbf5cSWarner Losh
10082e937dd6SAlexander Leidinger	To test a kernel once
10092e937dd6SAlexander Leidinger	---------------------
10102e937dd6SAlexander Leidinger	If you just want to boot a kernel once (because you are not sure
10112e937dd6SAlexander Leidinger	if it works, or if you want to boot a known bad kernel to provide
10122e937dd6SAlexander Leidinger	debugging information) run
10132e937dd6SAlexander Leidinger	make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
10142e937dd6SAlexander Leidinger	nextboot -k testkernel
10152e937dd6SAlexander Leidinger
1016ba01eb20SWarner Losh	To just build a kernel when you know that it won't mess you up
1017ba01eb20SWarner Losh	--------------------------------------------------------------
1018456b5dd8SWarner Losh	This assumes you are already running a CURRENT system.  Replace
10190fbd2da9SKen Smith	${arch} with the architecture of your machine (e.g. "i386",
1020456b5dd8SWarner Losh	"arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc).
10210fbd2da9SKen Smith
10220fbd2da9SKen Smith	cd src/sys/${arch}/conf
102347d0d01fSWarner Losh	config KERNEL_NAME_HERE
10240fbd2da9SKen Smith	cd ../compile/KERNEL_NAME_HERE
1025ba01eb20SWarner Losh	make depend
1026ba01eb20SWarner Losh	make
1027ba01eb20SWarner Losh	make install
1028ba01eb20SWarner Losh
1029ba01eb20SWarner Losh	If this fails, go to the "To build a kernel" section.
1030ba01eb20SWarner Losh
1031ba01eb20SWarner Losh	To rebuild everything and install it on the current system.
1032ba01eb20SWarner Losh	-----------------------------------------------------------
103363cb445eSWarner Losh	# Note: sometimes if you are running current you gotta do more than
103463cb445eSWarner Losh	# is listed here if you are upgrading from a really old current.
103563cb445eSWarner Losh
1036f643de42SWarner Losh	<make sure you have good level 0 dumps>
103763cb445eSWarner Losh	make buildworld
10386586253aSWarner Losh	make kernel KERNCONF=YOUR_KERNEL_HERE
103963cb445eSWarner Losh							[1]
104063cb445eSWarner Losh	<reboot in single user>				[3]
104163cb445eSWarner Losh	mergemaster -p					[5]
104263cb445eSWarner Losh	make installworld
1043e2a36081SAlexander Leidinger	make delete-old
104450e8eca6SDoug Barton	mergemaster -i					[4]
104563cb445eSWarner Losh	<reboot>
104663cb445eSWarner Losh
1047759f0aefSWarner Losh
1048f27b1fceSJoseph Koshy	To cross-install current onto a separate partition
1049f27b1fceSJoseph Koshy	--------------------------------------------------
1050f27b1fceSJoseph Koshy	# In this approach we use a separate partition to hold
1051f27b1fceSJoseph Koshy	# current's root, 'usr', and 'var' directories.   A partition
1052f27b1fceSJoseph Koshy	# holding "/", "/usr" and "/var" should be about 2GB in
1053f27b1fceSJoseph Koshy	# size.
1054f27b1fceSJoseph Koshy
1055f27b1fceSJoseph Koshy	<make sure you have good level 0 dumps>
1056f27b1fceSJoseph Koshy	<boot into -stable>
1057f27b1fceSJoseph Koshy	make buildworld
10583ecf3bddSRuslan Ermilov	make buildkernel KERNCONF=YOUR_KERNEL_HERE
1059f27b1fceSJoseph Koshy	<maybe newfs current's root partition>
1060f27b1fceSJoseph Koshy	<mount current's root partition on directory ${CURRENT_ROOT}>
1061f27b1fceSJoseph Koshy	make installworld DESTDIR=${CURRENT_ROOT}
10622d5cde04SRuslan Ermilov	make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
10633ecf3bddSRuslan Ermilov	make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
1064f27b1fceSJoseph Koshy	cp /etc/fstab ${CURRENT_ROOT}/etc/fstab 		   # if newfs'd
1065f27b1fceSJoseph Koshy	<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
1066f27b1fceSJoseph Koshy	<reboot into current>
1067f27b1fceSJoseph Koshy	<do a "native" rebuild/install as described in the previous section>
1068737d990aSXin LI	<maybe install compatibility libraries from ports/misc/compat*>
1069f27b1fceSJoseph Koshy	<reboot>
1070f27b1fceSJoseph Koshy
1071f27b1fceSJoseph Koshy
1072456b5dd8SWarner Losh	To upgrade in-place from 8.x-stable to current
1073f27b1fceSJoseph Koshy	----------------------------------------------
1074f643de42SWarner Losh	<make sure you have good level 0 dumps>
107521c075eaSWarner Losh	make buildworld					[9]
1076e5dc5f61SWarner Losh	make kernel KERNCONF=YOUR_KERNEL_HERE		[8]
1077fc8c157fSWarner Losh							[1]
1078fc8c157fSWarner Losh	<reboot in single user>				[3]
1079835284beSWarner Losh	mergemaster -p					[5]
1080ba26da8eSWarner Losh	make installworld
1081e2a36081SAlexander Leidinger	make delete-old
1082802fc49dSBrian Feldman	mergemaster -i					[4]
1083ba26da8eSWarner Losh	<reboot>
1084ba26da8eSWarner Losh
1085fdb9f54dSWarner Losh	Make sure that you've read the UPDATING file to understand the
1086fdb9f54dSWarner Losh	tweaks to various things you need.  At this point in the life
1087fdb9f54dSWarner Losh	cycle of current, things change often and you are on your own
1088fdb9f54dSWarner Losh	to cope.  The defaults can also change, so please read ALL of
1089fdb9f54dSWarner Losh	the UPDATING entries.
1090ba26da8eSWarner Losh
10911dece4a9SWarner Losh	Also, if you are tracking -current, you must be subscribed to
10921dece4a9SWarner Losh	freebsd-current@freebsd.org.  Make sure that before you update
10931dece4a9SWarner Losh	your sources that you have read and understood all the recent
10941dece4a9SWarner Losh	messages there.  If in doubt, please track -stable which has
10951dece4a9SWarner Losh	much fewer pitfalls.
10961dece4a9SWarner Losh
1097134d2e86SWarner Losh	[1] If you have third party modules, such as vmware, you
1098134d2e86SWarner Losh	should disable them at this point so they don't crash your
1099134d2e86SWarner Losh	system on reboot.
1100134d2e86SWarner Losh
1101ee6e1fc3SWarner Losh	[3] From the bootblocks, boot -s, and then do
1102ee6e1fc3SWarner Losh		fsck -p
1103ee6e1fc3SWarner Losh		mount -u /
1104ee6e1fc3SWarner Losh		mount -a
11056586253aSWarner Losh		cd src
110647d0d01fSWarner Losh		adjkerntz -i		# if CMOS is wall time
1107f6a0ef01SWarner Losh	Also, when doing a major release upgrade, it is required that
1108f6a0ef01SWarner Losh	you boot into single user mode to do the installworld.
1109ee6e1fc3SWarner Losh
1110a6cd4f9dSWarner Losh	[4] Note: This step is non-optional.  Failure to do this step
1111a6cd4f9dSWarner Losh	can result in a significant reduction in the functionality of the
1112a6cd4f9dSWarner Losh	system.  Attempting to do it by hand is not recommended and those
1113a6cd4f9dSWarner Losh	that pursue this avenue should read this file carefully, as well
1114a6cd4f9dSWarner Losh	as the archives of freebsd-current and freebsd-hackers mailing lists
111550e8eca6SDoug Barton	for potential gotchas.  The -U option is also useful to consider.
111650e8eca6SDoug Barton	See mergemaster(8) for more information.
1117a6cd4f9dSWarner Losh
1118835284beSWarner Losh	[5] Usually this step is a noop.  However, from time to time
1119835284beSWarner Losh	you may need to do this if you get unknown user in the following
1120835284beSWarner Losh	step.  It never hurts to do it all the time.  You may need to
1121835284beSWarner Losh	install a new mergemaster (cd src/usr.sbin/mergemaster && make
1122835284beSWarner Losh	install) after the buildworld before this step if you last updated
1123835284beSWarner Losh	from current before 20020224 or from -stable before 20020408.
1124835284beSWarner Losh
1125456b5dd8SWarner Losh	[8] In order to have a kernel that can run the 4.x binaries needed to
1126456b5dd8SWarner Losh	do an installworld, you must include the COMPAT_FREEBSD4 option in
1127456b5dd8SWarner Losh	your kernel.  Failure to do so may leave you with a system that is
1128456b5dd8SWarner Losh	hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 is
1129456b5dd8SWarner Losh	required to run the 5.x binaries on more recent kernels.  And so on
1130456b5dd8SWarner Losh	for COMPAT_FREEBSD6 and COMPAT_FREEBSD7.
1131c74fe6afSWarner Losh
1132e5dc5f61SWarner Losh	Make sure that you merge any new devices from GENERIC since the
1133e5dc5f61SWarner Losh	last time you updated your kernel config file.
1134e5dc5f61SWarner Losh
113521c075eaSWarner Losh	[9] When checking out sources, you must include the -P flag to have
1136e5dc5f61SWarner Losh	cvs prune empty directories.
1137e5dc5f61SWarner Losh
1138e5dc5f61SWarner Losh	If CPUTYPE is defined in your /etc/make.conf, make sure to use the
1139e5dc5f61SWarner Losh	"?=" instead of the "=" assignment operator, so that buildworld can
1140e5dc5f61SWarner Losh	override the CPUTYPE if it needs to.
1141e5dc5f61SWarner Losh
1142e5dc5f61SWarner Losh	MAKEOBJDIRPREFIX must be defined in an environment variable, and
1143e5dc5f61SWarner Losh	not on the command line, or in /etc/make.conf.  buildworld will
1144e5dc5f61SWarner Losh	warn if it is improperly defined.
1145dc0dbf5cSWarner LoshFORMAT:
1146dc0dbf5cSWarner Losh
1147f699bbbbSMark OvensThis file contains a list, in reverse chronological order, of major
11481fc1a0dcSWarner Loshbreakages in tracking -current.  Not all things will be listed here,
11498ce4cbbfSWarner Loshand it only starts on October 16, 2004.  Updating files can found in
1150f8ab1dd6SWarner Loshprevious releases if your system is older than this.
11511fc1a0dcSWarner Losh
1152e72fd46aSWarner LoshCopyright information:
1153e72fd46aSWarner Losh
1154456b5dd8SWarner LoshCopyright 1998-2009 M. Warner Losh.  All Rights Reserved.
1155e72fd46aSWarner Losh
1156772730c7SWarner LoshRedistribution, publication, translation and use, with or without
1157772730c7SWarner Loshmodification, in full or in part, in any form or format of this
11589698f2c0SWarner Loshdocument are permitted without further permission from the author.
1159e72fd46aSWarner Losh
1160e72fd46aSWarner LoshTHIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
1161e72fd46aSWarner LoshIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1162e72fd46aSWarner LoshWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1163e72fd46aSWarner LoshDISCLAIMED.  IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
1164e72fd46aSWarner LoshINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1165e72fd46aSWarner Losh(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1166e72fd46aSWarner LoshSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1167e72fd46aSWarner LoshHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
1168e72fd46aSWarner LoshSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
1169e72fd46aSWarner LoshIN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1170e72fd46aSWarner LoshPOSSIBILITY OF SUCH DAMAGE.
1171e72fd46aSWarner Losh
117222306abcSWarner LoshContact Warner Losh if you have any questions about your use of
1173772730c7SWarner Loshthis document.
1174772730c7SWarner Losh
117597d92980SPeter Wemm$FreeBSD$
1176