From owner-freebsd-stable Sun Sep 10 16: 8:33 2000 Delivered-To: freebsd-stable@freebsd.org Received: from vivaldi.pn.npi.msu.ru (gw.pn.npi.msu.ru [193.232.127.202]) by hub.freebsd.org (Postfix) with ESMTP id 8C18237B424 for ; Sun, 10 Sep 2000 16:08:28 -0700 (PDT) Received: from handel.pn.sinp.msu.ru (handel [195.208.223.24]) (authenticated) by vivaldi.pn.npi.msu.ru (8.11.0/8.11.0) with ESMTP id e8AN8KO83176; Mon, 11 Sep 2000 03:08:20 +0400 (MSD) Message-Id: <4.3.2.7.2.20000911022701.00a9fe00@vivaldi> X-Sender: svysh@vivaldi (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 11 Sep 2000 03:10:05 +0400 To: digitalox@earthlink.net From: Sergei Vyshenski Subject: Re: make buildkernel not working Cc: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Scott. /usr/src/UPDATING is out of date, which is a good tradition that helps people who are always in need of mastering their skills. 4-step procedure for making world & kernels (a bit old-fashioned but) which works for sure is as listed below. You may want to experiment with different numbers instead of "-j 4", decrementing them if something goes wrong, and incrementing them if you think that your computer is so powerful that you are allowed to pretend that you are in a hurry. E.g. for me "make installworld" during Step 2 succeeds only without this -j parameter at all. Good luck, Sergei **************************************** Step 0: batch -f mworld0 == begin of mworld0 == #!/bin/sh cvsup -g -L 2 /root/supfile > /var/tmp/update-src.log 2>&1 echo mworld0 completed ok. > /var/tmp/world.status == end of mworld0 == Step 1: batch -f mworld1 == begin of mworld1 == #!/bin/sh (cd /usr/src; make -j 4 cleandir >/dev/null 2>&1 ) chflags -R noschg /usr/obj/>/dev/null 2>&1 rm -rf /usr/obj/ >/dev/null 2>&1 (cd /usr/src && \ make -j 4 buildworld > /var/tmp/mw.out 2>&1 && \ echo "" >> /var/tmp/mw.out 2>&1 && \ echo Builworld completed ok. >> /var/tmp/mw.out 2>&1 && \ make -j 4 buildkernel KERNEL=GENERIC > /var/tmp/mk.out 2>&1 && \ make -j 4 buildkernel KERNEL=MY >> /var/tmp/mk.out 2>&1 && \ echo All kernels built ok. Insalling ... >> /var/tmp/mk.out 2>&1 && \ chflags noschg /*.old && \ make -j 4 installkernel KERNEL=GENERIC >> /var/tmp/mk.out 2>&1 && \ cp -p /GENERIC /GENERIC.old && \ chflags noschg /GENERIC && \ cp -p /kernel /GENERIC && \ make -j 4 installkernel KERNEL=MY >> /var/tmp/mk.out 2>&1 && \ cp -p /MY /MY.old && \ chflags noschg /MY && \ cp -p /kernel /MY && \ chflags noschg /kernel* && \ rm /kernel* && \ ls -lo /MY* /GENERIC* >> /var/tmp/mk.out 2>&1 && \ echo mworld1 completed ok. > /var/tmp/world.status ) == end of mworld1 == Step 1+: reboot to single user Step 2: batch -f mworld2 == begin of mworld2 == #!/bin/sh echo Hope we are single-user... (cd /usr/src; make installworld >> /var/tmp/mw.out 2>&1 && \ cd /usr/src/release/sysinstall >> /var/tmp/mw.out 2>&1 && \ make all install >> /var/tmp/mw.out 2>&1 && \ echo "" >> /var/tmp/mw.out 2>&1 && \ echo Installworld completed ok. >> /var/tmp/mw.out 2>&1 && \ echo mworld2 completed ok. > /var/tmp/world.status ) == end of mworld2 == Step 3: batch -f mworld3 == begin of mworld3 == #!/bin/sh rm -Rf /etc-old cp -Rp /etc /etc-old rm -Rf /usr/local/etc-old cp -Rp /usr/local/etc /usr/local/etc-old cd / mergemaster -v -s /usr/sbin/pwd_mkdb -p /etc/master.passwd echo "Making devices..." cd /dev ./MAKEDEV all echo mworld3 completed ok. > /var/tmp/world.status == end of mworld3 == Step 4: reboot *********************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message