Date: Tue, 21 Mar 2000 10:15:54 -0500 From: "J. W. Ballantine" <jwb@homer.att.com> To: freebsd-stable@freebsd.org Subject: Re: HEADS UP: 3.x -> 4.0-STABLE upgrade instructions Message-ID: <200003211515.KAA08957@akiva.homer.att.com>
next in thread | raw e-mail | index | archive | help
Warner Losh wrote: >Let me know if the following doesn't work: > To update from 3.x to 4.0 stable > -------------------------------- > cd /usr/src > make buildworld > cd sbin/mknod > make install > <follow directions to build/install a kernel> > <follow rebuild disk /dev entries above> [*] > reboot > <in single user> > cd /usr/src > make -DNOINFO installworld > make installworld > > [*] You may need to switch from wd to ad ala 19991210 > > To build a kernel > ----------------- > Update config, genassym and go: > cd src/usr.bin/genassym > make depend all install > cd ../../usr.sbin/config > make depend all install > > To rebuild disk /dev entries > ---------------------------- > > MAKEDEV should be copied from src/etc/MAKEDEV to /dev before > starting the following: > > For N in the list of disks > MAKEDEV N # eg ad0 > for M in the list of slices > MAKEDEV NsMa # eg ad0s1a > > Ok, I cvs'ed the releng_4, edited /etc/make.conf for ``USA_RESIDENT'', then did a ``make buildworld''. When that ended, did the make install in sbin/mknod, genassym and config, and then tried to build GENERIC kernel, set LD_LIBRARY_PATH to point to the uninstalled libc.so.4, the then built and install GENERIC kernel. So far so good, since my disks are da9x9x, is skipped the disk rebuild step, and rebooted in single user mode, and did a ``make -DNOINFO installworld''. during this set, the kernel crashed in the bin/test install. When I try to reboot, I get the message that / was not dismounted cleanly and to fsck the disk. I go to single user mode and did a full fsck, a fsck -p and an fsck /dev/wd0s1 (/ mount point), and just for the heck of it a few sync's after the fsck's. Since I installed the R4 kernel, that is the one booting, when I try to boot with kernel.old (3.x-STABLE), it will not boot. Anyone have any ideas on (a) why the NOINFO install failed, (b) other than reload the 3.4-RELEASE binaries get back to a fixable system??? Thanks for any and all responses Jim Ballantine Selected portions of log file: # cd /usr/src # make buildworld -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- rm -rf /usr/obj/usr/src/i386 mkdir -p /usr/obj/usr/src/i386/usr/bin mkdir -p /usr/obj/usr/src/i386/usr/lib/compat/aout mkdir -p /usr/obj/usr/src/i386/usr/games mkdir -p /usr/obj/usr/src/i386/usr/libdata/ldscripts mkdir -p /usr/obj/usr/src/i386/usr/libexec/elf mkdir -p /usr/obj/usr/src/i386/usr/sbin mkdir -p /usr/obj/usr/src/i386/usr/share/misc mkdir -p /usr/obj/usr/src/i386/usr/include/arpa mkdir -p /usr/obj/usr/src/i386/usr/include/g++/std mkdir -p /usr/obj/usr/src/i386/usr/include/objc mkdir -p /usr/obj/usr/src/i386/usr/include/protocols mkdir -p /usr/obj/usr/src/i386/usr/include/readline mkdir -p /usr/obj/usr/src/i386/usr/include/rpc mkdir -p /usr/obj/usr/src/i386/usr/include/rpcsvc mkdir -p /usr/obj/usr/src/i386/usr/include/openssl mkdir -p /usr/obj/usr/src/i386/usr/include/security mkdir -p /usr/obj/usr/src/i386/usr/include/ss ln -sf /usr/src/sys /usr/obj/usr/src/i386/sys -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- Remainder of build to end deleted...... ===> etc ===> etc/sendmail rm -f freebsd.cf (cd /usr/src/etc/sendmail && m4 -D_CF_DIR_=/usr/src/etc/sendmail/../../contrib /sendmail/cf/ /usr/src/etc/sendmail/../../contrib/sendmail/cf/m4/cf.m4 freebsd.mc) > freebsd.cf chmod 444 freebsd.cf you have mail in /var/mail/root # cd sbin/mknod # make install install -c -s -o root -g wheel -m 555 mknod /sbin install -c -o root -g wheel -m 444 mknod.8.gz /usr/share/man/man8 # cd ls Makefile mknod.8 mknod.c # cd /usr/src/usr.bin/genassym # make depend all install install -c -s -o root -g wheel -m 555 genassym /usr/bin install -c -o root -g wheel -m 444 genassym.8.gz /usr/share/man/man8 # cd ../../usr/sbin .sbin/config # make depend all install install -c -s -o root -g wheel -m 555 config /usr/sbin install -c -o root -g wheel -m 444 config.8.gz /usr/share/man/man8 # cd ../../sys/i386/conf # config GENERIG /usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found Restart after setting LD_LIBRARY_PATH # cd /usr/src/sys/i386/conf # config GENERIC Don't forget to do a ``make depend'' Kernel build directory is ../../compile/GENERIC # cd ../../compile/GENERIC # make depend && make cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf ../../i386/i386/genassym.c genassym genassym.o >assym.s Kernel srcs compiles deleted cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf vers.c linking kernel text data bss dec hex filename 2174751 142284 123136 2440171 253beb kernel # make install chflags noschg /kernel mv /kernel /kernel.old install -c -m 555 -o root -g wheel -fschg kernel /kernel 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?200003211515.KAA08957>