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