ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 888
Committed: Mon Apr 2 20:21:15 2007 UTC (17 years, 1 month ago) by archite
File size: 11857 byte(s)
Log Message:
Small correction to install directions for proplice. Added requirement
to build libpthread and libthr first.

File Contents

# User Rev Content
1 laffer1 169 Updating Information for MidnightBSD users
2 laffer1 2
3 laffer1 273 Items affecting the mports and packages system can be found in
4     /usr/mports/UPDATING.
5 laffer1 2
6 archite 886 20070401:
7     Importing propolice into MidnightBSD. Propolice is going to
8     provide us with much greater security and stability in the
9     long run. If upgrading from a pre-propolice system, please
10     follow the these instructions:
11    
12     cd /usr/src/lib/libc && make obj && make && make install
13     cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
14 archite 888 cd /usr/lib/libpthread && make obj && make && make install
15     cd /usr/lib/libthr && make obj && make && make install
16 archite 886 buildworld and kernel
17    
18     It is adviced that any mports which were installed and/or built
19     prior to the propolice update also be updated. If any errors
20     or issue are encounted, please contact security@midnightbsd.org
21     and we will be sure to investigate and come up with an expeditious
22     fix.
23    
24 laffer1 842 20070314:
25     Remove send-pr from src.
26    
27     Switch to NetBSD's gzip.
28    
29     Bump MBSD minor revision.
30    
31 laffer1 832 20070313:
32     Imported OpenSSH 4.6p1.
33    
34     Imported FreeBSD's libarchive and updated tar to work with it.
35    
36     Disabled debug statements cluttering up /var/log/messages for
37     the tcp autobuf patch applied previously.
38    
39 laffer1 807 20070312:
40     Synced several audio changes from FreeBSD 6.1. Removed the
41     BSD Daemon files from src/share.
42    
43 laffer1 775 20070308:
44     Added mfi which supports LSI Logic MegaRAID SAS devices including
45     the Dell perc5i.
46    
47 archite 726 20070206:
48     Imported OpenBSD's sudo into source. Please install
49     /usr/src/usr.bin/sudo/lib first before building.
50    
51     Those who install from a snapshot after this date
52     will not be effected.
53    
54 laffer1 708 20070119:
55     Added audit group. Be sure to add audit to your /etc/group file
56     before installing world.
57    
58     hostapd was updated to 0.4.8.
59    
60     An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to
61     unbreak world.
62    
63     wpa_supplicant was updated.
64    
65 laffer1 775 For stability and compatibility reasons, it was decided that MidnightBSD
66     sync with FreeBSD 6.1 Release. Nearly every change between the original
67     fork date of February 24, 2006 and the release of FreeBSD 6.1 in May
68     2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and
69     will not sync every little change with FreeBSD.
70 laffer1 708
71 laffer1 477 20061231:
72     Updated COPYRIGHT for 2007.
73    
74     Updated and bumped libutil after importing NetBSD efun(3) functions.
75    
76     Added MidnightBSD_version and bumped the FreeBSD version as we've
77     synced all commits between the fork and that version. It is now safe
78     to assume MidnightBSD is compatible with FreeBSD RELENG_6 from
79     Feb 26, 2006.
80    
81     Added spell(1) and deroff(1) from NetBSD. Also added additional
82     dict files to work with it. /usr/share/dict/american,
83     /usr/share/dict/british and /usr/share/dict/special/math
84    
85     Numerous man page and bug fixes.
86    
87 laffer1 352 20061226:
88     Setup /usr/share/examples/cvsup SUPfiles for the new
89 laffer1 376 MidnightBSD CVSup server.
90 laffer1 352
91 laffer1 376 Fix a bug in burncd where it would continue forever while
92     erasing CDRW media.
93    
94     Add csup to /usr/bin. csup is a CVSup replacement written
95     in C.
96    
97     Fixed a bug with bsnmpd build from Oct 30.
98    
99     Corrected some race conditions and fixed a few bugs in
100     geom. Imported changes from FreeBSD RELENG_6.
101    
102 laffer1 352 20061225:
103     Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c
104     that caused long double to long and long long
105     conversion of negative numbers to always result in -1.
106    
107     20061221:
108     Fixed acpi_battery.c to not report an ERROR if no
109     batteries are present.
110    
111     Performed some minor updates on the RL and RE NIC drivers.
112     RL should no longer panic when trying to print errors.
113    
114     Corrected a bug with TTY.
115    
116     20061218:
117     Corrected a bug with libpthread where newly created suspended
118     threads don't get scheduled.
119    
120     20061206:
121     Fixed a typo with the firewire security patch.
122    
123     20061129:
124     Minor cleanups to utilities in bin.
125    
126     Fixed msdos file system short file name behavior to match
127     FreeBSD.
128    
129 laffer1 325 20061031:
130     Updated man pages in section 7.
131    
132     20061030:
133     Updated sys/dev/drm to support intel 915 and radeon
134     r300 cards properly.
135    
136     Synced snmpd with FreeBSD-stable.
137    
138     Fixed a bug in rm which could cause data loss.
139    
140 laffer1 305 20061027:
141     Added Intel ICH8 and nForce 5 support to ATA. cam, mpt,
142     random, kbdmux, atkbd, and usb were updated. Changes
143     to clearing registers on SSE enabled processors (i386)
144     commited.
145    
146     lukemftpd updated.
147    
148     openssh rc script was altered which effects initial
149     seeding.
150    
151 laffer1 273 20061014:
152     Workaround for em driver problem on shared IRQ.
153    
154     Started removal of alpha support.
155    
156     20061013:
157     ATA driver was updated. USB/USB1/USB2 types added.
158    
159     20061010:
160 laffer1 305 OpenSSH was updated to 4.4p1.
161 laffer1 273
162 laffer1 169 20060909:
163     OpenNTPD was added to MidnightBSD. Run make delete-old to remove
164     the old ntpd daemon.
165 laffer1 63
166 laffer1 169 cat has a new option -D which allows you to timestamp output
167     on a per line basis.
168 laffer1 5
169 laffer1 169 The kernel has a keyboard mux which allows you to have multiple
170     keyboard connected simultaneously. USB keyboard support was also
171     improved with this patch.
172 laffer1 5
173 laffer1 169 The Intel em driver was updated. Network performance was greatly
174     increased on many systems. Additional models are supported.
175 laffer1 5
176 laffer1 169 The ATA driver was patched to fix a potential deadlock.
177 laffer1 5
178 laffer1 169 Bind was patched to fix a potential denial of service condition.
179 laffer1 5
180 laffer1 169 20060817:
181     ksh has been added to the base system. If you previously had
182     the port installed, it will be overwritten on the next buildworld.
183 laffer1 5
184    
185    
186 laffer1 2 To build a kernel
187     -----------------
188 laffer1 169 If you are updating from a prior version of MidnightBSD (even one just
189 laffer1 2 a few days old), you should follow this procedure. With a
190     /usr/obj tree with a fresh buildworld,
191     make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE
192     make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE
193    
194     To test a kernel once
195     ---------------------
196     If you just want to boot a kernel once (because you are not sure
197     if it works, or if you want to boot a known bad kernel to provide
198     debugging information) run
199     make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
200     nextboot -k testkernel
201    
202     To just build a kernel when you know that it won't mess you up
203     --------------------------------------------------------------
204     This assumes you are already running a 6.X system. Replace
205     ${arch} with the architecture of your machine (e.g. "i386",
206 laffer1 273 "amd64", "ia64", "pc98", "sparc64", etc).
207 laffer1 2
208     cd src/sys/${arch}/conf
209     config KERNEL_NAME_HERE
210     cd ../compile/KERNEL_NAME_HERE
211     make depend
212     make
213     make install
214    
215     If this fails, go to the "To build a kernel" section.
216    
217     To rebuild everything and install it on the current system.
218     -----------------------------------------------------------
219     # Note: sometimes if you are running current you gotta do more than
220     # is listed here if you are upgrading from a really old current.
221    
222     <make sure you have good level 0 dumps>
223     make buildworld
224     make kernel KERNCONF=YOUR_KERNEL_HERE
225     [1]
226     <reboot in single user> [3]
227     mergemaster -p [5]
228     make installworld
229 laffer1 5 make delete-old
230 laffer1 2 mergemaster [4]
231     <reboot>
232    
233    
234     To cross-install current onto a separate partition
235     --------------------------------------------------
236     # In this approach we use a separate partition to hold
237     # current's root, 'usr', and 'var' directories. A partition
238     # holding "/", "/usr" and "/var" should be about 2GB in
239     # size.
240    
241     <make sure you have good level 0 dumps>
242     <boot into -stable>
243     make buildworld
244     make buildkernel KERNCONF=YOUR_KERNEL_HERE
245     <maybe newfs current's root partition>
246     <mount current's root partition on directory ${CURRENT_ROOT}>
247     make installworld DESTDIR=${CURRENT_ROOT}
248     cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd
249     make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT}
250     cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd
251     <edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition>
252     <reboot into current>
253     <do a "native" rebuild/install as described in the previous section>
254     <maybe install compatibility libraries from src/lib/compat>
255     <reboot>
256    
257    
258     To upgrade in-place from 5.x-stable or higher to 6.x-stable
259     -----------------------------------------------------------
260     <make sure you have good level 0 dumps>
261     make buildworld [9]
262     make kernel KERNCONF=YOUR_KERNEL_HERE [8]
263     [1]
264     <reboot in single user> [3]
265     mergemaster -p [5]
266     make installworld
267 laffer1 5 make delete-old
268 laffer1 2 mergemaster -i [4]
269     <reboot>
270    
271     Make sure that you've read the UPDATING file to understand the
272     tweaks to various things you need. At this point in the life
273     cycle of current, things change often and you are on your own
274     to cope. The defaults can also change, so please read ALL of
275     the UPDATING entries.
276    
277     Also, if you are tracking -current, you must be subscribed to
278     freebsd-current@freebsd.org. Make sure that before you update
279     your sources that you have read and understood all the recent
280     messages there. If in doubt, please track -stable which has
281     much fewer pitfalls.
282    
283     [1] If you have third party modules, such as vmware, you
284     should disable them at this point so they don't crash your
285     system on reboot.
286    
287     [3] From the bootblocks, boot -s, and then do
288     fsck -p
289     mount -u /
290     mount -a
291     cd src
292     adjkerntz -i # if CMOS is wall time
293     Also, when doing a major release upgrade, it is required that
294     you boot into single user mode to do the installworld.
295    
296     [4] Note: This step is non-optional. Failure to do this step
297     can result in a significant reduction in the functionality of the
298     system. Attempting to do it by hand is not recommended and those
299     that pursue this avenue should read this file carefully, as well
300     as the archives of freebsd-current and freebsd-hackers mailing lists
301     for potential gotchas.
302    
303     [5] Usually this step is a noop. However, from time to time
304     you may need to do this if you get unknown user in the following
305     step. It never hurts to do it all the time.
306    
307     [8] In order to have a kernel that can run the 5.x binaries
308     needed to do an installworld, you must include the COMPAT_FREEBSD5
309     option in your kernel. Failure to do so may leave you with a system
310     that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5
311     is required to run the 5.x binaries on more recent kernels.
312    
313     Make sure that you merge any new devices from GENERIC since the
314     last time you updated your kernel config file.
315    
316     [9] When checking out sources, you must include the -P flag to have
317     cvs prune empty directories.
318    
319     If CPUTYPE is defined in your /etc/make.conf, make sure to use the
320     "?=" instead of the "=" assignment operator, so that buildworld can
321     override the CPUTYPE if it needs to.
322    
323     MAKEOBJDIRPREFIX must be defined in an environment variable, and
324     not on the command line, or in /etc/make.conf. buildworld will
325     warn if it is improperly defined.
326    
327     Copyright information:
328    
329     Copyright 1998-2005 M. Warner Losh. All Rights Reserved.
330    
331     Redistribution, publication, translation and use, with or without
332     modification, in full or in part, in any form or format of this
333     document are permitted without further permission from the author.
334    
335     THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR
336     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
337     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
338     DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT,
339     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
340     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
341     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
342     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
343     STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
344     IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
345     POSSIBILITY OF SUCH DAMAGE.
346    
347     If you find this document useful, and you want to, you may buy the
348     author a beer.
349    
350     Contact Warner Losh if you have any questions about your use of
351     this document.
352    
353 laffer1 5 $FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $
354 archite 888 $MidnightBSD: src/UPDATING,v 1.16 2007/04/02 00:48:02 archite Exp $

Properties

Name Value
cvs2svn:cvs-rev 1.17