1Updating Information for users of FreeBSD-CURRENT. 2 3This file is maintained and copyrighted by M. Warner Losh <imp@freebsd.org>. 4See end of file for further details. For commonly done items, please see the 5COMMON ITEMS: section later in the file. These instructions assume that you 6basically know what you are doing. If not, then please consult the FreeBSD 7handbook: 8 9 https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld 10 11Items affecting the ports and packages system can be found in 12/usr/ports/UPDATING. Please read that file before updating system packages 13and/or ports. 14 15NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW: 16 FreeBSD 16.x has many debugging features turned on, in both the kernel 17 and userland. These features attempt to detect incorrect use of 18 system primitives, and encourage loud failure through extra sanity 19 checking and fail stop semantics. They also substantially impact 20 system performance. If you want to do performance measurement, 21 benchmarking, and optimization, you'll want to turn them off. This 22 includes various WITNESS- related kernel options, INVARIANTS, malloc 23 debugging flags in userland, and various verbose features in the 24 kernel. Many developers choose to disable these features on build 25 machines to maximize performance. (To completely disable malloc 26 debugging, define WITH_MALLOC_PRODUCTION in /etc/src.conf and rebuild 27 world, or to merely disable the most expensive debugging functionality 28 at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) 29 3020250929: 31 Both drm-kmod and nividia-drm ports had to be updated to either no 32 longer conflict on LinuxKPI vs. native PCI changes and/or to keep 33 working after some LinuxKPI PCI adjustments which were previously 34 hidden behind native PCI. 35 Bump __FreeBSD_version 1600001 so users will pick up updated packages. 36 3720250929: 38 The deprecated ftpd(8) has been removed. Users who still need ftpd 39 can install the ftp/freebsd-ftpd port. pkgbase users should remove 40 the orphaned FreeBSD-ftpd package. 41 4220250923: 43 Several changes which affect pkgbase users (only): 44 45 powerd has been moved to a new FreeBSD-powerd package. If you have 46 FreeBSD-set-minimal installed, the new package will be installed 47 automatically, otherwise you may want to install it by hand. 48 49 libpmc and related utilities (/usr/sbin/pmc*) have moved to the new 50 FreeBSD-pmc package. If you use these, you may want to install the 51 package. 52 53 The libbz2 package has been renamed to bzip2, and /usr/bin/bzip2 has 54 been moved to the new package. If you have set-minimal installed, 55 the new package will be added automatically, otherwise you may want 56 to manually install it. 57 58 This only affects pkgbase users. 59 6020250918: 61 mandoc (including /usr/bin/man) has been moved to a new package, 62 FreeBSD-mandoc. If you have the minimal set installed, this package 63 will be installed automatically, otherwise you may want to install it. 64 65 Kyua has been moved to the FreeBSD-kyua package, and ATF has been moved 66 to the FreeBSD-atf* packages. If you have FreeBSD-tests installed, 67 these packages will be installed automatically, otherwise you should 68 manually install them if you need these tools. 69 70 This only affects pkgbase users. 71 7220250912: 73 If SRCCONF is unset and a file named src.conf is present at 74 the top of the source tree, it will now be used instead of 75 /etc/src.conf. 76 7720250907: 78 The MANSPLITPKG knob has been turned off by default, so pkgbase builds 79 will no longer generate "-man" subpackages; instead the manpages will 80 be shipped in the packages they belong to. If you want to continue 81 building split man packages, set WITH_MANSPLITPKG=1. 82 8320250905: 84 FreeBSD 16.0-CURRENT. 85 8620250903: 87 The BLOAT_KERNEL_WITH_EXTERR kernel config option has been renamed to 88 EXTERR_STRINGS. 89 9020250827: 91 The names of pkg repositories defined in /etc/pkg/FreeBSD.conf have 92 changed: "FreeBSD" is now "FreeBSD-ports", and "FreeBSD-kmods" is now 93 "FreeBSD-ports-kmods". Users with /usr/local/etc/pkg/repos files 94 which override these will need to adjust their configuration to match 95 the new names. 96 9720250823: 98 The set of pkgbase packages for Kerberos and OpenSSL has changed. 99 After updating past 250e77d4f0a5, you should check 'pkg orphans' 100 and remove any orphaned packages, then examine the output of 101 'pkg install -r base -g FreeBSD-openssl\* FreeBSD-kerberos\*' 102 and install any new packages you need. 103 10420250823: 105 To restore bridge(4)'s ABI compatibility with ifconfig from 14.x or 106 earlier, the size of struct ifbreq has changed, so you must update 107 the kernel and /sbin/ifconfig at the same time or you will not be 108 able to add interfaces to bridge. This is particularly important 109 if you require bridge for network access during boot, in which case 110 you should install the new kernel and the new /sbin/ifconfig prior 111 to rebooting. 112 11320250820: 114 The WITHOUT_GSSAPI src.conf knob has been removed. This was already 115 a no-op for MIT Kerberos, so this only affects builds which set 116 WITHOUT_MITKRB5=1, in which case you now always get libgssapi. 117 118 Also, Heimdal's compile_et and libcom_err are now controlled by 119 WITHOUT_KERBEROS, not WITHOUT_KERBEROS_SUPPORT. This matches 120 the behaviour of the MIT Kerberos versions. 121 12220250820: 123 Commits 08c7dd2fbe4f and a4197ea47777 have changed the ABI between 124 libvmmapi and the vmm device. If using a custom kernel configuration, 125 please ensure that the COMPAT_FREEBSD14 option is included so older 126 versions of libvmmapi continue working as expected. 127 12820250819: 129 The CLEAN option has been switched back from default-on to default-off. 130 This reverts the 20250808 change below, which had reverted the 20240729 131 change before it. Note that some src.conf(5) options are known to break 132 ABI or compatibility in ways that may require a clean build initially 133 when switched. 134 13520250816: 136 Sendmail's libmilter has been moved to its own package. If you want 137 to compile applications that use libmilter, you should install the 138 FreeBSD-libmilter* packages. 139 140 If you only have FreeBSD-sendmail installed for applications that 141 require libmilter, you can now remove it. 142 14320250815: 144 The [gs]etgroups(2)syscalls have changed. To maintain backwards 145 compatibility with existing programs, you need COMPAT_FREEBSD14 in 146 your kernel config until all applications which use this are 147 rebuild/reinstalled. 148 14920250815: 150 jemalloc 5.3.0 has been committed to the tree. 151 15220250815: 153 The removal of Secure RPC DES authentication noted in 20250810 154 has been reverted. (However, it is still non-functional.) 155 15620250813: 157 Commit cce64f2e6851 changed the internal KAPI between the NFS 158 modules. As such, all of them need to be rebuilt from sources. 159 __FreeBSD_version has been bumped to 1500060 already today, 160 so I will not bump it again for this. 161 16220250813: 163 The gpiobus_attach_bus() function has been removed. Drivers should now 164 use the gpiobus_add_bus() function instead. The difference being that 165 gpiobus_add_bus() doesn't call bus_attach_children(), calling it will 166 be the responsibility of the caller now. 167 16820250810: 169 Support for Secure RPC DES authentication has been removed. 170 The keyserv(8) daemon was already removed, but support for it in libc 171 has also been removed, so if you somehow still had keyserv installed, 172 it will now stop working. There is no workaround for this. Removing 173 DES is considered a feature. 174 17520250808: 176 The CLEAN option has been switched back from default-off to 177 default-on. This reverts the 20240729 change below. 178 17920250807: 180 routed(8) and route6d(8) have moved to the FreeBSD-rip package. 181 If you use either of these, you should install the new package. 182 18320250806: 184 if_epair(4) now uses ether_gen_addr(9) to generate a stable MAC 185 address. 186 To keep using the random address, set the loader tunable 187 net.link.epair.ether_gen_addr=0. 188 18920250804: 190 bsdconfig (including sysrc(8)) has moved to the new bsdconfig 191 package. If you use pkgbase and wish to use bsdconfig, you should 192 install FreeBSD-bsdconfig. 193 19420250730: 195 The usbhid(4) USB HID driver is now enabled by default, and will be 196 used in preference to other USB HID drivers like ukbd(4), ums(4), and 197 uhid(4). Work on a FIDO/U2F driver and moused(8) is in progress. 198 The default is being switched now so that we can find and fix any 199 additional issues prior to FreeBSD 15.0. 200 201 To revert to the previous USB HID driver behavior, set the loader 202 tunable hw.usb.usbhid.enable=0. 203 20420250727: 205 bmake (i.e., /usr/bin/make and /usr/share/mk) has moved to a new 206 package, FreeBSD-bmake. If you use pkgbase and you need make, you 207 should install this package. 208 20920250726: 210 amd64 kernel configurations must contain "options SMP". 211 21220250725: 213 gssd(8) has been moved to a new package, FreeBSD-gssd. If you use 214 pkgbase and you need gssd, you should install this package. 215 21620250724: 217 The Kerberos packages which are built when WITH_MITKRB5 is enabled 218 have been renamed from FreeBSD-krb5* to FreeBSD-kerberos*. This 219 affects pkgbase users who manually enabled WITH_MITKRB5, *or* use 220 the default value of WITH_MITKRB5 and updated past c7da9fb90b0b 221 (20250721) which made WITH_MITKRB5 the default. 222 223 In either case, if you have FreeBSD-krb5* packages installed, you 224 should remove them and (re)install the equivalent FreeBSD-kerberos* 225 packages instead. 226 22720250721: 228 WITH_MITKRB5 is now enabled by default. MIT KRB5 has replaced 229 Heimdal in base. Ports that use USES=gssapi must be rebuilt. 230 A clean buildworld is required. 231 23220250719: 233 Commits 392a82b225 and c00baac0ab both changed the 234 internal API between the NFS modules. As such, all 235 these modules need to be rebuilt from sources. 236 __FreeBSD_version was bumped to 1500053 for this. 237 23820250710: 239 The shar(1) utility has been removed from base. The 240 sysutils/freebsd-shar port was created to maintain this version of 241 shar(1) past its removal from base. 242 24320250704: 244 LinuxKPI device.h and acpi changes effecting drivers and drm-kmod. 245 Bump __FreeBSD_version 1500050 to be able to detect these changes. 246 24720250630: 248 Commits 171f66b0c2ca and 8e2a90ac8089 changed the internal 249 api between nfscommon.ko and the other nfs modules. 250 Bump __FreeBSD_version to 1500049 for this. 251 All NFS related modules must be rebuilt from up-to-date 252 sources. 253 25420250625: 255 "make delete-old" will now remove the Forth bootloader entirely 256 if the system is built with WITHOUT_FORTH. 257 25820250614: 259 MIT KRB5 (MIT Kerberos5) has been imported into 15-CURRENT. To 260 and install MIT KRB5, add WITH_MITKRB5=yes to /etc/src.conf. This 261 will build and install MIT KRB5 1.21.3. And it will remove Heimdal 262 1.5.2 when delete-old and delete-old-libs are run. To revert back 263 simply buildworld/installworld again with delete-old-libs and 264 delete-old. 265 266 At the moment we only know of a couple of ports that might be 267 affected. Adjusting libmap.conf does not circumvent runtime issues. 268 The few affected ports must be rebuilt. A successful exp-run will be 269 run before MIT KRB5 becomes default. 270 271 Those using the KDC in FreeBSD base may wish to wait. The Heimdal 272 HDB is incompatible with the MIT KRB5 KDC. The migration procedure 273 is a little involved. 274 27520250603: 276 LinuxKPI dma-mapping.h were pulled into the tree from drm-kmod. 277 Bump _FreeBSD_version to 1500045 to be able to detect this change. 278 27920250527: 280 pf changed extension header handling. It now treats AH headers on IPv4 just 281 like AH headers on IPv6 and skips over them, allowing filtering on the inner 282 protocol. 283 28420250527: 285 pf now blocks IPv6 packets with a hop-by-hop or destination options header by 286 default. Such packets can be passed by adding "allow-opts" to the rule. IPv6 287 options are now handled just like their IPv4 counterparts. 288 28920250527: 290 The CAM target layer userland, i.e. ctld(8), ctladm(8) and ctlstat(8), 291 has moved to the new FreeBSD-ctl package. If you use pkgbase and you 292 need the CAM Target Layer, you should install the new package. 293 294 Development-related tools (e.g. ar and nm) have moved to the new 295 "FreeBSD-toolchain" package, which subsumes and obsoletes the 296 existing "FreeBSD-elftoolchain" package. If you use pkgbase and 297 need to compile software, you should install the new package and 298 ensure the old FreeBSD-elftoolchain* packages are completely removed. 299 30020250521: 301 Commit e64fe5ad3a23 removed in6_maxmtu and its setter in6_setmaxmtu(). 302 in6_maxmtu is used to store the max IPv6 MTU of all interfaces, 303 however it does not have any in-tree consumers since the introduction 304 from the KAME project. The removal should have little impact, and the 305 max IPv6 MTU can be easily retrieved by iterating over all the attached 306 interface if 3rd party modules need it. 307 30820250515: 309 Commit 772258c89f28 changed the internal API between the nfscommon 310 and nfscl modules. Both need to be built from updated sources. 311 31220250513: 313 The bridge(4) sysctl net.link.bridge.member_ifaddrs now defaults to 0, 314 meaning that interfaces added to a bridge may not have IP addresses 315 assigned. Refer to bridge(4) for more information. 316 31720250507: 318 UMASS quirks and auto-quirk probing has been overhauled. CAM now won't 319 send SYNCHRONIZE CACHE unless MODE PAGE 8 is present and valid. This 320 should allow more devices to work (since the auto quirk code was updated 321 in 14 and broke several e-readers and the like). Please send imp@freebsd.org 322 any regression reports. 323 32420250504: 325 Commit 9419e086e1a3 changed the internal API between the nfscommon 326 and nfscl modules. Both need to be built from updated sources. 327 32820250412: 329 LinuxKPI alloc routines were changed to return physically contiguous 330 memory where expected. These changes may require out-of-tree drivers 331 to be recompiled. 332 Bump __FreeBSD_version to 1500037 to be able to detect this change. 333 33420250409: 335 Intel iwlwifi firmware has been removed from the src repository. 336 Before updating their system, users of iwlwifi(4) or iwx(4) must 337 install the appropriate firmware for their chipset using fwget(8) or 338 building it from ports. 339 34020250314: 341 We now use LLVM's binary utilities (nm, objcopy, etc.) by default. 342 The WITHOUT_LLVM_BINUTILS src.conf(5) knob can be used to revert to 343 ELF Tool Chain tools if desired. 344 34520250303: 346 Commit 4a77657cbc01 changed the ABI between ipfw(8) and ipfw(4). 347 Please note that the old ipfw(8) binary will not work with the new 348 ipfw(4) module. Therefore, it is recommended to disable ipfw during 349 the upgrade, otherwise the host system may become inaccessible because 350 ipfw rules cannot be installed with the old binary. 351 35220250214: 353 Commit 4517fbfd4251 modified the internal API between the 354 nfscommon and nfscl modules. As such, both of these modules 355 need to be rebuilt from sources. 356 35720250201: 358 The NFS related daemons, that provide RPC services to the kernel: 359 gssd(8), rpcbind(8), rpc.tlsservd(8) and rpc.tlsclntd(8), now use a 360 different transport - netlink(4) socket instead of unix(4). Users of 361 NFS need to upgrade both kernel and world (binaries and libc) at once. 362 Also, any revision between 88cd1e17a7d8 and 99e5a70046da should be 363 avoided. 364 36520250129: 366 Defer the January 19, 2038 date limit in UFS1 filesystems to 367 February 7, 2106. This affects only UFS1 format filesystems. 368 See commit message 1111a44301da for details. 369 37020250127: 371 The Allwinner a10_timer driver has been renamed to aw_driver. If you 372 have a custom kernel configuration including the line 'device 373 a10_timer', it must be adjusted to 'device aw_timer'. The same applies 374 for device exclusions with 'nodevice'. 375 37620250106: 377 A new SOC_ROCKCHIP options appeared, so if you have a custom kernel configuration 378 targeting Rockchip SoC you need to add it so shared and mandatory drivers for 379 this SoC family will be selected. 380 Also a new rk8xx device was added, this select the base driver for Rockchip PMIC. 381 38220241223: 383 The layout of NFS file handles for the tarfs, tmpfs, cd9660, and ext2fs 384 file systems has changed. An NFS server that exports any of these file 385 systems will need its clients to unmount and remount the exports. 386 38720241216: 388 The iwm(4) firmwares are no longer compiled as kernel modules but instead 389 shipped as raw files. For pkgbase users if you use iwm(4) you will need 390 to install the FreeBSD-firmware-iwm package. 391 39220241124: 393 The OpenBSD derived bc and dc implementations and the WITHOUT_GH_BC 394 option that allowed building them instead of the advanced version 395 imported more than 4 years ago have been removed. 396 39720241107: 398 The ng_ubt(4) driver now requires firmwares to be loaded on Realtek 399 adaptors with rtlbtfw(8) utility. It no longer attaches to devices 400 standing in bootloader mode. Firmware files are available in the 401 comms/rtlbt-firmware port. 402 40320241025: 404 The support for the rc_fast_and_loose variable has been removed from 405 rc.subr(8). Users setting rc_fast_and_loose on their systems are 406 advised to make sure their customizations to rc service scripts 407 do not depend on having a single shell environment shared across 408 all the rc service scripts during booting and shutdown. 409 41020241013: 411 The ciss driver was updated to cope better with hotplug events that 412 caused it to panic before, and to support more than 48 drives attached 413 to the card. These changes were made w/o benefit of hardware for testing 414 and ciss(4) users should be on the lookout for regressions. 415 41620240729: 417 The build now defaults to WITHOUT_CLEAN - i.e., no automatic clean 418 is performed at the beginning of buildworld or buildkernel. The 419 WITH_CLEAN src.conf(5) knob can be used to restore the previous 420 behaviour. 421 422 If you encounter incremental build issues, please report them to the 423 freebsd-current mailing list so that a special-case dependency can be 424 added, if necessary. 425 42620240715: 427 We now lean more heavily on ACPI enumeration for some traditional 428 devices. uart has moved from isa to acpi so the hints act as wiring 429 instead of device enumeration. Hints for parallel port, floppy, etc 430 have been removed. Before upgrading, grep your dmesg for lines like: 431 uart1: non-PNP ISA device will be removed from GENERIC in FreeBSD 15. 432 to see if you need to start including hints for the device on isa 433 in your loader.conf or device.hints file. APU1 (but not APU2) boards 434 are known to be affected, but there may be others. 435 43620240712: 437 Support for armv6 has been disconnected and is being removed. 438 43920240617: 440 ifconfig now treats IPv4 addresses without a width or mask as an error. 441 Specify the desired mask or width along with the IP address on the 442 ifconfig command line and in rc.conf. 443 44420240428: 445 OpenBSM auditing runtime (auditd, etc.) has been moved into the new 446 package FreeBSD-audit. If you use OpenBSM auditing and pkgbase, you 447 should install FreeBSD-audit. 448 44920240424: 450 cron, lpr, and ntpd have been moved from FreeBSD-utilities into their 451 own packages. If you use pkgbase, you should install the relevant 452 packages: FreeBSD-cron, FreeBSD-lp, or FreeBSD-ntp. 453 45420240406: 455 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 456 been upgraded to 18.1.6. It is important that you run `make delete-old` 457 as described in the COMMON ITEMS section, otherwise several libc++ 458 headers that are obsolete and need to be removed can cause compilation 459 errors in C++ programs. 460 46120240205: 462 For dynamically linked programs, system calls are now made from 463 libsys rather than libc. No change in linkage is required as 464 libsys is an auxiliary filter for libc. People building custom 465 images must ensure that libsys.so.7 is included. 466 46720240202: 468 Loader now also read configuration files listed in local_loader_conf_files. 469 Files listed here are the last ones read. And /boot/loader.conf.local was 470 moved from loader_conf_files to local_loader_conf_files leaving only 471 loader.conf and device.hints in loader_conf_files by default. 472 473 The following sequencing is applied: 474 475 1. Bootstrap: 476 /boot/defaults/loader.conf 477 478 2. Read loader_conf_files files: 479 /boot/device.hints 480 /boot/loader.conf 481 482 3. Read loader_conf_dirs files: 483 /boot/loader.conf.d/*.conf 484 485 4. And finally, rread local_loader_conf_files files: 486 /boot/loader.conf.local 487 48820240201: 489 sendmail 8.18.1 has been imported and merged. This version enforces 490 stricter RFC compliance by default, especially with respect to line 491 endings. This may cause issues with receiving messages from 492 non-compliant MTAs; please see the first 8.18.1 release note in 493 contrib/sendmail/RELEASE_NOTES for mitigations. 494 49520240111: 496 Commit cc760de2183f changed the internal interface between 497 the nfscommon and nfscl modules. As such, both need to be 498 rebuilt from sources. Therefore, __FreeBSD_version was 499 bumped to 1500010. 500 50120231120: 502 If you have an arm64 system that uses ACPI, you will need to update your 503 loader.efi in the ESP when you update past this point. Detection of ACPI 504 was moved earlier in the binary so the scripts could use it, but old 505 binaries don't have this, so we default to 'no ACPI' in this case. You can 506 undisable ACPI by doing 507 OK unset hint.acpi.0.disabled 508 This can also be used to recover any other system that was updated in the 509 small window where amd64 was also broken. 510 51120231113: 512 The WITHOUT_LLD_IS_LD option has been removed. When LLD is enabled 513 it is always installed as /usr/bin/ld. 514 51520231027: 516 Forward compatibility (running the new code on old kernels) for the 517 "ino64" project have been removed. The need for it has passed long ago. 518 51920231018: 520 Commit 57ce37f9dcd0 changed the internal KAPI between the 521 nfscommon and nfscl modules. Both must be rebuilt from sources. 522 52320231010: 524 dialog(1) has been replaced in base by bsddialog(1), while most of the 525 time replacing a dialog(1) call by a bsddialog(1) call works out of the 526 box, bsddialog(1) is not considered as a drop-in replacement for 527 dialog(1). 528 529 If you do depend on dialog(1) functionality, please install cdialog 530 from ports: 531 532 pkg install cdialog 533 53420230927: 535 The EARLY_AP_STARTUP kernel option is mandatory on x86. The option 536 has been added to DEFAULTS, so it should automatically be included in 537 custom kernel configurations without any additional change. 538 53920230922: 540 A new loader tunable net.pf.default_to_drop allows pf(4)’s default 541 behaviour to be changed from pass to drop. Previously this required 542 recompiling the kernel with the option PF_DEFAULT_TO_DROP. 543 54420230914: 545 Enable splitting out pkgbase manpages into separate packages by 546 default. To disable this, set WITHOUT_MANSPLITPKG=yes in src.conf. 547 54820230911: 549 Move standard include files to the clibs-dev package and move clang 550 internal libraries and headers to clang and clang-dev. Upgrading systems 551 installed using pkgbase past this change involves extra steps to allow 552 for these file moves: 553 554 pkg upgrade -y FreeBSD-utilities 555 pkg upgrade -y FreeBSD-utilities-dev 556 pkg upgrade -y 557 55820230909: 559 Enable vnet sysctl variables to be loader tunable. SYSCTLs which 560 belongs to VNETs can be initialized during early boot or module 561 loading if they are marked with CTLFLAG_TUN and there are 562 corresponding kernel environment variables. 563 56420230901: 565 The WITH_INIT_ALL_PATTERN and WITH_INIT_ALL_ZERO build options have 566 been replaced by INIT_ALL=pattern and INIT_ALL=zero respectively. 567 56820230824: 569 FreeBSD 15.0-CURRENT. 570 57120230817: 572 Serial communication (in boot loaders, kernel, and userland) has 573 been changed to default to 115200 bps, in line with common industry 574 practice and typical firmware serial console redirection 575 configuration. 576 577 Note that the early x86 BIOS bootloader (i.e., boot0sio) does not 578 support rates above 9600 bps and is not changed. boot0sio users may 579 set BOOT_COMCONSOLE_SPEED=9600 to use 9600 for all of the boot 580 components, or use the standard boot0 and have the boot2 stage start 581 with the serial port at 115200. 582 58320230807: 584 Following the general removal of MIPS support, the ath(4) AHB bus- 585 frontend has been removed, too, and building of the PCI support is 586 integrated with the ath(4) main module again. As a result, there's 587 no longer a need for if_ath_pci_load="YES" in /boot/loader.conf or 588 "device ath_pci" in the kernel configuration. 589 59020230803: 591 MAXCPU has been increased to 1024 in the amd64 GENERIC kernel config. 592 Out-of-tree kernel modules will need to be rebuilt. 593 59420230724: 595 CAM has been mechanically updated s/u_int(64|32|16|8)_t/uint\1_t/g 596 to move to the standard uintXX_t types from the old, traditional 597 BSD u_intXX_t types. This should be a NOP, but may cause problems 598 for out of tree changes. The SIMs were not updated since most of 599 the old u_intXX_t uses weren't due to CAM interfaces. 600 60120230713: 602 stable/14 branch created. 603 60420230629: 605 The heuristic for detecting old chromebooks with an EC bug that requires 606 atkbdc driver workarounds has changed. There should be no functional 607 change, but if your old chromebook's keyboard stops working, please 608 file a PR and assign it to imp. 609 61020230623: 611 OpenSSL has been updated to version 3.0, including changes throughout 612 the base system. It is important to rebuild third-party software 613 after upgrading. 614 61520230619: 616 To enable pf rdr rules for connections initiated from the host, pf 617 filter rules can be optionally enabled for packets delivered 618 locally. This can change the behavior of rules which match packets 619 delivered to lo0. To enable this feature: 620 621 sysctl net.pf.filter_local=1 622 service pf restart 623 624 When enabled, its best to ensure that packets delivered locally are not 625 filtered, e.g. by adding a 'skip on lo' rule. 626 62720230613: 628 Improvements to libtacplus(8) mean that tacplus.conf(5) now 629 follows POSIX shell syntax rules. This may cause TACACS+ 630 authentication to fail if the shared secret contains a single 631 quote, double quote, or backslash character which isn't 632 already properly quoted or escaped. 633 63420230612: 635 Belatedly switch the default nvme block device on x86 from nvd to nda. 636 nda created nvd compatibility links by default, so this should be a 637 nop. If this causes problems for your application, set hw.nvme.use_nvd=1 638 in your loader.conf or add `options NVME_USE_NVD=1` to your kernel 639 config. To disable the nvd compatibility aliases, add 640 kern.cam.nda.nvd_compat=0 to loader.conf. The default has been nda on 641 all non-x86 platforms for some time now. If you need to fall back, 642 please email imp@freebsd.org about why. 643 644 Encrypted swap partitions need to be changed from nvd to nda if you 645 migrate, or you need to use the above to switch back to nvd. 646 64720230422: 648 Remove portsnap(8). Users are encouraged to obtain the ports tree 649 using git instead. 650 65120230420: 652 Add jobs.mk to save typing. Enables -j${JOB_MAX} and logging 653 eg. 654 make buildworld-jobs 655 runs 656 make -j${JOB_MAX} buildworld > ../buildworld.log 2>&1 657 658 where JOB_MAX is derived from ncpus in local.sys.mk if not set in env. 659 66020230316: 661 Video related devices for some arm devices have been renamed. 662 If you have a custom kernel config and want to use hdmi output on 663 IMX6 board you need to add "device dwc_hdmi" "device imx6_hdmi" and 664 "device imx6_ipu" to it. 665 If you have a custom kernel config and want to use hdmi output on 666 TI AM335X board you need to add "device tda19988" to it. 667 If you add "device hdmi" in it you need to remove it as it doesn't 668 exist anymore. 669 67020230221: 671 Introduce new kernel options KBD_DELAY1 and KBD_DELAY2. See atkbdc(4) 672 for details. 673 67420230206: 675 sshd now defaults to having X11Forwarding disabled, following upstream. 676 Administrators who wish to enable X11Forwarding should add 677 `X11Forwarding yes` to /etc/ssh/sshd_config. 678 67920230204: 680 Since commit 75d41cb6967 Huawei 3G/4G LTE Mobile Devices do not default 681 to ECM, but NCM mode and need u3g and ucom modules loaded. See cdce(4). 682 68320230130: 684 As of commit 7c40e2d5f685, the dependency on netlink(4) has been added 685 to the linux_common(4) module. Users relying on linux_common may need 686 to compile netlink(4) module if it is not present in their kernel. 687 68820230126: 689 The WITHOUT_CXX option has been removed. C++ components in the base 690 system are now built unconditionally. 691 69220230113: 693 LinuxKPI pci.h changes may require out-of-tree drivers to be recompiled. 694 Bump _FreeBSD_version to 1400078 to be able to detect this change. 695 69620221212: 697 llvm-objump is now always installed as objdump. Previously there was 698 no /usr/bin/objdump unless the WITH_LLVM_BINUTILS knob was used. 699 700 Some LLVM objdump options have a different output format compared to 701 GNU objdump; readelf is available for inspecting ELF files, and GNU 702 objdump is available from the devel/binutils port or package. 703 70420221205: 705 dma(8) has replaced sendmail(8) as the default mta. For people willing 706 to re-enable sendmail(8): 707 708 $ cp /usr/share/examples/sendmail/mailer.conf /etc/mail/mailer.conf 709 710 and add sendmail_enable="YES" to rc.conf. 711 71220221204: 713 hw.bus.disable_failed_devices has changed from 'false' to 'true' by 714 default. Now if newbus succeeds in probing a device, but fails to attach 715 the device, we'll disable the device. In the past, we'd keep retrying 716 the device on each new driver loaded. To get that behavior now, one 717 needs to use devctl to re-enable the device, and reprobe it (or set 718 the sysctl/tunable hw.bus.disable_failed_devices=false). 719 720 NOTE: This was reverted 20221205 due to unexpected compatibility issues 721 72220221122: 723 pf no longer accepts 'scrub fragment crop' or 'scrub fragment drop-ovl'. 724 These configurations are no longer automatically reinterpreted as 725 'scrub fragment reassemble'. 726 72720221121: 728 The WITHOUT_CLANG_IS_CC option has been removed. When Clang is enabled 729 it is always installed as /usr/bin/cc (and c++, cpp). 730 73120221026: 732 Some programs have been moved into separate packages. It is recommended 733 for pkgbase users to do: 734 735 pkg install FreeBSD-dhclient FreeBSD-geom FreeBSD-resolvconf \ 736 FreeBSD-devd FreeBSD-devmatch 737 738 after upgrading to restore all the component that were previously 739 installed. 740 74120221002: 742 OPIE has been removed from the base system. If needed, it can 743 be installed from ports (security/opie) or packages (opie). 744 Otherwise, make sure that your PAM policies do not reference 745 pam_opie or pam_opieaccess. 746 74720220610: 748 LinuxKPI pm.h changes require an update to the latest drm-kmod version 749 before re-compiling to avoid errors. 750 75120211230: 752 The macros provided for the manipulation of CPU sets (e.g. CPU_AND) 753 have been modified to take 2 source arguments instead of only 1. 754 Externally maintained sources that use these macros will have to 755 be adapted. The FreeBSD version has been bumped to 1400046 to 756 reflect this change. 757 75820211214: 759 A number of the kernel include files are able to be included by 760 themselves. A test has been added to buildworld to enforce this. 761 76220211209: 763 Remove mips as a recognized target. This starts the decommissioning of 764 mips support in FreeBSD. mips related items will be removed wholesale in 765 the coming days and weeks. 766 767 This broke the NO_CLEAN build for some people. Either do a clean build 768 or touch 769 lib/clang/include/llvm/Config/Targets.def 770 lib/clang/include/llvm/Config/AsmParsers.def 771 lib/clang/include/llvm/Config/Disassemblers.def 772 lib/clang/include/llvm/Config/AsmPrinters.def 773 before the build to force everything to rebuild that needs to. 774 77520211202: 776 Unbound support for RFC8375: The special-use domain 'home.arpa' is 777 by default blocked. To unblock it use a local-zone nodefault 778 statement in unbound.conf: 779 local-zone: "home.arpa." nodefault 780 781 Or use another type of local-zone to override with your choice. 782 783 The reason for this is discussed in Section 6.1 of RFC8375: 784 Because 'home.arpa.' is not globally scoped and cannot be secured 785 using DNSSEC based on the root domain's trust anchor, there is no way 786 to tell, using a standard DNS query, in which homenet scope an answer 787 belongs. Consequently, users may experience surprising results with 788 such names when roaming to different homenets. 789 79020211110: 791 Commit b8d60729deef changed the TCP congestion control framework so 792 that any of the included congestion control modules could be 793 the single module built into the kernel. Previously newreno 794 was automatically built in through direct reference. As of 795 this commit you are required to declare at least one congestion 796 control module (e.g. 'options CC_NEWRENO') and to also declare a 797 default using the CC_DEFAULT option (e.g. options CC_DEFAULT="newreno\"). 798 The GENERIC configuration includes CC_NEWRENO and defines newreno 799 as the default. If no congestion control option is built into the 800 kernel and you are including networking, the kernel compile will 801 fail. Also if no default is declared the kernel compile will fail. 802 80320211118: 804 Mips has been removed from universe builds. It will be removed from the 805 tree shortly. 806 80720211106: 808 Commit f0c9847a6c47 changed the arguments for VOP_ALLOCATE. 809 The NFS modules must be rebuilt from sources and any out 810 of tree file systems that implement their own VOP_ALLOCATE 811 may need to be modified. 812 81320211022: 814 The synchronous PPP kernel driver sppp(4) has been removed. 815 The cp(4) and ce(4) drivers are now always compiled with netgraph(4) 816 support, formerly enabled by NETGRAPH_CRONYX option. 817 81820211020: 819 sh(1) is now the default shell for the root user. To force root to use 820 the csh shell, please run the following command as root: 821 822 # chsh -s csh 823 82420211004: 825 Ncurses distribution has been split between libtinfow and libncurses 826 with libncurses.so becoming a linker (ld) script to seamlessly link 827 to libtinfow as needed. Bump _FreeBSD_version to 1400035 to reflect 828 this change. 829 83020210923: 831 As of commit 8160a0f62be6, the dummynet module no longer depends on the 832 ipfw module. Dummynet can now be used by pf as well as ipfw. As such 833 users who relied on this dependency may need to include ipfw in the 834 list of modules to load on their systems. 835 83620210922: 837 As of commit 903873ce1560, the mixer(8) utility has got a slightly 838 new syntax. Please refer to the mixer(8) manual page for more 839 information. The old mixer utility can be installed from ports: 840 audio/freebsd-13-mixer 841 84220210911: 843 As of commit 55089ef4f8bb, the global variable nfs_maxcopyrange has 844 been deleted from the nfscommon.ko. As such, nfsd.ko must be built 845 from up to date sources to avoid an undefined reference when 846 being loaded. 847 84820210817: 849 As of commit 62ca9fc1ad56 OpenSSL no longer enables kernel TLS 850 by default. Users can enable kernel TLS via the "KTLS" SSL 851 option. This can be enabled globally by using a custom 852 OpenSSL config file via OPENSSL_CONF or via an 853 application-specific configuration option for applications 854 which permit setting SSL options via SSL_CONF_cmd(3). 855 85620210811: 857 Commit 3ad1e1c1ce20 changed the internal KAPI between the NFS 858 modules. Therefore, all need to be rebuilt from sources. 859 86020210730: 861 Commit b69019c14cd8 removes pf's DIOCGETSTATESNV ioctl. 862 As of be70c7a50d32 it is no longer used by userspace, but it does mean 863 users may not be able to enumerate pf states if they update the kernel 864 past b69019c14cd8 without first updating userspace past be70c7a50d32. 865 86620210729: 867 As of commit 01ad0c007964 if_bridge member interfaces can no longer 868 change their MTU. Changing the MTU of the bridge itself will change the 869 MTU on all member interfaces instead. 870 87120210716: 872 Commit ee29e6f31111 changed the internal KAPI between the nfscommon 873 and nfsd modules. Therefore, both need to be rebuilt from sources. 874 Bump __FreeBSD_version to 1400026 for this KAPI change. 875 87620210715: 877 The 20210707 awk update brought in a change in behavior. This has 878 been corrected as of d4d252c49976. Between these dates, if you 879 installed a new awk binary, you may not be able to build a new 880 kernel because the change in behavior affected the genoffset 881 script used to build the kernel. If you did update, the fix is 882 to update your sources past the above hash and do 883 % cd usr.bin/awk 884 % make clean all 885 % sudo -E make install 886 to enable building kernels again. 887 88820210708: 889 Commit 1e0a518d6548 changed the internal KAPI between the NFS 890 modules. They all need to be rebuilt from sources. I did not 891 bump __FreeBSD_version, since it was bumped recently. 892 89320210707: 894 awk has been updated to the latest one-true-awk version 20210215. 895 This contains a number of minor bug fixes. 896 89720210624: 898 The NFSv4 client now uses the highest minor version of NFSv4 899 supported by the NFSv4 server by default instead of minor version 0, 900 for NFSv4 mounts. 901 The "minorversion" mount option may be used to override this default. 902 90320210618: 904 Bump __FreeBSD_version to 1400024 for LinuxKPI changes. 905 Most notably netdev.h can change now as the (last) dependencies 906 (mlx4/ofed) are now using struct ifnet directly, but also for PCI 907 additions and others. 908 90920210618: 910 The directory "blacklisted" under /usr/share/certs/ has been 911 renamed to "untrusted". 912 91320210611: 914 svnlite has been removed from base. Should you need svn for any reason 915 please install the svn package or port. 916 91720210611: 918 Commit e1a907a25cfa changed the internal KAPI between the krpc 919 and nfsserver. As such, both modules must be rebuilt from 920 sources. Bump __FreeBSD_version to 1400022. 921 92220210610: 923 The an(4) driver has been removed from FreeBSD. 924 92520210608: 926 The vendor/openzfs branch was renamed to vendor/openzfs/legacy to 927 start tracking OpenZFS upstream more closely. Please see 928https://lists.freebsd.org/archives/freebsd-current/2021-June/000153.html 929 for details on how to correct any errors that might result. The 930 short version is that you need to remove the old branch locally: 931 git update-ref -d refs/remotes/freebsd/vendor/openzfs 932 (assuming your upstream origin is named 'freebsd'). 933 93420210525: 935 Commits 17accc08ae15 and de102f870501 add new files to LinuxKPI 936 which break drm-kmod. In addition various other additions where 937 committed. Bump __FreeBSD_version to 1400015 to be able to 938 detect this. 939 94020210513: 941 Commit ca179c4d74f2 changed the package in which the OpenSSL 942 libraries and utilities are packaged. 943 It is recommended for pkgbase user to do: 944 pkg install -f FreeBSD-openssl 945 before pkg upgrade otherwise some dependencies might not be met 946 and pkg will stop working as libssl will not be present anymore 947 on the system. 948 94920210426: 950 Commit 875977314881 changed the internal KAPI between 951 the nfsd and nfscommon modules. As such these modules 952 need to be rebuilt from sources. 953 Without this patch in your NFSv4.1/4.2 server, enabling 954 delegations by setting vfs.nfsd.issue_delegations non-zero 955 is not recommended. 956 95720210411: 958 Commit 7763814fc9c2 changed the internal KAPI between 959 the krpc and NFS. As such, the krpc, nfscommon and 960 nfscl modules must all be rebuilt from sources. 961 Without this patch, NFSv4.1/4.2 mounts should not 962 be done with the nfscbd(8) daemon running, to avoid 963 needing a working back channel for server->client RPCs. 964 96520210330: 966 Commit 01ae8969a9ee fixed the NFSv4.1/4.2 server so that it 967 handles binding of the back channel as required by RFC5661. 968 Until this patch is in your server, avoid use of the "nconnects" 969 mount option for Linux NFSv4.1/4.2 mounts. 970 97120210225: 972 For 64-bit architectures the base system is now built with Position 973 Independent Executable (PIE) support enabled by default. It may be 974 disabled using the WITHOUT_PIE knob. A clean build is required. 975 97620210128: 977 Various LinuxKPI functionality was added which conflicts with DRM. 978 Please update your drm-kmod port to after the __FreeBSD_version 1400003 979 update. 980 98120210121: 982 stable/13 branch created. 983 98420210108: 985 PC Card attachments for all devices have been removed. In the case of 986 wi and cmx, the entire drivers were removed because they were only 987 PC Card devices. FreeBSD_version 1300134 should be used for this 988 since it was bumped so recently. 989 99020210107: 991 Transport-independent parts of HID support have been split off the USB 992 code in to separate subsystem. Kernel configs which include one of 993 ums, ukbd, uhid, atp, wsp, wmt, uaudio, ugold or ucycom drivers should 994 be updated with adding of "device hid" line. 995 99620210105: 997 ncurses installation has been modified to only keep the widechar 998 enabled version. Incremental build is broken for that change, so it 999 requires a clean build. 1000 100120201223: 1002 The FreeBSD project has migrated from Subversion to Git. Temporary 1003 instructions can be found at 1004 https://github.com/bsdimp/freebsd-git-docs/blob/main/src-cvt.md 1005 and other documents in that repo. 1006 100720201216: 1008 The services database has been updated to cover more of the basic 1009 services expected in a modern system. The database is big enough 1010 that it will cause issues in mergemaster in Releases previous to 1011 12.2 and 11.3, or in very old current systems from before r358154. 1012 101320201215: 1014 Obsolete in-tree GDB 6.1.1 has been removed. GDB (including kgdb) 1015 may be installed from ports or packages. 1016 101720201124: 1018 ping6 has been merged into ping. It can now be called as "ping -6". 1019 See ping(8) for details. 1020 102120201108: 1022 Default value of net.add_addr_allfibs has been changed to 0. 1023 If you have multi-fib configuration and rely on existence of all 1024 interface routes in every fib, you need to set the above sysctl to 1. 1025 102620201030: 1027 The internal pre-processor in the calendar(1) program has been 1028 extended to support more C pre-processor commands (e.g. #ifdef, #else, 1029 and #undef) and to detect unbalanced conditional statements. 1030 Error messages have been extended to include the filename and line 1031 number if processing stops to help fixing malformed data files. 1032 103320201026: 1034 All the data files for the calendar(1) program, except calendar.freebsd, 1035 have been moved to the deskutils/calendar-data port, much like the 1036 jewish calendar entries were moved to deskutils/hebcal years ago. After 1037 make delete-old-files, you need to install it to retain full 1038 functionality. calendar(1) will issue a reminder for files it can't 1039 find. 1040 104120200923: 1042 LINT files are no longer generated. We now include the relevant NOTES 1043 files. Note: This may cause conflicts with updating in some cases. 1044 find sys -name LINT\* -delete 1045 is suggested across this commit to remove the generated LINT files. 1046 1047 If you have tried to update with generated files there, the svn 1048 command you want to un-auger the tree is 1049 cd sys/amd64/conf 1050 svn revert -R . 1051 and then do the above find from the top level. Substitute 'amd64' 1052 above with where the error message indicates a conflict. 1053 105420200824: 1055 OpenZFS support has been integrated. Do not upgrade root pools until 1056 the loader is updated to support zstd. Furthermore, we caution against 1057 'zpool upgrade' for the next few weeks. The change should be transparent 1058 unless you want to use new features. 1059 1060 Not all "NO_CLEAN" build scenarios work across these changes. Many 1061 scenarios have been tested and fixed, but rebuilding kernels without 1062 rebuilding world may fail. 1063 1064 The ZFS cache file has moved from /boot to /etc to match the OpenZFS 1065 upstream default. A fallback to /boot has been added for mountroot. 1066 1067 Pool auto import behavior at boot has been moved from the kernel module 1068 to an explicit "zpool import -a" in one of the rc scripts enabled by 1069 zfs_enable=YES. This means your non-root zpools won't auto import until 1070 you upgrade your /etc/rc.d files. 1071 107220200824: 1073 The resume code now notifies devd with the 'kernel' system 1074 rather than the old 'kern' subsystem to be consistent with 1075 other use. The old notification will be created as well, but 1076 will be removed prior to FreeBSD 14.0. 1077 107820200821: 1079 r362275 changed the internal API between the kernel RPC and the 1080 NFS modules. As such, all the modules must be recompiled from 1081 sources. 1082 108320200817: 1084 r364330 modified the internal API used between the NFS modules. 1085 As such, all the NFS modules must be re-compiled from sources. 1086 108720200816: 1088 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1089 been upgraded to 11.0.0. Please see the 20141231 entry below for 1090 information about prerequisites and upgrading, if you are not already 1091 using clang 3.5.0 or higher. 1092 109320200810: 1094 r364092 modified the internal ABI used between the kernel NFS 1095 modules. As such, all of these modules need to be rebuilt 1096 from sources, so a version bump was done. 1097 109820200807: 1099 Makefile.inc has been updated to work around the issue documented in 1100 20200729. It was a case where the optimization of using symbolic links 1101 to point to binaries created a situation where we'd run new binaries 1102 with old libraries starting midway through the installworld process. 1103 110420200729: 1105 r363679 has redefined some undefined behavior in regcomp(3); notably, 1106 extraneous escapes of most ordinary characters will no longer be 1107 accepted. An exp-run has identified all of the problems with this in 1108 ports, but other non-ports software may need extra escapes removed to 1109 continue to function. 1110 1111 Because of this change, installworld may encounter the following error 1112 from rtld: Undefined symbol "regcomp@FBSD_1.6" -- It is imperative that 1113 you do not halt installworld. Instead, let it run to completion (whether 1114 successful or not) and run installworld once more. 1115 111620200627: 1117 A new implementation of bc and dc has been imported in r362681. This 1118 implementation corrects non-conformant behavior of the previous bc 1119 and adds GNU bc compatible options. It offers a number of extensions, 1120 is much faster on large values, and has support for message catalogs 1121 (a number of languages are already supported, contributions of further 1122 languages welcome). The option WITHOUT_GH_BC can be used to build the 1123 world with the previous versions of bc and dc. 1124 112520200625: 1126 r362639 changed the internal API used between the NFS kernel modules. 1127 As such, they all need to be rebuilt from sources. 1128 112920200613: 1130 r362158 changed the arguments for VFS_CHECKEXP(). As such, any 1131 out of tree file systems need to be modified and rebuilt. 1132 Also, any file systems that are modules must be rebuilt. 1133 113420200604: 1135 read(2) of a directory fd is now rejected by default. root may 1136 re-enable it for system root only on non-ZFS filesystems with the 1137 security.bsd.allow_read_dir sysctl(8) MIB if 1138 security.bsd.suser_enabled=1. 1139 1140 It may be advised to setup aliases for grep to default to `-d skip` if 1141 commonly non-recursively grepping a list that includes directories and 1142 the potential for the resulting stderr output is not tolerable. Example 1143 aliases are now installed, commented out, in /root/.cshrc and 1144 /root/.shrc. 1145 114620200523: 1147 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1148 been upgraded to 10.0.1. Please see the 20141231 entry below for 1149 information about prerequisites and upgrading, if you are not already 1150 using clang 3.5.0 or higher. 1151 115220200512: 1153 Support for obsolete compilers has been removed from the build system. 1154 Clang 6 and GCC 6.4 are the minimum supported versions. 1155 115620200424: 1157 closefrom(2) has been moved under COMPAT12, and replaced in libc with a 1158 stub that calls close_range(2). If using a custom kernel configuration, 1159 you may want to ensure that the COMPAT_FREEBSD12 option is included, as 1160 a slightly older -CURRENT userland and older FreeBSD userlands may not 1161 be functional without closefrom(2). 1162 116320200414: 1164 Upstream DTS from Linux 5.6 was merged and they now have the SID 1165 and THS (Secure ID controller and THermal Sensor) node present. 1166 The DTB overlays have now been removed from the tree for the H3/H5 and 1167 A64 SoCs and the aw_sid and aw_thermal driver have been updated to 1168 deal with upstream DTS. If you are using those overlays you need to 1169 remove them from loader.conf and update the DTBs on the FAT partition. 1170 117120200310: 1172 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1173 been upgraded to 10.0.0. Please see the 20141231 entry below for 1174 information about prerequisites and upgrading, if you are not already 1175 using clang 3.5.0 or higher. 1176 117720200309: 1178 The amd(8) automount daemon has been removed from the source tree. 1179 As of FreeBSD 10.1 autofs(5) is the preferred tool for automounting. 1180 amd is still available in the sysutils/am-utils port. 1181 118220200301: 1183 Removed brooktree driver (bktr.4) from the tree. 1184 118520200229: 1186 The WITH_GPL_DTC option has been removed. The BSD-licenced device tree 1187 compiler in usr.bin/dtc is used on all architectures which use dtc, and 1188 the GPL dtc is available (if needed) from the sysutils/dtc port. 1189 119020200229: 1191 The WITHOUT_LLVM_LIBUNWIND option has been removed. LLVM's libunwind 1192 is used by all supported CPU architectures. 1193 119420200229: 1195 GCC 4.2.1 has been removed from the tree. The WITH_GCC, 1196 WITH_GCC_BOOTSTRAP, and WITH_GNUCXX options are no longer available. 1197 Users who wish to build FreeBSD with GCC must use the external toolchain 1198 ports or packages. 1199 120020200220: 1201 ncurses has been updated to a newer version (6.2-20200215). Given the ABI 1202 has changed, users will have to rebuild all the ports that are linked to 1203 ncurses. 1204 120520200217: 1206 The size of struct vnet and the magic cookie have changed. 1207 Users need to recompile libkvm and all modules using VIMAGE 1208 together with their new kernel. 1209 121020200212: 1211 Defining the long deprecated NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB, 1212 NO_MAN, NO_PROFILE, and NO_WARNS variables is now an error. Update 1213 your Makefiles and scripts to define MK_<var>=no instead as required. 1214 1215 One exception to this is that program or library Makefiles should 1216 define MAN to empty rather than setting MK_MAN=no. 1217 121820200108: 1219 Clang/LLVM is now the default compiler and LLD the default 1220 linker for riscv64. 1221 122220200107: 1223 make universe no longer uses GCC 4.2.1 on any architectures. 1224 Architectures not supported by in-tree Clang/LLVM require an 1225 external toolchain package. 1226 122720200104: 1228 GCC 4.2.1 is now not built by default, as part of the GCC 4.2.1 1229 retirement plan. Specifically, the GCC, GCC_BOOTSTRAP, and GNUCXX 1230 options default to off for all supported CPU architectures. As a 1231 short-term transition aid they may be enabled via WITH_* options. 1232 GCC 4.2.1 is expected to be removed from the tree on 2020-03-31. 1233 123420200102: 1235 Support for armv5 has been disconnected and is being removed. The 1236 machine combination MACHINE=arm MACHINE_ARCH=arm is no longer valid. 1237 You must now use a MACHINE_ARCH of armv6 or armv7. The default 1238 MACHINE_ARCH for MACHINE=arm is now armv7. 1239 124020191226: 1241 Clang/LLVM is now the default compiler for all powerpc architectures. 1242 LLD is now the default linker for powerpc64. The change for powerpc64 1243 also includes a change to the ELFv2 ABI, incompatible with the existing 1244 ABI. 1245 124620191226: 1247 Kernel-loadable random(4) modules are no longer unloadable. 1248 124920191222: 1250 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1251 been upgraded to 9.0.1. Please see the 20141231 entry below for 1252 information about prerequisites and upgrading, if you are not already 1253 using clang 3.5.0 or higher. 1254 125520191212: 1256 r355677 has modified the internal interface used between the 1257 NFS modules in the kernel. As such, they must all be upgraded 1258 simultaneously. I will do a version bump for this. 1259 126020191205: 1261 The root certificates of the Mozilla CA Certificate Store have been 1262 imported into the base system and can be managed with the certctl(8) 1263 utility. If you have installed the security/ca_root_nss port or package 1264 with the ETCSYMLINK option (the default), be advised that there may be 1265 differences between those included in the port and those included in 1266 base due to differences in nss branch used as well as general update 1267 frequency. Note also that certctl(8) cannot manage certs in the 1268 format used by the security/ca_root_nss port. 1269 127020191120: 1271 The amd(8) automount daemon has been disabled by default, and will be 1272 removed in the future. As of FreeBSD 10.1 the autofs(5) is available 1273 for automounting. 1274 127520191107: 1276 The nctgpio and wbwd drivers have been moved to the superio bus. 1277 If you have one of these drivers in a kernel configuration, then 1278 you should add device superio to it. If you use one of these drivers 1279 as a module and you compile a custom set of modules, then you should 1280 add superio to the set. 1281 128220191021: 1283 KPIs for network drivers to access interface addresses have changed. 1284 Users need to recompile NIC driver modules together with kernel. 1285 128620191021: 1287 The net.link.tap.user_open sysctl no longer prevents user opening of 1288 already created /dev/tapNN devices. Access is still controlled by 1289 node permissions, just like tun devices. The net.link.tap.user_open 1290 sysctl is now used only to allow users to perform devfs cloning of 1291 tap devices, and the subsequent open may not succeed if the user is not 1292 in the appropriate group. This sysctl may be deprecated/removed 1293 completely in the future. 1294 129520191009: 1296 mips, powerpc, and sparc64 are no longer built as part of 1297 universe / tinderbox unless MAKE_OBSOLETE_GCC is defined. If 1298 not defined, mips, powerpc, and sparc64 builds will look for 1299 the xtoolchain binaries and if installed use them for universe 1300 builds. As llvm 9.0 becomes vetted for these architectures, they 1301 will be removed from the list. 1302 130320191009: 1304 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1305 been upgraded to 9.0.0. Please see the 20141231 entry below for 1306 information about prerequisites and upgrading, if you are not already 1307 using clang 3.5.0 or higher. 1308 130920191003: 1310 The hpt27xx, hptmv, hptnr, and hptrr drivers have been removed from 1311 GENERIC. They are available as modules and can be loaded by adding 1312 to /boot/loader.conf hpt27xx_load="YES", hptmv_load="YES", 1313 hptnr_load="YES", or hptrr_load="YES", respectively. 1314 131520190913: 1316 ntpd no longer by default locks its pages in memory, allowing them 1317 to be paged out by the kernel. Use rlimit memlock to restore 1318 historic BSD behaviour. For example, add "rlimit memlock 32" 1319 to ntp.conf to lock up to 32 MB of ntpd address space in memory. 1320 132120190823: 1322 Several of ping6's options have been renamed for better consistency 1323 with ping. If you use any of -ARWXaghmrtwx, you must update your 1324 scripts. See ping6(8) for details. 1325 132620190727: 1327 The vfs.fusefs.sync_unmount and vfs.fusefs.init_backgrounded sysctls 1328 and the "-o sync_unmount" and "-o init_backgrounded" mount options have 1329 been removed from mount_fusefs(8). You can safely remove them from 1330 your scripts, because they had no effect. 1331 1332 The vfs.fusefs.fix_broken_io, vfs.fusefs.sync_resize, 1333 vfs.fusefs.refresh_size, vfs.fusefs.mmap_enable, 1334 vfs.fusefs.reclaim_revoked, and vfs.fusefs.data_cache_invalidate 1335 sysctls have been removed. If you felt the need to set any of them to 1336 a non-default value, please tell asomers@FreeBSD.org why. 1337 133820190713: 1339 Default permissions on the /var/account/acct file (and copies of it 1340 rotated by periodic daily scripts) are changed from 0644 to 0640 1341 because the file contains sensitive information that should not be 1342 world-readable. If the /var/account directory must be created by 1343 rc.d/accounting, the mode used is now 0750. Admins who use the 1344 accounting feature are encouraged to change the mode of an existing 1345 /var/account directory to 0750 or 0700. 1346 134720190620: 1348 Entropy collection and the /dev/random device are no longer optional 1349 components. The "device random" option has been removed. 1350 Implementations of distilling algorithms can still be made loadable 1351 with "options RANDOM_LOADABLE" (e.g., random_fortuna.ko). 1352 135320190612: 1354 Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have 1355 been upgraded to 8.0.1. Please see the 20141231 entry below for 1356 information about prerequisites and upgrading, if you are not already 1357 using clang 3.5.0 or higher. 1358 135920190608: 1360 A fix was applied to i386 kernel modules to avoid panics with 1361 dpcpu or vnet. Users need to recompile i386 kernel modules 1362 having pcpu or vnet sections or they will refuse to load. 1363 136420190513: 1365 User-wired pages now have their own counter, 1366 vm.stats.vm.v_user_wire_count. The vm.max_wired sysctl was renamed 1367 to vm.max_user_wired and changed from an unsigned int to an unsigned 1368 long. bhyve VMs wired with the -S are now subject to the user 1369 wiring limit; the vm.max_user_wired sysctl may need to be tuned to 1370 avoid running into the limit. 1371 137220190507: 1373 The IPSEC option has been removed from GENERIC. Users requiring 1374 ipsec(4) must now load the ipsec(4) kernel module. 1375 137620190507: 1377 The tap(4) driver has been folded into tun(4), and the module has been 1378 renamed to tuntap. You should update any kld_list="if_tap" or 1379 kld_list="if_tun" entries in /etc/rc.conf, if_tap_load="YES" or 1380 if_tun_load="YES" entries in /boot/loader.conf to load the if_tuntap 1381 module instead, and "device tap" or "device tun" entries in kernel 1382 config files to select the tuntap device instead. 1383 138420190418: 1385 The following knobs have been added related to tradeoffs between 1386 safe use of the random device and availability in the absence of 1387 entropy: 1388 1389 kern.random.initial_seeding.bypass_before_seeding: tunable; set 1390 non-zero to bypass the random device prior to seeding, or zero to 1391 block random requests until the random device is initially seeded. 1392 For now, set to 1 (unsafe) by default to restore pre-r346250 boot 1393 availability properties. 1394 1395 kern.random.initial_seeding.read_random_bypassed_before_seeding: 1396 read-only diagnostic sysctl that is set when bypass is enabled and 1397 read_random(9) is bypassed, to enable programmatic handling of this 1398 initial condition, if desired. 1399 1400 kern.random.initial_seeding.arc4random_bypassed_before_seeding: 1401 Similar to the above, but for arc4random(9) initial seeding. 1402 1403 kern.random.initial_seeding.disable_bypass_warnings: tunable; set 1404 non-zero to disable warnings in dmesg when the same conditions are 1405 met as for the diagnostic sysctls above. Defaults to zero, i.e., 1406 produce warnings in dmesg when the conditions are met. 1407 140820190416: 1409 The loadable random module KPI has changed; the random_infra_init() 1410 routine now requires a 3rd function pointer for a bool (*)(void) 1411 method that returns true if the random device is seeded (and 1412 therefore unblocked). 1413 141420190404: 1415 r345895 reverts r320698. This implies that an nfsuserd(8) daemon 1416 built from head sources between r320757 (July 6, 2017) and 1417 r338192 (Aug. 22, 2018) will not work unless the "-use-udpsock" 1418 is added to the command line. 1419 nfsuserd daemons built from head sources that are post-r338192 are 1420 not affected and should continue to work. 1421 142220190320: 1423 The fuse(4) module has been renamed to fusefs(4) for consistency with 1424 other filesystems. You should update any kld_load="fuse" entries in 1425 /etc/rc.conf, fuse_load="YES" entries in /boot/loader.conf, and 1426 "options FUSE" entries in kernel config files. 1427 142820190304: 1429 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1430 8.0.0. Please see the 20141231 entry below for information about 1431 prerequisites and upgrading, if you are not already using clang 3.5.0 1432 or higher. 1433 143420190226: 1435 geom_uzip(4) depends on the new module xz. If geom_uzip is statically 1436 compiled into your custom kernel, add 'device xz' statement to the 1437 kernel config. 1438 143920190219: 1440 drm and drm2 have been removed from the tree. Please see 1441 https://wiki.freebsd.org/Graphics for the latest information on 1442 migrating to the drm ports. 1443 144420190131: 1445 Iflib is no longer unconditionally compiled into the kernel. Drivers 1446 using iflib and statically compiled into the kernel, now require 1447 the 'device iflib' config option. For the same drivers loaded as 1448 modules on kernels not having 'device iflib', the iflib.ko module 1449 is loaded automatically. 1450 145120190125: 1452 The IEEE80211_AMPDU_AGE and AH_SUPPORT_AR5416 kernel configuration 1453 options no longer exist since r343219 and r343427 respectively; 1454 nothing uses them, so they should be just removed from custom 1455 kernel config files. 1456 145720181230: 1458 r342635 changes the way efibootmgr(8) works by requiring users to add 1459 the -b (bootnum) parameter for commands where the bootnum was previously 1460 specified with each option. For example 'efibootmgr -B 0001' is now 1461 'efibootmgr -B -b 0001'. 1462 146320181220: 1464 r342286 modifies the NFSv4 server so that it obeys vfs.nfsd.nfs_privport 1465 in the same as it is applied to NFSv2 and 3. This implies that NFSv4 1466 servers that have vfs.nfsd.nfs_privport set will only allow mounts 1467 from clients using a reserved port. Since both the FreeBSD and Linux 1468 NFSv4 clients use reserved ports by default, this should not affect 1469 most NFSv4 mounts. 1470 147120181219: 1472 The XLP config has been removed. We can't support 64-bit atomics in this 1473 kernel because it is running in 32-bit mode. XLP users must transition 1474 to running a 64-bit kernel (XLP64 or XLPN32). 1475 1476 The mips GXEMUL support has been removed from FreeBSD. MALTA* + qemu is 1477 the preferred emulator today and we don't need two different ones. 1478 1479 The old sibyte / swarm / Broadcom BCM1250 support has been 1480 removed from the mips port. 1481 148220181211: 1483 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1484 7.0.1. Please see the 20141231 entry below for information about 1485 prerequisites and upgrading, if you are not already using clang 3.5.0 1486 or higher. 1487 148820181211: 1489 Remove the timed and netdate programs from the base tree. Setting 1490 the time with these daemons has been obsolete for over a decade. 1491 149220181126: 1493 On amd64, arm64 and armv7 (architectures that install LLVM's ld.lld 1494 linker as /usr/bin/ld) GNU ld is no longer installed as ld.bfd, as 1495 it produces broken binaries when ifuncs are in use. Users needing 1496 GNU ld should install the binutils port or package. 1497 149820181123: 1499 The BSD crtbegin and crtend code has been enabled by default. It has 1500 had extensive testing on amd64, arm64, and i386. It can be disabled 1501 by building a world with -DWITHOUT_BSD_CRTBEGIN. 1502 150320181115: 1504 The set of CTM commands (ctm, ctm_smail, ctm_rmail, ctm_dequeue) 1505 has been converted to a port (misc/ctm) and will be removed from 1506 FreeBSD-13. It is available as a package (ctm) for all supported 1507 FreeBSD versions. 1508 150920181110: 1510 The default newsyslog.conf(5) file has been changed to only include 1511 files in /etc/newsyslog.conf.d/ and /usr/local/etc/newsyslog.conf.d/ if 1512 the filenames end in '.conf' and do not begin with a '.'. 1513 1514 You should check the configuration files in these two directories match 1515 this naming convention. You can verify which configuration files are 1516 being included using the command: 1517 $ newsyslog -Nrv 1518 151920181019: 1520 Stable/12 was branched created. 1521 152220181015: 1523 Ports for the DRM modules have been simplified. Now, amd64 users should 1524 just install the drm-kmod port. All others should install 1525 drm-legacy-kmod. 1526 1527 Graphics hardware that's newer than about 2010 usually works with 1528 drm-kmod. For hardware older than 2013, however, some users will need 1529 to use drm-legacy-kmod if drm-kmod doesn't work for them. Hardware older 1530 than 2008 usually only works in drm-legacy-kmod. The graphics team can 1531 only commit to hardware made since 2013 due to the complexity of the 1532 market and difficulty to test all the older cards effectively. If you 1533 have hardware supported by drm-kmod, you are strongly encouraged to use 1534 that as you will get better support. 1535 1536 Other than KPI chasing, drm-legacy-kmod will not be updated. As outlined 1537 elsewhere, the drm and drm2 modules will be eliminated from the src base 1538 soon (with a limited exception for arm). Please update to the package 1539 asap and report any issues to x11@freebsd.org. 1540 1541 Generally, anybody using the drm*-kmod packages should add 1542 WITHOUT_DRM_MODULE=t and WITHOUT_DRM2_MODULE=t to avoid nasty 1543 cross-threading surprises, especially with automatic driver 1544 loading from X11 startup. These will become the defaults in 13-current 1545 shortly. 1546 154720181012: 1548 The ixlv(4) driver has been renamed to iavf(4). As a consequence, 1549 custom kernel and module loading configuration files must be updated 1550 accordingly. Moreover, interfaces previous presented as ixlvN to the 1551 system are now exposed as iavfN and network configuration files must 1552 be adjusted as necessary. 1553 155420181009: 1555 OpenSSL has been updated to version 1.1.1. This update included 1556 additional various API changes throughout the base system. It is 1557 important to rebuild third-party software after upgrading. The value 1558 of __FreeBSD_version has been bumped accordingly. 1559 156020181006: 1561 The legacy DRM modules and drivers have now been added to the loader's 1562 module blacklist, in favor of loading them with kld_list in rc.conf(5). 1563 The module blacklist may be overridden with the loader.conf(5) 1564 'module_blacklist' variable, but loading them via rc.conf(5) is strongly 1565 encouraged. 1566 156720181002: 1568 The cam(4) based nda(4) driver will be used over nvd(4) by default on 1569 powerpc64. You may set 'options NVME_USE_NVD=1' in your kernel conf or 1570 loader tunable 'hw.nvme.use_nvd=1' if you wish to use the existing 1571 driver. Make sure to edit /boot/etc/kboot.conf and fstab to use the 1572 nda device name. 1573 157420180913: 1575 Reproducible build mode is now on by default, in preparation for 1576 FreeBSD 12.0. This eliminates build metadata such as the user, 1577 host, and time from the kernel (and uname), unless the working tree 1578 corresponds to a modified checkout from a version control system. 1579 The previous behavior can be obtained by setting the /etc/src.conf 1580 knob WITHOUT_REPRODUCIBLE_BUILD. 1581 158220180826: 1583 The Yarrow CSPRNG has been removed from the kernel as it has not been 1584 supported by its designers since at least 2003. Fortuna has been the 1585 default since FreeBSD-11. 1586 158720180822: 1588 devctl freeze/thaw have gone into the tree, the rc scripts have been 1589 updated to use them and devmatch has been changed. You should update 1590 kernel, userland and rc scripts all at the same time. 1591 159220180818: 1593 The default interpreter has been switched from 4th to Lua. 1594 LOADER_DEFAULT_INTERP, documented in build(7), will override the default 1595 interpreter. If you have custom FORTH code you will need to set 1596 LOADER_DEFAULT_INTERP=4th (valid values are 4th, lua or simp) in 1597 src.conf for the build. This will create default hard links between 1598 loader and loader_4th instead of loader and loader_lua, the new default. 1599 If you are using UEFI it will create the proper hard link to loader.efi. 1600 1601 bhyve uses userboot.so. It remains 4th-only until some issues are solved 1602 regarding coexisting with multiple versions of FreeBSD are resolved. 1603 160420180815: 1605 ls(1) now respects the COLORTERM environment variable used in other 1606 systems and software to indicate that a colored terminal is both 1607 supported and desired. If ls(1) is suddenly emitting colors, they may 1608 be disabled again by either removing the unwanted COLORTERM from your 1609 environment, or using `ls --color=never`. The ls(1) specific CLICOLOR 1610 may not be observed in a future release. 1611 161220180808: 1613 The default pager for most commands has been changed to "less". To 1614 restore the old behavior, set PAGER="more" and MANPAGER="more -s" in 1615 your environment. 1616 161720180731: 1618 The jedec_ts(4) driver has been removed. A superset of its functionality 1619 is available in the jedec_dimm(4) driver, and the manpage for that 1620 driver includes migration instructions. If you have "device jedec_ts" 1621 in your kernel configuration file, it must be removed. 1622 162320180730: 1624 amd64/GENERIC now has EFI runtime services, EFIRT, enabled by default. 1625 This should have no effect if the kernel is booted via BIOS/legacy boot. 1626 EFIRT may be disabled via a loader tunable, efi.rt.disabled, if a system 1627 has a buggy firmware that prevents a successful boot due to use of 1628 runtime services. 1629 163020180727: 1631 Atmel AT91RM9200 and AT91SAM9, Cavium CNS 11xx and XScale 1632 support has been removed from the tree. These ports were 1633 obsolete and/or known to be broken for many years. 1634 163520180723: 1636 loader.efi has been augmented to participate more fully in the 1637 UEFI boot manager protocol. loader.efi will now look at the 1638 BootXXXX environment variable to determine if a specific kernel 1639 or root partition was specified. XXXX is derived from BootCurrent. 1640 efibootmgr(8) manages these standard UEFI variables. 1641 164220180720: 1643 zfsloader's functionality has now been folded into loader. 1644 zfsloader is no longer necessary once you've updated your 1645 boot blocks. For a transition period, we will install a 1646 hardlink for zfsloader to loader to allow a smooth transition 1647 until the boot blocks can be updated (hard link because old 1648 zfs boot blocks don't understand symlinks). 1649 165020180719: 1651 ARM64 now have efifb support, if you want to have serial console 1652 on your arm64 board when an screen is connected and the bootloader 1653 setup a frame buffer for us to use, just add : 1654 boot_serial=YES 1655 boot_multicons=YES 1656 in /boot/loader.conf 1657 For Raspberry Pi 3 (RPI) users, this is needed even if you don't have 1658 an screen connected as the firmware will setup a frame buffer are that 1659 u-boot will expose as an EFI frame buffer. 1660 166120180719: 1662 New uid:gid added, ntpd:ntpd (123:123). Be sure to run mergemaster 1663 or take steps to update /etc/passwd before doing installworld on 1664 existing systems. Do not skip the "mergemaster -Fp" step before 1665 installworld, as described in the update procedures near the bottom 1666 of this document. Also, rc.d/ntpd now starts ntpd(8) as user ntpd 1667 if the new mac_ntpd(4) policy is available, unless ntpd_flags or 1668 the ntp config file contain options that change file/dir locations. 1669 When such options (e.g., "statsdir" or "crypto") are used, ntpd can 1670 still be run as non-root by setting ntpd_user=ntpd in rc.conf, after 1671 taking steps to ensure that all required files/dirs are accessible 1672 by the ntpd user. 1673 167420180717: 1675 Big endian arm support has been removed. 1676 167720180711: 1678 The static environment setup in kernel configs is no longer mutually 1679 exclusive with the loader(8) environment by default. In order to 1680 restore the previous default behavior of disabling the loader(8) 1681 environment if a static environment is present, you must specify 1682 loader_env.disabled=1 in the static environment. 1683 168420180705: 1685 The ABI of syscalls used by management tools like sockstat and 1686 netstat has been broken to allow 32-bit binaries to work on 1687 64-bit kernels without modification. These programs will need 1688 to match the kernel in order to function. External programs may 1689 require minor modifications to accommodate a change of type in 1690 structures from pointers to 64-bit virtual addresses. 1691 169220180702: 1693 On i386 and amd64 atomics are now inlined. Out of tree modules using 1694 atomics will need to be rebuilt. 1695 169620180701: 1697 The '%I' format in the kern.corefile sysctl limits the number of 1698 core files that a process can generate to the number stored in the 1699 debug.ncores sysctl. The '%I' format is replaced by the single digit 1700 index. Previously, if all indexes were taken the kernel would overwrite 1701 only a core file with the highest index in a filename. 1702 Currently the system will create a new core file if there is a free 1703 index or if all slots are taken it will overwrite the oldest one. 1704 170520180630: 1706 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1707 6.0.1. Please see the 20141231 entry below for information about 1708 prerequisites and upgrading, if you are not already using clang 3.5.0 1709 or higher. 1710 171120180628: 1712 r335753 introduced a new quoting method. However, etc/devd/devmatch.conf 1713 needed to be changed to work with it. This change was made with r335763 1714 and requires a mergemaster / etcupdate / etc to update the installed 1715 file. 1716 171720180612: 1718 r334930 changed the interface between the NFS modules, so they all 1719 need to be rebuilt. r335018 did a __FreeBSD_version bump for this. 1720 172120180530: 1722 As of r334391 lld is the default amd64 system linker; it is installed 1723 as /usr/bin/ld. Kernel build workarounds (see 20180510 entry) are no 1724 longer necessary. 1725 172620180530: 1727 The kernel / userland interface for devinfo changed, so you'll 1728 need a new kernel and userland as a pair for it to work (rebuilding 1729 lib/libdevinfo is all that's required). devinfo and devmatch will 1730 not work, but everything else will when there's a mismatch. 1731 173220180523: 1733 The on-disk format for hwpmc callchain records has changed to include 1734 threadid corresponding to a given record. This changes the field offsets 1735 and thus requires that libpmcstat be rebuilt before using a kernel 1736 later than r334108. 1737 173820180517: 1739 The vxge(4) driver has been removed. This driver was introduced into 1740 HEAD one week before the Exar left the Ethernet market and is not 1741 known to be used. If you have device vxge in your kernel config file 1742 it must be removed. 1743 174420180510: 1745 The amd64 kernel now requires a ld that supports ifunc to produce a 1746 working kernel, either lld or a newer binutils. lld is built by default 1747 on amd64, and the 'buildkernel' target uses it automatically. However, 1748 it is not the default linker, so building the kernel the traditional 1749 way requires LD=ld.lld on the command line (or LD=/usr/local/bin/ld for 1750 binutils port/package). lld will soon be default, and this requirement 1751 will go away. 1752 1753 NOTE: As of r334391 lld is the default system linker on amd64, and no 1754 workaround is necessary. 1755 175620180508: 1757 The nxge(4) driver has been removed. This driver was for PCI-X 10g 1758 cards made by s2io/Neterion. The company was acquired by Exar and 1759 no longer sells or supports Ethernet products. If you have device 1760 nxge in your kernel config file it must be removed. 1761 176220180504: 1763 The tz database (tzdb) has been updated to 2018e. This version more 1764 correctly models time stamps in time zones with negative DST such as 1765 Europe/Dublin (from 1971 on), Europe/Prague (1946/7), and 1766 Africa/Windhoek (1994/2017). This does not affect the UT offsets, only 1767 time zone abbreviations and the tm_isdst flag. 1768 176920180502: 1770 The ixgb(4) driver has been removed. This driver was for an early and 1771 uncommon legacy PCI 10GbE for a single ASIC, Intel 82597EX. Intel 1772 quickly shifted to the long lived ixgbe family. If you have device 1773 ixgb in your kernel config file it must be removed. 1774 177520180501: 1776 The lmc(4) driver has been removed. This was a WAN interface 1777 card that was already reportedly rare in 2003, and had an ambiguous 1778 license. If you have device lmc in your kernel config file it must 1779 be removed. 1780 178120180413: 1782 Support for Arcnet networks has been removed. If you have device 1783 arcnet or device cm in your kernel config file they must be 1784 removed. 1785 178620180411: 1787 Support for FDDI networks has been removed. If you have device 1788 fddi or device fpa in your kernel config file they must be 1789 removed. 1790 179120180406: 1792 In addition to supporting RFC 3164 formatted messages, the 1793 syslogd(8) service is now capable of parsing RFC 5424 formatted 1794 log messages. The main benefit of using RFC 5424 is that clients 1795 may now send log messages with timestamps containing year numbers, 1796 microseconds and time zone offsets. 1797 1798 Similarly, the syslog(3) C library function has been altered to 1799 send RFC 5424 formatted messages to the local system logging 1800 daemon. On systems using syslogd(8), this change should have no 1801 negative impact, as long as syslogd(8) and the C library are 1802 updated at the same time. On systems using a different system 1803 logging daemon, it may be necessary to make configuration 1804 adjustments, depending on the software used. 1805 1806 When using syslog-ng, add the 'syslog-protocol' flag to local 1807 input sources to enable parsing of RFC 5424 formatted messages: 1808 1809 source src { 1810 unix-dgram("/var/run/log" flags(syslog-protocol)); 1811 } 1812 1813 When using rsyslog, disable the 'SysSock.UseSpecialParser' option 1814 of the 'imuxsock' module to let messages be processed by the 1815 regular RFC 3164/5424 parsing pipeline: 1816 1817 module(load="imuxsock" SysSock.UseSpecialParser="off") 1818 1819 Do note that these changes only affect communication between local 1820 applications and syslogd(8). The format that syslogd(8) uses to 1821 store messages on disk or forward messages to other systems 1822 remains unchanged. syslogd(8) still uses RFC 3164 for these 1823 purposes. Options to customize this behaviour will be added in the 1824 future. Utilities that process log files stored in /var/log are 1825 thus expected to continue to function as before. 1826 1827 __FreeBSD_version has been incremented to 1200061 to denote this 1828 change. 1829 183020180328: 1831 Support for token ring networks has been removed. If you 1832 have "device token" in your kernel config you should remove 1833 it. No device drivers supported token ring. 1834 183520180323: 1836 makefs was modified to be able to tag ISO9660 El Torito boot catalog 1837 entries as EFI instead of overloading the i386 tag as done previously. 1838 The amd64 mkisoimages.sh script used to build amd64 ISO images for 1839 release was updated to use this. This may mean that makefs must be 1840 updated before "make cdrom" can be run in the release directory. This 1841 should be as simple as: 1842 1843 $ cd $SRCDIR/usr.sbin/makefs 1844 $ make depend all install 1845 184620180212: 1847 FreeBSD boot loader enhanced with Lua scripting. It's purely opt-in for 1848 now by building WITH_LOADER_LUA and WITHOUT_FORTH in /etc/src.conf. 1849 Co-existence for the transition period will come shortly. Booting is a 1850 complex environment and test coverage for Lua-enabled loaders has been 1851 thin, so it would be prudent to assume it might not work and make 1852 provisions for backup boot methods. 1853 185420180211: 1855 devmatch functionality has been turned on in devd. It will automatically 1856 load drivers for unattached devices. This may cause unexpected drivers 1857 to be loaded. Please report any problems to current@ and 1858 imp@freebsd.org. 1859 186020180114: 1861 Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to 1862 6.0.0. Please see the 20141231 entry below for information about 1863 prerequisites and upgrading, if you are not already using clang 3.5.0 1864 or higher. 1865 186620180110: 1867 LLVM's lld linker is now used as the FreeBSD/amd64 bootstrap linker. 1868 This means it is used to link the kernel and userland libraries and 1869 executables, but is not yet installed as /usr/bin/ld by default. 1870 1871 To revert to ld.bfd as the bootstrap linker, in /etc/src.conf set 1872 WITHOUT_LLD_BOOTSTRAP=yes 1873 187420180110: 1875 On i386, pmtimer has been removed. Its functionality has been folded 1876 into apm. It was a no-op on ACPI in current for a while now (but was 1877 still needed on i386 in FreeBSD 11 and earlier). Users may need to 1878 remove it from kernel config files. 1879 188020180104: 1881 The use of RSS hash from the network card aka flowid has been 1882 disabled by default for lagg(4) as it's currently incompatible with 1883 the lacp and loadbalance protocols. 1884 1885 This can be re-enabled by setting the following in loader.conf: 1886 net.link.lagg.default_use_flowid="1" 1887 188820180102: 1889 The SW_WATCHDOG option is no longer necessary to enable the 1890 hardclock-based software watchdog if no hardware watchdog is 1891 configured. As before, SW_WATCHDOG will cause the software 1892 watchdog to be enabled even if a hardware watchdog is configured. 1893 189420171215: 1895 r326887 fixes the issue described in the 20171214 UPDATING entry. 1896 r326888 flips the switch back to building GELI support always. 1897 189820171214: 1899 r362593 broke ZFS + GELI support for reasons unknown. However, 1900 it also broke ZFS support generally, so GELI has been turned off 1901 by default as the lesser evil in r326857. If you boot off ZFS and/or 1902 GELI, it might not be a good time to update. 1903 190420171125: 1905 PowerPC users must update loader(8) by rebuilding world before 1906 installing a new kernel, as the protocol connecting them has 1907 changed. Without the update, loader metadata will not be passed 1908 successfully to the kernel and users will have to enter their 1909 root partition at the kernel mountroot prompt to continue booting. 1910 Newer versions of loader can boot old kernels without issue. 1911 191220171110: 1913 The LOADER_FIREWIRE_SUPPORT build variable has been renamed to 1914 WITH/OUT_LOADER_FIREWIRE. LOADER_{NO_,}GELI_SUPPORT has been renamed 1915 to WITH/OUT_LOADER_GELI. 1916 191720171106: 1918 The naive and non-compliant support of posix_fallocate(2) in ZFS 1919 has been removed as of r325320. The system call now returns EINVAL 1920 when used on a ZFS file. Although the new behavior complies with the 1921 standard, some consumers are not prepared to cope with it. 1922 One known victim is lld prior to r325420. 1923 192420171102: 1925 Building in a FreeBSD src checkout will automatically create object 1926 directories now rather than store files in the current directory if 1927 'make obj' was not ran. Calling 'make obj' is no longer necessary. 1928 This feature can be disabled by setting WITHOUT_AUTO_OBJ=yes in 1929 /etc/src-env.conf (not /etc/src.conf), or passing the option in the 1930 environment. 1931 193220171101: 1933 The default MAKEOBJDIR has changed from /usr/obj/<srcdir> for native 1934 builds, and /usr/obj/<arch>/<srcdir> for cross-builds, to a unified 1935 /usr/obj/<srcdir>/<arch>. This behavior can be changed to the old 1936 format by setting WITHOUT_UNIFIED_OBJDIR=yes in /etc/src-env.conf, 1937 the environment, or with -DWITHOUT_UNIFIED_OBJDIR when building. 1938 The UNIFIED_OBJDIR option is a transitional feature that will be 1939 removed for 12.0 release; please migrate to the new format for any 1940 tools by looking up the OBJDIR used by 'make -V .OBJDIR' means rather 1941 than hardcoding paths. 1942 194320171028: 1944 The native-xtools target no longer installs the files by default to the 1945 OBJDIR. Use the native-xtools-install target with a DESTDIR to install 1946 to ${DESTDIR}/${NXTP} where NXTP defaults to /nxb-bin. 1947 194820171021: 1949 As part of the boot loader infrastructure cleanup, LOADER_*_SUPPORT 1950 options are changing from controlling the build if defined / undefined 1951 to controlling the build with explicit 'yes' or 'no' values. They will 1952 shift to WITH/WITHOUT options to match other options in the system. 1953 195420171010: 1955 libstand has turned into a private library for sys/boot use only. 1956 It is no longer supported as a public interface outside of sys/boot. 1957 195820171005: 1959 The arm port has split armv6 into armv6 and armv7. armv7 is now 1960 a valid TARGET_ARCH/MACHINE_ARCH setting. If you have an armv7 system 1961 and are running a kernel from before r324363, you will need to add 1962 MACHINE_ARCH=armv7 to 'make buildworld' to do a native build. 1963 196420171003: 1965 When building multiple kernels using KERNCONF, non-existent KERNCONF 1966 files will produce an error and buildkernel will fail. Previously 1967 missing KERNCONF files silently failed giving no indication as to 1968 why, only to subsequently discover during installkernel that the 1969 desired kernel was never built in the first place. 1970 197120170912: 1972 The default serial number format for CTL LUNs has changed. This will 1973 affect users who use /dev/diskid/* device nodes, or whose FibreChannel 1974 or iSCSI clients care about their LUNs' serial numbers. Users who 1975 require serial number stability should hardcode serial numbers in 1976 /etc/ctl.conf . 1977 197820170912: 1979 For 32-bit arm compiled for hard-float support, soft-floating point 1980 binaries now always get their shared libraries from 1981 LD_SOFT_LIBRARY_PATH (in the past, this was only used if 1982 /usr/libsoft also existed). Only users with a hard-float ld.so, but 1983 soft-float everything else should be affected. 1984 198520170826: 1986 The geli password typed at boot is now hidden. To restore the previous 1987 behavior, see geli(8) for configuration options. 1988 198920170825: 1990 Move PMTUD blackhole counters to TCPSTATS and remove them from bare 1991 sysctl values. Minor nit, but requires a rebuild of both world/kernel 1992 to complete. 1993 199420170814: 1995 "make check" behavior (made in ^/head@r295380) has been changed to 1996 execute from a limited sandbox, as opposed to executing from 1997 ${TESTSDIR}. 1998 1999 Behavioral changes: 2000 - The "beforecheck" and "aftercheck" targets are now specified. 2001 - ${CHECKDIR} (added in commit noted above) has been removed. 2002 - Legacy behavior can be enabled by setting 2003 WITHOUT_MAKE_CHECK_USE_SANDBOX in src.conf(5) or the environment. 2004 2005 If the limited sandbox mode is enabled, "make check" will execute 2006 "make distribution", then install, execute the tests, and clean up the 2007 sandbox if successful. 2008 2009 The "make distribution" and "make install" targets are typically run as 2010 root to set appropriate permissions and ownership at installation time. 2011 The end-user should set "WITH_INSTALL_AS_USER" in src.conf(5) or the 2012 environment if executing "make check" with limited sandbox mode using 2013 an unprivileged user. 2014 201520170808: 2016 Since the switch to GPT disk labels, fsck for UFS/FFS has been 2017 unable to automatically find alternate superblocks. As of r322297, 2018 the information needed to find alternate superblocks has been 2019 moved to the end of the area reserved for the boot block. 2020 Filesystems created with a newfs of this vintage or later 2021 will create the recovery information. If you have a filesystem 2022 created prior to this change and wish to have a recovery block 2023 created for your filesystem, you can do so by running fsck in 2024 foreground mode (i.e., do not use the -p or -y options). As it 2025 starts, fsck will ask ``SAVE DATA TO FIND ALTERNATE SUPERBLOCKS'' 2026 to which you should answer yes. 2027 202820170728: 2029 As of r321665, an NFSv4 server configuration that services 2030 Kerberos mounts or clients that do not support the uid/gid in 2031 owner/owner_group string capability, must explicitly enable 2032 the nfsuserd daemon by adding nfsuserd_enable="YES" to the 2033 machine's /etc/rc.conf file. 2034 203520170722: 2036 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 5.0.0. 2037 Please see the 20141231 entry below for information about prerequisites 2038 and upgrading, if you are not already using clang 3.5.0 or higher. 2039 204020170701: 2041 WITHOUT_RCMDS is now the default. Set WITH_RCMDS if you need the 2042 r-commands (rlogin, rsh, etc.) to be built with the base system. 2043 204420170625: 2045 The FreeBSD/powerpc platform now uses a 64-bit type for time_t. This is 2046 a very major ABI incompatible change, so users of FreeBSD/powerpc must 2047 be careful when performing source upgrades. It is best to run 2048 'make installworld' from an alternate root system, either a live 2049 CD/memory stick, or a temporary root partition. Additionally, all ports 2050 must be recompiled. powerpc64 is largely unaffected, except in the case 2051 of 32-bit compatibility. All 32-bit binaries will be affected. 2052 205320170623: 2054 Forward compatibility for the "ino64" project have been committed. This 2055 will allow most new binaries to run on older kernels in a limited 2056 fashion. This prevents many of the common foot-shooting actions in the 2057 upgrade as well as the limited ability to roll back the kernel across 2058 the ino64 upgrade. Complicated use cases may not work properly, though 2059 enough simpler ones work to allow recovery in most situations. 2060 206120170620: 2062 Switch back to the BSDL dtc (Device Tree Compiler). Set WITH_GPL_DTC 2063 if you require the GPL compiler. 2064 206520170619: 2066 Forward compatibility for the "ino64" project have been committed. This 2067 will allow most new binaries to run on older kernels in a limited 2068 fashion. This prevents many of the common foot-shooting actions in the 2069 upgrade as well as the limited ability to roll back the kernel across 2070 the ino64 upgrade. Complicated use cases may not work properly, though 2071 enough simpler ones work to allow recovery in most situations. 2072 207320170618: 2074 The internal ABI used for communication between the NFS kernel modules 2075 was changed by r320085, so __FreeBSD_version was bumped to 2076 ensure all the NFS related modules are updated together. 2077 207820170617: 2079 The ABI of struct event was changed by extending the data 2080 member to 64bit and adding ext fields. For upgrade, same 2081 precautions as for the entry 20170523 "ino64" must be 2082 followed. 2083 208420170531: 2085 The GNU roff toolchain has been removed from base. To render manpages 2086 which are not supported by mandoc(1), man(1) can fallback on GNU roff 2087 from ports (and recommends to install it). 2088 To render roff(7) documents, consider using GNU roff from ports or the 2089 heirloom doctools roff toolchain from ports via pkg install groff or 2090 via pkg install heirloom-doctools. 2091 209220170524: 2093 The ath(4) and ath_hal(4) modules now build piecemeal to allow for 2094 smaller runtime footprint builds. This is useful for embedded systems 2095 which only require one chipset support. 2096 2097 If you load it as a module, make sure this is in /boot/loader.conf: 2098 2099 if_ath_load="YES" 2100 2101 This will load the HAL, all chip/RF backends and if_ath_pci. 2102 If you have if_ath_pci in /boot/loader.conf, ensure it is after 2103 if_ath or it will not load any HAL chipset support. 2104 2105 If you want to selectively load things (eg on cheaper ARM/MIPS 2106 platforms where RAM is at a premium) you should: 2107 2108 * load ath_hal 2109 * load the chip modules in question 2110 * load ath_rate, ath_dfs 2111 * load ath_main 2112 * load if_ath_pci and/or if_ath_ahb depending upon your particular 2113 bus bind type - this is where probe/attach is done. 2114 2115 For further comments/feedback, poke adrian@ . 2116 211720170523: 2118 The "ino64" 64-bit inode project has been committed, which extends 2119 a number of types to 64 bits. Upgrading in place requires care and 2120 adherence to the documented upgrade procedure. 2121 2122 If using a custom kernel configuration ensure that the 2123 COMPAT_FREEBSD11 option is included (as during the upgrade the 2124 system will be running the ino64 kernel with the existing world). 2125 2126 For the safest in-place upgrade begin by removing previous build 2127 artifacts via "rm -rf /usr/obj/*". Then, carefully follow the full 2128 procedure documented below under the heading "To rebuild everything and 2129 install it on the current system." Specifically, a reboot is required 2130 after installing the new kernel before installing world. While an 2131 installworld normally works by accident from multiuser after rebooting 2132 the proper kernel, there are many cases where this will fail across this 2133 upgrade and installworld from single user is required. 2134 213520170424: 2136 The NATM framework including the en(4), fatm(4), hatm(4), and 2137 patm(4) devices has been removed. Consumers should plan a 2138 migration before the end-of-life date for FreeBSD 11. 2139 214020170420: 2141 GNU diff has been replaced by a BSD licensed diff. Some features of GNU 2142 diff has not been implemented, if those are needed a newer version of 2143 GNU diff is available via the diffutils package under the gdiff name. 2144 214520170413: 2146 As of r316810 for ipfilter, keep frags is no longer assumed when 2147 keep state is specified in a rule. r316810 aligns ipfilter with 2148 documentation in man pages separating keep frags from keep state. 2149 This allows keep state to be specified without forcing keep frags 2150 and allows keep frags to be specified independently of keep state. 2151 To maintain previous behaviour, also specify keep frags with 2152 keep state (as documented in ipf.conf.5). 2153 215420170407: 2155 arm64 builds now use the base system LLD 4.0.0 linker by default, 2156 instead of requiring that the aarch64-binutils port or package be 2157 installed. To continue using aarch64-binutils, set 2158 CROSS_BINUTILS_PREFIX=/usr/local/aarch64-freebsd/bin . 2159 216020170405: 2161 The UDP optimization in entry 20160818 that added the sysctl 2162 net.inet.udp.require_l2_bcast has been reverted. L2 broadcast 2163 packets will no longer be treated as L3 broadcast packets. 2164 216520170331: 2166 Binds and sends to the loopback addresses, IPv6 and IPv4, will now 2167 use any explicitly assigned loopback address available in the jail 2168 instead of using the first assigned address of the jail. 2169 217020170329: 2171 The ctl.ko module no longer implements the iSCSI target frontend: 2172 cfiscsi.ko does instead. 2173 2174 If building cfiscsi.ko as a kernel module, the module can be loaded 2175 via one of the following methods: 2176 - `cfiscsi_load="YES"` in loader.conf(5). 2177 - Add `cfiscsi` to `$kld_list` in rc.conf(5). 2178 - ctladm(8)/ctld(8), when compiled with iSCSI support 2179 (`WITH_ISCSI=yes` in src.conf(5)) 2180 2181 Please see cfiscsi(4) for more details. 2182 218320170316: 2184 The mmcsd.ko module now additionally depends on geom_flashmap.ko. 2185 Also, mmc.ko and mmcsd.ko need to be a matching pair built from the 2186 same source (previously, the dependency of mmcsd.ko on mmc.ko was 2187 missing, but mmcsd.ko now will refuse to load if it is incompatible 2188 with mmc.ko). 2189 219020170315: 2191 The syntax of ipfw(8) named states was changed to avoid ambiguity. 2192 If you have used named states in the firewall rules, you need to modify 2193 them after installworld and before rebooting. Now named states must 2194 be prefixed with colon. 2195 219620170311: 2197 The old drm (sys/dev/drm/) drivers for i915 and radeon have been 2198 removed as the userland we provide cannot use them. The KMS version 2199 (sys/dev/drm2) supports the same hardware. 2200 220120170302: 2202 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 4.0.0. 2203 Please see the 20141231 entry below for information about prerequisites 2204 and upgrading, if you are not already using clang 3.5.0 or higher. 2205 220620170221: 2207 The code that provides support for ZFS .zfs/ directory functionality 2208 has been reimplemented. It's not possible now to create a snapshot 2209 by mkdir under .zfs/snapshot/. That should be the only user visible 2210 change. 2211 221220170216: 2213 EISA bus support has been removed. The WITH_EISA option is no longer 2214 valid. 2215 221620170215: 2217 MCA bus support has been removed. 2218 221920170127: 2220 The WITH_LLD_AS_LD / WITHOUT_LLD_AS_LD build knobs have been renamed 2221 WITH_LLD_IS_LD / WITHOUT_LLD_IS_LD, for consistency with CLANG_IS_CC. 2222 222320170112: 2224 The EM_MULTIQUEUE kernel configuration option is deprecated now that 2225 the em(4) driver conforms to iflib specifications. 2226 222720170109: 2228 The igb(4), em(4) and lem(4) ethernet drivers are now implemented via 2229 IFLIB. If you have a custom kernel configuration that excludes em(4) 2230 but you use igb(4), you need to re-add em(4) to your custom 2231 configuration. 2232 223320161217: 2234 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 3.9.1. 2235 Please see the 20141231 entry below for information about prerequisites 2236 and upgrading, if you are not already using clang 3.5.0 or higher. 2237 223820161124: 2239 Clang, llvm, lldb, compiler-rt and libc++ have been upgraded to 3.9.0. 2240 Please see the 20141231 entry below for information about prerequisites 2241 and upgrading, if you are not already using clang 3.5.0 or higher. 2242 224320161119: 2244 The layout of the pmap structure has changed for powerpc to put the pmap 2245 statistics at the front for all CPU variations. libkvm(3) and all tools 2246 that link against it need to be recompiled. 2247 224820161030: 2249 isl(4) and cyapa(4) drivers now require a new driver, 2250 chromebook_platform(4), to work properly on Chromebook-class hardware. 2251 On other types of hardware the drivers may need to be configured using 2252 device hints. Please see the corresponding manual pages for details. 2253 225420161017: 2255 The urtwn(4) driver was merged into rtwn(4) and now consists of 2256 rtwn(4) main module + rtwn_usb(4) and rtwn_pci(4) bus-specific 2257 parts. 2258 Also, firmware for RTL8188CE was renamed due to possible name 2259 conflict (rtwnrtl8192cU(B) -> rtwnrtl8192cE(B)) 2260 226120161015: 2262 GNU rcs has been removed from base. It is available as packages: 2263 - rcs: Latest GPLv3 GNU rcs version. 2264 - rcs57: Copy of the latest version of GNU rcs (GPLv2) before it was 2265 removed from base. 2266 226720161008: 2268 Use of the cc_cdg, cc_chd, cc_hd, or cc_vegas congestion control 2269 modules now requires that the kernel configuration contain the 2270 TCP_HHOOK option. (This option is included in the GENERIC kernel.) 2271 227220161003: 2273 The WITHOUT_ELFCOPY_AS_OBJCOPY src.conf(5) knob has been retired. 2274 ELF Tool Chain's elfcopy is always installed as /usr/bin/objcopy. 2275 227620160924: 2277 Relocatable object files with the extension of .So have been renamed 2278 to use an extension of .pico instead. The purpose of this change is 2279 to avoid a name clash with shared libraries on case-insensitive file 2280 systems. On those file systems, foo.So is the same file as foo.so. 2281 228220160918: 2283 GNU rcs has been turned off by default. It can (temporarily) be built 2284 again by adding WITH_RCS knob in src.conf. 2285 Otherwise, GNU rcs is available from packages: 2286 - rcs: Latest GPLv3 GNU rcs version. 2287 - rcs57: Copy of the latest version of GNU rcs (GPLv2) from base. 2288 228920160918: 2290 The backup_uses_rcs functionality has been removed from rc.subr. 2291 229220160908: 2293 The queue(3) debugging macro, QUEUE_MACRO_DEBUG, has been split into 2294 two separate components, QUEUE_MACRO_DEBUG_TRACE and 2295 QUEUE_MACRO_DEBUG_TRASH. Define both for the original 2296 QUEUE_MACRO_DEBUG behavior. 2297 229820160824: 2299 r304787 changed some ioctl interfaces between the iSCSI userspace 2300 programs and the kernel. ctladm, ctld, iscsictl, and iscsid must be 2301 rebuilt to work with new kernels. __FreeBSD_version has been bumped 2302 to 1200005. 2303 230420160818: 2305 The UDP receive code has been updated to only treat incoming UDP 2306 packets that were addressed to an L2 broadcast address as L3 2307 broadcast packets. It is not expected that this will affect any 2308 standards-conforming UDP application. The new behaviour can be 2309 disabled by setting the sysctl net.inet.udp.require_l2_bcast to 2310 0. 2311 231220160818: 2313 Remove the openbsd_poll system call. 2314 __FreeBSD_version has been bumped because of this. 2315 231620160708: 2317 The stable/11 branch has been created from head@r302406. 2318 2319After branch N is created, entries older than the N-2 branch point are removed 2320from this file. After stable/14 is branched and current becomes FreeBSD 15, 2321entries older than stable/12 branch point will be removed from current's 2322UPDATING file. 2323 2324COMMON ITEMS: 2325 2326 General Notes 2327 ------------- 2328 Sometimes, obscure build problems are the result of environment 2329 poisoning. This can happen because the make utility reads its 2330 environment when searching for values for global variables. To run 2331 your build attempts in an "environmental clean room", prefix all make 2332 commands with 'env -i '. See the env(1) manual page for more details. 2333 Occasionally a build failure will occur with "make -j" due to a race 2334 condition. If this happens try building again without -j, and please 2335 report a bug if it happens consistently. 2336 2337 When upgrading from one major version to another it is generally best to 2338 upgrade to the latest code in the currently installed branch first, then 2339 do an upgrade to the new branch. This is the best-tested upgrade path, 2340 and has the highest probability of being successful. Please try this 2341 approach if you encounter problems with a major version upgrade. Since 2342 the stable 4.x branch point, one has generally been able to upgrade from 2343 anywhere in the most recent stable branch to head / current (or even the 2344 last couple of stable branches). See the top of this file when there's 2345 an exception. 2346 2347 The update process will emit an error on an attempt to perform a build 2348 or install from a FreeBSD version below the earliest supported version. 2349 When updating from an older version the update should be performed one 2350 major release at a time, including running `make delete-old` at each 2351 step. 2352 2353 When upgrading a live system, having a root shell around before 2354 installing anything can help undo problems. Not having a root shell 2355 around can lead to problems if pam has changed too much from your 2356 starting point to allow continued authentication after the upgrade. 2357 2358 This file should be read as a log of events. When a later event changes 2359 information of a prior event, the prior event should not be deleted. 2360 Instead, a pointer to the entry with the new information should be 2361 placed in the old entry. Readers of this file should also sanity check 2362 older entries before relying on them blindly. Authors of new entries 2363 should write them with this in mind. 2364 2365 ZFS notes 2366 --------- 2367 When upgrading the boot ZFS pool to a new version (via zpool upgrade), 2368 always follow these three steps: 2369 2370 1) recompile and reinstall the ZFS boot loader and boot block 2371 (this is part of "make buildworld" and "make installworld") 2372 2373 2) update the ZFS boot block on your boot drive (only required when 2374 doing a zpool upgrade): 2375 2376 When booting on x86 via BIOS, use the following to update the ZFS boot 2377 block on the freebsd-boot partition of a GPT partitioned drive ada0: 2378 gpart bootcode -p /boot/gptzfsboot -i $N ada0 2379 The value $N will typically be 1. For EFI booting, see EFI notes. 2380 2381 3) zpool upgrade the root pool. New bootblocks will work with old 2382 pools, but not vice versa, so they need to be updated before any 2383 zpool upgrade. 2384 2385 Non-boot pools do not need these updates. 2386 2387 EFI notes 2388 --------- 2389 2390 There are two locations the boot loader can be installed into. The 2391 current location (and the default) is \efi\freebsd\loader.efi and using 2392 efibootmgr(8) to configure it. The old location, that must be used on 2393 deficient systems that don't honor efibootmgr(8) protocols, is the 2394 fallback location of \EFI\BOOT\BOOTxxx.EFI. Generally, you will copy 2395 /boot/loader.efi to this location, but on systems installed a long time 2396 ago the ESP may be too small and /boot/boot1.efi may be needed unless 2397 the ESP has been expanded in the meantime. 2398 2399 Recent systems will have the ESP mounted on /boot/efi, but older ones 2400 may not have it mounted at all, or mounted in a different 2401 location. Older arm SD images with MBR used /boot/msdos as the 2402 mountpoint. The ESP is a MSDOS filesystem. 2403 2404 The EFI boot loader rarely needs to be updated. For ZFS booting, 2405 however, you must update loader.efi before you do 'zpool upgrade' the 2406 root zpool, otherwise the old loader.efi may reject the upgraded zpool 2407 since it does not automatically understand some new features. 2408 2409 See loader.efi(8) and uefi(8) for more details. 2410 2411 To build a kernel 2412 ----------------- 2413 If you are updating from a prior version of FreeBSD (even one just 2414 a few days old), you should follow this procedure. It is the most 2415 failsafe as it uses a /usr/obj tree with a fresh mini-buildworld, 2416 2417 make kernel-toolchain 2418 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE 2419 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE 2420 2421 If you are running kernel modules from ports, see FOOTNOTE [1]. 2422 2423 To test a kernel once 2424 --------------------- 2425 If you just want to boot a kernel once (because you are not sure 2426 if it works, or if you want to boot a known bad kernel to provide 2427 debugging information) run 2428 make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel 2429 nextboot -k testkernel 2430 2431 To rebuild everything and install it on the current system. 2432 ----------------------------------------------------------- 2433 # Note: sometimes if you are running current you gotta do more than 2434 # is listed here if you are upgrading from a really old current. 2435 2436 <make sure you have good level 0 dumps> [2] 2437 make buildworld 2438 <make sure any needed PORTS_MODULES are set> [1] 2439 make buildkernel KERNCONF=YOUR_KERNEL_HERE 2440 make installkernel KERNCONF=YOUR_KERNEL_HERE 2441 <reboot in single user> [3] 2442 etcupdate -p [5] 2443 make installworld 2444 etcupdate -B [4] 2445 make delete-old [6] 2446 <reboot> 2447 2448 To cross-install current onto a separate partition 2449 -------------------------------------------------- 2450 # In this approach we use a separate partition to hold 2451 # current's root, 'usr', and 'var' directories. A partition 2452 # holding "/", "/usr" and "/var" should be about 2GB in 2453 # size. 2454 2455 <make sure you have good level 0 dumps> 2456 <boot into -stable> 2457 make buildworld 2458 make buildkernel KERNCONF=YOUR_KERNEL_HERE [1] 2459 <maybe newfs current's root partition> 2460 <mount current's root partition on directory ${CURRENT_ROOT}> 2461 make installworld DESTDIR=${CURRENT_ROOT} -DDB_FROM_SRC 2462 make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd 2463 make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} 2464 cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd 2465 <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> 2466 <reboot into current> 2467 <do a "native" rebuild/install as described in the previous section> 2468 <maybe install compatibility libraries from ports/misc/compat*> 2469 <reboot> 2470 2471 2472 To upgrade in-place from stable to current 2473 ---------------------------------------------- 2474 <make sure you have good level 0 dumps> [2] 2475 make buildworld [9] 2476 <make sure any needed PORTS_MODULES are set> [1] 2477 make buildkernel KERNCONF=YOUR_KERNEL_HERE [8] 2478 make installkernel KERNCONF=YOUR_KERNEL_HERE 2479 <reboot in single user> [3] 2480 etcupdate -p [5] 2481 make installworld 2482 etcupdate -B [4] 2483 make delete-old [6] 2484 <reboot> 2485 2486 Make sure that you've read the UPDATING file to understand the 2487 tweaks to various things you need. At this point in the life 2488 cycle of current, things change often and you are on your own 2489 to cope. The defaults can also change, so please read ALL of 2490 the UPDATING entries. 2491 2492 Also, if you are tracking -current, you must be subscribed to 2493 freebsd-current@freebsd.org. Make sure that before you update 2494 your sources that you have read and understood all the recent 2495 messages there. If in doubt, please track -stable which has 2496 much fewer pitfalls. 2497 2498FOOTNOTES: 2499 2500 [1] If you have third party modules, such as drm-kmod or vmware, you 2501 should disable them at this point so they don't crash your system on 2502 reboot. Alternatively, you should rebuild all the modules you have in 2503 your system and install them as well. If you are running -current, you 2504 should seriously consider placing all sources to all the modules for 2505 your system (or symlinks to them) in /usr/local/sys/modules so this 2506 happens automatically. If all your modules come from ports, then adding 2507 the port origin directories to PORTS_MODULES instead is also automatic 2508 and effective, eg: 2509 PORTS_MODULES+=graphics/drm-kmod graphics/nvidia-drm-kmod 2510 2511 [2] To make complete dumps on zfs(4), use bectl(8), which 2512 creates bootable snapshots of configurable depth that are 2513 selectable via the bootloader. For ufs(4), use dump(8) and 2514 restore(8). 2515 2516 [3] From the bootblocks, boot -s, and then do 2517 fsck -p 2518 mount -u / 2519 mount -a 2520 sh /etc/rc.d/zfs start # mount zfs filesystem, if needed 2521 cd src # full path to source 2522 adjkerntz -i # if CMOS is wall time 2523 Also, when doing a major release upgrade, it is required that you boot 2524 into single user mode to do the installworld. 2525 2526 [4] Note: This step is non-optional. Failure to do this step 2527 can result in a significant reduction in the functionality of the 2528 system. Attempting to do it by hand is not recommended and those 2529 that pursue this avenue should read this file carefully, as well 2530 as the archives of freebsd-current and freebsd-hackers mailing lists 2531 for potential gotchas. See etcupdate(8) for more information. 2532 2533 [5] Usually this step is a no-op. However, from time to time 2534 you may need to do this if you get unknown user in the following 2535 step. 2536 2537 [6] This only deletes old files and directories. Old libraries 2538 can be deleted by "make delete-old-libs", but you have to make 2539 sure that no program is using those libraries anymore. 2540 2541 [8] The new kernel must be able to run existing binaries used by an 2542 installworld. When upgrading across major versions, the new kernel's 2543 configuration must include the correct COMPAT_FREEBSD<n> option for 2544 existing binaries (e.g. COMPAT_FREEBSD11 to run 11.x binaries). Failure 2545 to do so may leave you with a system that is hard to boot to recover. A 2546 GENERIC kernel will include suitable compatibility options to run 2547 binaries from older branches. Note that the ability to run binaries 2548 from unsupported branches is not guaranteed. 2549 2550 Make sure that you merge any new devices from GENERIC since the 2551 last time you updated your kernel config file. Options also 2552 change over time, so you may need to adjust your custom kernels 2553 for these as well. 2554 2555 [9] If CPUTYPE is defined in your /etc/make.conf, make sure to use the 2556 "?=" instead of the "=" assignment operator, so that buildworld can 2557 override the CPUTYPE if it needs to. 2558 2559 MAKEOBJDIRPREFIX must be defined in an environment variable, and 2560 not on the command line, or in /etc/make.conf. buildworld will 2561 warn if it is improperly defined. 2562FORMAT: 2563 2564This file contains a list, in reverse chronological order, of major 2565breakages in tracking -current. It is not guaranteed to be a complete 2566list of such breakages, and only contains entries since September 23, 2011. 2567If you need to see UPDATING entries from before that date, you will need 2568to fetch an UPDATING file from an older FreeBSD release. 2569 2570Copyright information: 2571 2572Copyright 1998-2009 M. Warner Losh <imp@FreeBSD.org> 2573 2574Redistribution, publication, translation and use, with or without 2575modification, in full or in part, in any form or format of this 2576document are permitted without further permission from the author. 2577 2578THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR 2579IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2580WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2581DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, 2582INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2583(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2584SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2585HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2586STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 2587IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2588POSSIBILITY OF SUCH DAMAGE. 2589 2590Contact Warner Losh if you have any questions about your use of 2591this document. 2592