1Updating Information for FreeBSD current users 2 3This file is maintained and copyrighted by M. Warner Losh 4<imp@village.org>. Please send new entries directly to him. See end 5of file for further details. For commonly done items, please see the 6COMMON ITEMS: section later in the file. 7 820011030: 9 The asr driver problem has been resolved. 10 1120011027: 12 Due to changes in other parts of the system, the asr driver 13 now causes the system to panic on boot. Do not use it pending 14 correction. Comment it out of any kernel config file that you 15 try to use from this date forward. 16 1720011025: 18 When crossbuilding, use TARGET=xxx where you used to use 19 MACHINE=xxx. You don't need to set TARGET_ARCH and TARGET, 20 unless you are changing both of them. To cross build pc98 on 21 an alpha, for example, you need to set TARGET=pc98 and 22 TARGET_ARCH=i386. 23 2420011001: 25 The kernel interface that burncd depends on has changed. 26 You must recompile both the kernel and userland applications 27 at the same time. 28 2920010929: 30 When crossbuilding, please set TARGET_ARCH rather than 31 MACHINE_ARCH to indicate the target. In the future, one will 32 set TARGET_MACHINE where you set MACHINE now. At the moment, 33 setting MACHINE alone for same MACHINE_ARCH machines works 34 (eg, you can build pc98 on a i386 machine and vice versa). 35 3620010927: 37 Some weird problems result from using ACPI on some machines. 38 To disable ACPI you can add 39 hint.acpi.0.disable="1" 40 to /boot/loader.conf (or by putting set X=Y at the boot 41 loader "ok" prompt). 42 43 Alternatively, you can remove it from /boot/kernel/acpi.ko 44 or use the MODULES_OVERRIDE function in your kernel config 45 file and not list acpi in that list. 46 4720010924: 48 The buildworld has been fixed. You may need to install 49 the 4.x compatibility libraries for some old binaries 50 to work. 51 cd src/lib/compat/compat4x.i386 52 make all install 53 5420010919: 55 There's a bug in the world build process. The cross-tools 56 are build with the NEW headers, but the OLD libc.a. This 57 leads to all kinds of problems with the new libc. A temporary 58 workaround is to add 59 CFLAGS="-O -pipe -D_OLD_STDIO" 60 before building world when upgrading from 4.x to current. This 61 can be removed afterwards. 62 63 A proper fix to the buildworld target is needed. 64 6520010918: 66 Peter has committed his new kthread nfs client/server code. 67 NFS may be unstable after this date. 68 6920010912: 70 KSE has hit the tree. Lots of things are now different in 71 the kernel. While a few problems were introduced in the 72 initial commit, most of the major ones have been found and 73 corrected. 74 7520010901: 76 In OLDCARD, CardBus bridges appear to be stable. The work 77 arounds described in the 20010604 entry are now no longer 78 necessary and will be ignored. Most insert/remove problems 79 have been rectified around this date. 80 8120010823: 82 named now runs as user bind and group bind rather than as 83 root. If named_enable is set to YES in /etc/rc.conf, ensure 84 that user bind is available in /etc/passwd (using vipw(8)) 85 and that group bind is available in /etc/group. Also make 86 sure that user or group bind has read (and not write) 87 permission for your name server configuration and that it 88 has read and write permission for your slave zone files and 89 directory. 90 91 If you wish to continue to run named as root (a less secure 92 alternative), add a line to /etc/rc.conf saying 93 94 named_flags= 95 9620010709: 97 The PAM libraries have had an API upgrade that is beyond 98 the ability of the shared library major number to handle. 99 It is manifested by PAM-using ports dumping core. The 100 solution is to rebuild those ports. 101 10220010628: 103 The kernel compile module has moved from src/sys/compile/FOO 104 to src/sys/${MACHINE}/compile/FOO. 105 10620010625: 107 The pccard modem issue from 20010613 has been corrected. 108 OLDCARD support is still a little weak in -current. slot 1 is 109 known not to work on some TI based cardbus bridges. Some 110 cardbus bridges do not properly detect insert/removal events. 111 IRQ configuration needs more safety belts. 112 11320010617: 114 Softupdates problems have been corrected. 115 11620010614: 117 Peter ripped out the linkerset support. You must, as always, 118 rerun config after you cvsup if you are using the traditional 119 kernel building methods. 120 12120010613: 122 pccard modems may not work with current after 20010604 date. Some 123 do, others result in panics. *MAKE*SURE* that you update your 124 config and /etc/rc.conf ala the 20010604 entry, or you will have 125 problems (this issue will be fixed, it just hasn't been yet). 126 12720010613: 128 SOFTUPDATES seem to be broken since the middle of May or so. Do not 129 use them in current. You can disable softupdates on all mounted 130 partitions, or remove SOFTUPDATES the kernel config file. 131 13220010612: 133 After Peter's commits to the hints code, people have been noticing 134 that certain devices are attached (or try to) twice. This is due 135 to having both static hints as well as a /boot/device.hints. To 136 work around this issue, please use only one or the other mechanism 137 until this bug is fixed. 138 139 Please note that a feature of config is that if you have config 140 file FOO and FOO.hints, it automatically adds FOO.hints to the 141 hints.c file, wheather you want it to or not. 142 14320010610: 144 Locale names have changed to match other systems better. 145 14620010604: 147 pccard support for pci cards has been committed. You must change 148 your /etc/pccard.conf irq lines. It must match the irq used by 149 pcic device. Interrupt storms may result if you fail to do this. 150 Interrupt storms look a lot like a hang. 151 152 You must also install a new pccardd, otherwise you will get an 153 interrupt storm at card reset time (just after it tells you what 154 it is). 155 156 pccardd_flags="-I" is necessary for the time being. It tells pccardd 157 not to ask the kernel if the interrupt is really free or not before 158 using it. You can either change the /etc/pccard.conf irq lines to 159 match pcic, or add "-i X" to the pccardd_flags. 160 16120010530: 162 INSTALL=install -C is being deprecated. If you want to do this, 163 use COPY=-C instead. The former method will be supported for only 164 a limited time. If you see 165 166install: warning: the -d and -C options may not be specified together 167 168 in your makeworld, then you need to migrate towards using 169 COPY=-C. 170 17120010525: 172 It appears that vm is now stable enough to use again. However, 173 there may be other problems, so caution is still urged. alpha 174 definitely is in bad shape. 175 17620010521: 177 Minor repo damange has happened. This may cause problems 178 with cvsup of ports. If you get errors, please see 179 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27495 180 at the bottom for details on a workaround. The error message 181 is 182Updater failed: Cannot delete "/usr/ports/www/jakarta-tomcat/files": Directory not empty 183 18420010520: 185 Vm and/or swapping are busted on -current. Please be patient. 186 18720010519: 188 pccard has had much reorganizational work done to it over 189 the past few days. Everything should still work, but if 190 not, please contact imp@freebsd.org. 191 19220010517: 193 ata ioctl changed. Make sure to recompile both kernel and 194 userland at the same time. 195 19620010517: 197 New ncurses imported. 198 19920010512: 200 DEVFS is now opt out, not opt in. Barring major problems, this 201 will be the only way to go starting July 1. 202 20320010502: 204 Perl breakage in 20010501 was corrected at 14:18:33 PDT. 205 20620010501: 207 Building perl was broken at 02:25:25 PDT. 208 20920010430: 210 The bug in 20010429 was corrected at 07:35:37 PDT. It is safe to 211 go back in the water. 212 21320010429: 214 A bad bug was committed at 04:48:42 PDT. Don't use kernels after 215 this date, but before the correction date. 216 21720010423: 218 old fsck and new kernel interactions appear to have been fixed. 219 22020010411: 221 fsck and the kernel were changed to handle some optimizations 222 to directory layout. This breaks backward compatibility. 223 Update only if you understand that you must not use the old 224 fsck with the new kernel ever. 225 22620010330: 227 fsck has changed the meaning of the pass column in /etc/fstab. 228 Please see the cvs commit to fsck.8 or the fsck.8 man page for 229 details. It is unclear if changes to /etc/fstab are necessary. 230 23120010319: 232 portmap had changed name to rpcbind for maximum POLA in your 233 current world. /etc/hosts.{allow,deny} needs changes. nfs and 234 other rpc based programs that rely on portmapper will not work 235 without updates to /etc/hosts.{allow,deny} and /etc/netconfig. 236 23720010315: 238 ata subsystem changes. ATA_ENABLE_ATAPI_DMA, ATA_ENABLE_WC 239 and ATA_ENABEL_TAGS are no longer kernel options. They have 240 been replaced by tunables. See ata.4 for details. 241 24220010312: 243 The fxp driver was converted to use miibus. If you compile 244 fxp into your kernel statically, you will need to add miibus. 245 24620010312: 247 The wi device now defaults to BSS (infrastructure) mode 248 instead of ad-hoc. 249 25020010310: 251 /dev/urandom should be a symbolic link to /dev/random now. 252 Users of current not using DEVFS need to run MAKEDEV std. 253 ssh might not work if you don't. 254 25520010303: 256 The ed driver has been updated. It now allows mii attachments, 257 which means that you must include the miibus in your kernel if 258 you use the ed driver. 259 26020010220: 261 The problems with libc have been corrected. It is now mostly 262 safe to go back into the water. 263 26420010211: 265 The size of FILE was changed. This breaks upgrading. If 266 you must upgrade, be prepared for pain. It also breaks almost 267 all binaries that you've compiled on -current. You are warned 268 that before upgrading would be a good time to do a level 0 269 dump of your system. No, really, I mean it this time. 270 271 To get to the new system, you'll need to use the following 272 workaround. Hopefully this can be sorted out so that we 273 don't have to move this to the updating section. 274 275 To get around the installworld problem, do: 276 # cd /usr/src/usr.bin/sed 277 # make install 278 # cd /usr/src 279 # make installworld 280 If that doesn't work, then try: 281 # make -k installworld 282 # make installworld 283 28420010207: 285 DEVFS is now the default. If you use vinum, make sure that you 286 do not include devfs in your kernel as problems result. 287 28820010205: 289 FFS_ROOT and CD9660_ROOT have been removed or deprecated. 290 Remove them from your config. 291 29220010122: 293 ****************************** WARNING ****************************** 294 buildkernel has been changed slightly 295 ****************************** WARNING ****************************** 296 KERNCONF replaces the variable KERNEL for buildkernel. You 297 should update your scripts and make.conf accordingly. 298 29920010119: 300 config has changed to allow DEV_FOO as a replacement for NFOO. 301 This requires a new config to build correctly. 302 30320010116: 304 The kerrnel option I386_CPU is now mutually exclusive with the 305 other cpu types. If you have an i386 system, be sure that it 306 only had this line. Remove it for all other configurations. 307 30820010110: 309 Changes to the kernel require it and burncd be in sync. 310 31120010102: 312 Everyone who has hw.sndunit set to something in 313 /etc/sysctl.conf, it is now hw.snd.unit. 314 31520010101: 316 ex and vi were broken by some changes to sys/queue.h. If you 317 have a bad vi, you will see make buildworld fail with a core 318 dump while building termcap. You can work around this problem 319 by adding -k to your make buildworld. This will cause the 320 build to complete and install a new vi. Once that's done, you 321 can rebuild again without the -k to pick up anything that 322 might have been ignored by the -k option. 323 324 Others have suggested that you can just rebuild libc if your 325 vi/ex is dynamically linked, but I've not received any reports 326 of this working. 327 32820001228: 329 There have been some changes to libcrypt in -current. The 330 libscrypt/libdescrypt symlink sillyness is gone and the installed 331 libcrypt is fully functional. Be aware of this. 332 33320001218: 334 Linksys Fast Ethernet PCCARD cards supported by the ed driver 335 now require the addition of flag 0x80000 to their config line 336 in pccard.conf(5). This flag is not optional. These Linksys 337 cards will not be recognized without it. 338 33920001205: 340 Important new FreeBSD-version stuff: PAM support has been worked 341 in, partially from the "Unix" OpenSSH version. This requires 342 adding the following in pam.conf: 343 344 sshd auth sufficient pam_skey.so 345 sshd auth required pam_unix.so try_first_pass 346 sshd session required pam_permit.so 347 34820001031: 349 cvs updated to 1.11. 350 35120001020: 352 The random device needs more entropy, so you need to make sure 353 that you've run mergemaster to get a /etc/rc which will seed 354 /dev/random. If you don't and the system hangs after ldconfig, 355 then banging on the keyboard randomly until it unhangs is one 356 workaround. 357 35820001010: 359 ****************************** WARNING ****************************** 360 Sendmail has been updated. 361 ****************************** WARNING ****************************** 362 o mail.local(8) is no longer installed as a set-user-id binary. 363 o sendmail(8) is now built with STARTTLS support unless NO_OPENSSL 364 is set. 365 o The default /etc/mail/sendmail.cf disables the SMTP EXPN and VRFY 366 commands. 367 o Now using sendmail's version of vacation(1). 368 o The sendmail cf building tools (contrib/sendmail/cf) are installed 369 in /usr/share/sendmail/cf. 370 o sendmail.cw changed to local-host-names 371 372 More details can be found at 373 http://people.freebsd.org/~imp/UPDATING/sendmail-20001010 374 37520001009: 376 The ports tree's new layout is in place. Be sure to update 377 your entire ports tree, or you will have problems. 378 37920001006: 380 The perl build procedure no longer installs miniperl, nor uses 381 the installed miniperl. It is recommended that you delete 382 /usr/bin/miniperl. 383 38420001005: 385 This weekend the ports tree will be updated to a new layout. 386 It will be in an inconsistent state until noted in the UPDATING 387 file, or with asami-san's message to the relevant mailing 388 lists. With this new layout, you'll need to update the whole 389 tree for anything to work. 390 39120000928: 392 There was a change in the passwd format. Need more information. 393 39420000916: 395 /boot/kernel/kernel.ko -> /boot/kernel/kernel change has taken 396 place. Please update boot loader (not the boot blocks) at the 397 same time as your kernel. 398 39920000914: 400 The new pmtimer device is necessary for laptops. Failure to 401 include the device will cause suspended laptops losing time 402 when they resume. Include 403 device pmtimer 404 in your config file and 405 hint.pmtimer.0.at="isa" 406 to your /boot/device.hints file. 407 40820000911: 409 The random device has been turned into a (pseudo-)device, 410 rather than an option. The supplied kernel config files have 411 been updated. You will need to do something similar in your 412 own kernel config file. 413 Remove: 414 options RANDOMDEV 415 Add: 416 device random 417 If you prefer to load the loadable module, you need to do 418 nothing. 419 42020000909: 421 The random device module has been renamed from randomdev.ko to 422 random.ko. You will need to edit your /boot/loader.conf to 423 reflect this if you load this module at boot time. 424 The line should read: 425 random_load="YES" 426 42720000907: 428 The SMPNG commit has happened. It should work, but if it 429 doesn't, fallback to the PRE_SMPNG CVS tag. There are likely 430 to be a variety of minor issues. Please see 20000905 to make 431 sure you don't have model loading problems which might at 432 first blush appear related to SMP. 433 43420000906: 435 nsswitch has been imported from NetBSD. Among other things, 436 this means that /etc/host.conf is no longer used. See 437 nsswitch.conf(5) instead. Note that at boot time rc.network 438 will attempt to produce a new nsswitch.conf file for you if you 439 don't have one, and you have host.conf. 440 44120000905: 442 The ucred structure changed size. This breaks the interface 443 that mountd uses. Trying to use an older mountd with a newer 444 kernel guarantees a panic. This means that you need to use 445 kernels newer than today only with matching mountd, but you 446 needed to do that anyway with the boot loader changes. 447 44820000905: 449 The boot loader has been updated. The new default kernel is 450 now /boot/kernel/kernel.ko. The new default module location 451 is /boot/kernel. 452 453 You *MUST* upgrade your boot loader and kernel at the same time. 454 The easiest way to do this is to do the buildworld/buildkernel/ 455 installkernel/installworld dance. 456 457 Furthermore, you are urged to delete your old /modules directory 458 before booting the new kernel, since kldload will find stale 459 modules in that directory instead of finding them in the correct 460 path, /boot/kernel. The most common complaint that this cures 461 is that the linux module crashes your machine after the update. 462 463 if [ ! -d /boot/kernel.old ]; then 464 mv /modules.old /boot/kernel.old 465 chflags noschg /kernel.old 466 mv /kernel.old /boot/kernel.old/kernel.ko 467 chflags schg /boot/kernel.old/kernel.ko 468 fi 469 47020000904: 471 A new issue with the sendmail upgrade has come to light. 472 /etc/aliases has moved to /etc/mail/aliases. Mergemaster will 473 incorrectly install the default aliases in /etc/mail rather than 474 move the old one from /etc. So you'll need to manually move the 475 file, create a symbolic link, remove the old /etc/aliases.db and 476 run newaliases. For safety sake, you should stop sendmail 477 while doing this and run the upgrade when locally sourced email 478 is not likely to be generated. 479 48020000825: 481 /boot/device.hints is now required for installkernel to 482 succeed. You should copy GENERIC.hints for your architecture 483 into /boot/device.hints. If and only if you compile hints 484 into your kernel, then this file may be empty. Please note, 485 if you have an empty or missing /boot/device.hints file and 486 you neglected to compile hints into your kernel, no boot 487 messages will appear after the boot loader tries to start the 488 kernel. 489 49020000821: 491 If you do NOT have ``options RANDOMDEV'' in your kernel and 492 you DO want the random device then add randomdev_load="YES" to 493 /boot/loader.conf. 494 49520000812: 496 suidperl is now always built and installed on the system, but 497 with permissions of 511. If you have applications that use 498 this program, you are now required to add ENABLE_SUIDPERL=true 499 to /etc/make.conf. If you forget to do this, 500 chmod 4511 /usr/bin/suidperl 501 will fix this until the next build. 502 50320000812: 504 sendmail has been updated from 8.9.3 to 8.11.0. Some of the more 505 visible changes that may immediately affect your configuration 506 include: 507 - New default file locations from src/contrib/sendmail/cf/README 508 - newaliases limited to root and trusted users 509 - MSA port (587) turned on by default 510 - New queue file naming system so can't go from 8.11 -> 8.9 511 - FEATURE(`rbl') renamed to FEATURE(`dnsbl') 512 - FEATURE(`nullclient') is more full featured 513 - FEATURE(`nouucp') requires an argument: `reject' or `nospecial' 514 - mail.local FreeBSD-only -b option changed to -B 515 - See src/contrib/sendmail/RELEASE_NOTES for more info 516 51720000810: 518 suidperl (aka sperl) is no longer build by default. You must 519 specifically define BUILD_SUIDPERL to "true" for it to be build. 520 Furthermore, we recommend that you remove /usr/bin/sperl* and 521 /usr/bin/suidperl files from your system unless you have a 522 specific use for it. 523 52420000729: 525 Networking defaults have been tightened. Anybody upgrading 526 /etc/defaults/rc.conf needs to add the following lines to 527 /etc/rc.conf if they want to have the same setup 528 afterwards (unless the variables already are set, of course): 529 # Enable network daemons for user convenience. 530 inetd_enable="YES" 531 portmap_enable="YES" 532 sendmail_enable="YES" 533 53420000728: 535 If you have null_load="YES" in your /boot/loader.conf, you 536 will need to change that to nullfs_load="YES". 537 53820000728: 539 The "installkernel" target has changed slightly. Now even if 540 you override KERNEL e.g. 'make installkernel KERNEL=MYKERNEL' 541 it will install the MYKERNEL file (built with the buildkernel 542 target) as /kernel rather than /MYKERNEL. Those who have 543 updated their /boot/loader.conf files to point to /MYKERNEL 544 should remove that entry or perform manual rename of /kernel 545 to /MYKERNEL. 546 54720000711: 548 If you use CVSUP or CTM to get CVS trees, AND you used to get 549 the old crypto files from internat.freebsd.org AND you check 550 out files from the CVS tree with the cvs command, please read 551 http://people.freebsd.org/~imp/internat.txt 552 for details on potential problems that you might have and how 553 to get around them. 554 555 If you are merely a mirror, or don't answer yes to each of the 556 clauses above, you needn't worry. 557 55820000711: 559 /etc/security has been updated to print the inode number of 560 setuid programs that have changed. You will see a large spike 561 in the number of changed programs the first time when you run 562 mergemaster to get a new /etc/security. 563 56420000710: 565 /dev/random now has good entropy collection (from the keyboard 566 and sysmouse drivers). Please ensure that either `options 567 RANDOMDEV' is present in your kernel config file or that 568 `randomdev_load="YES"' is in your /boot/loader.conf. If you do 569 not have the /dev/random driver, OpenSSL (and consequently 570 lots of crypto tools (like SSH)) will fail with strange 571 errors. (see below, 20000624). 572 573 FreeBSD-current is safe again to run Crypto. 574 57520000709: 576 phk made the malloc default options AJ. This may slow things 577 down and uncover other latent bugs in the code. If you need to 578 run at full speed, you can disable this by doing the following: 579 ln -s aj /etc/malloc.conf 580 58120000706: 582 libftpio's version was accidentally bumped a few days ago. This 583 has been corrected. You may need to remove /usr/lib/libftpio.so.6 584 before doing your next buildworld/installworld pair. It certainly 585 won't hurt to remove it before the update procedure. It will 586 break fetch until a new one is built, but ftp can be used in the 587 interim if needed. 588 58920000705: 590 The crypto packages have changed for the cvsup. This has been done 591 in a backward compatible way, but the old packages will go away at 592 some point in the future. Look at /usr/share/examples/cvsup for 593 details. 594 59520000704: 596 With the new sys/modules/sound/drivers/*, you will need to 597 set SYSDIR until you do an installworld after July 7th. 598 59920000704: 600 rc.shutdown and rc will now call the rc.d scripts with start 601 or stop. This may cause some harmless warnings from older 602 rc.d scripts that haven't been updated. 603 60420000630: 605 The libfetch based version of fetch has gone into the tree. 606 Minor problems may result on some of the less popular sites, 607 which should be reported to des@freebsd.org. 608 60920000625: 610 From approximately this date forward, one must have the crypto 611 system installed in order to build the system and kernel. 612 While not technically strictly true, one should treat it as 613 required and grab the crypto bits. If you are grabbing CVS 614 trees, src-all and cvs-crypto should be treated as if they 615 were required. You should check with the latest collections 616 to make sure that these haven't changed. 617 61820000624: 619 Mark Murray just committed the first parts of a cleanup of 620 /dev/zero, et al. This is also cleaning up /dev/random. 621 The entropy is disconnected, so DO NOT USE VERSIONS OF FREEBSD 622 -CURRENT FROM THIS POINT FORWARD for cryptographic services 623 until Mark can merge in the fixes to this work in progress. 624 openssh and openssl should not be used to generate keys from this 625 date to the completion of the work. 626 627 If you must operate at this reduced level of security, add ' 628 options RANDOMDEV' to your kernel or modload the randomdev 629 module. You may also need to copy a new MAKEDEV to /dev and 630 recreate the random and urandom devices. 631 63220000622: 633 The license on the softupdates is now a standard 2 clause 634 BSD license. You may need to remove your symbolic links 635 that used to be required when updating. 636 63720000621: 638 Scott Flatman <sf@aracnet.com> sent in a decent write-up on 639 the config file update procedure. 640 http://people.freebsd.org/~imp/config-upd.html 641 NOTE: LINT is gone. It has been replaced with NOTES. NOTES 642 isn't buildable. However, you can generate a LINT file. 643 64420000620: 645 Binutils 2.10 have hit the tree, or will shortly. As soon 646 as they do, the problem noted in 20000522 will be resolved and 647 that workaround will no longer be required. 648 64920000615: 650 phk removed the compatibility creation of wd devices in the 651 ad driver. If you haven't done so already, you must update 652 your fstab, etc to use the ad devices instead of the wd 653 devices. 654 655 In addition, you'll need to update your boot blocks to a 656 more modern version, if you haven't already done so. Modern 657 here means 4.0 release or newer (although older releases 658 may work). 659 66020000612: 661 Peter took an axe to config(8). Be sure that you read his mail 662 on the topic before even thinking about updating. You will 663 need to create a /boot/device.hints or add a hints directive 664 to your config file to compile them in statically. The format 665 of the config file has changed as well. Please see GENERIC or 666 NEWCARD for examples of the new format. 667 66820000522: 669 A new set of binutils went into the tree today. Anybody 670 building a kernel after this point is advised that they need 671 to rebuild their binutils (or better yet do a 672 buildworld/installworld) before building a new kernel. 673 674 Due to bugs in binutils, using malloc options (eg /etc/malloc.conf 675 or MALLOC_OPTIONS env var) J will cause ld to dump core. It 676 is recommended that you don't set this option until the problem 677 is resolved. 678 67920000513: 680 The ethernet drivers were all updated to clean up the BPF handling. 681 68220000510: 683 The problems with boot blocks on the alphas have been corrected. 684 This will require some care in updating alphas. A new libstand 685 is requires for the boot blocks to build properly. 686 68720000503: 688 Recompile all kld modules. Proper version dependency info 689 is now available. 690 69120000502: 692 Modules have been disconnected from the buildworld tree and 693 connected to the kernel building instead. 694 69520000427: 696 You may need to build gperf 697 cd /usr/src/gnu/usr.bin/gperf && make depend all install 698 when upgrading from 4.0 -> current. The build system now uses 699 an option only in -current. 700 70120000417: 702 The method that we brand ELF binaries has changed to be more 703 acceptable to the binutils maintainers. You will need to 704 rebrand your ELF binaries that aren't native. One problem 705 binary is the Linux ldconfig. After your make world, but 706 before you reboot, you'll need to issue: 707 brandelf -t Linux /compat/linux/sbin/ldconfig 708 if you have Linux compatibility enabled on your machine. 709 71020000320: 711 If you have really bad/marginal IDE drives, you may find they 712 don't work well. Use pio mode instead. The easiest way to 713 cope if you have a problem combination is to add: 714 /sbin/sysctl -w hw.atamodes=pio,pio,pio,pio 715 to the start of /etc/rc.conf. 716 71720000319: 718 The ISA and PCI compatibility shims have been connected to the 719 options COMPAT_OLDISA and COMPAT_OLDPCI. If you are using old 720 style PCI or ISA drivers (i.e. tx, voxware, etc.) you must 721 include the appropriate option in your kernel config. Drivers 722 using the shims should be updated or they won't ship with 723 5.0-RELEASE, targeted for 2001. 724 72520000318: 726 We've entered the traditional post release dumping party. 727 Large kernel changes are being committed and are in the 728 works. It is important to keep the systems' klds and kernel 729 in sync as kernel interfaces and structures are changing. 730 Before reporting kernel panics, make sure that all modules 731 that you are loading are up to date. 732 73320000315: 734 If you are upgrading from an older version of FreeBSD, you 735 need to update your boot blocks as well. 'disklabel -B ad0' 736 will do the trick. This isn't critical until you remove your 737 wd device entries in /dev, at which point your system will not 738 boot. 739 74020000315: 741 4.0 RELEASE shipped. Please see the 4.0 UPDATING file for how 742 to upgrade to 4.0 from 3.x. 743 744COMMON ITEMS: 745 746 General Notes 747 ------------- 748 Avoid using make -j when upgrading. From time to time in the 749 past there have been problems using -j with buildworld and/or 750 installworld. This is especially true when upgrading between 751 "distant" versions (eg one that cross a major release boundary 752 or several minor releases, or when several months have passed 753 on the -current branch). 754 755 To build a kernel 756 ----------------- 757 If you are updating from a prior version of FreeBSD (even one just 758 a few days old), you should follow this procedure. With a 759 /usr/obj tree with a fresh buildworld, 760 make buildkernel KERNCONF=YOUR_KERNEL_HERE 761 make installkernel KERNCONF=YOUR_KERNEL_HERE 762 763 To just build a kernel when you know that it won't mess you up 764 -------------------------------------------------------------- 765 cd src/sys/{i386,alpha}/conf 766 config KERNEL_NAME_HERE [1] 767 cd ../../compile/KERNEL_NAME_HERE 768 make depend 769 make 770 make install 771 772 [1] If in doubt, -r might help here. 773 774 If this fails, go to the "To build a kernel" section. 775 776 To rebuild everything and install it on the current system. 777 ----------------------------------------------------------- 778 make world 779 Build a new kernel, see above. 780 781 To upgrade from 4.x-stable to current 782 ------------------------------------- 783 make buildworld 784 make buildkernel KERNCONF=YOUR_KERNEL_HERE 785 cp src/sys/${MACHINE_ARCH}/conf/GENERIC.hints /boot/device.hints [2] 786 make installkernel KERNCONF=YOUR_KERNEL_HERE 787 reboot in single user [3] 788 make installworld 789 mergemaster [4] 790 [1] 791 <reboot> 792 793 Make sure that you've read the UPDATING file to understand the 794 tweaks to various things you need. At this point in the life 795 cycle of current, things change often and you are on your own 796 to cope. The defaults can also change, so please read ALL of 797 the UPDATING entries. 798 799 Also, if you are tracking -current, you must be subscribed to 800 freebsd-current@freebsd.org. Make sure that before you update 801 your sources that you have read and understood all the recent 802 messages there. If in doubt, please track -stable which has 803 much fewer pitfalls. 804 805 [1] If you have third party modules, such as vmware, you 806 should disable them at this point so they don't crash your 807 system on reboot. 808 809 [2] If you have legacy ISA devices, you may need to create 810 your own device.hints to reflect your unique hardware 811 configuration. 812 813 [3] From the bootblocks, boot -s, and then do 814 fsck -p 815 mount -u / 816 mount -a 817 cd /usr/src 818 adjkerntz -i # if COMS is wall time 819 820 [4] Note: This step is non-optional. Failure to do this step 821 can result in a significant reduction in the functionality of the 822 system. Attempting to do it by hand is not recommended and those 823 that pursue this avenue should read this file carefully, as well 824 as the archives of freebsd-current and freebsd-hackers mailing lists 825 for potential gotchas. 826 827FORMAT: 828 829This file contains a list, in reverse chronological order, of major 830breakages in tracking -current. Not all things will be listed here, 831and it only starts on March 15, 2000. Updating files can found in 832previous releases if your system is older than this. 833 834Please filter your entries through Warner Losh (imp@village.org) so 835that the style, formatting, etc of this file can be maintained. 836 837Copyright information: 838 839Copyright 1998, 2001 M. Warner Losh. All Rights Reserved. 840 841Redistribution, publication, translation and use, with or without 842modification, in full or in part, in any form or format of this 843document are permitted. 844 845THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR 846IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 847WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 848DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, 849INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 850(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 851SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 852HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 853STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 854IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 855POSSIBILITY OF SUCH DAMAGE. 856 857If you find this document useful, and you want to, you may buy the 858author a beer. 859 860Contact Warner Losh if you have any questions about your use of 861this document. 862 863$FreeBSD$ 864