hammer2 - stabilization, fix delete-on-reclaim (2)
[dragonfly.git] / UPDATING
CommitLineData
d2a0decc
MD
1# Updating Information for DragonFly users.
2#
3#
4# This file should warn you of any pitfalls which you might need to work around
5# when trying to update your DragonFly system. The information below is
6# in reverse-time order, with the latest information at the top.
7#
8# If you discover any problem, please contact the bugs@lists.dragonflybsd.org
9# mailing list with the details.
d2a0decc 10
d9d67b59 11+-----------------------------------------------------------------------+
6ffa2848 12+ UPGRADING DRAGONFLY FROM 5.2 TO LATER VERSIONS +
d9d67b59
SW
13+-----------------------------------------------------------------------+
14
c585ae0f
SW
15DIGI, RP AND SI DRIVERS REMOVED
16-------------------------------
17
18The digi(4), rp(4) and si(4) serial drivers have been removed. None of
19them were in our default kernel configuration file. The sicontrol(8)
20utility was removed, too.
21
e79a303f
AL
22MKINITRD COMMAND REMOVED
23------------------------
24
25The mkinitrd(8) command is removed and its functionality is replaced by
26the new "initrd" make target. After rebooting into the new world and
27verifying everything works, execute "make initrd" to upgrade the rescue
28tools and initrd image.
29
755d70b8
SW
30IPSEC, IPSEC_ESP AND IPSEC_DEBUG REMOVED FROM VKERNEL64 CONFIG
31--------------------------------------------------------------
32
33IPsec has been removed from the system. Of our standard kernel
34configurations, only the virtual kernel one had it. People running
35vkernels with configuration files derived from our VKERNEL64 will
36have to remove these options manually.
37
6ffa2848
SW
38+-----------------------------------------------------------------------+
39+ UPGRADING DRAGONFLY FROM 5.0 TO LATER VERSIONS +
40+-----------------------------------------------------------------------+
41
c07d5880
SW
42VIRTIO_PCI REMOVED FROM KERNEL CONFIG
43-------------------------------------
44
45The "device virtio_pci" line in X86_64_GENERIC has been removed. People
46with configuration files derived from it have to remove it manually.
47
2458c6f4
SW
48VARIOUS 'R' COMMANDS AND DAEMONS REMOVED
49----------------------------------------
50
51rcp(1), rlogin(1), rlogind(8), rsh(1) and rshd(8) have been removed.
52For those that still need them, there is the net/bsdrcmds port.
53
a26d33cf
SW
54VARIOUS FORMER OPTIONS REMOVED
55------------------------------
56
57Various former kernel configuration options which had been no-ops for
58some time were completely removed: SYSVMSG, SYSVSEM, SYSVSHM, P1003_1B,
59_KPOSIX_VERSION and DSCHED_FQ. Users that have any of these still in
60their kernel configuration files have to remove them.
61
a90cc0c2 62BOOTSTRAPPING LIMITED FROM PRE 4.4
63----------------------------------
64
65Upgrading to 5.1 and later versions now require at least 4.4 in
66preparations for upcoming base compilers updates.
67
06937ef9
SW
68IF_PPP, PPPD, IF_FAITH, AND FAITHD REMOVED
69------------------------------------------
a90cc0c2 70
06937ef9 71if_ppp has been replaced by "user ppp", i.e. ppp(8) and tun(4). It had
d9d67b59
SW
72already been removed from our default kernel configuration before 5.0,
73so only people with custom configurations based on earlier X86_64_GENERIC
74will have to remove it manually.
75
06937ef9
SW
76The faith(4) interface has been completely removed after it had also
77been removed from our default kernel configuration.
78
1b2d852e
SW
79+-----------------------------------------------------------------------+
80+ UPGRADING DRAGONFLY FROM 4.8 TO LATER VERSIONS +
81+-----------------------------------------------------------------------+
82
83FFS_ROOT OPTION DISABLED
84------------------------
85
86The FFS_ROOT option has been made a no-op and will be completely removed
87at some point in the future. Users with a custom kernel configuration
88can remove this option from it now.
89
3522bdfe
SW
90+-----------------------------------------------------------------------+
91+ UPGRADING DRAGONFLY FROM 4.6 TO LATER VERSIONS +
92+-----------------------------------------------------------------------+
93
4d6bb23e
JS
94DSA OPENSSH KEYS DEPRECATED
95---------------------------
96
97Note that DSA OpenSSH keys were deprecated in the 4.6 to 4.8 release.
98If you are upgrading from a release older than 4.8 and use DSA OpenSSH
99keys, please update your private/public key pair or risk locking
100yourself out.
101
7efec73e
SW
102AHC, AHD, AIC, NCV, NSP AND STG DRIVERS REMOVED
103-----------------------------------------------
9ef43fc3 104
7efec73e
SW
105They were all in our X86_64_GENERIC kernel configuration file, along with
106the AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT options, so any custom
107configuration files derived from it need adjustment.
9ef43fc3 108
be813d7a
SW
109PORTAL FILE SYSTEM REMOVED
110--------------------------
111
112It has been broken for a long time now.
113
5cc5a38c 114BINUTILS 2.27 REPLACES 2.24, PRIMARY
115------------------------------------
116
117The oldest of the two versions of Binutils, version 2.24, was removed
118and replaced with Binutils 2.27. It becomes the primary version version
119of binutils and version 2.25 becomes the alternate.
120
121The accepted values of BINUTILSVER are now "binutils227" (default) and
122"binutils225". The building of Binutils 2.25 can be prevented by setting
123NO_ALTBINUTILS=yes in make.conf.
124
d6e8ab2d
SW
125COMPAT_43 KERNEL OPTION REMOVED
126-------------------------------
127
128It was commented out in our default configs for several years now, but
129might still be present in custom configs created before Nov. 2011.
130
adfb2c71
JM
131OPENSSL REMOVED
132---------------
133
134OpenSSL has been removed from base and replaced with a private version of
135LibreSSL. The previously installed OpenSSL libraries, headers, and man
136pages will remain on the system unless the "make upgrade" command is
137specifically instructed to remove them. To do this, define
138REMOVE_OPENSSL_FILES for the upgrade command, e.g.
139"make upgrade REMOVE_OPENSSL_FILES=yes"
140
5b245968
MD
14128-Oct-2016: openssl has been replaced by ressl. It is recommended that any
142stale OpenSSL files be removed to avoid configuration scripts from using
143the stale and potentially vulnerable version, but all binaries that are
144dynamically linked to the OpenSSL libraries should be rebuilt first to
145avoid breakage.
adfb2c71 146
9682bad8
TN
147OPENSSH HPN REMOVED
148-------------------
149
150It has become too cumbersome to maintain HPN patches in OpenSSH in base.
151To use OpenSSH in base remove HPN config, if you have added it.
152Check files below for HPN config, see a few lines below.
153 /etc/ssh/ssh_config, /etc/ssh/sshd_config, ~/.ssh/config
154sshd(8) will fail to start if HPN config is used.
155
156NOTE: HPN config in sshd_config will prohibit remote access to host using ssh.
157
158HPN config:
159HPNDisabled
160HPNBufferSize
161TcpRcvBuf
162TcpRcvBufPoll
163NoneEnabled
164NoneSwitch
165cipher MTR-AES-CTR
166cipher NONE
167
168OpenSSH HPN is a patch set to OpenSSH providing higher performance under some
169circumstances, especially for networking.
170If HPN functionality is needed, install security/openssh from dports.
171
859c2e53
SW
172CS, EX AND VX DRIVERS REMOVED
173-----------------------------
3522bdfe 174
859c2e53
SW
175The cs(4), ex(4) and vx(4) drivers have been removed. They were very
176old and its doubtful they ever worked properly in x86_64 but they were
177in X86_64_GENERIC, so custom configurations derived from it have to be
3a609f3d 178adjusted.
3522bdfe 179
82aec1d3
FT
180+-----------------------------------------------------------------------+
181+ UPGRADING DRAGONFLY FROM 4.4 TO LATER VERSIONS +
182+-----------------------------------------------------------------------+
183
f1826c3e
SW
184AMD REMOVED
185-----------
186
187The am-utils automounter suite has been removed. It stopped working
188at some point and was never fixed. autofs(5) and the associated
189userland has been brought in from FreeBSD and replaces it.
190
c222305f
SW
191AN DRIVER REMOVED
192-----------------
82aec1d3 193
c222305f
SW
194The an(4) driver has been removed. It was in the X86_64_GENERIC kernel
195config file, so any configurations derived from it have to be adjusted.
82aec1d3 196
c222305f
SW
197/DEV/DRI GROUP CHANGED
198----------------------
199
200The default group assigned to /dev/dri entries has been changed
201from 'wheel' to 'video' with the id of '44'. If you want to have
202access to the dri devices please add yourself to the video group
203with:
204
205# pw groupmod video -m $USER
82aec1d3 206
dbf3d3ba
JM
207+-----------------------------------------------------------------------+
208+ UPGRADING DRAGONFLY FROM 4.2 TO LATER VERSIONS +
209+-----------------------------------------------------------------------+
210
54af9d02
SW
211DSCHED REMOVED
212--------------
213
214dsched(4) has been removed and one of its kernel options, DSCHED_FQ, was
215in our default kernel config file. So the DSCHED_FQ option has been turned
216into a no-op for now and can be removed from custom configurations.
217
68ef81ed
SW
218EST DRIVER REMOVED, COMPILE_ET AND LIBCOM_ERR TOO
219-------------------------------------------------
220
221The est(4) driver has been removed. All CPUs it supported (except one)
222were 32 bits only. Those who are still using the Core 2 Duo T7500 should
223report back if there are any issues with this CPU and our regular ACPI
224P-state support.
225
226Also, compile_et(1) and com_err(3) have been removed as well. They
227should have been removed along with kerberos support, back in 2009.
228
dbf3d3ba
JM
229SEVERAL LOCALES RENAMED
230-----------------------
231
232Several locales were using obsolete and misleading names, and thus have
233been adjusted to current standards. Any users of the following locales
234need to select alternates:
235
236DFLY 4.2 locale DFLY 4.4 alterative locale
237--------------- ------------------------------------
238mn_MN.UTF-8 mn_Cyrl_MN.UTF-8
239no_NO.UTF-8 nb_NO.UTF-8 or nn_NO.UTF-8
240no_NO.ISO8859-1 nb_NO.ISO8869-1 or nn_NO.ISO8859-1
241no_NO.ISO8859-15 nb_NO.ISO8859-15 or nn_NO.ISO8859-15
242sr_YU.UTF-8 sr_Cyrl_RS.UTF-8 or sr_Latn_RS.UTF-8
243sr_YU.ISO8859-5 sr_Cyrl_RS.ISO8859-5
244sr_YU.ISO8859-2 sr_Latn_RS.ISO8859-2
245zh_CN.GBK zh_Hans_CN.GBK
246zh_CN.UTF-8 zh_Hans_CN.UTF-8
247zh_CN.eucCN zh_Hans_CN.eucCN
248zh_CN.GB2312 zh_Hans_CH.GB2312
249zh_CN.GB18030 zh_Hans_CH.GB18030
250zh_HK.Big5HKSCS zh_Hant_HK.Big5HKSCS
251zh_HK.UTF_8 zh_Hant_HK.UTF-8
252zh_TW.Big5 zh_Hant_TW.Big5
253zh_TW.UTF-8 zh_Hant_TW.UTF-8
254
2a617999
SW
255+-----------------------------------------------------------------------+
256+ UPGRADING DRAGONFLY FROM 4.0 TO LATER VERSIONS +
257+-----------------------------------------------------------------------+
258
65c3b857
JM
259BINUTILS 2.25 REPLACES 2.22, PRIMARY
260------------------------------------
261
262The oldest of the two versions of Binutils, version 2.22, was removed
263and replaced with Binutils 2.25. It becomes the primary version version
264of binutils and version 2.24 becomes the alternate. There are 8 current
265CVE written against 2.24, so for security reasons version 2.25 should
266always be used.
267
268The accepted values of BINUTILSVER are now "binutils225" (default) and
269"binutils224". The building of Binutils 2.24 can be prevented by setting
270NO_ALTBINUTILS=yes in make.conf.
271
72b78560
JM
272LOADER OPTIONS CHANGED
273----------------------
274
275Right after the development branch started, the Fred art accompanying the
276loader menu was improved. The line between Fred and the menu was removed
277by default (but can optionally be returned) and the placement shifted as
278a result. The drawing was improved, and the colored version was improved,
279changing the eyes and wing color from white to red. A new color version
280of Fred was added, one with a blue scheme.
281
282The loader menu defaults have changed since release 4.0: The vertical
283line was removed, the loader is displayed in color by default*, and the
284blue scheme is used.
285
286The loader.conf changes are:
287loader_color: option has been removed
288loader_plain: option has been added, it changed menu to monochrome
289fred_is_red: changes color scheme from blue to red
290fred_is_blue: option existed only on 4.1, it has been removed
291fred_separated: Adds line between Fred and menu (as seen previously)
292
293* If loader.conf defines "console" as "comconsole" or "console" is defined
294 in the environment as "comconsole" then color will not be displayed,
295 even if loader_plain value is "NO".
296
cbab4ab1
JM
297SENDMAIL REMOVED FROM BASE
298--------------------------
299
300The only Mail Transfer Agent provided now is DragonFly Mail Agent (dma).
301If the system being upgraded is still configured to use the sendmail
302binaries from base, the "make upgrade" command will fail.
303
304The administrator must change /etc/mail/mailer.conf to switch the
305mailwrapper to dma or a DPorts-based MTA prior to running the upgrade
306command that permanently removes sendmail executables and could
307potentially break a running mail server.
308
309Refer: http://www.dragonflybsd.com/docs/docs/newhandbook/mta/ for
310detailed instructions on how to configure the MTA selection.
311
a7ac1ee9
SW
312_KPOSIX_VERSION and P1003_1B OPTIONS REMOVED
313--------------------------------------------
314
315The _KPOSIX_VERSION and P1003_1B kernel options have been changed to
316no-ops. They can be removed from custom kernel configurations.
317
aa7c3d6b
FT
318SOUND SYSTEM UPDATED FROM FreeBSD 11-CURRENT
319--------------------------------------------
320
321Many more sound devices may be detected.
322
323If the default device choosen isn't to your liking, setting the sysctl
324hw.snd.default_unit to a different number will change it.
325
60a260ad
SW
326SCTP SUPPORT DROPPED
327--------------------
328
329Support for the SCTP protocol has been removed.
330
2a617999
SW
331OLD USB DRIVERS REMOVED
332-----------------------
333
334The old USB stack, along with the kernel config option "device oldusb"
335and the make.conf variable "WANT_OLDUSB" have been removed. This means
336that for custom kernel configuration files which were derived from a
337GENERIC or X86_64_GENERIC file prior to making the usb4bsd stack default,
338various (old USB stack specific) devices will now complain about being
339unknown:
340
341 * oldusb (obviously)
342 * natausb (not yet ported to usb4bsd)
343 * rue (not yet ported to usb4bsd)
344 * ugen (no longer needed in usb4bsd)
345 * urio (not yet ported to usb4bsd)
346 * uscanner (no longer needed in usb4bsd)
347
348They should be removed or commented out in such custom kernel configs.
349
4e8e707f
JM
350GCC 5
351-----
352
353The GCC 4.4 compiler has been retired. It has been replaced by a GCC 5.1.
354The following make.conf variables no longer work: NO_GCC44, NO_OBJC, and
355NO_CXX. The latter was never documented and the latest versions of GCC are
356partially written in C++ so a C++ compiler is no longer optional. In
357practical terms it has not been optional for many years as other base
358components are also written in C++. The resource savings by avoiding
359building Objective-C compiler is so small, the complexity added by NO_OBJC
360internally was deemed a bad tradeoff so that is the reason for its removal.
361Also note that no "info" pages are installed with GCC 5. After this entry
362was originally written, all info pages were removed from DragonFly.
363
364GCC 5.1 has been designated as the primary compiler. As such, there is a
365new make.conf variable, NO_ALTCOMPILER. It will block the rebuilding of
366the designated secondary compiler, GCC 4.7. However, while DPorts
367primarily uses GCC 5 to build ports now, it still uses GCC 4.7 as well, so
368if building ports from source is desired, don't block building of the
369secondary compiler.
e9b676f1 370
0055c35b
SW
371+-----------------------------------------------------------------------+
372+ UPGRADING DRAGONFLY FROM 3.8 TO LATER VERSIONS +
373+-----------------------------------------------------------------------+
374
2a617999 375SMP AND DEVICE_POLLING OPTIONS MADE UNKNOWN
39b3e0a1
SW
376-------------------------------------------
377
378DEVICE_POLLING was replaced by IFPOLL_ENABLE and the former SMP code is
379the default now (even on single-core systems), both for, like, 21 months.
380We kept the options around as no-ops as a convenience, to allow people
381using the same config for the then current release and the then current
382master. That period is now over, so any configs still having those
383options have to be adjusted.
384
10ceb702
SW
385SYSVIPC SYSCALLS MADE NON-OPTIONAL
386----------------------------------
387
388The code related to the SYSVMSG, SYSVSEM and SYSVSHM kernel options is
389now compiled in by default. The options are no-ops for now.
390
79a3e83f
SW
391DEFAULT DRIVER CHANGED FOR LSI "THUNDERBOLT" SERIES RAID CONTROLLERS
392--------------------------------------------------------------------
393
394The default driver for those controllers is now mrsas(4) due to reports
395of file system corruption using the mfi(4) driver. The whole issue (and
396how to deal with potential problems when switching) was explained here:
397
398http://lists.dragonflybsd.org/pipermail/users/2014-July/128703.html
399
400A tunable is provided for letting those controllers still attach via
401the mfi(4) driver, hw.mrsas.mfi_enable (see mrsas(4) manual page).
402
0055c35b
SW
403OLDER NETWORK DRIVERS MOVED TO I386 ONLY
404----------------------------------------
405
406The following drivers have been made i386 only: ed(4), sr(4), ng_sync_ar
407and ng_sync_sr. ed(4) used to be in X86_64_GENERIC, so it has to be
408removed in kernel configs derived from X86_64_GENERIC.
409
e19e3c77 410+-----------------------------------------------------------------------+
62d4130d 411+ UPGRADING DRAGONFLY FROM 3.6 TO LATER VERSIONS +
e19e3c77
SW
412+-----------------------------------------------------------------------+
413
a6a7c140
JS
414UPDATE FROM MOST RECENT 3.6
415---------------------------
416
417Versions of 3.6 built before June 25th have a bug where installworld might
418crash during installation of the new initrd. Upgrade to the latest version
419of 3.6 before updating to 3.8 or later.
420
7c87aae6
SW
421ATM, IPX, NCP AND NWFS SUPPORT DROPPED
422--------------------------------------
6f25d555
SW
423
424Support for the IPX and NCP network protocols and for mouting NetWare
7c87aae6 425file systems has been dropped. Dito for ATM protocol support.
6f25d555
SW
426
427INITRD IMAGES NOW INSTALLED BY DEFAULT
428--------------------------------------
429
430An initial ramdisk image is now installed in /boot/kernel/initrd.img.gz
431
432Older images installed under the file name of initrd.img will be removed
433automatically by the make upgrade process.
434
f0478b8b
SW
435USB4BSD IS NOW THE DEFAULT USB STACK
436------------------------------------
437
438To get back to the old stack, put "WANT_OLDUSB=yes" in /etc/make.conf and
439replace "device usb" with "device oldusb" in the kernel configuration.
440
e19e3c77
SW
441MORE ISA SUPPORT DROPPED
442------------------------
443
444ISA support has been dropped from the following drivers: adv(4), an(4),
445ar(4), cs(4), digi(4), ed(4), ep(4), ex(4), fe(4), lnc(4), sbni(4),
446si(4), sn(4), and stg(4).
447
9332798a 448+-----------------------------------------------------------------------+
62d4130d 449+ UPGRADING DRAGONFLY FROM 3.4 TO LATER VERSIONS +
9332798a
SW
450+-----------------------------------------------------------------------+
451
c04df145
JS
452ABI CHANGE
453----------
454
455Installed third-party software (dports) will have to be rebuilt after upgrade,
456or reinstalled from binary packages.
457
2b455b95
JS
458UPDATING FROM 3.4 TO 3.6
459------------------------
460
461This only applies for this specific upgrade due to locale changes; it is
462not needed for upgrades after 3.6. Please update in this order:
463
464make buildworld
465make buildkernel
466make installworld
467make installkernel
468*reboot*
469make upgrade
470
471See this mailing list post for details:
472http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html
473
9332798a
SW
474CYRIX OPTIONS REMOVED
475---------------------
476
477The following Cyrix related options have been removed: CPU_BTB_EN,
478CPU_CYRIX_NO_LOCK, CPU_DIRECT_MAPPED_CACHE, CPU_DISABLE_5X86_LSSER,
479CPU_FASTER_5X86_FPU, CPU_IORT, CPU_LOOP_EN, CPU_RSTK_EN, CPU_SUSP_HLT,
480CYRIX_CACHE_WORKS, and CYRIX_CACHE_REALLY_WORKS
481
482ISA SUPPORT REMOVED FROM RP(4)
483------------------------------
484
485ISA support has been removed from the rp(4) driver. It is now PCI only.
486
64aeb497 487+-----------------------------------------------------------------------+
62d4130d 488+ UPGRADING DRAGONFLY FROM 3.2 TO LATER VERSIONS +
64aeb497
SW
489+-----------------------------------------------------------------------+
490
d88b9605
SW
491COMPAT_SUNOS OPTION REMOVED
492---------------------------
493
494The COMPAT_SUNOS option has been removed. It was meant to provide binary
495compatibility with SunOS 4.x for the sparc32 port of 4.4BSD.
496
43f215d7
SW
497ISA SOUND CARD SUPPORT REMOVED
498------------------------------
499
500The following modules have been removed (all for ISA sound cards):
501snd_ad1816.ko, snd_ess.ko, snd_mss.ko, snd_sb8.ko, snd_sb16.ko, snd_sbc.ko
502
6100d1de
JM
503GCC 4.7
504-------
505
506DragonFly has switched base compilers. GCC 4.7 is now the default
507compiler and GCC 4.4 is the alternative compiler. The "NO_GCC47" make
508variable ceases to work now.
509
510Users who wish to build only GCC 4.7 have to use NO_GCC44 in the
511/etc/make.conf to prohibit GCC 4.4 from building. However, using it is
512highly discouraged. There are a few packages in pkgsrc that do not build
513with GCC 4.7 and the new "DPorts" system uses GCC 4.4 by default. At
514this time, it is recommended to keep both compilers on the base system.
515
2089bb7c
SW
516SMP OPTION REMOVED
517------------------
518
519The SMP kernel option has been made a no-op. All kernels now feature SMP
520support. If you have 'options SMP' in your kernel config, you can as well
521remove it.
522
1c297ed0
SW
523DEVICE_POLLING OPTION REPLACED BY IFPOLL_ENABLE OPTION, KTR_POLLING REMOVED
524---------------------------------------------------------------------------
640dc18f
SZ
525
526The DEVICE_POLLING kernel option has been made a no-op and it has been
527replaced by IFPOLL_ENABLE. If you have 'options DEVICE_POLLING' in your
528kernel config, you need to change it to IFPOLL_ENABLE.
529
1c297ed0
SW
530Also, the KTR_POLLING kernel option has been removed, so it must be
531removed from kernel configs that have it.
532
558b0a0b
SW
533BUSLOGIC, CYCLADES AND STALLION ISA SUPPORT REMOVED
534---------------------------------------------------
850c4634
SW
535
536The bt(4) driver for Buslogic SCSI adapters has been made PCI only. ISA
537cards will no longer be detected.
538
e6f626a1
SW
539The same has been done for Stallion multiport serial controllers. stli(4)
540has been completely removed (along with the stlload(8) and stlstty(8)
558b0a0b
SW
541utilities) and stl(4) was changed to support only PCI cards. Similarly,
542ISA support was removed from cy(4) too. All these drivers are i386 only.
e6f626a1 543
e98bcb27
SW
544COMPAT_OLDISA OPTION GONE
545-------------------------
546
547The i386 specific COMPAT_OLDISA kernel option has been removed, since
548nothing needs it anymore.
549
c691bb43 550+-----------------------------------------------------------------------+
62d4130d 551+ UPGRADING DRAGONFLY FROM 3.0 TO LATER VERSIONS +
c691bb43
SW
552+-----------------------------------------------------------------------+
553
554APIC_IO OPTION REMOVED
555----------------------
556
557The APIC_IO kernel option is no longer accepted after having been without
558effect for a while. The hw.ioapic_enable tunable now serves its purpose.
559If you have 'options APIC_IO' in your kernel config, you'll have to
560remove it.
561
6d488cc3
SW
562WATCHDOG_ENABLE & HW_WDOG OPTIONS REMOVED
563-----------------------------------------
cf03d6cd
SW
564
565The wdog framework is now compiled into our kernels by default, so the
6d488cc3 566options are no longer needed.
cf03d6cd 567
397ffc5c
SW
568DOSCMD(1) REMOVED
569-----------------
570
571doscmd(1) has been removed. It was i386 only. The doscmd(1) specific
572NO_X make.conf option was removed too.
573
a1404d4f
SW
574GCC 4.7
575-------
576
577GCC 4.7 has been brought in and replaces GCC 4.1 as DragonFly's non-
578default compiler in base (default is still GCC 4.4).
579
580Users who wish to build only GCC 4.4 have to replace NO_GCC41 with
581NO_GCC47 in /etc/make.conf.
582
2508820f
SW
583USB4BSD
584-------
585
586A new USB stack (from FreeBSD) has been brought in. The following
587modules have been ported so far: usb, uhci, ohci, ehci, xhci, umass,
588usfs, uether, if_axe, if_udav, ukbd, ums, uep, uhid, usb_quirk,
589and uaudio.
590
591It is not yet the default. To activate it, WANT_USB4BSD=yes has to
c7200221
SW
592be put in make.conf and device "usb4bsd" (quotes needed) has to
593replace device usb in the kernel config. After that, a full
594build/install/upgrade cycle is needed.
2508820f
SW
595
596Note that this is experimental and incomplete, but we are interested
597in hearing about issues with it, of course.
598
ae0870a3
SW
599ISA SUPPORT REMOVED FROM AIC-6260/6360 DRIVER
600---------------------------------------------
601
602ISA adapter support was dropped from the aic(4) driver.
603
96386d4b 604+-----------------------------------------------------------------------+
62d4130d 605+ UPGRADING DRAGONFLY FROM 2.10 TO LATER VERSIONS +
96386d4b
SW
606+-----------------------------------------------------------------------+
607
608SEVERAL ISA DRIVERS REMOVED
609---------------------------
610
611The following ISA only drivers have been removed along with a couple of
612associated userland tools:
613
614aha(4)
615asc(4) & sasc(1)
616ctx
617dgb(4)
618el(4)
619gpib
620gsc(4) & sgsc(1)
621ie(4)
622labpc(4)
623le(4)
624mse(4)
625rc(4)
626rdp(4)
627spigot
628tw(4) & xten(1) & xtend(8)
629wl(4) & wlconfig(8)
630wt(4)
631
632Note that two of these drivers (aha(4) and ie(4)) are in our GENERIC
633config and one (aha(4)) is in our X86_64_GENERIC kernel configuration
634file.
635
636If buildkernel complains about any of these drivers, just remove them
637from your kernel configuration.
638
919eb219
JM
639BINUTILS 2.20
640-------------
37c5a0db 641Binutils 2.20 has been removed in favor of Binutils 2.22. The accepted
e685772e 642values of BINUTILSVERS are now binutils221 and binutils222 (default).
919eb219 643
83bc1e2a
SW
644BUILDWORLD/-KERNEL PARALLELIZATION WORK
645---------------------------------------
646Due to changes in the way we build with more than one make job, you
647will have to update install(1) and mkdir(1) prior to buildworld if you
648want to build with 'make -j':
649
650cd /usr/src/usr.bin/xinstall; make; make install; make clean
651cd /usr/src/bin/mkdir; make; make install; make clean
652
eca86bd9
SW
653DMA(8) UPGRADE
654--------------
655dma(8) has been upgraded to v0.7 which no longer supports the
656/etc/dma/virtusertable. Some of its functionality has been replaced
657with the MASQUERADE keyword and the EMAIL environment variable (see
658the dma(8) manual page).
659
a4a39c94 660+-----------------------------------------------------------------------+
62d4130d 661+ UPGRADING DRAGONFLY FROM 2.8 TO LATER VERSIONS +
a4a39c94
JS
662+-----------------------------------------------------------------------+
663
b1242318
SW
664GCC 4.4 & BINUTILS 2.21
665-----------------------
30c91f0c 666
b1242318
SW
667GCC 4.4 has been made DragonFly's default compiler and Binutils 2.21 has
668been made DragonFly's default Binutils.
30c91f0c
SW
669
670That means that any settings that set CCVER to 'gcc44' are not needed
671anymore. Instead, CCVER can be set to 'gcc41' to go back to using
672GCC 4.1.
673
b1242318
SW
674It also means that 'binutils221' as a value for BINUTILSVER has no
675effect anymore. 2.17 has been removed and 'binutils220' is available
676as an option.
677
5738210d 678The NO_GCC44 option has been removed and will not affect the build
30c91f0c
SW
679anymore. There is now a NO_GCC41 option that will prevent GCC 4.1 from
680building in a similar fashion.
681
80abb3be 682Note that you must do a full buildworld/buildkernel for upgrading.
30c91f0c 683
a4a39c94 684pkg_radd settings
c983d16e 685-----------------
a4a39c94
JS
686
687The config file for pkg_radd has moved from /etc/settings.conf to
688/etc/pkg_radd.conf. Save the contents of settings.conf before upgrading
689if this is needed. This warning only applies if /etc/settings.conf
690exists. pkg_radd will continue to work with defaults.
691
b79f66dd 692+-----------------------------------------------------------------------+
72fe41d3 693+ 20100927 +
1bb1cc14 694+ UPGRADING DRAGONFLY FROM 2.6 to 2.8 or HEAD +
b79f66dd
JT
695+-----------------------------------------------------------------------+
696
72fe41d3 697OpenSSL
c983d16e 698--------
72fe41d3
PA
699
700OpenSSL has been upgraded, and SHLIB_MAJOR was bumped for libssh and libcrypto.
701This shouldn't break any 3rd-party software, but you'll need to recompile your
7023rd-party software if you want it to link against the new version of OpenSSL.
703
8eb0b612 704Loader
c983d16e 705-------
8eb0b612 706
b79f66dd
JT
707A new loader (dloader) has been added which better handles booting from
708multiple kernel/module versions.
709
710To upgrade (Only for this upgrade, for post 2.8 upgrades see GENERAL below)
711
712 cd /usr/src
713 make buildworld
714 make installworld
715 make upgrade
716 make buildkernel KERNCONF=<KERNELNAME>
717 make installkernel KERNCONF=<KERNELNAME>
718
719Note that you must installworld and run the 'upgrade' target before
720installing the new kernel.
721
8eb0b612 722BIND
c983d16e 723-----
8eb0b612
JS
724
725BIND has been removed from the base system. The ldns and drill tools have
726been added for basic functionality. Use 'drill' where you would normally
727use nslookup or dig, or install BIND from pkgsrc. It's available as
728net/bind95, net/bind96, or net/bind97 as of this writing.
729
730This only affects older systems upgrading to 2.8. New 2.8+ installs
731include BIND as a pkgsrc package.
732
d2a0decc
MD
733+-----------------------------------------------------------------------+
734+ UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM +
735+ GENERAL +
736+-----------------------------------------------------------------------+
984263bc 737
a700883c
SW
738Instructions on how to obtain and maintain DragonFly source code using git
739are in the development(7) manual page.
d2a0decc
MD
740
741To upgrade a DragonFly system from sources you run the following sequence:
742
743 cd /usr/src
744 make buildworld
745 make buildkernel KERNCONF=<KERNELNAME>
746 make installkernel KERNCONF=<KERNELNAME>
747 make installworld
748
749You will also want to run the 'upgrade' target to upgrade your /etc and the
750rest of your system. The upgrade target is aware of stale files created by
751older DragonFly installations and should delete them automatically.
752
753 make upgrade
754
a700883c
SW
755See the build(7) manual page for further information.
756
d2a0decc
MD
757Once you've done a full build of the world and kernel you can do incremental
758upgrades of either by using the 'quickworld' and 'quickkernel' targets
759instead of 'buildworld' and 'buildkernel'. If you have any problems with
a700883c 760the quick targets, try updating your repo first, and then a full buildworld
d2a0decc 761and buildkernel as shown above, before asking for help.
4523a2c0
TN
762
763+-----------------------------------------------------------------------+
764+ UPGRADING FROM DRAGONFLY <= 2.0 TO DRAGONFLY >= 2.1 +
765+-----------------------------------------------------------------------+
766
767In 2.1 kernel and modules has moved to boot directory. For most cases
768this is handled automatically by 'make upgrade'. A few cases needs manual
769intervention:
770
771 * When installing a kernel without first doing a make buildworld,
772 installworld and upgrade to the same DESTDIR as kernel:
773 make DESTDIR/boot directory and move kernel and modules into this boot
774 directory; also move kernel.old and modules.old.
775 Typical example is vkernel(7), use (no modules used):
776
777 cd /var/vkernel
778 mkdir boot
779 chflags noschg kernel
780 mv kernel kernel.old boot
781 chflags schg boot/kernel
782
783 * When using a boot-only partition, /boot/loader.rc needs to be edited:
784 delete occurrences of '/boot/'.
785 These occurences can normally be deleted in any case, see loader(8).
d2a0decc
MD
786
787+-----------------------------------------------------------------------+
788+ UPGRADING FROM DRAGONFLY <= 1.8 TO DRAGONFLY >= 1.9 +
789+-----------------------------------------------------------------------+
790
791In 1.9 major changes to the disk management infrastructure have taken
792place. make upgrade may not catch all of your disk devices in /dev,
793so after upgrading be sure to cd /dev; ./MAKEDEV <blah> where <blah>
45e80934
MD
794are all of your disk devices. HOWEVER, from late 2.3 on we run devfs
795and MAKEDEV no longer exists.
d2a0decc
MD
796
797The biggest changes in 1.9 are:
798
799(1) That whole-slice devices such as da0s1 no longer share the same device
800 id as partition c devices such as da0s1c.
801
802(2) The whole-disk device (e.g. da0) is full raw access to the disk,
803 with no snooping or reserved sectors. Consequently you cannot run
804 disklabel on this device. Instead you must run disklabel on a
805 whole-slice device.
806
807(3) The 'compatibility' partitions now use slice 0 in the device name,
808 so instead of da0a you must specify da0s0a. Also, as per (1) above,
809 accessing the disklabel for the compatibility partitions must be
810 done via slice 0 (da0s0).
811
812(4) Many device drivers that used to fake up labels, such as CD, ACD, VN,
813 and CCD now run through the disk management layer and are assigned
814 real disk management devices. VN and CCD in particular do not usually
815 use a MBR and disklabels must be accessed through the compatibility
816 slice 0. Your /etc/ccd.conf file still specifies 'ccd0', though, you
817 don't name it 'ccd0s0' in the config file.
818
819Generally speaking, you have to get used to running fdisk and disklabel on
820the correctly specified device names. A lot of the wiggle, such as running
821disklabel on a partition, has been removed.
822
823+-----------------------------------------------------------------------+
824+ UPGRADING FROM OLDER VERSIONS OF DRAGONFLY OR FREEBSD +
825+-----------------------------------------------------------------------+
826
827> Kerberos IV
828-------------
829
830Kerberos IV (eBones) was removed from the tree, please consider moving to
831Kerberos 5 (Heimdal).
832
833> Package Management System
834---------------------------
835
836Starting with the 1.4 release, DragonFly uses NetBSD's pkgsrc package
837management system. The necessary tools to build and maintain packages
838are provided in /usr/pkg/bin and /usr/pkg/sbin. Make sure that these
839directories are in your PATH variable.
840
841In order to obtain a reasonably current snapshot of the pkgsrc tree, use
842the tarball from NetBSD:
843
844 fetch -o /tmp/pkgsrc.tar.gz ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc.tar.gz
845 cd /usr; tar -xzf /tmp/pkgsrc.tar.gz; chown -R root:wheel pkgsrc
846
847This tree can then be kept up to date with cvs update:
848
849 cd /usr/pkgsrc; cvs up
850
851NOTE! If you upgraded from a pre-1.4 system to 1.4 or later, you need to
852build and install the pkgsrc bootstrap manually:
853
854 cd /usr/pkgsrc/bootstrap
855 ./bootstrap --pkgdbdir /var/db/pkg --prefix /usr/pkg
856
857+-----------------------------------------------------------------------+
858+ UPGRADING DRAGONFLY ON AN EXISTING DRAGONFLY SYSTEM +
859+ UPDATING FROM PRE-1.2 SYSTEMS OR FreeBSD 4.x TO +
860+ DRAGONFLY 1.3+ (EITHER PREVIEW or HEAD) +
861+-----------------------------------------------------------------------+
58116288 862
114580ac 863The compatibility shims for the build environment have been removed, you
58116288
JS
864have to update to DragonFly 1.2 release branch first.
865
1fcc7462
JS
866The default PAM configuration has moved from /etc/pam.conf to /etc/pam.d/.
867The existing configuration can be converted using /etc/pam.d/convert.sh.
868Entries in /etc/pam.d/ override entries in /etc/pam.conf. In addition
869the pam_skey.so module was retired, you have to remove it manually from
870your configuration, when you convert it.
58116288 871
a3107071
MD
872> Required user and group IDs when upgrading from either FreeBSD or DragonFly
873---------------------
874
875The following users may be missing from your password file. Use vipw and
876add any that are missing:
877
878smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin
dcf85892 879_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/sbin/nologin
a3107071
MD
880
881The following groups may be missing from your group file. Use vi /etc/group
882and add any that are missing:
883
884smmsp:*:25:
885authpf:*:63:
dcf85892 886_pflogd:*:64:
a3107071
MD
887
888
f419daca 889> Upgrading to DragonFly from FreeBSD
5e0ae0d4 890---------------------
984263bc 891
f419daca
MD
892You can build the DragonFly world and DragonFly kernels on a FreeBSD-4.x or
893FreeBSD-5.x machine and then install DragonFly over FreeBSD, replacing
894FreeBSD. Note that the DragonFly buildworld target does not try to reuse
895make depend information, it starts from scratch, so no pre-cleaning of the
896object hierarchy is necessary.
897
466bbc10 898 # get the CVS repository (it is placed in /home/dcvs, 500MB).
f419daca
MD
899 # Please use the -h option and a mirror site to pull the
900 # initial repository, but feel free to use the main repository
901 # machine to pull updates.
5010eeb3 902 cvsup /usr/share/examples/cvsup/DragonFly-cvs-supfile
f419daca
MD
903 # install the source from the CVS hierarchy (remove preexisting
904 # FreeBSD src first) (500MB)
905 cd /usr
906 rm -rf src
50172b1c 907 cvs -R -d /home/dcvs checkout -P src
f419daca
MD
908
909 # build it (500MB used in /usr/obj)
910 #
911 cd /usr/src
912 make buildworld
913 make buildkernel KERNCONF=<KERNELNAME>
984263bc 914
f419daca
MD
915Once you have built DragonFly you have to install it over FreeBSD. Since
916DragonFly does not track changes made by FreeBSD to its include file
917hierarchy and include file pollution can cause all sorts of unexpected
918compilation issues to come up, it is best to wipe your include hierarchy
919prior to installing DragonFly. Note that you should not wipe any installed
920FreeBSD header files or binaries until after you have successfully completed
921the build steps above.
fb12f484 922
f419daca
MD
923 rm -rf /usr/include
924 mkdir /usr/include
925 make installkernel KERNCONF=<KERNELNAME>
926 make installworld
fb12f484 927
b8cbf045 928Then you need to upgrade your system. DragonFly's 'make upgrade' target
f419daca 929will unconditionally upgrade the /etc files that sysops do not usually
b8cbf045
SW
930mess around with, such as the files in /etc/rc.d. It will also remove any
931obsolete files such as utilities and manpages that have been removed from
932the system since the version you're coming from. If you are unsure we
933recommend that you make a backup of at least your /etc before applying
934this step. Note that DragonFly's RC system is basically RCNG from
935FreeBSD-5, but there are some differences in the contents of the RC files.
f419daca
MD
936
937 make upgrade
938
b8cbf045
SW
939NOTE! Never do a 'make upgrade' before 'make installworld' has been run.
940Doing so might leave your system in an unusable state.
941
f419daca 942Finally we recommend that you do an 'ls -lta BLAH' for /bin, /sbin, /usr/bin,
b8cbf045
SW
943/usr/bin, and /usr/lib, and remove any stale files that you find. Please
944report these files to the DragonFly developers so that they can be added to
945the 'upgrade' target.
f419daca 946