xref: /dflybsd-src/UPDATING (revision dbf3d3ba6711182d11deec6e897efb74374f111f)
1d2a0deccSMatthew Dillon# Updating Information for DragonFly users.
2d2a0deccSMatthew Dillon#
3d2a0deccSMatthew Dillon#
4d2a0deccSMatthew Dillon# This file should warn you of any pitfalls which you might need to work around
5d2a0deccSMatthew Dillon# when trying to update your DragonFly system.  The information below is
6d2a0deccSMatthew Dillon# in reverse-time order, with the latest information at the top.
7d2a0deccSMatthew Dillon#
8d2a0deccSMatthew Dillon# If you discover any problem, please contact the bugs@lists.dragonflybsd.org
9d2a0deccSMatthew Dillon# mailing list with the details.
10984263bcSMatthew Dillon
1164aeb497SSascha Wildner+-----------------------------------------------------------------------+
12*dbf3d3baSJohn Marino+         UPGRADING DRAGONFLY FROM 4.2 TO LATER VERSIONS                +
13*dbf3d3baSJohn Marino+-----------------------------------------------------------------------+
14*dbf3d3baSJohn Marino
15*dbf3d3baSJohn MarinoSEVERAL LOCALES RENAMED
16*dbf3d3baSJohn Marino-----------------------
17*dbf3d3baSJohn Marino
18*dbf3d3baSJohn MarinoSeveral locales were using obsolete and misleading names, and thus have
19*dbf3d3baSJohn Marinobeen adjusted to current standards. Any users of the following locales
20*dbf3d3baSJohn Marinoneed to select alternates:
21*dbf3d3baSJohn Marino
22*dbf3d3baSJohn MarinoDFLY 4.2 locale            DFLY 4.4 alterative locale
23*dbf3d3baSJohn Marino---------------            ------------------------------------
24*dbf3d3baSJohn Marinomn_MN.UTF-8                mn_Cyrl_MN.UTF-8
25*dbf3d3baSJohn Marinono_NO.UTF-8                nb_NO.UTF-8      or nn_NO.UTF-8
26*dbf3d3baSJohn Marinono_NO.ISO8859-1            nb_NO.ISO8869-1  or nn_NO.ISO8859-1
27*dbf3d3baSJohn Marinono_NO.ISO8859-15           nb_NO.ISO8859-15 or nn_NO.ISO8859-15
28*dbf3d3baSJohn Marinosr_YU.UTF-8                sr_Cyrl_RS.UTF-8 or sr_Latn_RS.UTF-8
29*dbf3d3baSJohn Marinosr_YU.ISO8859-5            sr_Cyrl_RS.ISO8859-5
30*dbf3d3baSJohn Marinosr_YU.ISO8859-2            sr_Latn_RS.ISO8859-2
31*dbf3d3baSJohn Marinozh_CN.GBK                  zh_Hans_CN.GBK
32*dbf3d3baSJohn Marinozh_CN.UTF-8                zh_Hans_CN.UTF-8
33*dbf3d3baSJohn Marinozh_CN.eucCN                zh_Hans_CN.eucCN
34*dbf3d3baSJohn Marinozh_CN.GB2312               zh_Hans_CH.GB2312
35*dbf3d3baSJohn Marinozh_CN.GB18030              zh_Hans_CH.GB18030
36*dbf3d3baSJohn Marinozh_HK.Big5HKSCS            zh_Hant_HK.Big5HKSCS
37*dbf3d3baSJohn Marinozh_HK.UTF_8                zh_Hant_HK.UTF-8
38*dbf3d3baSJohn Marinozh_TW.Big5                 zh_Hant_TW.Big5
39*dbf3d3baSJohn Marinozh_TW.UTF-8                zh_Hant_TW.UTF-8
40*dbf3d3baSJohn Marino
41*dbf3d3baSJohn Marino+-----------------------------------------------------------------------+
422a617999SSascha Wildner+         UPGRADING DRAGONFLY FROM 4.0 TO LATER VERSIONS                +
432a617999SSascha Wildner+-----------------------------------------------------------------------+
442a617999SSascha Wildner
4565c3b857SJohn MarinoBINUTILS 2.25 REPLACES 2.22, PRIMARY
4665c3b857SJohn Marino------------------------------------
4765c3b857SJohn Marino
4865c3b857SJohn MarinoThe oldest of the two versions of Binutils, version 2.22, was removed
4965c3b857SJohn Marinoand replaced with Binutils 2.25.  It becomes the primary version version
5065c3b857SJohn Marinoof binutils and version 2.24 becomes the alternate.  There are 8 current
5165c3b857SJohn MarinoCVE written against 2.24, so for security reasons version 2.25 should
5265c3b857SJohn Marinoalways be used.
5365c3b857SJohn Marino
5465c3b857SJohn MarinoThe accepted values of BINUTILSVER are now "binutils225" (default) and
5565c3b857SJohn Marino"binutils224".  The building of Binutils 2.24 can be prevented by setting
5665c3b857SJohn MarinoNO_ALTBINUTILS=yes in make.conf.
5765c3b857SJohn Marino
5872b78560SJohn MarinoLOADER OPTIONS CHANGED
5972b78560SJohn Marino----------------------
6072b78560SJohn Marino
6172b78560SJohn MarinoRight after the development branch started, the Fred art accompanying the
6272b78560SJohn Marinoloader menu was improved.  The line between Fred and the menu was removed
6372b78560SJohn Marinoby default (but can optionally be returned) and the placement shifted as
6472b78560SJohn Marinoa result.  The drawing was improved, and the colored version was improved,
6572b78560SJohn Marinochanging the eyes and wing color from white to red.  A new color version
6672b78560SJohn Marinoof Fred was added, one with a blue scheme.
6772b78560SJohn Marino
6872b78560SJohn MarinoThe loader menu defaults have changed since release 4.0:  The vertical
6972b78560SJohn Marinoline was removed, the loader is displayed in color by default*, and the
7072b78560SJohn Marinoblue scheme is used.
7172b78560SJohn Marino
7272b78560SJohn MarinoThe loader.conf changes are:
7372b78560SJohn Marinoloader_color:   option has been removed
7472b78560SJohn Marinoloader_plain:   option has been added, it changed menu to monochrome
7572b78560SJohn Marinofred_is_red:    changes color scheme from blue to red
7672b78560SJohn Marinofred_is_blue:   option existed only on 4.1, it has been removed
7772b78560SJohn Marinofred_separated: Adds line between Fred and menu (as seen previously)
7872b78560SJohn Marino
7972b78560SJohn Marino* If loader.conf defines "console" as "comconsole" or "console" is defined
8072b78560SJohn Marino  in the environment as "comconsole" then color will not be displayed,
8172b78560SJohn Marino  even if loader_plain value is "NO".
8272b78560SJohn Marino
83cbab4ab1SJohn MarinoSENDMAIL REMOVED FROM BASE
84cbab4ab1SJohn Marino--------------------------
85cbab4ab1SJohn Marino
86cbab4ab1SJohn MarinoThe only Mail Transfer Agent provided now is DragonFly Mail Agent (dma).
87cbab4ab1SJohn MarinoIf the system being upgraded is still configured to use the sendmail
88cbab4ab1SJohn Marinobinaries from base, the "make upgrade" command will fail.
89cbab4ab1SJohn Marino
90cbab4ab1SJohn MarinoThe administrator must change /etc/mail/mailer.conf to switch the
91cbab4ab1SJohn Marinomailwrapper to dma or a DPorts-based MTA prior to running the upgrade
92cbab4ab1SJohn Marinocommand that permanently removes sendmail executables and could
93cbab4ab1SJohn Marinopotentially break a running mail server.
94cbab4ab1SJohn Marino
95cbab4ab1SJohn MarinoRefer: http://www.dragonflybsd.com/docs/docs/newhandbook/mta/ for
96cbab4ab1SJohn Marinodetailed instructions on how to configure the MTA selection.
97cbab4ab1SJohn Marino
98a7ac1ee9SSascha Wildner_KPOSIX_VERSION and P1003_1B OPTIONS REMOVED
99a7ac1ee9SSascha Wildner--------------------------------------------
100a7ac1ee9SSascha Wildner
101a7ac1ee9SSascha WildnerThe _KPOSIX_VERSION and P1003_1B kernel options have been changed to
102a7ac1ee9SSascha Wildnerno-ops. They can be removed from custom kernel configurations.
103a7ac1ee9SSascha Wildner
104aa7c3d6bSFrançois TigeotSOUND SYSTEM UPDATED FROM FreeBSD 11-CURRENT
105aa7c3d6bSFrançois Tigeot--------------------------------------------
106aa7c3d6bSFrançois Tigeot
107aa7c3d6bSFrançois TigeotMany more sound devices may be detected.
108aa7c3d6bSFrançois Tigeot
109aa7c3d6bSFrançois TigeotIf the default device choosen isn't to your liking, setting the sysctl
110aa7c3d6bSFrançois Tigeothw.snd.default_unit to a different number will change it.
111aa7c3d6bSFrançois Tigeot
11260a260adSSascha WildnerSCTP SUPPORT DROPPED
11360a260adSSascha Wildner--------------------
11460a260adSSascha Wildner
11560a260adSSascha WildnerSupport for the SCTP protocol has been removed.
11660a260adSSascha Wildner
1172a617999SSascha WildnerOLD USB DRIVERS REMOVED
1182a617999SSascha Wildner-----------------------
1192a617999SSascha Wildner
1202a617999SSascha WildnerThe old USB stack, along with the kernel config option "device oldusb"
1212a617999SSascha Wildnerand the make.conf variable "WANT_OLDUSB" have been removed. This means
1222a617999SSascha Wildnerthat for custom kernel configuration files which were derived from a
1232a617999SSascha WildnerGENERIC or X86_64_GENERIC file prior to making the usb4bsd stack default,
1242a617999SSascha Wildnervarious (old USB stack specific) devices will now complain about being
1252a617999SSascha Wildnerunknown:
1262a617999SSascha Wildner
1272a617999SSascha Wildner  * oldusb	(obviously)
1282a617999SSascha Wildner  * natausb	(not yet ported to usb4bsd)
1292a617999SSascha Wildner  * rue		(not yet ported to usb4bsd)
1302a617999SSascha Wildner  * ugen	(no longer needed in usb4bsd)
1312a617999SSascha Wildner  * urio	(not yet ported to usb4bsd)
1322a617999SSascha Wildner  * uscanner	(no longer needed in usb4bsd)
1332a617999SSascha Wildner
1342a617999SSascha WildnerThey should be removed or commented out in such custom kernel configs.
1352a617999SSascha Wildner
1364e8e707fSJohn MarinoGCC 5
1374e8e707fSJohn Marino-----
138e9b676f1SJohn Marino
1394e8e707fSJohn MarinoThe GCC 4.4 compiler has been retired.  It has been replaced by a GCC 5.1.
1404e8e707fSJohn MarinoThe following make.conf variables no longer work: NO_GCC44, NO_OBJC, and
1414e8e707fSJohn MarinoNO_CXX.  The latter was never documented and the latest versions of GCC are
1424e8e707fSJohn Marinopartially written in C++ so a C++ compiler is no longer optional.  In
1434e8e707fSJohn Marinopractical terms it has not been optional for many years as other base
1444e8e707fSJohn Marinocomponents are also written in C++.  The resource savings by avoiding
1454e8e707fSJohn Marinobuilding Objective-C compiler is so small, the complexity added by NO_OBJC
1464e8e707fSJohn Marinointernally was deemed a bad tradeoff so that is the reason for its removal.
1474e8e707fSJohn MarinoAlso note that no "info" pages are installed with GCC 5.  After this entry
1484e8e707fSJohn Marinowas originally written, all info pages were removed from DragonFly.
149e9b676f1SJohn Marino
1504e8e707fSJohn MarinoGCC 5.1 has been designated as the primary compiler.  As such, there is a
1514e8e707fSJohn Marinonew make.conf variable, NO_ALTCOMPILER.  It will block the rebuilding of
1524e8e707fSJohn Marinothe designated secondary compiler, GCC 4.7.  However, while DPorts
1534e8e707fSJohn Marinoprimarily uses GCC 5 to build ports now, it still uses GCC 4.7 as well, so
1544e8e707fSJohn Marinoif building ports from source is desired, don't block building of the
1554e8e707fSJohn Marinosecondary compiler.
156e9b676f1SJohn Marino
1572a617999SSascha Wildner+-----------------------------------------------------------------------+
1580055c35bSSascha Wildner+         UPGRADING DRAGONFLY FROM 3.8 TO LATER VERSIONS                +
1590055c35bSSascha Wildner+-----------------------------------------------------------------------+
1600055c35bSSascha Wildner
1612a617999SSascha WildnerSMP AND DEVICE_POLLING OPTIONS MADE UNKNOWN
16239b3e0a1SSascha Wildner-------------------------------------------
16339b3e0a1SSascha Wildner
16439b3e0a1SSascha WildnerDEVICE_POLLING was replaced by IFPOLL_ENABLE and the former SMP code is
16539b3e0a1SSascha Wildnerthe default now (even on single-core systems), both for, like, 21 months.
16639b3e0a1SSascha WildnerWe kept the options around as no-ops as a convenience, to allow people
16739b3e0a1SSascha Wildnerusing the same config for the then current release and the then current
16839b3e0a1SSascha Wildnermaster. That period is now over, so any configs still having those
16939b3e0a1SSascha Wildneroptions have to be adjusted.
17039b3e0a1SSascha Wildner
17110ceb702SSascha WildnerSYSVIPC SYSCALLS MADE NON-OPTIONAL
17210ceb702SSascha Wildner----------------------------------
17310ceb702SSascha Wildner
17410ceb702SSascha WildnerThe code related to the SYSVMSG, SYSVSEM and SYSVSHM kernel options is
17510ceb702SSascha Wildnernow compiled in by default. The options are no-ops for now.
17610ceb702SSascha Wildner
17779a3e83fSSascha WildnerDEFAULT DRIVER CHANGED FOR LSI "THUNDERBOLT" SERIES RAID CONTROLLERS
17879a3e83fSSascha Wildner--------------------------------------------------------------------
17979a3e83fSSascha Wildner
18079a3e83fSSascha WildnerThe default driver for those controllers is now mrsas(4) due to reports
18179a3e83fSSascha Wildnerof file system corruption using the mfi(4) driver. The whole issue (and
18279a3e83fSSascha Wildnerhow to deal with potential problems when switching) was explained here:
18379a3e83fSSascha Wildner
18479a3e83fSSascha Wildnerhttp://lists.dragonflybsd.org/pipermail/users/2014-July/128703.html
18579a3e83fSSascha Wildner
18679a3e83fSSascha WildnerA tunable is provided for letting those controllers still attach via
18779a3e83fSSascha Wildnerthe mfi(4) driver, hw.mrsas.mfi_enable (see mrsas(4) manual page).
18879a3e83fSSascha Wildner
1890055c35bSSascha WildnerOLDER NETWORK DRIVERS MOVED TO I386 ONLY
1900055c35bSSascha Wildner----------------------------------------
1910055c35bSSascha Wildner
1920055c35bSSascha WildnerThe following drivers have been made i386 only: ed(4), sr(4), ng_sync_ar
1930055c35bSSascha Wildnerand ng_sync_sr. ed(4) used to be in X86_64_GENERIC, so it has to be
1940055c35bSSascha Wildnerremoved in kernel configs derived from X86_64_GENERIC.
1950055c35bSSascha Wildner
1960055c35bSSascha Wildner+-----------------------------------------------------------------------+
19762d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 3.6 TO LATER VERSIONS                +
198e19e3c77SSascha Wildner+-----------------------------------------------------------------------+
199e19e3c77SSascha Wildner
200a6a7c140SJustin C. SherrillUPDATE FROM MOST RECENT 3.6
201a6a7c140SJustin C. Sherrill---------------------------
202a6a7c140SJustin C. Sherrill
203a6a7c140SJustin C. SherrillVersions of 3.6 built before June 25th have a bug where installworld might
204a6a7c140SJustin C. Sherrillcrash during installation of the new initrd.  Upgrade to the latest version
205a6a7c140SJustin C. Sherrillof 3.6 before updating to 3.8 or later.
206a6a7c140SJustin C. Sherrill
2077c87aae6SSascha WildnerATM, IPX, NCP AND NWFS SUPPORT DROPPED
2087c87aae6SSascha Wildner--------------------------------------
2096f25d555SSascha Wildner
2106f25d555SSascha WildnerSupport for the IPX and NCP network protocols and for mouting NetWare
2117c87aae6SSascha Wildnerfile systems has been dropped. Dito for ATM protocol support.
2126f25d555SSascha Wildner
2136f25d555SSascha WildnerINITRD IMAGES NOW INSTALLED BY DEFAULT
2146f25d555SSascha Wildner--------------------------------------
2156f25d555SSascha Wildner
2166f25d555SSascha WildnerAn initial ramdisk image is now installed in /boot/kernel/initrd.img.gz
2176f25d555SSascha Wildner
2186f25d555SSascha WildnerOlder images installed under the file name of initrd.img will be removed
2196f25d555SSascha Wildnerautomatically by the make upgrade process.
2206f25d555SSascha Wildner
221f0478b8bSSascha WildnerUSB4BSD IS NOW THE DEFAULT USB STACK
222f0478b8bSSascha Wildner------------------------------------
223f0478b8bSSascha Wildner
224f0478b8bSSascha WildnerTo get back to the old stack, put "WANT_OLDUSB=yes" in /etc/make.conf and
225f0478b8bSSascha Wildnerreplace "device usb" with "device oldusb" in the kernel configuration.
226f0478b8bSSascha Wildner
227e19e3c77SSascha WildnerMORE ISA SUPPORT DROPPED
228e19e3c77SSascha Wildner------------------------
229e19e3c77SSascha Wildner
230e19e3c77SSascha WildnerISA support has been dropped from the following drivers: adv(4), an(4),
231e19e3c77SSascha Wildnerar(4), cs(4), digi(4), ed(4), ep(4), ex(4), fe(4), lnc(4), sbni(4),
232e19e3c77SSascha Wildnersi(4), sn(4), and stg(4).
233e19e3c77SSascha Wildner
234e19e3c77SSascha Wildner+-----------------------------------------------------------------------+
23562d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 3.4 TO LATER VERSIONS                +
2369332798aSSascha Wildner+-----------------------------------------------------------------------+
2379332798aSSascha Wildner
238c04df145SJustin C. SherrillABI CHANGE
239c04df145SJustin C. Sherrill----------
240c04df145SJustin C. Sherrill
241c04df145SJustin C. SherrillInstalled third-party software (dports) will have to be rebuilt after upgrade,
242c04df145SJustin C. Sherrillor reinstalled from binary packages.
243c04df145SJustin C. Sherrill
2442b455b95SJustin C. SherrillUPDATING FROM 3.4 TO 3.6
2452b455b95SJustin C. Sherrill------------------------
2462b455b95SJustin C. Sherrill
2472b455b95SJustin C. SherrillThis only applies for this specific upgrade due to locale changes; it is
2482b455b95SJustin C. Sherrillnot needed for upgrades after 3.6.  Please update in this order:
2492b455b95SJustin C. Sherrill
2502b455b95SJustin C. Sherrillmake buildworld
2512b455b95SJustin C. Sherrillmake buildkernel
2522b455b95SJustin C. Sherrillmake installworld
2532b455b95SJustin C. Sherrillmake installkernel
2542b455b95SJustin C. Sherrill*reboot*
2552b455b95SJustin C. Sherrillmake upgrade
2562b455b95SJustin C. Sherrill
2572b455b95SJustin C. SherrillSee this mailing list post for details:
2582b455b95SJustin C. Sherrillhttp://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html
2592b455b95SJustin C. Sherrill
2609332798aSSascha WildnerCYRIX OPTIONS REMOVED
2619332798aSSascha Wildner---------------------
2629332798aSSascha Wildner
2639332798aSSascha WildnerThe following Cyrix related options have been removed: CPU_BTB_EN,
2649332798aSSascha WildnerCPU_CYRIX_NO_LOCK, CPU_DIRECT_MAPPED_CACHE, CPU_DISABLE_5X86_LSSER,
2659332798aSSascha WildnerCPU_FASTER_5X86_FPU, CPU_IORT, CPU_LOOP_EN, CPU_RSTK_EN, CPU_SUSP_HLT,
2669332798aSSascha WildnerCYRIX_CACHE_WORKS, and CYRIX_CACHE_REALLY_WORKS
2679332798aSSascha Wildner
2689332798aSSascha WildnerISA SUPPORT REMOVED FROM RP(4)
2699332798aSSascha Wildner------------------------------
2709332798aSSascha Wildner
2719332798aSSascha WildnerISA support has been removed from the rp(4) driver. It is now PCI only.
2729332798aSSascha Wildner
2739332798aSSascha Wildner+-----------------------------------------------------------------------+
27462d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 3.2 TO LATER VERSIONS                +
27564aeb497SSascha Wildner+-----------------------------------------------------------------------+
27664aeb497SSascha Wildner
277d88b9605SSascha WildnerCOMPAT_SUNOS OPTION REMOVED
278d88b9605SSascha Wildner---------------------------
279d88b9605SSascha Wildner
280d88b9605SSascha WildnerThe COMPAT_SUNOS option has been removed. It was meant to provide binary
281d88b9605SSascha Wildnercompatibility with SunOS 4.x for the sparc32 port of 4.4BSD.
282d88b9605SSascha Wildner
28343f215d7SSascha WildnerISA SOUND CARD SUPPORT REMOVED
28443f215d7SSascha Wildner------------------------------
28543f215d7SSascha Wildner
28643f215d7SSascha WildnerThe following modules have been removed (all for ISA sound cards):
28743f215d7SSascha Wildnersnd_ad1816.ko, snd_ess.ko, snd_mss.ko, snd_sb8.ko, snd_sb16.ko, snd_sbc.ko
28843f215d7SSascha Wildner
2896100d1deSJohn MarinoGCC 4.7
2906100d1deSJohn Marino-------
2916100d1deSJohn Marino
2926100d1deSJohn MarinoDragonFly has switched base compilers.  GCC 4.7 is now the default
2936100d1deSJohn Marinocompiler and GCC 4.4 is the alternative compiler.  The "NO_GCC47" make
2946100d1deSJohn Marinovariable ceases to work now.
2956100d1deSJohn Marino
2966100d1deSJohn MarinoUsers who wish to build only GCC 4.7 have to use NO_GCC44 in the
2976100d1deSJohn Marino/etc/make.conf to prohibit GCC 4.4 from building.  However, using it is
2986100d1deSJohn Marinohighly discouraged.  There are a few packages in pkgsrc that do not build
2996100d1deSJohn Marinowith GCC 4.7 and the new "DPorts" system uses GCC 4.4 by default.  At
3006100d1deSJohn Marinothis time, it is recommended to keep both compilers on the base system.
3016100d1deSJohn Marino
3022089bb7cSSascha WildnerSMP OPTION REMOVED
3032089bb7cSSascha Wildner------------------
3042089bb7cSSascha Wildner
3052089bb7cSSascha WildnerThe SMP kernel option has been made a no-op. All kernels now feature SMP
3062089bb7cSSascha Wildnersupport. If you have 'options SMP' in your kernel config, you can as well
3072089bb7cSSascha Wildnerremove it.
3082089bb7cSSascha Wildner
3091c297ed0SSascha WildnerDEVICE_POLLING OPTION REPLACED BY IFPOLL_ENABLE OPTION, KTR_POLLING REMOVED
3101c297ed0SSascha Wildner---------------------------------------------------------------------------
311640dc18fSSepherosa Ziehau
312640dc18fSSepherosa ZiehauThe DEVICE_POLLING kernel option has been made a no-op and it has been
313640dc18fSSepherosa Ziehaureplaced by IFPOLL_ENABLE.  If you have 'options DEVICE_POLLING' in your
314640dc18fSSepherosa Ziehaukernel config, you need to change it to IFPOLL_ENABLE.
315640dc18fSSepherosa Ziehau
3161c297ed0SSascha WildnerAlso, the KTR_POLLING kernel option has been removed, so it must be
3171c297ed0SSascha Wildnerremoved from kernel configs that have it.
3181c297ed0SSascha Wildner
319558b0a0bSSascha WildnerBUSLOGIC, CYCLADES AND STALLION ISA SUPPORT REMOVED
320558b0a0bSSascha Wildner---------------------------------------------------
321850c4634SSascha Wildner
322850c4634SSascha WildnerThe bt(4) driver for Buslogic SCSI adapters has been made PCI only. ISA
323850c4634SSascha Wildnercards will no longer be detected.
324850c4634SSascha Wildner
325e6f626a1SSascha WildnerThe same has been done for Stallion multiport serial controllers. stli(4)
326e6f626a1SSascha Wildnerhas been completely removed (along with the stlload(8) and stlstty(8)
327558b0a0bSSascha Wildnerutilities) and stl(4) was changed to support only PCI cards. Similarly,
328558b0a0bSSascha WildnerISA support was removed from cy(4) too. All these drivers are i386 only.
329e6f626a1SSascha Wildner
330e98bcb27SSascha WildnerCOMPAT_OLDISA OPTION GONE
331e98bcb27SSascha Wildner-------------------------
332e98bcb27SSascha Wildner
333e98bcb27SSascha WildnerThe i386 specific COMPAT_OLDISA kernel option has been removed, since
334e98bcb27SSascha Wildnernothing needs it anymore.
335e98bcb27SSascha Wildner
336640dc18fSSepherosa Ziehau+-----------------------------------------------------------------------+
33762d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 3.0 TO LATER VERSIONS                +
338c691bb43SSascha Wildner+-----------------------------------------------------------------------+
339c691bb43SSascha Wildner
340c691bb43SSascha WildnerAPIC_IO OPTION REMOVED
341c691bb43SSascha Wildner----------------------
342c691bb43SSascha Wildner
343c691bb43SSascha WildnerThe APIC_IO kernel option is no longer accepted after having been without
344c691bb43SSascha Wildnereffect for a while. The hw.ioapic_enable tunable now serves its purpose.
345c691bb43SSascha WildnerIf you have 'options APIC_IO' in your kernel config, you'll have to
346c691bb43SSascha Wildnerremove it.
347c691bb43SSascha Wildner
3486d488cc3SSascha WildnerWATCHDOG_ENABLE & HW_WDOG OPTIONS REMOVED
3496d488cc3SSascha Wildner-----------------------------------------
350cf03d6cdSSascha Wildner
351cf03d6cdSSascha WildnerThe wdog framework is now compiled into our kernels by default, so the
3526d488cc3SSascha Wildneroptions are no longer needed.
353cf03d6cdSSascha Wildner
354397ffc5cSSascha WildnerDOSCMD(1) REMOVED
355397ffc5cSSascha Wildner-----------------
356397ffc5cSSascha Wildner
357397ffc5cSSascha Wildnerdoscmd(1) has been removed. It was i386 only. The doscmd(1) specific
358397ffc5cSSascha WildnerNO_X make.conf option was removed too.
359397ffc5cSSascha Wildner
360a1404d4fSSascha WildnerGCC 4.7
361a1404d4fSSascha Wildner-------
362a1404d4fSSascha Wildner
363a1404d4fSSascha WildnerGCC 4.7 has been brought in and replaces GCC 4.1 as DragonFly's non-
364a1404d4fSSascha Wildnerdefault compiler in base (default is still GCC 4.4).
365a1404d4fSSascha Wildner
366a1404d4fSSascha WildnerUsers who wish to build only GCC 4.4 have to replace NO_GCC41 with
367a1404d4fSSascha WildnerNO_GCC47 in /etc/make.conf.
368a1404d4fSSascha Wildner
3692508820fSSascha WildnerUSB4BSD
3702508820fSSascha Wildner-------
3712508820fSSascha Wildner
3722508820fSSascha WildnerA new USB stack (from FreeBSD) has been brought in. The following
3732508820fSSascha Wildnermodules have been ported so far: usb, uhci, ohci, ehci, xhci, umass,
3742508820fSSascha Wildnerusfs, uether, if_axe, if_udav, ukbd, ums, uep, uhid, usb_quirk,
3752508820fSSascha Wildnerand uaudio.
3762508820fSSascha Wildner
3772508820fSSascha WildnerIt is not yet the default. To activate it, WANT_USB4BSD=yes has to
378c7200221SSascha Wildnerbe put in make.conf and device "usb4bsd" (quotes needed) has to
379c7200221SSascha Wildnerreplace device usb in the kernel config. After that, a full
380c7200221SSascha Wildnerbuild/install/upgrade cycle is needed.
3812508820fSSascha Wildner
3822508820fSSascha WildnerNote that this is experimental and incomplete, but we are interested
3832508820fSSascha Wildnerin hearing about issues with it, of course.
3842508820fSSascha Wildner
385ae0870a3SSascha WildnerISA SUPPORT REMOVED FROM AIC-6260/6360 DRIVER
386ae0870a3SSascha Wildner---------------------------------------------
387ae0870a3SSascha Wildner
388ae0870a3SSascha WildnerISA adapter support was dropped from the aic(4) driver.
389ae0870a3SSascha Wildner
390c691bb43SSascha Wildner+-----------------------------------------------------------------------+
39162d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 2.10 TO LATER VERSIONS               +
39296386d4bSSascha Wildner+-----------------------------------------------------------------------+
39396386d4bSSascha Wildner
39496386d4bSSascha WildnerSEVERAL ISA DRIVERS REMOVED
39596386d4bSSascha Wildner---------------------------
39696386d4bSSascha Wildner
39796386d4bSSascha WildnerThe following ISA only drivers have been removed along with a couple of
39896386d4bSSascha Wildnerassociated userland tools:
39996386d4bSSascha Wildner
40096386d4bSSascha Wildneraha(4)
40196386d4bSSascha Wildnerasc(4) & sasc(1)
40296386d4bSSascha Wildnerctx
40396386d4bSSascha Wildnerdgb(4)
40496386d4bSSascha Wildnerel(4)
40596386d4bSSascha Wildnergpib
40696386d4bSSascha Wildnergsc(4) & sgsc(1)
40796386d4bSSascha Wildnerie(4)
40896386d4bSSascha Wildnerlabpc(4)
40996386d4bSSascha Wildnerle(4)
41096386d4bSSascha Wildnermse(4)
41196386d4bSSascha Wildnerrc(4)
41296386d4bSSascha Wildnerrdp(4)
41396386d4bSSascha Wildnerspigot
41496386d4bSSascha Wildnertw(4) & xten(1) & xtend(8)
41596386d4bSSascha Wildnerwl(4) & wlconfig(8)
41696386d4bSSascha Wildnerwt(4)
41796386d4bSSascha Wildner
41896386d4bSSascha WildnerNote that two of these drivers (aha(4) and ie(4)) are in our GENERIC
41996386d4bSSascha Wildnerconfig and one (aha(4)) is in our X86_64_GENERIC kernel configuration
42096386d4bSSascha Wildnerfile.
42196386d4bSSascha Wildner
42296386d4bSSascha WildnerIf buildkernel complains about any of these drivers, just remove them
42396386d4bSSascha Wildnerfrom your kernel configuration.
42496386d4bSSascha Wildner
425919eb219SJohn MarinoBINUTILS 2.20
426919eb219SJohn Marino-------------
42737c5a0dbSJohn MarinoBinutils 2.20 has been removed in favor of Binutils 2.22.  The accepted
428e685772eSJohn Marinovalues of BINUTILSVERS are now binutils221 and binutils222 (default).
429919eb219SJohn Marino
43083bc1e2aSSascha WildnerBUILDWORLD/-KERNEL PARALLELIZATION WORK
43183bc1e2aSSascha Wildner---------------------------------------
43283bc1e2aSSascha WildnerDue to changes in the way we build with more than one make job, you
43383bc1e2aSSascha Wildnerwill have to update install(1) and mkdir(1) prior to buildworld if you
43483bc1e2aSSascha Wildnerwant to build with 'make -j':
43583bc1e2aSSascha Wildner
43683bc1e2aSSascha Wildnercd /usr/src/usr.bin/xinstall; make; make install; make clean
43783bc1e2aSSascha Wildnercd /usr/src/bin/mkdir; make; make install; make clean
43883bc1e2aSSascha Wildner
439eca86bd9SSascha WildnerDMA(8) UPGRADE
440eca86bd9SSascha Wildner--------------
441eca86bd9SSascha Wildnerdma(8) has been upgraded to v0.7 which no longer supports the
442eca86bd9SSascha Wildner/etc/dma/virtusertable. Some of its functionality has been replaced
443eca86bd9SSascha Wildnerwith the MASQUERADE keyword and the EMAIL environment variable (see
444eca86bd9SSascha Wildnerthe dma(8) manual page).
445eca86bd9SSascha Wildner
44696386d4bSSascha Wildner+-----------------------------------------------------------------------+
44762d4130dSSascha Wildner+         UPGRADING DRAGONFLY FROM 2.8 TO LATER VERSIONS                +
448a4a39c94SJustin C. Sherrill+-----------------------------------------------------------------------+
449a4a39c94SJustin C. Sherrill
450b1242318SSascha WildnerGCC 4.4 & BINUTILS 2.21
451b1242318SSascha Wildner-----------------------
45230c91f0cSSascha Wildner
453b1242318SSascha WildnerGCC 4.4 has been made DragonFly's default compiler and Binutils 2.21 has
454b1242318SSascha Wildnerbeen made DragonFly's default Binutils.
45530c91f0cSSascha Wildner
45630c91f0cSSascha WildnerThat means that any settings that set CCVER to 'gcc44' are not needed
45730c91f0cSSascha Wildneranymore. Instead, CCVER can be set to 'gcc41' to go back to using
45830c91f0cSSascha WildnerGCC 4.1.
45930c91f0cSSascha Wildner
460b1242318SSascha WildnerIt also means that 'binutils221' as a value for BINUTILSVER has no
461b1242318SSascha Wildnereffect anymore. 2.17 has been removed and 'binutils220' is available
462b1242318SSascha Wildneras an option.
463b1242318SSascha Wildner
4645738210dSSascha WildnerThe NO_GCC44 option has been removed and will not affect the build
46530c91f0cSSascha Wildneranymore. There is now a NO_GCC41 option that will prevent GCC 4.1 from
46630c91f0cSSascha Wildnerbuilding in a similar fashion.
46730c91f0cSSascha Wildner
46880abb3beSSascha WildnerNote that you must do a full buildworld/buildkernel for upgrading.
46930c91f0cSSascha Wildner
470a4a39c94SJustin C. Sherrillpkg_radd settings
471c983d16eSSascha Wildner-----------------
472a4a39c94SJustin C. Sherrill
473a4a39c94SJustin C. SherrillThe config file for pkg_radd has moved from /etc/settings.conf to
474a4a39c94SJustin C. Sherrill/etc/pkg_radd.conf.  Save the contents of settings.conf before upgrading
475a4a39c94SJustin C. Sherrillif this is needed.  This warning only applies if /etc/settings.conf
476a4a39c94SJustin C. Sherrillexists.  pkg_radd will continue to work with defaults.
477a4a39c94SJustin C. Sherrill
478a4a39c94SJustin C. Sherrill+-----------------------------------------------------------------------+
47972fe41d3SPeter Avalos+         20100927							+
4801bb1cc14SMatthias Schmidt+         UPGRADING DRAGONFLY FROM 2.6 to 2.8 or HEAD			+
481b79f66ddSJoe Talbott+-----------------------------------------------------------------------+
482b79f66ddSJoe Talbott
48372fe41d3SPeter AvalosOpenSSL
484c983d16eSSascha Wildner--------
48572fe41d3SPeter Avalos
48672fe41d3SPeter AvalosOpenSSL has been upgraded, and SHLIB_MAJOR was bumped for libssh and libcrypto.
48772fe41d3SPeter AvalosThis shouldn't break any 3rd-party software, but you'll need to recompile your
48872fe41d3SPeter Avalos3rd-party software if you want it to link against the new version of OpenSSL.
48972fe41d3SPeter Avalos
4908eb0b612SJustin C. SherrillLoader
491c983d16eSSascha Wildner-------
4928eb0b612SJustin C. Sherrill
493b79f66ddSJoe TalbottA new loader (dloader) has been added which better handles booting from
494b79f66ddSJoe Talbottmultiple kernel/module versions.
495b79f66ddSJoe Talbott
496b79f66ddSJoe TalbottTo upgrade (Only for this upgrade, for post 2.8 upgrades see GENERAL below)
497b79f66ddSJoe Talbott
498b79f66ddSJoe Talbott	cd /usr/src
499b79f66ddSJoe Talbott	make buildworld
500b79f66ddSJoe Talbott	make installworld
501b79f66ddSJoe Talbott	make upgrade
502b79f66ddSJoe Talbott	make buildkernel KERNCONF=<KERNELNAME>
503b79f66ddSJoe Talbott	make installkernel KERNCONF=<KERNELNAME>
504b79f66ddSJoe Talbott
505b79f66ddSJoe TalbottNote that you must installworld and run the 'upgrade' target before
506b79f66ddSJoe Talbottinstalling the new kernel.
507b79f66ddSJoe Talbott
5088eb0b612SJustin C. SherrillBIND
509c983d16eSSascha Wildner-----
5108eb0b612SJustin C. Sherrill
5118eb0b612SJustin C. SherrillBIND has been removed from the base system.  The ldns and drill tools have
5128eb0b612SJustin C. Sherrillbeen added for basic functionality.  Use 'drill' where you would normally
5138eb0b612SJustin C. Sherrilluse nslookup or dig, or install BIND from pkgsrc.  It's available as
5148eb0b612SJustin C. Sherrillnet/bind95, net/bind96, or net/bind97 as of this writing.
5158eb0b612SJustin C. Sherrill
5168eb0b612SJustin C. SherrillThis only affects older systems upgrading to 2.8.  New 2.8+ installs
5178eb0b612SJustin C. Sherrillinclude BIND as a pkgsrc package.
5188eb0b612SJustin C. Sherrill
519b79f66ddSJoe Talbott+-----------------------------------------------------------------------+
520d2a0deccSMatthew Dillon+         UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM		+
521d2a0deccSMatthew Dillon+				GENERAL					+
522d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
523984263bcSMatthew Dillon
524a700883cSSascha WildnerInstructions on how to obtain and maintain DragonFly source code using git
525a700883cSSascha Wildnerare in the development(7) manual page.
526d2a0deccSMatthew Dillon
527d2a0deccSMatthew DillonTo upgrade a DragonFly system from sources you run the following sequence:
528d2a0deccSMatthew Dillon
529d2a0deccSMatthew Dillon	cd /usr/src
530d2a0deccSMatthew Dillon	make buildworld
531d2a0deccSMatthew Dillon	make buildkernel KERNCONF=<KERNELNAME>
532d2a0deccSMatthew Dillon	make installkernel KERNCONF=<KERNELNAME>
533d2a0deccSMatthew Dillon	make installworld
534d2a0deccSMatthew Dillon
535d2a0deccSMatthew DillonYou will also want to run the 'upgrade' target to upgrade your /etc and the
536d2a0deccSMatthew Dillonrest of your system.  The upgrade target is aware of stale files created by
537d2a0deccSMatthew Dillonolder DragonFly installations and should delete them automatically.
538d2a0deccSMatthew Dillon
539d2a0deccSMatthew Dillon	make upgrade
540d2a0deccSMatthew Dillon
541a700883cSSascha WildnerSee the build(7) manual page for further information.
542a700883cSSascha Wildner
543d2a0deccSMatthew DillonOnce you've done a full build of the world and kernel you can do incremental
544d2a0deccSMatthew Dillonupgrades of either by using the 'quickworld' and 'quickkernel' targets
545d2a0deccSMatthew Dilloninstead of 'buildworld' and 'buildkernel'.  If you have any problems with
546a700883cSSascha Wildnerthe quick targets, try updating your repo first, and then a full buildworld
547d2a0deccSMatthew Dillonand buildkernel as shown above, before asking for help.
5484523a2c0SThomas Nikolajsen
5494523a2c0SThomas Nikolajsen+-----------------------------------------------------------------------+
5504523a2c0SThomas Nikolajsen+         UPGRADING FROM DRAGONFLY <= 2.0 TO DRAGONFLY >= 2.1		+
5514523a2c0SThomas Nikolajsen+-----------------------------------------------------------------------+
5524523a2c0SThomas Nikolajsen
5534523a2c0SThomas NikolajsenIn 2.1 kernel and modules has moved to boot directory.  For most cases
5544523a2c0SThomas Nikolajsenthis is handled automatically by 'make upgrade'.  A few cases needs manual
5554523a2c0SThomas Nikolajsenintervention:
5564523a2c0SThomas Nikolajsen
5574523a2c0SThomas Nikolajsen * When installing a kernel without first doing a make buildworld,
5584523a2c0SThomas Nikolajsen   installworld and upgrade to the same DESTDIR as kernel:
5594523a2c0SThomas Nikolajsen   make DESTDIR/boot directory and move kernel and modules into this boot
5604523a2c0SThomas Nikolajsen   directory; also move kernel.old and modules.old.
5614523a2c0SThomas Nikolajsen   Typical example is vkernel(7), use (no modules used):
5624523a2c0SThomas Nikolajsen
5634523a2c0SThomas Nikolajsen	cd /var/vkernel
5644523a2c0SThomas Nikolajsen	mkdir boot
5654523a2c0SThomas Nikolajsen	chflags noschg kernel
5664523a2c0SThomas Nikolajsen	mv kernel kernel.old boot
5674523a2c0SThomas Nikolajsen	chflags schg boot/kernel
5684523a2c0SThomas Nikolajsen
5694523a2c0SThomas Nikolajsen * When using a boot-only partition, /boot/loader.rc needs to be edited:
5704523a2c0SThomas Nikolajsen   delete occurrences of '/boot/'.
5714523a2c0SThomas Nikolajsen   These occurences can normally be deleted in any case, see loader(8).
572d2a0deccSMatthew Dillon
573d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
574d2a0deccSMatthew Dillon+         UPGRADING FROM DRAGONFLY <= 1.8 TO DRAGONFLY >= 1.9		+
575d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
576d2a0deccSMatthew Dillon
577d2a0deccSMatthew DillonIn 1.9 major changes to the disk management infrastructure have taken
578d2a0deccSMatthew Dillonplace.  make upgrade may not catch all of your disk devices in /dev,
579d2a0deccSMatthew Dillonso after upgrading be sure to cd /dev; ./MAKEDEV <blah> where <blah>
58045e80934SMatthew Dillonare all of your disk devices.  HOWEVER, from late 2.3 on we run devfs
58145e80934SMatthew Dillonand MAKEDEV no longer exists.
582d2a0deccSMatthew Dillon
583d2a0deccSMatthew DillonThe biggest changes in 1.9 are:
584d2a0deccSMatthew Dillon
585d2a0deccSMatthew Dillon(1) That whole-slice devices such as da0s1 no longer share the same device
586d2a0deccSMatthew Dillon    id as partition c devices such as da0s1c.
587d2a0deccSMatthew Dillon
588d2a0deccSMatthew Dillon(2) The whole-disk device (e.g. da0) is full raw access to the disk,
589d2a0deccSMatthew Dillon    with no snooping or reserved sectors.  Consequently you cannot run
590d2a0deccSMatthew Dillon    disklabel on this device.  Instead you must run disklabel on a
591d2a0deccSMatthew Dillon    whole-slice device.
592d2a0deccSMatthew Dillon
593d2a0deccSMatthew Dillon(3) The 'compatibility' partitions now use slice 0 in the device name,
594d2a0deccSMatthew Dillon    so instead of da0a you must specify da0s0a.  Also, as per (1) above,
595d2a0deccSMatthew Dillon    accessing the disklabel for the compatibility partitions must be
596d2a0deccSMatthew Dillon    done via slice 0 (da0s0).
597d2a0deccSMatthew Dillon
598d2a0deccSMatthew Dillon(4) Many device drivers that used to fake up labels, such as CD, ACD, VN,
599d2a0deccSMatthew Dillon    and CCD now run through the disk management layer and are assigned
600d2a0deccSMatthew Dillon    real disk management devices.   VN and CCD in particular do not usually
601d2a0deccSMatthew Dillon    use a MBR and disklabels must be accessed through the compatibility
602d2a0deccSMatthew Dillon    slice 0.  Your /etc/ccd.conf file still specifies 'ccd0', though, you
603d2a0deccSMatthew Dillon    don't name it 'ccd0s0' in the config file.
604d2a0deccSMatthew Dillon
605d2a0deccSMatthew DillonGenerally speaking, you have to get used to running fdisk and disklabel on
606d2a0deccSMatthew Dillonthe correctly specified device names.  A lot of the wiggle, such as running
607d2a0deccSMatthew Dillondisklabel on a partition, has been removed.
608d2a0deccSMatthew Dillon
609d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
610d2a0deccSMatthew Dillon+         UPGRADING FROM OLDER VERSIONS OF DRAGONFLY OR FREEBSD		+
611d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
612d2a0deccSMatthew Dillon
613d2a0deccSMatthew Dillon> Kerberos IV
614d2a0deccSMatthew Dillon-------------
615d2a0deccSMatthew Dillon
616d2a0deccSMatthew DillonKerberos IV (eBones) was removed from the tree, please consider moving to
617d2a0deccSMatthew DillonKerberos 5 (Heimdal).
618d2a0deccSMatthew Dillon
619d2a0deccSMatthew Dillon> Package Management System
620d2a0deccSMatthew Dillon---------------------------
621d2a0deccSMatthew Dillon
622d2a0deccSMatthew DillonStarting with the 1.4 release, DragonFly uses NetBSD's pkgsrc package
623d2a0deccSMatthew Dillonmanagement system.  The necessary tools to build and maintain packages
624d2a0deccSMatthew Dillonare provided in /usr/pkg/bin and /usr/pkg/sbin.  Make sure that these
625d2a0deccSMatthew Dillondirectories are in your PATH variable.
626d2a0deccSMatthew Dillon
627d2a0deccSMatthew DillonIn order to obtain a reasonably current snapshot of the pkgsrc tree, use
628d2a0deccSMatthew Dillonthe tarball from NetBSD:
629d2a0deccSMatthew Dillon
630d2a0deccSMatthew Dillon	fetch -o /tmp/pkgsrc.tar.gz ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc.tar.gz
631d2a0deccSMatthew Dillon	cd /usr; tar -xzf /tmp/pkgsrc.tar.gz; chown -R root:wheel pkgsrc
632d2a0deccSMatthew Dillon
633d2a0deccSMatthew DillonThis tree can then be kept up to date with cvs update:
634d2a0deccSMatthew Dillon
635d2a0deccSMatthew Dillon	cd /usr/pkgsrc; cvs up
636d2a0deccSMatthew Dillon
637d2a0deccSMatthew DillonNOTE! If you upgraded from a pre-1.4 system to 1.4 or later, you need to
638d2a0deccSMatthew Dillonbuild and install the pkgsrc bootstrap manually:
639d2a0deccSMatthew Dillon
640d2a0deccSMatthew Dillon	cd /usr/pkgsrc/bootstrap
641d2a0deccSMatthew Dillon	./bootstrap --pkgdbdir /var/db/pkg --prefix /usr/pkg
642d2a0deccSMatthew Dillon
643d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
644d2a0deccSMatthew Dillon+         UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM		+
645d2a0deccSMatthew Dillon+         UPDATING FROM PRE-1.2 SYSTEMS OR FreeBSD 4.x TO               +
646d2a0deccSMatthew Dillon+         DRAGONFLY 1.3+ (EITHER PREVIEW or HEAD)                       +
647d2a0deccSMatthew Dillon+-----------------------------------------------------------------------+
64858116288SJoerg Sonnenberger
649114580acSSascha WildnerThe compatibility shims for the build environment have been removed, you
65058116288SJoerg Sonnenbergerhave to update to DragonFly 1.2 release branch first.
65158116288SJoerg Sonnenberger
6521fcc7462SJoerg SonnenbergerThe default PAM configuration has moved from /etc/pam.conf to /etc/pam.d/.
6531fcc7462SJoerg SonnenbergerThe existing configuration can be converted using /etc/pam.d/convert.sh.
6541fcc7462SJoerg SonnenbergerEntries in /etc/pam.d/ override entries in /etc/pam.conf. In addition
6551fcc7462SJoerg Sonnenbergerthe pam_skey.so module was retired, you have to remove it manually from
6561fcc7462SJoerg Sonnenbergeryour configuration, when you convert it.
65758116288SJoerg Sonnenberger
658a3107071SMatthew Dillon> Required user and group IDs when upgrading from either FreeBSD or DragonFly
659a3107071SMatthew Dillon---------------------
660a3107071SMatthew Dillon
661a3107071SMatthew DillonThe following users may be missing from your password file.  Use vipw and
662a3107071SMatthew Dillonadd any that are missing:
663a3107071SMatthew Dillon
664a3107071SMatthew Dillonsmmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin
665dcf85892SJoerg Sonnenberger_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/sbin/nologin
666a3107071SMatthew Dillon
667a3107071SMatthew DillonThe following groups may be missing from your group file.  Use vi /etc/group
668a3107071SMatthew Dillonand add any that are missing:
669a3107071SMatthew Dillon
670a3107071SMatthew Dillonsmmsp:*:25:
671a3107071SMatthew Dillonauthpf:*:63:
672dcf85892SJoerg Sonnenberger_pflogd:*:64:
673a3107071SMatthew Dillon
674a3107071SMatthew Dillon
675f419dacaSMatthew Dillon> Upgrading to DragonFly from FreeBSD
676984263bcSMatthew Dillon---------------------
677984263bcSMatthew Dillon
678f419dacaSMatthew DillonYou can build the DragonFly world and DragonFly kernels on a FreeBSD-4.x or
679f419dacaSMatthew DillonFreeBSD-5.x machine and then install DragonFly over FreeBSD, replacing
680f419dacaSMatthew DillonFreeBSD.  Note that the DragonFly buildworld target does not try to reuse
681f419dacaSMatthew Dillonmake depend information, it starts from scratch, so no pre-cleaning of the
682f419dacaSMatthew Dillonobject hierarchy is necessary.
683984263bcSMatthew Dillon
684466bbc10SHiten Pandya	# get the CVS repository (it is placed in /home/dcvs, 500MB).
685f419dacaSMatthew Dillon	# Please use the -h option and a mirror site to pull the
686f419dacaSMatthew Dillon	# initial repository, but feel free to use the main repository
687f419dacaSMatthew Dillon	# machine to pull updates.
6885010eeb3SSascha Wildner	cvsup /usr/share/examples/cvsup/DragonFly-cvs-supfile
689f419dacaSMatthew Dillon	# install the source from the CVS hierarchy (remove preexisting
690f419dacaSMatthew Dillon	# FreeBSD src first) (500MB)
691f419dacaSMatthew Dillon	cd /usr
692f419dacaSMatthew Dillon	rm -rf src
69350172b1cSDavid Rhodus	cvs -R -d /home/dcvs checkout -P src
694984263bcSMatthew Dillon
695f419dacaSMatthew Dillon	# build it (500MB used in /usr/obj)
696f419dacaSMatthew Dillon	#
697fb12f484SMatthew Dillon	cd /usr/src
698fb12f484SMatthew Dillon	make buildworld
699f419dacaSMatthew Dillon	make buildkernel KERNCONF=<KERNELNAME>
700f419dacaSMatthew Dillon
701f419dacaSMatthew DillonOnce you have built DragonFly you have to install it over FreeBSD.  Since
702f419dacaSMatthew DillonDragonFly does not track changes made by FreeBSD to its include file
703f419dacaSMatthew Dillonhierarchy and include file pollution can cause all sorts of unexpected
704f419dacaSMatthew Dilloncompilation issues to come up, it is best to wipe your include hierarchy
705f419dacaSMatthew Dillonprior to installing DragonFly.  Note that you should not wipe any installed
706f419dacaSMatthew DillonFreeBSD header files or binaries until after you have successfully completed
707f419dacaSMatthew Dillonthe build steps above.
708f419dacaSMatthew Dillon
709f419dacaSMatthew Dillon	rm -rf /usr/include
710f419dacaSMatthew Dillon	mkdir /usr/include
711f419dacaSMatthew Dillon	make installkernel KERNCONF=<KERNELNAME>
712fb12f484SMatthew Dillon	make installworld
713fb12f484SMatthew Dillon
714b8cbf045SSascha WildnerThen you need to upgrade your system.  DragonFly's 'make upgrade' target
715f419dacaSMatthew Dillonwill unconditionally upgrade the /etc files that sysops do not usually
716b8cbf045SSascha Wildnermess around with, such as the files in /etc/rc.d.  It will also remove any
717b8cbf045SSascha Wildnerobsolete files such as utilities and manpages that have been removed from
718b8cbf045SSascha Wildnerthe system since the version you're coming from.  If you are unsure we
719b8cbf045SSascha Wildnerrecommend that you make a backup of at least your /etc before applying
720b8cbf045SSascha Wildnerthis step.  Note that DragonFly's RC system is basically RCNG from
721b8cbf045SSascha WildnerFreeBSD-5, but there are some differences in the contents of the RC files.
722f419dacaSMatthew Dillon
723f419dacaSMatthew Dillon	make upgrade
724f419dacaSMatthew Dillon
725b8cbf045SSascha WildnerNOTE! Never do a 'make upgrade' before 'make installworld' has been run.
726b8cbf045SSascha WildnerDoing so might leave your system in an unusable state.
727b8cbf045SSascha Wildner
728f419dacaSMatthew DillonFinally we recommend that you do an 'ls -lta BLAH' for /bin, /sbin, /usr/bin,
729b8cbf045SSascha Wildner/usr/bin, and /usr/lib, and remove any stale files that you find.  Please
730b8cbf045SSascha Wildnerreport these files to the DragonFly developers so that they can be added to
731b8cbf045SSascha Wildnerthe 'upgrade' target.
732f419dacaSMatthew Dillon
733