112f22a78SPeter WemmUpdating 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 7e0fb6dc3SRobert Watsonhandbook: 8e0fb6dc3SRobert Watson 9e0fb6dc3SRobert Watson http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html 10e72fd46aSWarner Losh 112c724730SWarner LoshItems affecting the ports and packages system can be found in 12456b5dd8SWarner Losh/usr/ports/UPDATING. Please read that file before running portupgrade. 132c724730SWarner Losh 144f1def68SWarner LoshNOTE: FreeBSD has switched from gcc to clang. If you have trouble bootstrapping 15a46954e2SWarner Loshfrom older versions of FreeBSD, try WITHOUT_CLANG and WITH_GCC to bootstrap to 16a46954e2SWarner Loshthe tip of head, and then rebuild without this option. The bootstrap process from 1755b76981SWarner Losholder version of current across the gcc/clang cutover is a bit fragile. 184f1def68SWarner Losh 19006a42a9SGlen BarberNOTE TO PEOPLE WHO THINK THAT FreeBSD 11.x IS SLOW: 20006a42a9SGlen Barber FreeBSD 11.x has many debugging features turned on, in both the kernel 21456b5dd8SWarner Losh and userland. These features attempt to detect incorrect use of 22456b5dd8SWarner Losh system primitives, and encourage loud failure through extra sanity 23456b5dd8SWarner Losh checking and fail stop semantics. They also substantially impact 24456b5dd8SWarner Losh system performance. If you want to do performance measurement, 25456b5dd8SWarner Losh benchmarking, and optimization, you'll want to turn them off. This 26456b5dd8SWarner Losh includes various WITNESS- related kernel options, INVARIANTS, malloc 27456b5dd8SWarner Losh debugging flags in userland, and various verbose features in the 28456b5dd8SWarner Losh kernel. Many developers choose to disable these features on build 2999e449f2SJason Evans machines to maximize performance. (To completely disable malloc 3099e449f2SJason Evans debugging, define MALLOC_PRODUCTION in /etc/make.conf, or to merely 3199e449f2SJason Evans disable the most expensive debugging functionality run 3299e449f2SJason Evans "ln -s 'abort:false,junk:false' /etc/malloc.conf".) 33efc06131SSam Leffler 34*302cd48aSDimitry Andric20150315: 35*302cd48aSDimitry Andric Clang and llvm have been upgraded to 3.6.0 release. Please see the 36*302cd48aSDimitry Andric 20141231 entry below for information about prerequisites and upgrading, 37*302cd48aSDimitry Andric if you are not already using 3.5.0. 386ce3ca64SDimitry Andric 395c845fdeSNathan Whitehorn20150307: 405c845fdeSNathan Whitehorn The 32-bit PowerPC kernel has been changed to a position-independent 415c845fdeSNathan Whitehorn executable. This can only be booted with a version of loader(8) 425c845fdeSNathan Whitehorn newer than January 31, 2015, so make sure to update both world and 435c845fdeSNathan Whitehorn kernel before rebooting. 445c845fdeSNathan Whitehorn 45997707f4SJohn-Mark Gurney20150217: 46997707f4SJohn-Mark Gurney If you are running a -CURRENT kernel since r273872 (Oct 30th, 2014), 4719442b85SXin LI but before r278950, the RNG was not seeded properly. Immediately 4819442b85SXin LI upgrade the kernel to r278950 or later and regenerate any keys (e.g. 49997707f4SJohn-Mark Gurney ssh keys or openssl keys) that were generated w/ a kernel from that 504c25bba7SGavin Atkinson range. This does not affect programs that directly used /dev/random 513a25555cSGlen Barber or /dev/urandom. All userland uses of arc4random(3) are affected. 52997707f4SJohn-Mark Gurney 5309cfaa45SEdward Tomasz Napierala20150210: 5409cfaa45SEdward Tomasz Napierala The autofs(4) ABI was changed in order to restore binary compatibility 5509cfaa45SEdward Tomasz Napierala with 10.1-RELEASE. The automountd(8) daemon needs to be rebuilt to work 5609cfaa45SEdward Tomasz Napierala with the new kernel. 5709cfaa45SEdward Tomasz Napierala 580fa22505SNathan Whitehorn20150131: 590fa22505SNathan Whitehorn The powerpc64 kernel has been changed to a position-independent 600fa22505SNathan Whitehorn executable. This can only be booted with a new version of loader(8), 610fa22505SNathan Whitehorn so make sure to update both world and kernel before rebooting. 620fa22505SNathan Whitehorn 639cac79b3SDimitry Andric20150118: 649cac79b3SDimitry Andric Clang and llvm have been upgraded to 3.5.1 release. This is a bugfix 659cac79b3SDimitry Andric only release, no new features have been added. Please see the 20141231 669cac79b3SDimitry Andric entry below for information about prerequisites and upgrading, if you 679cac79b3SDimitry Andric are not already using 3.5.0. 689cac79b3SDimitry Andric 69968d62e1SEd Maste20150107: 70968d62e1SEd Maste ELF tools addr2line, elfcopy (strip), nm, size, and strings are now 71968d62e1SEd Maste taken from the ELF Tool Chain project rather than GNU binutils. They 72968d62e1SEd Maste should be drop-in replacements, with the addition of arm64 support. 73968d62e1SEd Maste The WITHOUT_ELFTOOLCHAIN_TOOLS= knob may be used to obtain the 74968d62e1SEd Maste binutils tools, if necessary. 75968d62e1SEd Maste 76f1b3840cSDag-Erling Smørgrav20150105: 77f1b3840cSDag-Erling Smørgrav The default Unbound configuration now enables remote control 78f1b3840cSDag-Erling Smørgrav using a local socket. Users who have already enabled the 79f1b3840cSDag-Erling Smørgrav local_unbound service should regenerate their configuration 80f1b3840cSDag-Erling Smørgrav by running "service local_unbound setup" as root. 81f1b3840cSDag-Erling Smørgrav 822d281361SBaptiste Daroussin20150102: 832d281361SBaptiste Daroussin The GNU texinfo and GNU info pages have been removed. 842d281361SBaptiste Daroussin To be able to view GNU info pages please install texinfo from ports. 852d281361SBaptiste Daroussin 86143c11b4SDimitry Andric20141231: 87143c11b4SDimitry Andric Clang, llvm and lldb have been upgraded to 3.5.0 release. 88143c11b4SDimitry Andric 890ac2c3d1SDimitry Andric As of this release, a prerequisite for building clang, llvm and lldb is 900ac2c3d1SDimitry Andric a C++11 capable compiler and C++11 standard library. This means that to 91143c11b4SDimitry Andric be able to successfully build the cross-tools stage of buildworld, with 92143c11b4SDimitry Andric clang as the bootstrap compiler, your system compiler or cross compiler 93143c11b4SDimitry Andric should either be clang 3.3 or later, or gcc 4.8 or later, and your 94143c11b4SDimitry Andric system C++ library should be libc++, or libdstdc++ from gcc 4.8 or 95143c11b4SDimitry Andric later. 96143c11b4SDimitry Andric 970ac2c3d1SDimitry Andric On any standard FreeBSD 10.x or 11.x installation, where clang and 980ac2c3d1SDimitry Andric libc++ are on by default (that is, on x86 or arm), this should work out 990ac2c3d1SDimitry Andric of the box. 100143c11b4SDimitry Andric 101143c11b4SDimitry Andric On 9.x installations where clang is enabled by default, e.g. on x86 and 102143c11b4SDimitry Andric powerpc, libc++ will not be enabled by default, so libc++ should be 103143c11b4SDimitry Andric built (with clang) and installed first. If both clang and libc++ are 104143c11b4SDimitry Andric missing, build clang first, then use it to build libc++. 105143c11b4SDimitry Andric 106143c11b4SDimitry Andric On 8.x and earlier installations, upgrade to 9.x first, and then follow 107143c11b4SDimitry Andric the instructions for 9.x above. 108143c11b4SDimitry Andric 1090ac2c3d1SDimitry Andric Sparc64 and mips users are unaffected, as they still use gcc 4.2.1 by 1100ac2c3d1SDimitry Andric default, and do not build clang. 1110ac2c3d1SDimitry Andric 1120ac2c3d1SDimitry Andric Many embedded systems are resource constrained, and will not be able to 1130ac2c3d1SDimitry Andric build clang in a reasonable time, or in some cases at all. In those 1140ac2c3d1SDimitry Andric cases, cross building bootable systems on amd64 is a workaround. 1150ac2c3d1SDimitry Andric 116143c11b4SDimitry Andric This new version of clang introduces a number of new warnings, of which 117143c11b4SDimitry Andric the following are most likely to appear: 118143c11b4SDimitry Andric 119143c11b4SDimitry Andric -Wabsolute-value 120143c11b4SDimitry Andric 121143c11b4SDimitry Andric This warns in two cases, for both C and C++: 122143c11b4SDimitry Andric * When the code is trying to take the absolute value of an unsigned 123143c11b4SDimitry Andric quantity, which is effectively a no-op, and almost never what was 124143c11b4SDimitry Andric intended. The code should be fixed, if at all possible. If you are 125143c11b4SDimitry Andric sure that the unsigned quantity can be safely cast to signed, without 126143c11b4SDimitry Andric loss of information or undefined behavior, you can add an explicit 127143c11b4SDimitry Andric cast, or disable the warning. 128143c11b4SDimitry Andric 129143c11b4SDimitry Andric * When the code is trying to take an absolute value, but the called 130143c11b4SDimitry Andric abs() variant is for the wrong type, which can lead to truncation. 131143c11b4SDimitry Andric If you want to disable the warning instead of fixing the code, please 132143c11b4SDimitry Andric make sure that truncation will not occur, or it might lead to unwanted 133143c11b4SDimitry Andric side-effects. 134143c11b4SDimitry Andric 135143c11b4SDimitry Andric -Wtautological-undefined-compare and 136143c11b4SDimitry Andric -Wundefined-bool-conversion 137143c11b4SDimitry Andric 138143c11b4SDimitry Andric These warn when C++ code is trying to compare 'this' against NULL, while 139143c11b4SDimitry Andric 'this' should never be NULL in well-defined C++ code. However, there is 140143c11b4SDimitry Andric some legacy (pre C++11) code out there, which actively abuses this 141143c11b4SDimitry Andric feature, which was less strictly defined in previous C++ versions. 142143c11b4SDimitry Andric 143143c11b4SDimitry Andric Squid and openjdk do this, for example. The warning can be turned off 144143c11b4SDimitry Andric for C++98 and earlier, but compiling the code in C++11 mode might result 145143c11b4SDimitry Andric in unexpected behavior; for example, the parts of the program that are 146143c11b4SDimitry Andric unreachable could be optimized away. 147143c11b4SDimitry Andric 1480b327b63SRick Macklem20141222: 1490b327b63SRick Macklem The old NFS client and server (kernel options NFSCLIENT, NFSSERVER) 1500b327b63SRick Macklem kernel sources have been removed. The .h files remain, since some 1510b327b63SRick Macklem utilities include them. This will need to be fixed later. 1520b327b63SRick Macklem If "mount -t oldnfs ..." is attempted, it will fail. 1530b327b63SRick Macklem If the "-o" option on mountd(8), nfsd(8) or nfsstat(1) is used, 1540b327b63SRick Macklem the utilities will report errors. 1550b327b63SRick Macklem 1565f25ee9cSBrooks Davis20141121: 1575f25ee9cSBrooks Davis The handling of LOCAL_LIB_DIRS has been altered to skip addition of 1585f25ee9cSBrooks Davis directories to top level SUBDIR variable when their parent 1595f25ee9cSBrooks Davis directory is included in LOCAL_DIRS. Users with build systems with 1605f25ee9cSBrooks Davis such hierarchies and without SUBDIR entries in the parent 1615f25ee9cSBrooks Davis directory Makefiles should add them or add the directories to 1625f25ee9cSBrooks Davis LOCAL_DIRS. 1635f25ee9cSBrooks Davis 164603eaf79SAlexander V. Chernikov20141109: 16574342541SChristian Brueffer faith(4) and faithd(8) have been removed from the base system. Faith 166603eaf79SAlexander V. Chernikov has been obsolete for a very long time. 167603eaf79SAlexander V. Chernikov 1682d6f6d63SJean-Sébastien Pédron20141104: 1692d6f6d63SJean-Sébastien Pédron vt(4), the new console driver, is enabled by default. It brings 1702d6f6d63SJean-Sébastien Pédron support for Unicode and double-width characters, as well as 1712d6f6d63SJean-Sébastien Pédron support for UEFI and integration with the KMS kernel video 1722d6f6d63SJean-Sébastien Pédron drivers. 1732d6f6d63SJean-Sébastien Pédron 1742d6f6d63SJean-Sébastien Pédron You may need to update your console settings in /etc/rc.conf, 1752d6f6d63SJean-Sébastien Pédron most probably the keymap. During boot, /etc/rc.d/syscons will 1762d6f6d63SJean-Sébastien Pédron indicate what you need to do. 1772d6f6d63SJean-Sébastien Pédron 1782d6f6d63SJean-Sébastien Pédron vt(4) still has issues and lacks some features compared to 1792d6f6d63SJean-Sébastien Pédron syscons(4). See the wiki for up-to-date information: 1802d6f6d63SJean-Sébastien Pédron https://wiki.freebsd.org/Newcons 1812d6f6d63SJean-Sébastien Pédron 1822d6f6d63SJean-Sébastien Pédron If you want to keep using syscons(4), you can do so by adding 1832d6f6d63SJean-Sébastien Pédron the following line to /boot/loader.conf: 1842d6f6d63SJean-Sébastien Pédron kern.vty=sc 1852d6f6d63SJean-Sébastien Pédron 186fa809347SEnji Cooper20141102: 187fa809347SEnji Cooper pjdfstest has been integrated into kyua as an opt-in test suite. 18874342541SChristian Brueffer Please see share/doc/pjdfstest/README for more details on how to 189fa809347SEnji Cooper execute it. 190fa809347SEnji Cooper 191ddd96d23SEd Maste20141009: 192ddd96d23SEd Maste gperf has been removed from the base system for architectures 193ddd96d23SEd Maste that use clang. Ports that require gperf will obtain it from the 194ddd96d23SEd Maste devel/gperf port. 195ddd96d23SEd Maste 19640a8ac8fSEnji Cooper20140923: 19740a8ac8fSEnji Cooper pjdfstest has been moved from tools/regression/pjdfstest to 19840a8ac8fSEnji Cooper contrib/pjdfstest . 19940a8ac8fSEnji Cooper 200243d6a50SSean Bruno20140922: 201243d6a50SSean Bruno At svn r271982, The default linux compat kernel ABI has been adjusted 202243d6a50SSean Bruno to 2.6.18 in support of the linux-c6 compat ports infrastructure 203243d6a50SSean Bruno update. If you wish to continue using the linux-f10 compat ports, 204243d6a50SSean Bruno add compat.linux.osrelease=2.6.16 to your local sysctl.conf. Users are 205243d6a50SSean Bruno encouraged to update their linux-compat packages to linux-c6 during 206243d6a50SSean Bruno their next update cycle. 207243d6a50SSean Bruno 208232490c6SNathan Whitehorn20140729: 209232490c6SNathan Whitehorn The ofwfb driver, used to provide a graphics console on PowerPC when 21074342541SChristian Brueffer using vt(4), no longer allows mmap() of all physical memory. This 211232490c6SNathan Whitehorn will prevent Xorg on PowerPC with some ATI graphics cards from 212232490c6SNathan Whitehorn initializing properly unless x11-servers/xorg-server is updated to 213232490c6SNathan Whitehorn 1.12.4_8 or newer. 214232490c6SNathan Whitehorn 2150aafd404SWarner Losh20140723: 2160aafd404SWarner Losh The xdev targets have been converted to using TARGET and 2170aafd404SWarner Losh TARGET_ARCH instead of XDEV and XDEV_ARCH. 2180aafd404SWarner Losh 2190d0485e2SDag-Erling Smørgrav20140719: 2200d0485e2SDag-Erling Smørgrav The default unbound configuration has been modified to address 2210d0485e2SDag-Erling Smørgrav issues with reverse lookups on networks that use private 2220d0485e2SDag-Erling Smørgrav address ranges. If you use the local_unbound service, run 2230d0485e2SDag-Erling Smørgrav "service local_unbound setup" as root to regenerate your 2240d0485e2SDag-Erling Smørgrav configuration, then "service local_unbound reload" to load the 2250d0485e2SDag-Erling Smørgrav new configuration. 2260d0485e2SDag-Erling Smørgrav 227f4717209SBaptiste Daroussin20140709: 228f4717209SBaptiste Daroussin The GNU texinfo and GNU info pages are not built and installed 229f4717209SBaptiste Daroussin anymore, WITH_INFO knob has been added to allow to built and install 230f4717209SBaptiste Daroussin them again. 2312d281361SBaptiste Daroussin UPDATE: see 20150102 entry on texinfo's removal 232f4717209SBaptiste Daroussin 2338a833bdaSBaptiste Daroussin20140708: 2348a833bdaSBaptiste Daroussin The GNU readline library is now an INTERNALLIB - that is, it is 2358a833bdaSBaptiste Daroussin statically linked into consumers (GDB and variants) in the base 2368a833bdaSBaptiste Daroussin system, and the shared library is no longer installed. The 2378a833bdaSBaptiste Daroussin devel/readline port is available for third party software that 2388a833bdaSBaptiste Daroussin requires readline. 2398a833bdaSBaptiste Daroussin 24050f73640SMarcel Moolenaar20140702: 24150f73640SMarcel Moolenaar The Itanium architecture (ia64) has been removed from the list of 24250f73640SMarcel Moolenaar known architectures. This is the first step in the removal of the 24350f73640SMarcel Moolenaar architecture. 24450f73640SMarcel Moolenaar 24518aa7fccSRick Macklem20140701: 24618aa7fccSRick Macklem Commit r268115 has added NFSv4.1 server support, merged from 24718aa7fccSRick Macklem projects/nfsv4.1-server. Since this includes changes to the 24818aa7fccSRick Macklem internal interfaces between the NFS related modules, a full 24918aa7fccSRick Macklem build of the kernel and modules will be necessary. 25018aa7fccSRick Macklem __FreeBSD_version has been bumped. 25118aa7fccSRick Macklem 252824a9093SEd Maste20140629: 253824a9093SEd Maste The WITHOUT_VT_SUPPORT kernel config knob has been renamed 254824a9093SEd Maste WITHOUT_VT. (The other _SUPPORT knobs have a consistent meaning 255824a9093SEd Maste which differs from the behaviour controlled by this knob.) 256824a9093SEd Maste 25738b72f8cSAlexander Motin20140619: 25838b72f8cSAlexander Motin Maximal length of the serial number in CTL was increased from 16 to 25938b72f8cSAlexander Motin 64 chars, that breaks ABI. All CTL-related tools, such as ctladm 26038b72f8cSAlexander Motin and ctld, need to be rebuilt to work with a new kernel. 26138b72f8cSAlexander Motin 262727a7ce8SJulio Merino20140606: 263727a7ce8SJulio Merino The libatf-c and libatf-c++ major versions were downgraded to 0 and 264727a7ce8SJulio Merino 1 respectively to match the upstream numbers. They were out of 265727a7ce8SJulio Merino sync because, when they were originally added to FreeBSD, the 266727a7ce8SJulio Merino upstream versions were not respected. These libraries are private 267727a7ce8SJulio Merino and not yet built by default, so renumbering them should be a 268727a7ce8SJulio Merino non-issue. However, unclean source trees will yield broken test 269727a7ce8SJulio Merino programs once the operator executes "make delete-old-libs" after a 270727a7ce8SJulio Merino "make installworld". 271727a7ce8SJulio Merino 2728c7ec47aSJulio Merino Additionally, the atf-sh binary was made private by moving it into 2738c7ec47aSJulio Merino /usr/libexec/. Already-built shell test programs will keep the 2748c7ec47aSJulio Merino path to the old binary so they will break after "make delete-old" 2758c7ec47aSJulio Merino is run. 2768c7ec47aSJulio Merino 277727a7ce8SJulio Merino If you are using WITH_TESTS=yes (not the default), wipe the object 278727a7ce8SJulio Merino tree and rebuild from scratch to prevent spurious test failures. 2798c7ec47aSJulio Merino This is only needed once: the misnumbered libraries and misplaced 2808c7ec47aSJulio Merino binaries have been added to OptionalObsoleteFiles.inc so they will 2818c7ec47aSJulio Merino be removed during a clean upgrade. 282727a7ce8SJulio Merino 28385d60e68SDimitry Andric20140512: 28485d60e68SDimitry Andric Clang and llvm have been upgraded to 3.4.1 release. 28585d60e68SDimitry Andric 286fa114234SWarner Losh20140508: 287fa114234SWarner Losh We bogusly installed src.opts.mk in /usr/share/mk. This file should 288fa114234SWarner Losh be removed to avoid issues in the future (and has been added to 289fa114234SWarner Losh ObsoleteFiles.inc). 290fa114234SWarner Losh 291a46954e2SWarner Losh20140505: 292a46954e2SWarner Losh /etc/src.conf now affects only builds of the FreeBSD src tree. In the 293a46954e2SWarner Losh past, it affected all builds that used the bsd.*.mk files. The old 294a46954e2SWarner Losh behavior was a bug, but people may have relied upon it. To get this 295a46954e2SWarner Losh behavior back, you can .include /etc/src.conf from /etc/make.conf 296a46954e2SWarner Losh (which is still global and isn't changed). This also changes the 297a46954e2SWarner Losh behavior of incremental builds inside the tree of individual 29859a24370SWarner Losh directories. Set MAKESYSPATH to ".../share/mk" to do that. 299a46954e2SWarner Losh Although this has survived make universe and some upgrade scenarios, 30055b76981SWarner Losh other upgrade scenarios may have broken. At least one form of 30155b76981SWarner Losh temporary breakage was fixed with MAKESYSPATH settings for buildworld 30259a24370SWarner Losh as well... In cases where MAKESYSPATH isn't working with this 30359a24370SWarner Losh setting, you'll need to set it to the full path to your tree. 304a46954e2SWarner Losh 305bd871f14SWarner Losh One side effect of all this cleaning up is that bsd.compiler.mk 306bd871f14SWarner Losh is no longer implicitly included by bsd.own.mk. If you wish to 307bd871f14SWarner Losh use COMPILER_TYPE, you must now explicitly include bsd.compiler.mk 308bd871f14SWarner Losh as well. 309bd871f14SWarner Losh 310461dbce2SEitan Adler20140430: 311461dbce2SEitan Adler The lindev device has been removed since /dev/full has been made a 312461dbce2SEitan Adler standard device. __FreeBSD_version has been bumped. 313461dbce2SEitan Adler 314e9aba509SEnji Cooper20140424: 315e9aba509SEnji Cooper The knob WITHOUT_VI was added to the base system, which controls 316e9aba509SEnji Cooper building ex(1), vi(1), etc. Older releases of FreeBSD required ex(1) 317e9aba509SEnji Cooper in order to reorder files share/termcap and didn't build ex(1) as a 318e9aba509SEnji Cooper build tool, so building/installing with WITH_VI is highly advised for 319e9aba509SEnji Cooper build hosts for older releases. 320e9aba509SEnji Cooper 321e9aba509SEnji Cooper This issue has been fixed in stable/9 and stable/10 in r277022 and 322e9aba509SEnji Cooper r276991, respectively. 323e9aba509SEnji Cooper 3242bb08298SWarner Losh20140418: 3252bb08298SWarner Losh The YES_HESIOD knob has been removed. It has been obsolete for 3262bb08298SWarner Losh a decade. Please move to using WITH_HESIOD instead or your builds 3272bb08298SWarner Losh will silently lack HESIOD. 3282bb08298SWarner Losh 3294c710b67SMarcel Moolenaar20140405: 3304c710b67SMarcel Moolenaar The uart(4) driver has been changed with respect to its handling 3314c710b67SMarcel Moolenaar of the low-level console. Previously the uart(4) driver prevented 3324c710b67SMarcel Moolenaar any process from changing the baudrate or the CLOCAL and HUPCL 3334c710b67SMarcel Moolenaar control flags. By removing the restrictions, operators can make 3344c710b67SMarcel Moolenaar changes to the serial console port without having to reboot. 3354c710b67SMarcel Moolenaar However, when getty(8) is started on the serial device that is 3364c710b67SMarcel Moolenaar associated with the low-level console, a misconfigured terminal 3374c710b67SMarcel Moolenaar line in /etc/ttys will now have a real impact. 3384c710b67SMarcel Moolenaar Before upgrading the kernel, make sure that /etc/ttys has the 3394c710b67SMarcel Moolenaar serial console device configured as 3wire without baudrate to 340086036aaSMarcel Moolenaar preserve the previous behaviour. E.g: 3414c710b67SMarcel Moolenaar ttyu0 "/usr/libexec/getty 3wire" vt100 on secure 3424c710b67SMarcel Moolenaar 343ea9ed3d8SAlexander Motin20140306: 344ea9ed3d8SAlexander Motin Support for libwrap (TCP wrappers) in rpcbind was disabled by default 345ea9ed3d8SAlexander Motin to improve performance. To re-enable it, if needed, run rpcbind 346ea9ed3d8SAlexander Motin with command line option -W. 347ea9ed3d8SAlexander Motin 348a9fd2218SWarner Losh20140226: 349a9fd2218SWarner Losh Switched back to the GPL dtc compiler due to updates in the upstream 350a9fd2218SWarner Losh dts files not being supported by the BSDL dtc compiler. You will need 351a9fd2218SWarner Losh to rebuild your kernel toolchain to pick up the new compiler. Core dumps 352a9fd2218SWarner Losh may result while building dtb files during a kernel build if you fail 353a9fd2218SWarner Losh to do so. Set WITHOUT_GPL_DTC if you require the BSDL compiler. 354a9fd2218SWarner Losh 3558de08345SChristian Brueffer20140216: 3563ad1a091SWarner Losh Clang and llvm have been upgraded to 3.4 release. 3573ad1a091SWarner Losh 358f785676fSDimitry Andric20140216: 3598de08345SChristian Brueffer The nve(4) driver has been removed. Please use the nfe(4) driver 3608de08345SChristian Brueffer for NVIDIA nForce MCP Ethernet adapters instead. 3618de08345SChristian Brueffer 3629f23d19aSDimitry Andric20140212: 3639f23d19aSDimitry Andric An ABI incompatibility crept into the libc++ 3.4 import in r261283. 3649f23d19aSDimitry Andric This could cause certain C++ applications using shared libraries built 3659f23d19aSDimitry Andric against the previous version of libc++ to crash. The incompatibility 3669f23d19aSDimitry Andric has now been fixed, but any C++ applications or shared libraries built 3679f23d19aSDimitry Andric between r261283 and r261801 should be recompiled. 3689f23d19aSDimitry Andric 3695e4b8b0dSXin LI20140204: 3705e4b8b0dSXin LI OpenSSH will now ignore errors caused by kernel lacking of Capsicum 3715e4b8b0dSXin LI capability mode support. Please note that enabling the feature in 3725e4b8b0dSXin LI kernel is still highly recommended. 3735e4b8b0dSXin LI 3745e4b8b0dSXin LI20140131: 3755e4b8b0dSXin LI OpenSSH is now built with sandbox support, and will use sandbox as 3765e4b8b0dSXin LI the default privilege separation method. This requires Capsicum 3775e4b8b0dSXin LI capability mode support in kernel. 3785e4b8b0dSXin LI 379d1166b82SKai Wang20140128: 3802e503d34SKai Wang The libelf and libdwarf libraries have been updated to newer 3812e503d34SKai Wang versions from upstream. Shared library version numbers for 3822e503d34SKai Wang these two libraries were bumped. Any ports or binaries 3832e503d34SKai Wang requiring these two libraries should be recompiled. 3842e503d34SKai Wang __FreeBSD_version is bumped to 1100006. 3852e503d34SKai Wang 386d7efee23SJulio Merino20140110: 387d7efee23SJulio Merino If a Makefile in a tests/ directory was auto-generating a Kyuafile 388d7efee23SJulio Merino instead of providing an explicit one, this would prevent such 389d7efee23SJulio Merino Makefile from providing its own Kyuafile in the future during 390d7efee23SJulio Merino NO_CLEAN builds. This has been fixed in the Makefiles but manual 391d7efee23SJulio Merino intervention is needed to clean an objdir if you use NO_CLEAN: 392d7efee23SJulio Merino # find /usr/obj -name Kyuafile | xargs rm -f 393d7efee23SJulio Merino 3942773bfa9SBenjamin Kaduk20131213: 3952773bfa9SBenjamin Kaduk The behavior of gss_pseudo_random() for the krb5 mechanism 3962773bfa9SBenjamin Kaduk has changed, for applications requesting a longer random string 3972773bfa9SBenjamin Kaduk than produced by the underlying enctype's pseudo-random() function. 3982773bfa9SBenjamin Kaduk In particular, the random string produced from a session key of 3992773bfa9SBenjamin Kaduk enctype aes256-cts-hmac-sha1-96 or aes256-cts-hmac-sha1-96 will 4002773bfa9SBenjamin Kaduk be different at the 17th octet and later, after this change. 4012773bfa9SBenjamin Kaduk The counter used in the PRF+ construction is now encoded as a 4022773bfa9SBenjamin Kaduk big-endian integer in accordance with RFC 4402. 4032773bfa9SBenjamin Kaduk __FreeBSD_version is bumped to 1100004. 4042773bfa9SBenjamin Kaduk 405e01d128aSJulio Merino20131108: 406e01d128aSJulio Merino The WITHOUT_ATF build knob has been removed and its functionality 407e01d128aSJulio Merino has been subsumed into the more generic WITHOUT_TESTS. If you were 408e01d128aSJulio Merino using the former to disable the build of the ATF libraries, you 409e01d128aSJulio Merino should change your settings to use the latter. 410e01d128aSJulio Merino 411b9cd6b0aSBrooks Davis20131025: 412b9cd6b0aSBrooks Davis The default version of mtree is nmtree which is obtained from 413b9cd6b0aSBrooks Davis NetBSD. The output is generally the same, but may vary 414b9cd6b0aSBrooks Davis slightly. If you found you need identical output adding 415b9cd6b0aSBrooks Davis "-F freebsd9" to the command line should do the trick. For the 416b9cd6b0aSBrooks Davis time being, the old mtree is available as fmtree. 417b9cd6b0aSBrooks Davis 418e3ededfaSBryan Drewery20131014: 419e3ededfaSBryan Drewery libbsdyml has been renamed to libyaml and moved to /usr/lib/private. 420e3ededfaSBryan Drewery This will break ports-mgmt/pkg. Rebuild the port, or upgrade to pkg 421e3ededfaSBryan Drewery 1.1.4_8 and verify bsdyml not linked in, before running "make 422e3ededfaSBryan Drewery delete-old-libs": 423e3ededfaSBryan Drewery # make -C /usr/ports/ports-mgmt/pkg build deinstall install clean 424e3ededfaSBryan Drewery or 425e3ededfaSBryan Drewery # pkg install pkg; ldd /usr/local/sbin/pkg | grep bsdyml 426e3ededfaSBryan Drewery 42784b354cbSHiroki Sato20131010: 42884b354cbSHiroki Sato The rc.d/jail script has been updated to support jail(8) 42984b354cbSHiroki Sato configuration file. The "jail_<jname>_*" rc.conf(5) variables 43084b354cbSHiroki Sato for per-jail configuration are automatically converted to 43184b354cbSHiroki Sato /var/run/jail.<jname>.conf before the jail(8) utility is invoked. 43284b354cbSHiroki Sato This is transparently backward compatible. See below about some 43384b354cbSHiroki Sato incompatibilities and rc.conf(5) manual page for more details. 43484b354cbSHiroki Sato 43584b354cbSHiroki Sato These variables are now deprecated in favor of jail(8) configuration 43684b354cbSHiroki Sato file. One can use "rc.d/jail config <jname>" command to generate 43784b354cbSHiroki Sato a jail(8) configuration file in /var/run/jail.<jname>.conf without 43884b354cbSHiroki Sato running the jail(8) utility. The default pathname of the 43984b354cbSHiroki Sato configuration file is /etc/jail.conf and can be specified by 44084b354cbSHiroki Sato using $jail_conf or $jail_<jname>_conf variables. 44184b354cbSHiroki Sato 44284b354cbSHiroki Sato Please note that jail_devfs_ruleset accepts an integer at 44384b354cbSHiroki Sato this moment. Please consider to rewrite the ruleset name 44484b354cbSHiroki Sato with an integer. 44584b354cbSHiroki Sato 4462d69252aSDag-Erling Smørgrav20130930: 4472d69252aSDag-Erling Smørgrav BIND has been removed from the base system. If all you need 4482d69252aSDag-Erling Smørgrav is a local resolver, simply enable and start the local_unbound 4492d69252aSDag-Erling Smørgrav service instead. Otherwise, several versions of BIND are 4508a65c0b9SCraig Rodrigues available in the ports tree. The dns/bind99 port is one example. 4518a65c0b9SCraig Rodrigues 4528a65c0b9SCraig Rodrigues With this change, nslookup(1) and dig(1) are no longer in the base 453edc144a1SCraig Rodrigues system. Users should instead use host(1) and drill(1) which are 4548a65c0b9SCraig Rodrigues in the base system. Alternatively, nslookup and dig can 4558a65c0b9SCraig Rodrigues be obtained by installing the dns/bind-tools port. 4562d69252aSDag-Erling Smørgrav 457665751ecSGlen Barber20130916: 458665751ecSGlen Barber With the addition of unbound(8), a new unbound user is now 459665751ecSGlen Barber required during installworld. "mergemaster -p" can be used to 460665751ecSGlen Barber add the user prior to installworld, as documented in the handbook. 461665751ecSGlen Barber 462bd8277b4SDag-Erling Smørgrav20130911: 463bd8277b4SDag-Erling Smørgrav OpenSSH is now built with DNSSEC support, and will by default 464bd8277b4SDag-Erling Smørgrav silently trust signed SSHFP records. This can be controlled with 465bd8277b4SDag-Erling Smørgrav the VerifyHostKeyDNS client configuration setting. DNSSEC support 466bd8277b4SDag-Erling Smørgrav can be disabled entirely with the WITHOUT_LDNS option in src.conf. 467bd8277b4SDag-Erling Smørgrav 468d6d3e03eSDavid Chisnall20130906: 469d6d3e03eSDavid Chisnall The GNU Compiler Collection and C++ standard library (libstdc++) 470d6d3e03eSDavid Chisnall are no longer built by default on platforms where clang is the system 471d6d3e03eSDavid Chisnall compiler. You can enable them with the WITH_GCC and WITH_GNUCXX 472d6d3e03eSDavid Chisnall options in src.conf. 473d6d3e03eSDavid Chisnall 4744877522eSPawel Jakub Dawidek20130905: 4752057b58bSPawel Jakub Dawidek The PROCDESC kernel option is now part of the GENERIC kernel 4762057b58bSPawel Jakub Dawidek configuration and is required for the rwhod(8) to work. 4772057b58bSPawel Jakub Dawidek If you are using custom kernel configuration, you should include 4782057b58bSPawel Jakub Dawidek 'options PROCDESC'. 4792057b58bSPawel Jakub Dawidek 4802057b58bSPawel Jakub Dawidek20130905: 4814877522eSPawel Jakub Dawidek The API and ABI related to the Capsicum framework was modified 4824877522eSPawel Jakub Dawidek in backward incompatible way. The userland libraries and programs 4834877522eSPawel Jakub Dawidek have to be recompiled to work with the new kernel. This includes the 4844877522eSPawel Jakub Dawidek following libraries and programs, but the whole buildworld is 4854877522eSPawel Jakub Dawidek advised: libc, libprocstat, dhclient, tcpdump, hastd, hastctl, 4864877522eSPawel Jakub Dawidek kdump, procstat, rwho, rwhod, uniq. 4874877522eSPawel Jakub Dawidek 488c8a84c2aSJohn-Mark Gurney20130903: 489c8a84c2aSJohn-Mark Gurney AES-NI intrinsic support has been added to gcc. The AES-NI module 490c8a84c2aSJohn-Mark Gurney has been updated to use this support. A new gcc is required to build 491c8a84c2aSJohn-Mark Gurney the aesni module on both i386 and amd64. 492c8a84c2aSJohn-Mark Gurney 49346be218dSDavid E. O'Brien20130821: 49446be218dSDavid E. O'Brien The PADLOCK_RNG and RDRAND_RNG kernel options are now devices. 49546be218dSDavid E. O'Brien Thus "device padlock_rng" and "device rdrand_rng" should be 49646be218dSDavid E. O'Brien used instead of "options PADLOCK_RNG" & "options RDRAND_RNG". 49746be218dSDavid E. O'Brien 4980ff204bbSPeter Wemm20130813: 4990ff204bbSPeter Wemm WITH_ICONV has been split into two feature sets. WITH_ICONV now 5000ff204bbSPeter Wemm enables just the iconv* functionality and is now on by default. 5010ff204bbSPeter Wemm WITH_LIBICONV_COMPAT enables the libiconv api and link time 5020ff204bbSPeter Wemm compatability. Set WITHOUT_ICONV to build the old way. 5030dc59c0fSPeter Wemm If you have been using WITH_ICONV before, you will very likely 5040dc59c0fSPeter Wemm need to turn on WITH_LIBICONV_COMPAT. 5050ff204bbSPeter Wemm 506ccc88f7bSHiroki Sato20130806: 507c319ea15SAndriy Gapon INVARIANTS option now enables DEBUG for code with OpenSolaris and 508c319ea15SAndriy Gapon Illumos origin, including ZFS. If you have INVARIANTS in your 509c319ea15SAndriy Gapon kernel configuration, then there is no need to set DEBUG or ZFS_DEBUG 510c319ea15SAndriy Gapon explicitly. 511c319ea15SAndriy Gapon DEBUG used to enable witness(9) tracking of OpenSolaris (mostly ZFS) 512c319ea15SAndriy Gapon locks if WITNESS option was set. Because that generated a lot of 513c319ea15SAndriy Gapon witness(9) reports and all of them were believed to be false 514c319ea15SAndriy Gapon positives, this is no longer done. New option OPENSOLARIS_WITNESS 515c319ea15SAndriy Gapon can be used to achieve the previous behavior. 516c319ea15SAndriy Gapon 517c319ea15SAndriy Gapon20130806: 518ccc88f7bSHiroki Sato Timer values in IPv6 data structures now use time_uptime instead 519ccc88f7bSHiroki Sato of time_second. Although this is not a user-visible functional 520ccc88f7bSHiroki Sato change, userland utilities which directly use them---ndp(8), 521ccc88f7bSHiroki Sato rtadvd(8), and rtsold(8) in the base system---need to be updated 522ccc88f7bSHiroki Sato to r253970 or later. 523ccc88f7bSHiroki Sato 5249d6d5a71SJilles Tjoelker20130802: 5259d6d5a71SJilles Tjoelker find -delete can now delete the pathnames given as arguments, 5269d6d5a71SJilles Tjoelker instead of only files found below them or if the pathname did 5279d6d5a71SJilles Tjoelker not contain any slashes. Formerly, the following error message 5289d6d5a71SJilles Tjoelker would result: 5299d6d5a71SJilles Tjoelker 5309d6d5a71SJilles Tjoelker find: -delete: <path>: relative path potentially not safe 5319d6d5a71SJilles Tjoelker 5329d6d5a71SJilles Tjoelker Deleting the pathnames given as arguments can be prevented 5339d6d5a71SJilles Tjoelker without error messages using -mindepth 1 or by changing 5349d6d5a71SJilles Tjoelker directory and passing "." as argument to find. This works in the 5359d6d5a71SJilles Tjoelker old as well as the new version of find. 5369d6d5a71SJilles Tjoelker 537663dea3dSAndriy Gapon20130726: 538663dea3dSAndriy Gapon Behavior of devfs rules path matching has been changed. 539663dea3dSAndriy Gapon Pattern is now always matched against fully qualified devfs 540663dea3dSAndriy Gapon path and slash characters must be explicitly matched by 541663dea3dSAndriy Gapon slashes in pattern (FNM_PATHNAME). Rulesets involving devfs 542663dea3dSAndriy Gapon subdirectories must be reviewed. 543663dea3dSAndriy Gapon 54446e95f64SAndrew Turner20130716: 54546e95f64SAndrew Turner The default ARM ABI has changed to the ARM EABI. The old ABI is 54646e95f64SAndrew Turner incompatible with the ARM EABI and all programs and modules will 54746e95f64SAndrew Turner need to be rebuilt to work with a new kernel. 54846e95f64SAndrew Turner 54946e95f64SAndrew Turner To keep using the old ABI ensure the WITHOUT_ARM_EABI knob is set. 55046e95f64SAndrew Turner 55146e95f64SAndrew Turner NOTE: Support for the old ABI will be removed in the future and 55246e95f64SAndrew Turner users are advised to upgrade. 55346e95f64SAndrew Turner 554b40e2b6dSAndrey V. Elsukov20130709: 5559b953f2cSBaptiste Daroussin pkg_install has been disconnected from the build if you really need it 5569b953f2cSBaptiste Daroussin you should add WITH_PKGTOOLS in your src.conf(5). 5579b953f2cSBaptiste Daroussin 5589b953f2cSBaptiste Daroussin20130709: 559b40e2b6dSAndrey V. Elsukov Most of network statistics structures were changed to be able 560b40e2b6dSAndrey V. Elsukov keep 64-bits counters. Thus all tools, that work with networking 561aa011413SRui Paulo statistics, must be rebuilt (netstat(1), bsnmpd(1), etc.) 562b40e2b6dSAndrey V. Elsukov 56303630b54SSimon J. Gerraty20130629: 56403630b54SSimon J. Gerraty Fix targets that run multiple make's to use && rather than ; 56503630b54SSimon J. Gerraty so that subsequent steps depend on success of previous. 56603630b54SSimon J. Gerraty 56703630b54SSimon J. Gerraty NOTE: if building 'universe' with -j* on stable/8 or stable/9 56803630b54SSimon J. Gerraty it would be better to start the build using bmake, to avoid 56903630b54SSimon J. Gerraty overloading the machine. 57003630b54SSimon J. Gerraty 5715b3e0257SDag-Erling Smørgrav20130618: 5725b3e0257SDag-Erling Smørgrav Fix a bug that allowed a tracing process (e.g. gdb) to write 5735b3e0257SDag-Erling Smørgrav to a memory-mapped file in the traced process's address space 5745b3e0257SDag-Erling Smørgrav even if neither the traced process nor the tracing process had 5755b3e0257SDag-Erling Smørgrav write access to that file. 5765b3e0257SDag-Erling Smørgrav 5771cbff2a9SEitan Adler20130615: 5781cbff2a9SEitan Adler CVS has been removed from the base system. An exact copy 5791cbff2a9SEitan Adler of the code is available from the devel/cvs port. 5801cbff2a9SEitan Adler 581ba10b444SSimon J. Gerraty20130613: 582ba10b444SSimon J. Gerraty Some people report the following error after the switch to bmake: 583ba10b444SSimon J. Gerraty 584ba10b444SSimon J. Gerraty make: illegal option -- J 585ba10b444SSimon J. Gerraty usage: make [-BPSXeiknpqrstv] [-C directory] [-D variable] 586ba10b444SSimon J. Gerraty ... 587ba10b444SSimon J. Gerraty *** [buildworld] Error code 2 588ba10b444SSimon J. Gerraty 589ba10b444SSimon J. Gerraty this likely due to an old instance of make in 590ba10b444SSimon J. Gerraty ${MAKEPATH} (${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE}) 591ba10b444SSimon J. Gerraty which src/Makefile will use that blindly, if it exists, so if 592ba10b444SSimon J. Gerraty you see the above error: 593ba10b444SSimon J. Gerraty 594ba10b444SSimon J. Gerraty rm -rf `make -V MAKEPATH` 595ba10b444SSimon J. Gerraty 596ba10b444SSimon J. Gerraty should resolve it. 597ba10b444SSimon J. Gerraty 598ff8d4375SSimon J. Gerraty20130516: 599ff8d4375SSimon J. Gerraty Use bmake by default. 600ff8d4375SSimon J. Gerraty Whereas before one could choose to build with bmake via 601ff8d4375SSimon J. Gerraty -DWITH_BMAKE one must now use -DWITHOUT_BMAKE to use the old 602ff8d4375SSimon J. Gerraty make. The goal is to remove these knobs for 10-RELEASE. 603ff8d4375SSimon J. Gerraty 604ff8d4375SSimon J. Gerraty It is worth noting that bmake (like gmake) treats the command 605ff8d4375SSimon J. Gerraty line as the unit of failure, rather than statements within the 606ff8d4375SSimon J. Gerraty command line. Thus '(cd some/where && dosomething)' is safer 607ff8d4375SSimon J. Gerraty than 'cd some/where; dosomething'. The '()' allows consistent 608ff8d4375SSimon J. Gerraty behavior in parallel build. 609ff8d4375SSimon J. Gerraty 61032164d53SDag-Erling Smørgrav20130429: 61132164d53SDag-Erling Smørgrav Fix a bug that allows NFS clients to issue READDIR on files. 61232164d53SDag-Erling Smørgrav 613562a9d58SSteven Hartland20130426: 614850163e4SEitan Adler The WITHOUT_IDEA option has been removed because 615850163e4SEitan Adler the IDEA patent expired. 616850163e4SEitan Adler 617850163e4SEitan Adler20130426: 618562a9d58SSteven Hartland The sysctl which controls TRIM support under ZFS has been renamed 619562a9d58SSteven Hartland from vfs.zfs.trim_disable -> vfs.zfs.trim.enabled and has been 620562a9d58SSteven Hartland enabled by default. 621562a9d58SSteven Hartland 62220e0cc0aSBrooks Davis20130425: 62320e0cc0aSBrooks Davis The mergemaster command now uses the default MAKEOBJDIRPREFIX 62420e0cc0aSBrooks Davis rather than creating it's own in the temporary directory in 62520e0cc0aSBrooks Davis order allow access to bootstrapped versions of tools such as 62620e0cc0aSBrooks Davis install and mtree. When upgrading from version of FreeBSD where 62720e0cc0aSBrooks Davis the install command does not support -l, you will need to 62820e0cc0aSBrooks Davis install a new mergemaster command if mergemaster -p is required. 62920e0cc0aSBrooks Davis This can be accomplished with the command (cd src/usr.sbin/mergemaster 63020e0cc0aSBrooks Davis && make install). 63120e0cc0aSBrooks Davis 6329a95a7caSAlexander Motin20130404: 6339a95a7caSAlexander Motin Legacy ATA stack, disabled and replaced by new CAM-based one since 6349a95a7caSAlexander Motin FreeBSD 9.0, completely removed from the sources. Kernel modules 6359a95a7caSAlexander Motin atadisk and atapi*, user-level tools atacontrol and burncd are 6369a95a7caSAlexander Motin removed. Kernel option `options ATA_CAM` is now permanently enabled 6379a95a7caSAlexander Motin and removed. 6389a95a7caSAlexander Motin 6395ad7e649SJilles Tjoelker20130319: 6405ad7e649SJilles Tjoelker SOCK_CLOEXEC and SOCK_NONBLOCK flags have been added to socket(2) 6415ad7e649SJilles Tjoelker and socketpair(2). Software, in particular Kerberos, may 6425ad7e649SJilles Tjoelker automatically detect and use these during building. The resulting 6435ad7e649SJilles Tjoelker binaries will not work on older kernels. 6445ad7e649SJilles Tjoelker 645105421ffSMarius Strobl20130308: 646105421ffSMarius Strobl CTL_DISABLE has also been added to the sparc64 GENERIC (for further 647105421ffSMarius Strobl information, see the respective 20130304 entry). 648105421ffSMarius Strobl 6493a45b478SKenneth D. Merry20130304: 65023d44ab5SDavide Italiano Recent commits to callout(9) changed the size of struct callout, 65123d44ab5SDavide Italiano so the KBI is probably heavily disturbed. Also, some functions 65223d44ab5SDavide Italiano in callout(9)/sleep(9)/sleepqueue(9)/condvar(9) KPIs were replaced 65323d44ab5SDavide Italiano by macros. Every kernel module using it won't load, so rebuild 65423d44ab5SDavide Italiano is requested. 65523d44ab5SDavide Italiano 6563a45b478SKenneth D. Merry The ctl device has been re-enabled in GENERIC for i386 and amd64, 6573a45b478SKenneth D. Merry but does not initialize by default (because of the new CTL_DISABLE 6583a45b478SKenneth D. Merry option) to save memory. To re-enable it, remove the CTL_DISABLE 6593a45b478SKenneth D. Merry option from the kernel config file or set kern.cam.ctl.disable=0 6603a45b478SKenneth D. Merry in /boot/loader.conf. 6613a45b478SKenneth D. Merry 662fe138cc2SAdrian Chadd20130301: 663fe138cc2SAdrian Chadd The ctl device has been disabled in GENERIC for i386 and amd64. 664fe138cc2SAdrian Chadd This was done due to the extra memory being allocated at system 665fe138cc2SAdrian Chadd initialisation time by the ctl driver which was only used if 666fe138cc2SAdrian Chadd a CAM target device was created. This makes a FreeBSD system 667fe138cc2SAdrian Chadd unusable on 128MB or less of RAM. 668fe138cc2SAdrian Chadd 66920a011d5SXin LI20130208: 67020a011d5SXin LI A new compression method (lz4) has been merged to -HEAD. Please 67120a011d5SXin LI refer to zpool-features(7) for more information. 67220a011d5SXin LI 67320a011d5SXin LI Please refer to the "ZFS notes" section of this file for information 67420a011d5SXin LI on upgrading boot ZFS pools. 67520a011d5SXin LI 6762dd076b8SGabor Kovesdan20130129: 6772dd076b8SGabor Kovesdan A BSD-licensed patch(1) variant has been added and is installed 6782dd076b8SGabor Kovesdan as bsdpatch, being the GNU version the default patch. 6792dd076b8SGabor Kovesdan To inverse the logic and use the BSD-licensed one as default, 6802dd076b8SGabor Kovesdan while having the GNU version installed as gnupatch, rebuild 6812d329593SGabor Kovesdan and install world with the WITH_BSD_PATCH knob set. 6822dd076b8SGabor Kovesdan 683fe06cae7SBrooks Davis20130121: 684fe06cae7SBrooks Davis Due to the use of the new -l option to install(1) during build 685fe06cae7SBrooks Davis and install, you must take care not to directly set the INSTALL 686fe06cae7SBrooks Davis make variable in your /etc/make.conf, /etc/src.conf, or on the 6878c5836c3SEitan Adler command line. If you wish to use the -C flag for all installs 688fe06cae7SBrooks Davis you may be able to add INSTALL+=-C to /etc/make.conf or 689fe06cae7SBrooks Davis /etc/src.conf. 690fe06cae7SBrooks Davis 691f2b19f9eSBrooks Davis20130118: 692f2b19f9eSBrooks Davis The install(1) option -M has changed meaning and now takes an 693f2b19f9eSBrooks Davis argument that is a file or path to append logs to. In the 694f2b19f9eSBrooks Davis unlikely event that -M was the last option on the command line 695f2b19f9eSBrooks Davis and the command line contained at least two files and a target 696f2b19f9eSBrooks Davis directory the first file will have logs appended to it. The -M 6974cf5de80SGlen Barber option served little practical purpose in the last decade so its 6984cf5de80SGlen Barber use is expected to be extremely rare. 699f2b19f9eSBrooks Davis 7003fea4e6bSAndriy Gapon20121223: 7013fea4e6bSAndriy Gapon After switching to Clang as the default compiler some users of ZFS 7023fea4e6bSAndriy Gapon on i386 systems started to experience stack overflow kernel panics. 7033fea4e6bSAndriy Gapon Please consider using 'options KSTACK_PAGES=4' in such configurations. 7043fea4e6bSAndriy Gapon 705efec959cSJaakko Heinonen20121222: 706efec959cSJaakko Heinonen GEOM_LABEL now mangles label names read from file system metadata. 707efec959cSJaakko Heinonen Mangling affect labels containing spaces, non-printable characters, 708efec959cSJaakko Heinonen '%' or '"'. Device names in /etc/fstab and other places may need to 709efec959cSJaakko Heinonen be updated. 710efec959cSJaakko Heinonen 71111631ad0SPawel Jakub Dawidek20121217: 71211631ad0SPawel Jakub Dawidek By default, only the 10 most recent kernel dumps will be saved. To 71311631ad0SPawel Jakub Dawidek restore the previous behaviour (no limit on the number of kernel dumps 71411631ad0SPawel Jakub Dawidek stored in the dump directory) add the following line to /etc/rc.conf: 71511631ad0SPawel Jakub Dawidek 71611631ad0SPawel Jakub Dawidek savecore_flags="" 71711631ad0SPawel Jakub Dawidek 718e0fb6dc3SRobert Watson20121201: 719e0fb6dc3SRobert Watson With the addition of auditdistd(8), a new auditdistd user is now 7200312d1caSGlen Barber required during installworld. "mergemaster -p" can be used to 7210312d1caSGlen Barber add the user prior to installworld, as documented in the handbook. 722e0fb6dc3SRobert Watson 723b91dc775SHiroki Sato20121117: 724b91dc775SHiroki Sato The sin6_scope_id member variable in struct sockaddr_in6 is now 725b91dc775SHiroki Sato filled by the kernel before passing the structure to the userland via 726b91dc775SHiroki Sato sysctl or routing socket. This means the KAME-specific embedded scope 727b91dc775SHiroki Sato id in sin6_addr.s6_addr[2] is always cleared in userland application. 728b91dc775SHiroki Sato This behavior can be controlled by net.inet6.ip6.deembed_scopeid. 729b91dc775SHiroki Sato __FreeBSD_version is bumped to 1000025. 730b91dc775SHiroki Sato 7315b6478b0SBrooks Davis20121105: 7325b6478b0SBrooks Davis On i386 and amd64 systems WITH_CLANG_IS_CC is now the default. 7335b6478b0SBrooks Davis This means that the world and kernel will be compiled with clang 7345b6478b0SBrooks Davis and that clang will be installed as /usr/bin/cc, /usr/bin/c++, 7355b6478b0SBrooks Davis and /usr/bin/cpp. To disable this behavior and revert to building 736da0e842aSWarner Losh with gcc, compile with WITHOUT_CLANG_IS_CC. Really old versions 737da0e842aSWarner Losh of current may need to bootstrap WITHOUT_CLANG first if the clang 738da0e842aSWarner Losh build fails (its compatibility window doesn't extend to the 9 stable 739da0e842aSWarner Losh branch point). 7405b6478b0SBrooks Davis 741ffdbf9daSAndrey V. Elsukov20121102: 742a971b547SAndrey V. Elsukov The IPFIREWALL_FORWARD kernel option has been removed. Its 743ffdbf9daSAndrey V. Elsukov functionality now turned on by default. 744a971b547SAndrey V. Elsukov 7458f134647SGleb Smirnoff20121023: 746cb69178dSAndre Oppermann The ZERO_COPY_SOCKET kernel option has been removed and 747cb69178dSAndre Oppermann split into SOCKET_SEND_COW and SOCKET_RECV_PFLIP. 748cb69178dSAndre Oppermann NB: SOCKET_SEND_COW uses the VM page based copy-on-write 749cb69178dSAndre Oppermann mechanism which is not safe and may result in kernel crashes. 750cb69178dSAndre Oppermann NB: The SOCKET_RECV_PFLIP mechanism is useless as no current 751cb69178dSAndre Oppermann driver supports disposeable external page sized mbuf storage. 752cb69178dSAndre Oppermann Proper replacements for both zero-copy mechanisms are under 753cb69178dSAndre Oppermann consideration and will eventually lead to complete removal 754cb69178dSAndre Oppermann of the two kernel options. 755cb69178dSAndre Oppermann 756cb69178dSAndre Oppermann20121023: 7578f134647SGleb Smirnoff The IPv4 network stack has been converted to network byte 7588f134647SGleb Smirnoff order. The following modules need to be recompiled together 7598f134647SGleb Smirnoff with kernel: carp(4), divert(4), gif(4), siftr(4), gre(4), 7608f134647SGleb Smirnoff pf(4), ipfw(4), ng_ipfw(4), stf(4). 7618f134647SGleb Smirnoff 7628859ec84SKonstantin Belousov20121022: 7638859ec84SKonstantin Belousov Support for non-MPSAFE filesystems was removed from VFS. The 7648859ec84SKonstantin Belousov VFS_VERSION was bumped, all filesystem modules shall be 7658859ec84SKonstantin Belousov recompiled. 7668859ec84SKonstantin Belousov 767e053ead0SAttilio Rao20121018: 768e053ead0SAttilio Rao All the non-MPSAFE filesystems have been disconnected from 769e053ead0SAttilio Rao the build. The full list includes: codafs, hpfs, ntfs, nwfs, 770e053ead0SAttilio Rao portalfs, smbfs, xfs. 771e053ead0SAttilio Rao 77242a58907SGleb Smirnoff20121016: 77342a58907SGleb Smirnoff The interface cloning API and ABI has changed. The following 77442a58907SGleb Smirnoff modules need to be recompiled together with kernel: 77542a58907SGleb Smirnoff ipfw(4), pfsync(4), pflog(4), usb(4), wlan(4), stf(4), 77642a58907SGleb Smirnoff vlan(4), disc(4), edsc(4), if_bridge(4), gif(4), tap(4), 77742a58907SGleb Smirnoff faith(4), epair(4), enc(4), tun(4), if_lagg(4), gre(4). 77842a58907SGleb Smirnoff 779d6b3aaf8SOleksandr Tymoshenko20121015: 780d6b3aaf8SOleksandr Tymoshenko The sdhci driver was split in two parts: sdhci (generic SD Host 781d6b3aaf8SOleksandr Tymoshenko Controller logic) and sdhci_pci (actual hardware driver). 782d6b3aaf8SOleksandr Tymoshenko No kernel config modifications are required, but if you 783d6b3aaf8SOleksandr Tymoshenko load sdhc as a module you must switch to sdhci_pci instead. 784d6b3aaf8SOleksandr Tymoshenko 7855fe58019SAttilio Rao20121014: 7865fe58019SAttilio Rao Import the FUSE kernel and userland support into base system. 7875fe58019SAttilio Rao 788d38ae94bSGabor Kovesdan20121013: 789d38ae94bSGabor Kovesdan The GNU sort(1) program has been removed since the BSD-licensed 790d38ae94bSGabor Kovesdan sort(1) has been the default for quite some time and no serious 791d38ae94bSGabor Kovesdan problems have been reported. The corresponding WITH_GNU_SORT 79258b6d9a2SGabor Kovesdan knob has also gone. 793d38ae94bSGabor Kovesdan 79421d172a3SGleb Smirnoff20121006: 79521d172a3SGleb Smirnoff The pfil(9) API/ABI for AF_INET family has been changed. Packet 79621d172a3SGleb Smirnoff filtering modules: pf(4), ipfw(4), ipfilter(4) need to be recompiled 79721d172a3SGleb Smirnoff with new kernel. 79821d172a3SGleb Smirnoff 7997b81c83cSAdrian Chadd20121001: 8007b81c83cSAdrian Chadd The net80211(4) ABI has been changed to allow for improved driver 8017b81c83cSAdrian Chadd PS-POLL and power-save support. All wireless drivers need to be 8027b81c83cSAdrian Chadd recompiled to work with the new kernel. 8037b81c83cSAdrian Chadd 804d65043bcSKonstantin Belousov20120913: 805d65043bcSKonstantin Belousov The random(4) support for the VIA hardware random number 806d65043bcSKonstantin Belousov generator (`PADLOCK') is no longer enabled unconditionally. 80746be218dSDavid E. O'Brien Add the padlock_rng device in the custom kernel config if 808d65043bcSKonstantin Belousov needed. The GENERIC kernels on i386 and amd64 do include the 80946be218dSDavid E. O'Brien device, so the change only affects the custom kernel 810d65043bcSKonstantin Belousov configurations. 811d65043bcSKonstantin Belousov 812d6d3f01eSGleb Smirnoff20120908: 813d6d3f01eSGleb Smirnoff The pf(4) packet filter ABI has been changed. pfctl(8) and 814d6d3f01eSGleb Smirnoff snmp_pf module need to be recompiled to work with new kernel. 815d6d3f01eSGleb Smirnoff 8166e767defSMartin Matuska20120828: 8176e767defSMartin Matuska A new ZFS feature flag "com.delphix:empty_bpobj" has been merged 8186e767defSMartin Matuska to -HEAD. Pools that have empty_bpobj in active state can not be 8196e767defSMartin Matuska imported read-write with ZFS implementations that do not support 8206e767defSMartin Matuska this feature. For more information read the zpool-features(5) 8216e767defSMartin Matuska manual page. 8226e767defSMartin Matuska 823614e3098SMarius Strobl20120727: 824614e3098SMarius Strobl The sparc64 ZFS loader has been changed to no longer try to auto- 825614e3098SMarius Strobl detect ZFS providers based on diskN aliases but now requires these 826614e3098SMarius Strobl to be explicitly listed in the OFW boot-device environment variable. 827614e3098SMarius Strobl 8287e003b0aSChristian Brueffer20120712: 8291f13597dSJung-uk Kim The OpenSSL has been upgraded to 1.0.1c. Any binaries requiring 8301f13597dSJung-uk Kim libcrypto.so.6 or libssl.so.6 must be recompiled. Also, there are 8311f13597dSJung-uk Kim configuration changes. Make sure to merge /etc/ssl/openssl.cnf. 8321f13597dSJung-uk Kim 8331f13597dSJung-uk Kim20120712: 8347e003b0aSChristian Brueffer The following sysctls and tunables have been renamed for consistency 8357e003b0aSChristian Brueffer with other variables: 8367e003b0aSChristian Brueffer kern.cam.da.da_send_ordered -> kern.cam.da.send_ordered 8377e003b0aSChristian Brueffer kern.cam.ada.ada_send_ordered -> kern.cam.ada.send_ordered 8387e003b0aSChristian Brueffer 839d22c63acSGabor Kovesdan20120628: 840d22c63acSGabor Kovesdan The sort utility has been replaced with BSD sort. For now, GNU sort 841d22c63acSGabor Kovesdan is also available as "gnusort" or the default can be set back to 842d22c63acSGabor Kovesdan GNU sort by setting WITH_GNU_SORT. In this case, BSD sort will be 843d22c63acSGabor Kovesdan installed as "bsdsort". 844d22c63acSGabor Kovesdan 8452d9cf57eSMartin Matuska20120611: 8462d9cf57eSMartin Matuska A new version of ZFS (pool version 5000) has been merged to -HEAD. 8472d9cf57eSMartin Matuska Starting with this version the old system of ZFS pool versioning 8482d9cf57eSMartin Matuska is superseded by "feature flags". This concept enables forward 8492d9cf57eSMartin Matuska compatibility against certain future changes in functionality of ZFS 8502d9cf57eSMartin Matuska pools. The first read-only compatible "feature flag" for ZFS pools 8512d9cf57eSMartin Matuska is named "com.delphix:async_destroy". For more information 8522d9cf57eSMartin Matuska read the new zpool-features(5) manual page. 8532d9cf57eSMartin Matuska Please refer to the "ZFS notes" section of this file for information 8542d9cf57eSMartin Matuska on upgrading boot ZFS pools. 8552d9cf57eSMartin Matuska 856d1675e38SJason Evans20120417: 857d1675e38SJason Evans The malloc(3) implementation embedded in libc now uses sources imported 858d1675e38SJason Evans as contrib/jemalloc. The most disruptive API change is to 859d1675e38SJason Evans /etc/malloc.conf. If your system has an old-style /etc/malloc.conf, 860d1675e38SJason Evans delete it prior to installworld, and optionally re-create it using the 861d1675e38SJason Evans new format after rebooting. See malloc.conf(5) for details 862d1675e38SJason Evans (specifically the TUNING section and the "opt.*" entries in the MALLCTL 863d1675e38SJason Evans NAMESPACE section). 864d1675e38SJason Evans 86584db023eSJuli Mallett20120328: 86684db023eSJuli Mallett Big-endian MIPS TARGET_ARCH values no longer end in "eb". mips64eb 86784db023eSJuli Mallett is now spelled mips64. mipsn32eb is now spelled mipsn32. mipseb is 86884db023eSJuli Mallett now spelled mips. This is to aid compatibility with third-party 86984db023eSJuli Mallett software that expects this naming scheme in uname(3). Little-endian 870474dbfb7SWarner Losh settings are unchanged. If you are updating a big-endian mips64 machine 871474dbfb7SWarner Losh from before this change, you may need to set MACHINE_ARCH=mips64 in 872474dbfb7SWarner Losh your environment before the new build system will recognize your machine. 87384db023eSJuli Mallett 8749c170fd1SAttilio Rao20120306: 8759c170fd1SAttilio Rao Disable by default the option VFS_ALLOW_NONMPSAFE for all supported 8769c170fd1SAttilio Rao platforms. 8779c170fd1SAttilio Rao 878c7e41c8bSMikolaj Golub20120229: 879c7e41c8bSMikolaj Golub Now unix domain sockets behave "as expected" on nullfs(5). Previously 880c7e41c8bSMikolaj Golub nullfs(5) did not pass through all behaviours to the underlying layer, 881c7e41c8bSMikolaj Golub as a result if we bound to a socket on the lower layer we could connect 882c7e41c8bSMikolaj Golub only to the lower path; if we bound to the upper layer we could connect 883c7e41c8bSMikolaj Golub only to the upper path. The new behavior is one can connect to both the 884c7e41c8bSMikolaj Golub lower and the upper paths regardless what layer path one binds to. 885c7e41c8bSMikolaj Golub 886ca1672daSBjoern A. Zeeb20120211: 887ca1672daSBjoern A. Zeeb The getifaddrs upgrade path broken with 20111215 has been restored. 888ca1672daSBjoern A. Zeeb If you have upgraded in between 20111215 and 20120209 you need to 889ca1672daSBjoern A. Zeeb recompile libc again with your kernel. You still need to recompile 890ca1672daSBjoern A. Zeeb world to be able to configure CARP but this restriction already 891ca1672daSBjoern A. Zeeb comes from 20111215. 892ca1672daSBjoern A. Zeeb 893e0e0f25bSDoug Barton20120114: 894e0e0f25bSDoug Barton The set_rcvar() function has been removed from /etc/rc.subr. All 895e0e0f25bSDoug Barton base and ports rc.d scripts have been updated, so if you have a 896e0e0f25bSDoug Barton port installed with a script in /usr/local/etc/rc.d you can either 897e0e0f25bSDoug Barton hand-edit the rcvar= line, or reinstall the port. 898e0e0f25bSDoug Barton 8995d482324SDoug Barton An easy way to handle the mass-update of /etc/rc.d: 9005d482324SDoug Barton rm /etc/rc.d/* && mergemaster -i 9015d482324SDoug Barton 90290d82653SAndriy Gapon20120109: 90390d82653SAndriy Gapon panic(9) now stops other CPUs in the SMP systems, disables interrupts 90490d82653SAndriy Gapon on the current CPU and prevents other threads from running. 90590d82653SAndriy Gapon This behavior can be reverted using the kern.stop_scheduler_on_panic 90690d82653SAndriy Gapon tunable/sysctl. 90790d82653SAndriy Gapon The new behavior can be incompatible with kern.sync_on_panic. 90890d82653SAndriy Gapon 90908b68b0eSGleb Smirnoff20111215: 91008b68b0eSGleb Smirnoff The carp(4) facility has been changed significantly. Configuration 91108b68b0eSGleb Smirnoff of the CARP protocol via ifconfig(8) has changed, as well as format 91208b68b0eSGleb Smirnoff of CARP events submitted to devd(8) has changed. See manual pages 91308b68b0eSGleb Smirnoff for more information. The arpbalance feature of carp(4) is currently 91408b68b0eSGleb Smirnoff not supported anymore. 91508b68b0eSGleb Smirnoff 91608b68b0eSGleb Smirnoff Size of struct in_aliasreq, struct in6_aliasreq has changed. User 91708b68b0eSGleb Smirnoff utilities using SIOCAIFADDR, SIOCAIFADDR_IN6, e.g. ifconfig(8), 91808b68b0eSGleb Smirnoff need to be recompiled. 91908b68b0eSGleb Smirnoff 920d5d131eeSJaakko Heinonen20111122: 921d5d131eeSJaakko Heinonen The acpi_wmi(4) status device /dev/wmistat has been renamed to 922d5d131eeSJaakko Heinonen /dev/wmistat0. 923d5d131eeSJaakko Heinonen 924ed1f6dc2SAttilio Rao20111108: 925ed1f6dc2SAttilio Rao The option VFS_ALLOW_NONMPSAFE option has been added in order to 926ed1f6dc2SAttilio Rao explicitely support non-MPSAFE filesystems. 927ed1f6dc2SAttilio Rao It is on by default for all supported platform at this present 928ed1f6dc2SAttilio Rao time. 929ed1f6dc2SAttilio Rao 930a9ab459bSMarius Strobl20111101: 931a9ab459bSMarius Strobl The broken amd(4) driver has been replaced with esp(4) in the amd64, 932a9ab459bSMarius Strobl i386 and pc98 GENERIC kernel configuration files. 933a9ab459bSMarius Strobl 934e59e2d8eSNathan Whitehorn20110930: 935e59e2d8eSNathan Whitehorn sysinstall has been removed 936e59e2d8eSNathan Whitehorn 9378a3b6cc1SKen Smith20110923: 9388a3b6cc1SKen Smith The stable/9 branch created in subversion. This corresponds to the 9398a3b6cc1SKen Smith RELENG_9 branch in CVS. 9408a3b6cc1SKen Smith 941dc0dbf5cSWarner LoshCOMMON ITEMS: 942dc0dbf5cSWarner Losh 943a24eff53SWarner Losh General Notes 944a24eff53SWarner Losh ------------- 945456b5dd8SWarner Losh Avoid using make -j when upgrading. While generally safe, there are 946456b5dd8SWarner Losh sometimes problems using -j to upgrade. If your upgrade fails with 9471733d35cSRuslan Ermilov -j, please try again without -j. From time to time in the past there 948456b5dd8SWarner Losh have been problems using -j with buildworld and/or installworld. This 949456b5dd8SWarner Losh is especially true when upgrading between "distant" versions (eg one 950456b5dd8SWarner Losh that cross a major release boundary or several minor releases, or when 951456b5dd8SWarner Losh several months have passed on the -current branch). 952a24eff53SWarner Losh 9535780f3baSWarner Losh Sometimes, obscure build problems are the result of environment 9545780f3baSWarner Losh poisoning. This can happen because the make utility reads its 955456b5dd8SWarner Losh environment when searching for values for global variables. To run 956456b5dd8SWarner Losh your build attempts in an "environmental clean room", prefix all make 957456b5dd8SWarner Losh commands with 'env -i '. See the env(1) manual page for more details. 9585780f3baSWarner Losh 959456b5dd8SWarner Losh When upgrading from one major version to another it is generally best 960456b5dd8SWarner Losh to upgrade to the latest code in the currently installed branch first, 961456b5dd8SWarner Losh then do an upgrade to the new branch. This is the best-tested upgrade 962456b5dd8SWarner Losh path, and has the highest probability of being successful. Please try 963456b5dd8SWarner Losh this approach before reporting problems with a major version upgrade. 964081ff8acSDoug Barton 9656eeab389SWarner Losh When upgrading a live system, having a root shell around before 966da0e842aSWarner Losh installing anything can help undo problems. Not having a root shell 967da0e842aSWarner Losh around can lead to problems if pam has changed too much from your 968da0e842aSWarner Losh starting point to allow continued authentication after the upgrade. 969da0e842aSWarner Losh 9708fc25799SMartin Matuska ZFS notes 9718fc25799SMartin Matuska --------- 9728fc25799SMartin Matuska When upgrading the boot ZFS pool to a new version, always follow 9738fc25799SMartin Matuska these two steps: 9748fc25799SMartin Matuska 9758fc25799SMartin Matuska 1.) recompile and reinstall the ZFS boot loader and boot block 9768fc25799SMartin Matuska (this is part of "make buildworld" and "make installworld") 9778fc25799SMartin Matuska 9788fc25799SMartin Matuska 2.) update the ZFS boot block on your boot drive 9798fc25799SMartin Matuska 9808fc25799SMartin Matuska The following example updates the ZFS boot block on the first 98172ce7f29SAlexander Leidinger partition (freebsd-boot) of a GPT partitioned drive ada0: 98272ce7f29SAlexander Leidinger "gpart bootcode -p /boot/gptzfsboot -i 1 ada0" 9838fc25799SMartin Matuska 9848fc25799SMartin Matuska Non-boot pools do not need these updates. 9858fc25799SMartin Matuska 986dc0dbf5cSWarner Losh To build a kernel 987dc0dbf5cSWarner Losh ----------------- 988ba01eb20SWarner Losh If you are updating from a prior version of FreeBSD (even one just 9891cf0ef11SDavid E. O'Brien a few days old), you should follow this procedure. It is the most 9901cf0ef11SDavid E. O'Brien failsafe as it uses a /usr/obj tree with a fresh mini-buildworld, 9911cf0ef11SDavid E. O'Brien 9921cf0ef11SDavid E. O'Brien make kernel-toolchain 993282e0f01SRuslan Ermilov make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE 994282e0f01SRuslan Ermilov make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE 995dc0dbf5cSWarner Losh 9962e937dd6SAlexander Leidinger To test a kernel once 9972e937dd6SAlexander Leidinger --------------------- 9982e937dd6SAlexander Leidinger If you just want to boot a kernel once (because you are not sure 9992e937dd6SAlexander Leidinger if it works, or if you want to boot a known bad kernel to provide 10002e937dd6SAlexander Leidinger debugging information) run 10012e937dd6SAlexander Leidinger make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel 10022e937dd6SAlexander Leidinger nextboot -k testkernel 10032e937dd6SAlexander Leidinger 1004ba01eb20SWarner Losh To just build a kernel when you know that it won't mess you up 1005ba01eb20SWarner Losh -------------------------------------------------------------- 1006456b5dd8SWarner Losh This assumes you are already running a CURRENT system. Replace 10070fbd2da9SKen Smith ${arch} with the architecture of your machine (e.g. "i386", 1008456b5dd8SWarner Losh "arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc). 10090fbd2da9SKen Smith 10100fbd2da9SKen Smith cd src/sys/${arch}/conf 101147d0d01fSWarner Losh config KERNEL_NAME_HERE 10120fbd2da9SKen Smith cd ../compile/KERNEL_NAME_HERE 1013ba01eb20SWarner Losh make depend 1014ba01eb20SWarner Losh make 1015ba01eb20SWarner Losh make install 1016ba01eb20SWarner Losh 1017ba01eb20SWarner Losh If this fails, go to the "To build a kernel" section. 1018ba01eb20SWarner Losh 1019ba01eb20SWarner Losh To rebuild everything and install it on the current system. 1020ba01eb20SWarner Losh ----------------------------------------------------------- 102163cb445eSWarner Losh # Note: sometimes if you are running current you gotta do more than 102263cb445eSWarner Losh # is listed here if you are upgrading from a really old current. 102363cb445eSWarner Losh 1024f643de42SWarner Losh <make sure you have good level 0 dumps> 102563cb445eSWarner Losh make buildworld 10266586253aSWarner Losh make kernel KERNCONF=YOUR_KERNEL_HERE 102763cb445eSWarner Losh [1] 102863cb445eSWarner Losh <reboot in single user> [3] 102905940036SJohn-Mark Gurney mergemaster -Fp [5] 103063cb445eSWarner Losh make installworld 103105940036SJohn-Mark Gurney mergemaster -Fi [4] 103294877c06SAlexander Leidinger make delete-old [6] 103363cb445eSWarner Losh <reboot> 103463cb445eSWarner Losh 1035f27b1fceSJoseph Koshy To cross-install current onto a separate partition 1036f27b1fceSJoseph Koshy -------------------------------------------------- 1037f27b1fceSJoseph Koshy # In this approach we use a separate partition to hold 1038f27b1fceSJoseph Koshy # current's root, 'usr', and 'var' directories. A partition 1039f27b1fceSJoseph Koshy # holding "/", "/usr" and "/var" should be about 2GB in 1040f27b1fceSJoseph Koshy # size. 1041f27b1fceSJoseph Koshy 1042f27b1fceSJoseph Koshy <make sure you have good level 0 dumps> 1043f27b1fceSJoseph Koshy <boot into -stable> 1044f27b1fceSJoseph Koshy make buildworld 10453ecf3bddSRuslan Ermilov make buildkernel KERNCONF=YOUR_KERNEL_HERE 1046f27b1fceSJoseph Koshy <maybe newfs current's root partition> 1047f27b1fceSJoseph Koshy <mount current's root partition on directory ${CURRENT_ROOT}> 1048af34024aSJohn-Mark Gurney make installworld DESTDIR=${CURRENT_ROOT} -DDB_FROM_SRC 10492d5cde04SRuslan Ermilov make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd 10503ecf3bddSRuslan Ermilov make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} 1051f27b1fceSJoseph Koshy cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd 1052f27b1fceSJoseph Koshy <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> 1053f27b1fceSJoseph Koshy <reboot into current> 1054f27b1fceSJoseph Koshy <do a "native" rebuild/install as described in the previous section> 1055737d990aSXin LI <maybe install compatibility libraries from ports/misc/compat*> 1056f27b1fceSJoseph Koshy <reboot> 1057f27b1fceSJoseph Koshy 1058f27b1fceSJoseph Koshy 105915974d55SGavin Atkinson To upgrade in-place from stable to current 1060f27b1fceSJoseph Koshy ---------------------------------------------- 1061f643de42SWarner Losh <make sure you have good level 0 dumps> 106221c075eaSWarner Losh make buildworld [9] 1063e5dc5f61SWarner Losh make kernel KERNCONF=YOUR_KERNEL_HERE [8] 1064fc8c157fSWarner Losh [1] 1065fc8c157fSWarner Losh <reboot in single user> [3] 106605940036SJohn-Mark Gurney mergemaster -Fp [5] 1067ba26da8eSWarner Losh make installworld 106805940036SJohn-Mark Gurney mergemaster -Fi [4] 106994877c06SAlexander Leidinger make delete-old [6] 1070ba26da8eSWarner Losh <reboot> 1071ba26da8eSWarner Losh 1072fdb9f54dSWarner Losh Make sure that you've read the UPDATING file to understand the 1073fdb9f54dSWarner Losh tweaks to various things you need. At this point in the life 1074fdb9f54dSWarner Losh cycle of current, things change often and you are on your own 1075fdb9f54dSWarner Losh to cope. The defaults can also change, so please read ALL of 1076fdb9f54dSWarner Losh the UPDATING entries. 1077ba26da8eSWarner Losh 10781dece4a9SWarner Losh Also, if you are tracking -current, you must be subscribed to 10791dece4a9SWarner Losh freebsd-current@freebsd.org. Make sure that before you update 10801dece4a9SWarner Losh your sources that you have read and understood all the recent 10811dece4a9SWarner Losh messages there. If in doubt, please track -stable which has 10821dece4a9SWarner Losh much fewer pitfalls. 10831dece4a9SWarner Losh 1084134d2e86SWarner Losh [1] If you have third party modules, such as vmware, you 1085134d2e86SWarner Losh should disable them at this point so they don't crash your 1086134d2e86SWarner Losh system on reboot. 1087134d2e86SWarner Losh 1088ee6e1fc3SWarner Losh [3] From the bootblocks, boot -s, and then do 1089ee6e1fc3SWarner Losh fsck -p 1090ee6e1fc3SWarner Losh mount -u / 1091ee6e1fc3SWarner Losh mount -a 10926586253aSWarner Losh cd src 109347d0d01fSWarner Losh adjkerntz -i # if CMOS is wall time 1094f6a0ef01SWarner Losh Also, when doing a major release upgrade, it is required that 1095f6a0ef01SWarner Losh you boot into single user mode to do the installworld. 1096ee6e1fc3SWarner Losh 1097a6cd4f9dSWarner Losh [4] Note: This step is non-optional. Failure to do this step 1098a6cd4f9dSWarner Losh can result in a significant reduction in the functionality of the 1099a6cd4f9dSWarner Losh system. Attempting to do it by hand is not recommended and those 1100a6cd4f9dSWarner Losh that pursue this avenue should read this file carefully, as well 1101a6cd4f9dSWarner Losh as the archives of freebsd-current and freebsd-hackers mailing lists 110250e8eca6SDoug Barton for potential gotchas. The -U option is also useful to consider. 110350e8eca6SDoug Barton See mergemaster(8) for more information. 1104a6cd4f9dSWarner Losh 1105835284beSWarner Losh [5] Usually this step is a noop. However, from time to time 1106835284beSWarner Losh you may need to do this if you get unknown user in the following 1107835284beSWarner Losh step. It never hurts to do it all the time. You may need to 1108835284beSWarner Losh install a new mergemaster (cd src/usr.sbin/mergemaster && make 1109835284beSWarner Losh install) after the buildworld before this step if you last updated 111020e0cc0aSBrooks Davis from current before 20130425 or from -stable before 20130430. 1111835284beSWarner Losh 111294877c06SAlexander Leidinger [6] This only deletes old files and directories. Old libraries 111394877c06SAlexander Leidinger can be deleted by "make delete-old-libs", but you have to make 111494877c06SAlexander Leidinger sure that no program is using those libraries anymore. 111594877c06SAlexander Leidinger 1116456b5dd8SWarner Losh [8] In order to have a kernel that can run the 4.x binaries needed to 1117456b5dd8SWarner Losh do an installworld, you must include the COMPAT_FREEBSD4 option in 1118456b5dd8SWarner Losh your kernel. Failure to do so may leave you with a system that is 1119456b5dd8SWarner Losh hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 is 1120456b5dd8SWarner Losh required to run the 5.x binaries on more recent kernels. And so on 1121456b5dd8SWarner Losh for COMPAT_FREEBSD6 and COMPAT_FREEBSD7. 1122c74fe6afSWarner Losh 1123e5dc5f61SWarner Losh Make sure that you merge any new devices from GENERIC since the 1124e5dc5f61SWarner Losh last time you updated your kernel config file. 1125e5dc5f61SWarner Losh 112621c075eaSWarner Losh [9] When checking out sources, you must include the -P flag to have 1127e5dc5f61SWarner Losh cvs prune empty directories. 1128e5dc5f61SWarner Losh 1129e5dc5f61SWarner Losh If CPUTYPE is defined in your /etc/make.conf, make sure to use the 1130e5dc5f61SWarner Losh "?=" instead of the "=" assignment operator, so that buildworld can 1131e5dc5f61SWarner Losh override the CPUTYPE if it needs to. 1132e5dc5f61SWarner Losh 1133e5dc5f61SWarner Losh MAKEOBJDIRPREFIX must be defined in an environment variable, and 1134e5dc5f61SWarner Losh not on the command line, or in /etc/make.conf. buildworld will 1135e5dc5f61SWarner Losh warn if it is improperly defined. 1136dc0dbf5cSWarner LoshFORMAT: 1137dc0dbf5cSWarner Losh 1138f699bbbbSMark OvensThis file contains a list, in reverse chronological order, of major 1139630f2154SGlen Barberbreakages in tracking -current. It is not guaranteed to be a complete 1140630f2154SGlen Barberlist of such breakages, and only contains entries since October 10, 2007. 1141630f2154SGlen BarberIf you need to see UPDATING entries from before that date, you will need 1142630f2154SGlen Barberto fetch an UPDATING file from an older FreeBSD release. 11431fc1a0dcSWarner Losh 1144e72fd46aSWarner LoshCopyright information: 1145e72fd46aSWarner Losh 1146456b5dd8SWarner LoshCopyright 1998-2009 M. Warner Losh. All Rights Reserved. 1147e72fd46aSWarner Losh 1148772730c7SWarner LoshRedistribution, publication, translation and use, with or without 1149772730c7SWarner Loshmodification, in full or in part, in any form or format of this 11509698f2c0SWarner Loshdocument are permitted without further permission from the author. 1151e72fd46aSWarner Losh 1152e72fd46aSWarner LoshTHIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR 1153e72fd46aSWarner LoshIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1154e72fd46aSWarner LoshWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1155e72fd46aSWarner LoshDISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, 1156e72fd46aSWarner LoshINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 1157e72fd46aSWarner Losh(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 1158e72fd46aSWarner LoshSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1159e72fd46aSWarner LoshHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 1160e72fd46aSWarner LoshSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 1161e72fd46aSWarner LoshIN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1162e72fd46aSWarner LoshPOSSIBILITY OF SUCH DAMAGE. 1163e72fd46aSWarner Losh 116422306abcSWarner LoshContact Warner Losh if you have any questions about your use of 1165772730c7SWarner Loshthis document. 1166772730c7SWarner Losh 116797d92980SPeter Wemm$FreeBSD$ 1168