1 |
Updating Information for MidnightBSD users |
2 |
|
3 |
20091228: |
4 |
amdtemp(4) was added. It allows one to monitor to the temperature |
5 |
of an AMD CPU such as a Phenom. |
6 |
|
7 |
20091205: |
8 |
OpenSSL security fix |
9 |
|
10 |
The SSL version 3 and TLS protocols support session renegotiation without |
11 |
cryptographically tying the new session parameters to the old parameters. |
12 |
|
13 |
20091128: |
14 |
OpenBSD sensors framework imported including sensorsd(8) |
15 |
|
16 |
20091126: |
17 |
OpenNTPD 4.4 import |
18 |
|
19 |
Update OpenSSH to 5.3p1 |
20 |
|
21 |
mksh R39 |
22 |
|
23 |
20091124: |
24 |
cpdup updated from DragonFly to 1.15 |
25 |
|
26 |
tzdata2009s updated with latest timezone data for November 2009. |
27 |
|
28 |
20091010: |
29 |
amd64 users should use WITHOUT_LIB32=yes in /etc/make.conf for now |
30 |
to test current. |
31 |
|
32 |
Revert unicode filename fixes from ntfs code. This was causing chaos |
33 |
on amd64 systems. |
34 |
|
35 |
20091006: |
36 |
Update timezone data with tzdata2009n with the Pakistan and |
37 |
Argentina changes. |
38 |
|
39 |
Sync several userland utilities with versions from FreeBSD 7.0 in |
40 |
sbin and usr.sbin. |
41 |
|
42 |
20090919: |
43 |
Update timezone data with tzdate2009m from September 2009. |
44 |
|
45 |
20090729: |
46 |
Patch for Bind 9 security vulnerability. a dynmaic update packet |
47 |
can trigger an assertion and cause named to exit |
48 |
|
49 |
20090606: |
50 |
Remove PCC from the base system. This compiler will not work |
51 |
as a system compiler for us as we've got some userland investment |
52 |
in C++ code and may have Objective-C in the future. We're stuck |
53 |
with a solution that supports these three languages at a minimum. |
54 |
|
55 |
I had wanted to keep it as an optional compiler because it is |
56 |
fast, however too many users want to try to use it for the base |
57 |
system which makes no sense. |
58 |
|
59 |
A hack was added for Cypress based usb hard drive enclosures to |
60 |
the kernel. This should cut down on commands it claims to support |
61 |
but does not (at the cam layer). Found while testing ZFS on |
62 |
an external device. |
63 |
|
64 |
20090520: |
65 |
The powerd daemon no longer starts automatically to improve |
66 |
compatibility with many systems. However, there is a new |
67 |
installer option in the startup section to enable it. This |
68 |
makes it easier to enable for users that have working systems. I thought it was only a problem on older hardware, but it freaks |
69 |
out my new Phenom too. |
70 |
|
71 |
20090502: |
72 |
OpenSSH 5.2p1 import |
73 |
|
74 |
ale(4) connected to the build. (kernel module only) |
75 |
|
76 |
20090501: |
77 |
Imported makefs utility from NetBSD/FreeBSD |
78 |
|
79 |
20090422: |
80 |
OpenSSL security update |
81 |
|
82 |
The function ASN1_STRING_print_ex does not properly validate the lengths |
83 |
of BMPString or UniversalString objects before attempting to print them. |
84 |
|
85 |
20090415: |
86 |
Created a Symbol.map for libc/ohash symbols |
87 |
|
88 |
Updated several usr/bin usr/sbin utilities. |
89 |
|
90 |
Corrected a bug with Makefile.inc1 causing the bootstrap |
91 |
tools to fail. |
92 |
|
93 |
20090405: |
94 |
xorg 7.4 wants to configure its input devices via hald which does not |
95 |
yet work with USB. If the keyboard/mouse does not work in xorg then |
96 |
add |
97 |
Option "AllowEmptyInput" "off" |
98 |
to your ServerLayout section. This will cause X to use the configured |
99 |
kbd and mouse sections from your xorg.conf |
100 |
|
101 |
20090403: |
102 |
mksh was disconnected a few day ago do to bugs with |
103 |
buildworld and mports. Now, connect it back |
104 |
for use as /bin/sh with a conditional called |
105 |
MK_ASH. By default, ash is the standard /bin/sh |
106 |
but we may change this later. This will allow further |
107 |
testing by users and developers of mksh without |
108 |
causing an unpleasant default experience. In the |
109 |
long run, we need to fix mksh compatibility. |
110 |
|
111 |
20090328: |
112 |
Bring in mksh R37 from CVS. The dot.mkshrc files for root |
113 |
and skel were changed. mksh(1) now replaces ash aka sh(1) |
114 |
as the default /bin/sh. Please report bugs with |
115 |
ports, etc. The ash code will remain in the repo for awhile |
116 |
as I decide if we'll add something like MK_SHELL_ASH as |
117 |
an optional build parameter. |
118 |
|
119 |
ahd was disconnected from the lint environment until |
120 |
the compiler bug is sorted (by updating gcc?) |
121 |
|
122 |
Remove freebsd-tips from fortune files and change the |
123 |
default for login and profile. |
124 |
|
125 |
20090327: |
126 |
Update libarchive to 2.5.5, tar, and add bsdcpio. |
127 |
|
128 |
Also previously, ctriv has been connecting Perl 5.10 |
129 |
to the build (part of os). This will have an impact |
130 |
on mports. |
131 |
|
132 |
20090325: |
133 |
Update Bind to 9.4.3-P1 |
134 |
|
135 |
Update mksh to R36b |
136 |
|
137 |
Update tcpdump to 3.9.8, fix libpcap to work with current. |
138 |
|
139 |
Update pnpinfo, sync with FreeBSD. |
140 |
|
141 |
20090115: |
142 |
Fix a problem with DNSSEC and BIND. |
143 |
|
144 |
20090110: |
145 |
For applications using OpenSSL for SSL connections, an invalid SSL |
146 |
certificate may be interpreted as valid. This could for example be |
147 |
used by an attacker to perform a man-in-the-middle attack. |
148 |
|
149 |
Other applications which use the OpenSSL EVP API may similarly be |
150 |
affected. |
151 |
|
152 |
Stop cross site request forgery attacks in lukemftpd |
153 |
|
154 |
20090104: |
155 |
Import GNU libreadline 5.2 |
156 |
|
157 |
20090101: |
158 |
Update time zone data to 2008i. |
159 |
|
160 |
20081231: |
161 |
Correct a problem where bluetooth and netgraph sockets are not |
162 |
properly initialized. |
163 |
|
164 |
Happy 2009. |
165 |
|
166 |
20081206: |
167 |
Due to the massive change in the underlying system under way, |
168 |
we're naming the next release 1.0. The sys/sys/param.h was |
169 |
changed accordingly. ipfilter and ncurses were corrected |
170 |
using __MidnightBSD__ tests in the code. |
171 |
|
172 |
The GENERIC kernel config was caught up on i386 today. Consider |
173 |
i386 still broken, but amd64 is running again. |
174 |
|
175 |
mdoc.local was updated with the new MidnightBSD version info. |
176 |
|
177 |
batt(1) was rewritten in C. It now supports several flags and |
178 |
runs about 8 times faster on my laptop. The default output |
179 |
shows the number of minutes of battery life remaining and the |
180 |
percentage. You can use -u to display the number of batteries or |
181 |
-c to get script friendly output. Consult the man page for more. |
182 |
|
183 |
20081204: |
184 |
Work has completed on importing ZFS, jemalloc, several |
185 |
new devices, SCTP, updated pf, a new tempfs, linuxolator 2.6 kernel |
186 |
support, improved locking for file desc., audit (openbsm), |
187 |
openssl .98e, nfe, imporved intel high def audio, midi, updated |
188 |
intel gigabit (em), support for several wifi cards (intel), ... |
189 |
|
190 |
Renamed 0.3-CURRENT officially. Switched to using MidnightBSD version |
191 |
data from param.h instead of the FreeBSD version. This means |
192 |
testing is now possible in the ports tree for the version |
193 |
and that any ports or code relying on the FreeBSD version from |
194 |
sys/sys/param.h will need to be fixed. |
195 |
|
196 |
20080905: |
197 |
update nve(4) to support new hardware. |
198 |
|
199 |
20080801: |
200 |
Import OpenBSM 1.0 |
201 |
|
202 |
Modify src/release to create 3 isos instead of 2 for packages. |
203 |
|
204 |
etc/rc.d/firstboot now enables kdm, gnustep + slim and bsdstats. |
205 |
|
206 |
Many ia64, alpha, powerpc items were removed. |
207 |
|
208 |
The recent diffutils 2.8.7 import was fixed. |
209 |
|
210 |
20080703: |
211 |
pcc was not installed properly when setting DESTDIR for live cds, |
212 |
or posibly jails. |
213 |
|
214 |
20080627: |
215 |
Add firmware(9), WEP, CCMP, TKIP to GENERIC. |
216 |
|
217 |
Add glabel to GENERIC. |
218 |
|
219 |
Intel ICH8 mobile chipset used on some iMacs included with ata. |
220 |
|
221 |
pcc connected to the build on i386. (alternative compiler) |
222 |
|
223 |
ath added to GENERIC. (Atheros wireless NICs) on amd64/i386 |
224 |
|
225 |
20080528: |
226 |
Sendmail 8.14.3 |
227 |
|
228 |
20080516: |
229 |
ssh-vulnkey allows you to look for vulnerable ssh keys that |
230 |
were generated on Debian and Ubuntu hosts over the last |
231 |
few years. sshd can block offending keys with a configuration |
232 |
option. |
233 |
|
234 |
The elf note on binaries is now set to MidnightBSD. |
235 |
|
236 |
20080514: |
237 |
Fixed a number of problems with pcc. It is not yet connected |
238 |
to the build, but usable on i386 hosts. You may use it |
239 |
by make; make install in /usr/src/usr.bin/pcc. It will |
240 |
install in /usr/local as some of the files conflict with |
241 |
GCC versions. __MidnightBSD__ is defined in PCC as well. |
242 |
|
243 |
System headers were fixed to allow pcc to compile many binaries |
244 |
on MidnightBSD. bin/cp will work now for instance. |
245 |
|
246 |
20080430: |
247 |
__MidnightBSD__ is now defined via gcc. This can be tested |
248 |
to determine we're running on MidnightBSD in the preprocessor. |
249 |
|
250 |
20080429: |
251 |
Import bind 9.4.2 with threading |
252 |
|
253 |
libpthread (KSE) and libthr are built earlier |
254 |
|
255 |
pcvt(4) removed! |
256 |
|
257 |
Alias added for core2 cpus. |
258 |
|
259 |
Alpha and PC98 only utilities removed from usr/sbin |
260 |
|
261 |
syslogd, adduser, rmuser, mergemaster and mailwrapper have been |
262 |
improved. See the man pages for info. |
263 |
|
264 |
periodic scripts will not send emails with empty message bodies. |
265 |
See mailwrapper fix. |
266 |
|
267 |
20080410: |
268 |
Sync cpdup with DragonFly. Add parallel transaction support and |
269 |
-l flag to line-buffer stdout and stderr. |
270 |
|
271 |
20080406: |
272 |
Import bzip2 1.05 |
273 |
Import OpenSSH 4.9p1 |
274 |
|
275 |
20080322: |
276 |
The default umask was changed to 022. |
277 |
|
278 |
/usr/X11R6 paths were removed from several config files. |
279 |
|
280 |
.mkshrc files are now installed for root. |
281 |
|
282 |
20080316: |
283 |
FIx a problem with gif0 tunnels and neighbors with IPV6. |
284 |
|
285 |
20080312: |
286 |
Add lndir from X.org. This aides in the porting of MirPorts. |
287 |
|
288 |
New OS versions were added to the mapage code (groff) |
289 |
|
290 |
20080310: |
291 |
Correct a buffer overflow in ppp. |
292 |
|
293 |
20080308: |
294 |
Remove /usr/X11R6 from manpath config. |
295 |
|
296 |
20080307: |
297 |
Atheros driver no longer has several options set |
298 |
which corrects building in tinderbox on all three platforms. |
299 |
|
300 |
Added a new macro to sx.h which returns true if the current |
301 |
thread holds an exclusive lock on a specifix sx. |
302 |
|
303 |
Removed OS/2's HPFS file system. It's not maintained and |
304 |
I don't know anyone using OS/2 or ecomstation these days. |
305 |
My copy is in the closet collecting dust. |
306 |
|
307 |
20080306: |
308 |
Synced tinderbox with FreeBSD. Modified it for MidnightBSD. |
309 |
Developers can now use it to check src builds. |
310 |
|
311 |
20080303: |
312 |
Add mksh to /etc/shells, made some adjustments to options |
313 |
for mksh builds per suggestion upstream. |
314 |
|
315 |
USB HID table updated with modern hardware list. |
316 |
|
317 |
Updated BSD family true (we're not in there yet) |
318 |
|
319 |
iso3166 file updated and import of tzdata2007k for |
320 |
new time zones. |
321 |
|
322 |
Updated mksh to latest version R33. |
323 |
|
324 |
20080228: |
325 |
Remplaced the random IP id generation code with a new |
326 |
version by Amit Klein. |
327 |
|
328 |
20080221: |
329 |
Sendfile write only permissions fix. |
330 |
|
331 |
Removed some HPFS and PC98 code. |
332 |
|
333 |
iso639 file sycned with DragonFly. |
334 |
|
335 |
20080128: |
336 |
Changed NTP configuration so that ips aren't cached |
337 |
so multiple servers are used. |
338 |
|
339 |
Fix an issue with fork() in libpthread. |
340 |
|
341 |
20080121: |
342 |
Add virtualization detection to set the HZ rate |
343 |
according to a VM present. VMWare and Parallels |
344 |
should work better like this. |
345 |
|
346 |
Change to full x11 install in sysinstall. Add |
347 |
xorg 7 support. |
348 |
|
349 |
20080115: |
350 |
Fix the handling of PTY's. CVE-2008-0216 |
351 |
|
352 |
20080105: |
353 |
mport delete code added, USE_MPORT_TOOLS knob aded. |
354 |
|
355 |
20080101: |
356 |
Happy New Year |
357 |
|
358 |
20071123: |
359 |
Update sendmail to 8.14.2 |
360 |
|
361 |
20071120: |
362 |
Update system compiler to gcc 3.4.6. |
363 |
|
364 |
20071023: |
365 |
Updated mksh to R31d. |
366 |
|
367 |
20070911: |
368 |
Updated mksh to version R31b. |
369 |
|
370 |
Fixed stderr output in libpthread. Previously it was |
371 |
written to stdout. |
372 |
|
373 |
20070831: |
374 |
Added dot.mkshrc file to support the recent change to |
375 |
mksh from OpenBSD's ksh derived from pdksh. |
376 |
|
377 |
Added new firewall configuration. ipfw is enabled by default |
378 |
with a "desktop" configuration. Consult /etc/rc.firewall |
379 |
or ipfw show to see the ruleset used. You can disable |
380 |
ipfw by setting firewall_enable="NO" in /etc/rc.conf This |
381 |
change only effects IPv4. IPv6 does not have a firewall |
382 |
enabled by default. |
383 |
|
384 |
20070814: |
385 |
Removed GNU tar source. We've been using BSD tar |
386 |
for awhile. |
387 |
|
388 |
20070806: |
389 |
Finished removing umapfs and autofs from the tree. |
390 |
|
391 |
20070804: |
392 |
BIND and Tcpdump have been patched for recent vulnerabilities. |
393 |
|
394 |
We switched to BSD cpio (pax). |
395 |
|
396 |
20070719: |
397 |
Imported cpdup from DragonFly as /bin/cpdup |
398 |
|
399 |
20070716: |
400 |
Update GNU cpio to 2.8. |
401 |
|
402 |
20070410: |
403 |
cvs was updated to 1.12.13. cvsbug was removed. |
404 |
cvs now behaves similarly to DragonFly's cvs with |
405 |
most of their local changes. |
406 |
|
407 |
20070409: |
408 |
RELENG_0_1 was created. More aggresive changes will |
409 |
continue here. |
410 |
|
411 |
20070406: |
412 |
Back out propolice. propolice caused several problems |
413 |
with our threading libraries libthr and libpthread. |
414 |
curthread was often NULL after the patch and many |
415 |
multithreaded applications would crash. We plan to |
416 |
work on either bringing in gcc 4.1 or developing a new |
417 |
patch which also corrects our threading issues later. |
418 |
|
419 |
It is more important to have a stable system for our |
420 |
mport work and other projects at this time. |
421 |
|
422 |
This is not a clean removal. It is recommended that you |
423 |
have a recently SNAP CD handy. You can either reinstall |
424 |
or perform a make buildworld and make buildkernel and |
425 |
make installkernel. Reboot on the cd and copy the contents |
426 |
of /bin, /sbin, /lib, /libexec, and /usr/bin, /usr/sbin, |
427 |
/usr/lib, and /usr/libexec to the respective directories on |
428 |
your disk. Then you should be able to boot into single user |
429 |
mode and run make installworld. You will need to run |
430 |
chflags noschg on some of the files if you can't overwrite |
431 |
them. |
432 |
|
433 |
You will get __guard missing errors since we had to remove |
434 |
this from libc. |
435 |
|
436 |
You will need to rebuild any ports built while propolice was |
437 |
installed. |
438 |
|
439 |
20070401: |
440 |
Importing propolice into MidnightBSD. Propolice is going to |
441 |
provide us with much greater security and stability in the |
442 |
long run. If upgrading from a pre-propolice system, please |
443 |
follow the these instructions: |
444 |
|
445 |
cd /usr/src/lib/libc && make obj && make && make install |
446 |
cd /usr/src/gnu/usr.bin/cc && make obj && make && make install |
447 |
cd /usr/src/lib/libpthread && make obj && make && make install |
448 |
cd /usr/src/lib/libthr && make obj && make && make install |
449 |
buildworld and kernel |
450 |
|
451 |
It is adviced that any mports which were installed and/or built |
452 |
prior to the propolice update also be updated. If any errors |
453 |
or issue are encounted, please contact security@midnightbsd.org |
454 |
and we will be sure to investigate and come up with an expeditious |
455 |
fix. |
456 |
|
457 |
20070314: |
458 |
Remove send-pr from src. |
459 |
|
460 |
Switch to NetBSD's gzip. |
461 |
|
462 |
Bump MBSD minor revision. |
463 |
|
464 |
20070313: |
465 |
Imported OpenSSH 4.6p1. |
466 |
|
467 |
Imported FreeBSD's libarchive and updated tar to work with it. |
468 |
|
469 |
Disabled debug statements cluttering up /var/log/messages for |
470 |
the tcp autobuf patch applied previously. |
471 |
|
472 |
20070312: |
473 |
Synced several audio changes from FreeBSD 6.1. Removed the |
474 |
BSD Daemon files from src/share. |
475 |
|
476 |
20070308: |
477 |
Added mfi which supports LSI Logic MegaRAID SAS devices including |
478 |
the Dell perc5i. |
479 |
|
480 |
20070206: |
481 |
Imported OpenBSD's sudo into source. Please install |
482 |
/usr/src/usr.bin/sudo/lib first before building. |
483 |
|
484 |
Those who install from a snapshot after this date |
485 |
will not be effected. |
486 |
|
487 |
20070119: |
488 |
Added audit group. Be sure to add audit to your /etc/group file |
489 |
before installing world. |
490 |
|
491 |
hostapd was updated to 0.4.8. |
492 |
|
493 |
An accidental commit in usr.sbin/bluetooth/hccontrol was fixed to |
494 |
unbreak world. |
495 |
|
496 |
wpa_supplicant was updated. |
497 |
|
498 |
For stability and compatibility reasons, it was decided that MidnightBSD |
499 |
sync with FreeBSD 6.1 Release. Nearly every change between the original |
500 |
fork date of February 24, 2006 and the release of FreeBSD 6.1 in May |
501 |
2006 will be merged. Beyond this, MidnightBSD will be a "real" fork and |
502 |
will not sync every little change with FreeBSD. |
503 |
|
504 |
20061231: |
505 |
Updated COPYRIGHT for 2007. |
506 |
|
507 |
Updated and bumped libutil after importing NetBSD efun(3) functions. |
508 |
|
509 |
Added MidnightBSD_version and bumped the FreeBSD version as we've |
510 |
synced all commits between the fork and that version. It is now safe |
511 |
to assume MidnightBSD is compatible with FreeBSD RELENG_6 from |
512 |
Feb 26, 2006. |
513 |
|
514 |
Added spell(1) and deroff(1) from NetBSD. Also added additional |
515 |
dict files to work with it. /usr/share/dict/american, |
516 |
/usr/share/dict/british and /usr/share/dict/special/math |
517 |
|
518 |
Numerous man page and bug fixes. |
519 |
|
520 |
20061226: |
521 |
Setup /usr/share/examples/cvsup SUPfiles for the new |
522 |
MidnightBSD CVSup server. |
523 |
|
524 |
Fix a bug in burncd where it would continue forever while |
525 |
erasing CDRW media. |
526 |
|
527 |
Add csup to /usr/bin. csup is a CVSup replacement written |
528 |
in C. |
529 |
|
530 |
Fixed a bug with bsnmpd build from Oct 30. |
531 |
|
532 |
Corrected some race conditions and fixed a few bugs in |
533 |
geom. Imported changes from FreeBSD RELENG_6. |
534 |
|
535 |
20061225: |
536 |
Fixed a typo in src/lib/libc/sparc64/fpu/fpu_implode.c |
537 |
that caused long double to long and long long |
538 |
conversion of negative numbers to always result in -1. |
539 |
|
540 |
20061221: |
541 |
Fixed acpi_battery.c to not report an ERROR if no |
542 |
batteries are present. |
543 |
|
544 |
Performed some minor updates on the RL and RE NIC drivers. |
545 |
RL should no longer panic when trying to print errors. |
546 |
|
547 |
Corrected a bug with TTY. |
548 |
|
549 |
20061218: |
550 |
Corrected a bug with libpthread where newly created suspended |
551 |
threads don't get scheduled. |
552 |
|
553 |
20061206: |
554 |
Fixed a typo with the firewire security patch. |
555 |
|
556 |
20061129: |
557 |
Minor cleanups to utilities in bin. |
558 |
|
559 |
Fixed msdos file system short file name behavior to match |
560 |
FreeBSD. |
561 |
|
562 |
20061031: |
563 |
Updated man pages in section 7. |
564 |
|
565 |
20061030: |
566 |
Updated sys/dev/drm to support intel 915 and radeon |
567 |
r300 cards properly. |
568 |
|
569 |
Synced snmpd with FreeBSD-stable. |
570 |
|
571 |
Fixed a bug in rm which could cause data loss. |
572 |
|
573 |
20061027: |
574 |
Added Intel ICH8 and nForce 5 support to ATA. cam, mpt, |
575 |
random, kbdmux, atkbd, and usb were updated. Changes |
576 |
to clearing registers on SSE enabled processors (i386) |
577 |
commited. |
578 |
|
579 |
lukemftpd updated. |
580 |
|
581 |
openssh rc script was altered which effects initial |
582 |
seeding. |
583 |
|
584 |
20061014: |
585 |
Workaround for em driver problem on shared IRQ. |
586 |
|
587 |
Started removal of alpha support. |
588 |
|
589 |
20061013: |
590 |
ATA driver was updated. USB/USB1/USB2 types added. |
591 |
|
592 |
20061010: |
593 |
OpenSSH was updated to 4.4p1. |
594 |
|
595 |
20060909: |
596 |
OpenNTPD was added to MidnightBSD. Run make delete-old to remove |
597 |
the old ntpd daemon. |
598 |
|
599 |
cat has a new option -D which allows you to timestamp output |
600 |
on a per line basis. |
601 |
|
602 |
The kernel has a keyboard mux which allows you to have multiple |
603 |
keyboard connected simultaneously. USB keyboard support was also |
604 |
improved with this patch. |
605 |
|
606 |
The Intel em driver was updated. Network performance was greatly |
607 |
increased on many systems. Additional models are supported. |
608 |
|
609 |
The ATA driver was patched to fix a potential deadlock. |
610 |
|
611 |
Bind was patched to fix a potential denial of service condition. |
612 |
|
613 |
20060817: |
614 |
ksh has been added to the base system. If you previously had |
615 |
the port installed, it will be overwritten on the next buildworld. |
616 |
|
617 |
|
618 |
|
619 |
To build a kernel |
620 |
----------------- |
621 |
If you are updating from a prior version of MidnightBSD (even one just |
622 |
a few days old), you should follow this procedure. With a |
623 |
/usr/obj tree with a fresh buildworld, |
624 |
make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=YOUR_KERNEL_HERE |
625 |
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=YOUR_KERNEL_HERE |
626 |
|
627 |
To test a kernel once |
628 |
--------------------- |
629 |
If you just want to boot a kernel once (because you are not sure |
630 |
if it works, or if you want to boot a known bad kernel to provide |
631 |
debugging information) run |
632 |
make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel |
633 |
nextboot -k testkernel |
634 |
|
635 |
To just build a kernel when you know that it won't mess you up |
636 |
-------------------------------------------------------------- |
637 |
This assumes you are already running a 6.X system. Replace |
638 |
${arch} with the architecture of your machine (e.g. "i386", |
639 |
"amd64", "ia64", "pc98", "sparc64", etc). |
640 |
|
641 |
cd src/sys/${arch}/conf |
642 |
config KERNEL_NAME_HERE |
643 |
cd ../compile/KERNEL_NAME_HERE |
644 |
make depend |
645 |
make |
646 |
make install |
647 |
|
648 |
If this fails, go to the "To build a kernel" section. |
649 |
|
650 |
To rebuild everything and install it on the current system. |
651 |
----------------------------------------------------------- |
652 |
# Note: sometimes if you are running current you gotta do more than |
653 |
# is listed here if you are upgrading from a really old current. |
654 |
|
655 |
<make sure you have good level 0 dumps> |
656 |
make buildworld |
657 |
make kernel KERNCONF=YOUR_KERNEL_HERE |
658 |
[1] |
659 |
<reboot in single user> [3] |
660 |
mergemaster -p [5] |
661 |
make installworld |
662 |
make delete-old |
663 |
mergemaster [4] |
664 |
<reboot> |
665 |
|
666 |
|
667 |
To cross-install current onto a separate partition |
668 |
-------------------------------------------------- |
669 |
# In this approach we use a separate partition to hold |
670 |
# current's root, 'usr', and 'var' directories. A partition |
671 |
# holding "/", "/usr" and "/var" should be about 2GB in |
672 |
# size. |
673 |
|
674 |
<make sure you have good level 0 dumps> |
675 |
<boot into -stable> |
676 |
make buildworld |
677 |
make buildkernel KERNCONF=YOUR_KERNEL_HERE |
678 |
<maybe newfs current's root partition> |
679 |
<mount current's root partition on directory ${CURRENT_ROOT}> |
680 |
make installworld DESTDIR=${CURRENT_ROOT} |
681 |
cd src/etc; make distribution DESTDIR=${CURRENT_ROOT} # if newfs'd |
682 |
make installkernel KERNCONF=YOUR_KERNEL_HERE DESTDIR=${CURRENT_ROOT} |
683 |
cp /etc/fstab ${CURRENT_ROOT}/etc/fstab # if newfs'd |
684 |
<edit ${CURRENT_ROOT}/etc/fstab to mount "/" from the correct partition> |
685 |
<reboot into current> |
686 |
<do a "native" rebuild/install as described in the previous section> |
687 |
<maybe install compatibility libraries from src/lib/compat> |
688 |
<reboot> |
689 |
|
690 |
|
691 |
To upgrade in-place from 5.x-stable or higher to 6.x-stable |
692 |
----------------------------------------------------------- |
693 |
<make sure you have good level 0 dumps> |
694 |
make buildworld [9] |
695 |
make kernel KERNCONF=YOUR_KERNEL_HERE [8] |
696 |
[1] |
697 |
<reboot in single user> [3] |
698 |
mergemaster -p [5] |
699 |
make installworld |
700 |
make delete-old |
701 |
mergemaster -i [4] |
702 |
<reboot> |
703 |
|
704 |
Make sure that you've read the UPDATING file to understand the |
705 |
tweaks to various things you need. At this point in the life |
706 |
cycle of current, things change often and you are on your own |
707 |
to cope. The defaults can also change, so please read ALL of |
708 |
the UPDATING entries. |
709 |
|
710 |
Also, if you are tracking -current, you must be subscribed to |
711 |
freebsd-current@freebsd.org. Make sure that before you update |
712 |
your sources that you have read and understood all the recent |
713 |
messages there. If in doubt, please track -stable which has |
714 |
much fewer pitfalls. |
715 |
|
716 |
[1] If you have third party modules, such as vmware, you |
717 |
should disable them at this point so they don't crash your |
718 |
system on reboot. |
719 |
|
720 |
[3] From the bootblocks, boot -s, and then do |
721 |
fsck -p |
722 |
mount -u / |
723 |
mount -a |
724 |
cd src |
725 |
adjkerntz -i # if CMOS is wall time |
726 |
Also, when doing a major release upgrade, it is required that |
727 |
you boot into single user mode to do the installworld. |
728 |
|
729 |
[4] Note: This step is non-optional. Failure to do this step |
730 |
can result in a significant reduction in the functionality of the |
731 |
system. Attempting to do it by hand is not recommended and those |
732 |
that pursue this avenue should read this file carefully, as well |
733 |
as the archives of freebsd-current and freebsd-hackers mailing lists |
734 |
for potential gotchas. |
735 |
|
736 |
[5] Usually this step is a noop. However, from time to time |
737 |
you may need to do this if you get unknown user in the following |
738 |
step. It never hurts to do it all the time. |
739 |
|
740 |
[8] In order to have a kernel that can run the 5.x binaries |
741 |
needed to do an installworld, you must include the COMPAT_FREEBSD5 |
742 |
option in your kernel. Failure to do so may leave you with a system |
743 |
that is hard to boot to recover. A similar kernel option COMPAT_FREEBSD5 |
744 |
is required to run the 5.x binaries on more recent kernels. |
745 |
|
746 |
Make sure that you merge any new devices from GENERIC since the |
747 |
last time you updated your kernel config file. |
748 |
|
749 |
[9] When checking out sources, you must include the -P flag to have |
750 |
cvs prune empty directories. |
751 |
|
752 |
If CPUTYPE is defined in your /etc/make.conf, make sure to use the |
753 |
"?=" instead of the "=" assignment operator, so that buildworld can |
754 |
override the CPUTYPE if it needs to. |
755 |
|
756 |
MAKEOBJDIRPREFIX must be defined in an environment variable, and |
757 |
not on the command line, or in /etc/make.conf. buildworld will |
758 |
warn if it is improperly defined. |
759 |
|
760 |
Copyright information: |
761 |
|
762 |
Copyright 1998-2005 M. Warner Losh. All Rights Reserved. |
763 |
|
764 |
Redistribution, publication, translation and use, with or without |
765 |
modification, in full or in part, in any form or format of this |
766 |
document are permitted without further permission from the author. |
767 |
|
768 |
THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``AS IS'' AND ANY EXPRESS OR |
769 |
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
770 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
771 |
DISCLAIMED. IN NO EVENT SHALL WARNER LOSH BE LIABLE FOR ANY DIRECT, |
772 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
773 |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
774 |
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
775 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
776 |
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
777 |
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
778 |
POSSIBILITY OF SUCH DAMAGE. |
779 |
|
780 |
If you find this document useful, and you want to, you may buy the |
781 |
author a beer. |
782 |
|
783 |
Contact Warner Losh if you have any questions about your use of |
784 |
this document. |
785 |
|
786 |
$FreeBSD: src/UPDATING,v 1.416.2.18 2006/02/22 11:51:57 yar Exp $ |
787 |
$MidnightBSD: src/UPDATING,v 1.73 2009/12/05 15:32:24 laffer1 Exp $ |