Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2000 03:10:05 +0400
From:      Sergei Vyshenski <svysh@pn.sinp.msu.ru>
To:        digitalox@earthlink.net
Cc:        freebsd-stable@freebsd.org
Subject:   Re: make buildkernel not working
Message-ID:  <4.3.2.7.2.20000911022701.00a9fe00@vivaldi>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20000911022701.00a9fe00>