ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/UPDATING
Revision: 775
Committed: Fri Mar 9 02:47:02 2007 UTC (17 years, 2 months ago) by laffer1
File size: 10696 byte(s)
Log Message:
add mfi

File Contents

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

Properties

Name Value
cvs2svn:cvs-rev 1.12