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