Dear colleagues, marck@gwhx:/usr/src> uname -a FreeBSD gwhx.rinet.ru 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Tue Mar 1 08:22:54 UTC 2005 marck@gwhx.rinet.ru:/usr/obj/lh/src/sys/MINI amd64 defining CPUTYPE=athlon64 in /etc/make conf renders loader unusable: it builds with athlon64 optimization, and crashes (reboots) immediately. The following patch fixes the problem for me. Index: sys/boot/i386/Makefile.inc ==================================================================RCS file: /home/ncvs/src/sys/boot/i386/Makefile.inc,v retrieving revision 1.9 diff -u -r1.9 Makefile.inc --- sys/boot/i386/Makefile.inc 9 Feb 2004 14:11:55 -0000 1.9 +++ sys/boot/i386/Makefile.inc 1 Mar 2005 15:32:44 -0000 @@ -9,6 +9,7 @@ LDFLAGS+= -nostdlib .if ${MACHINE_ARCH} == "amd64" +CPUTYPE= i686 CFLAGS+= -m32 LDFLAGS+= -m elf_i386_fbsd AFLAGS+= --32 Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------
Dmitry Morozovsky wrote:> marck@gwhx:/usr/src> uname -a > FreeBSD gwhx.rinet.ru 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Tue Mar 1 > 08:22:54 UTC 2005 marck@gwhx.rinet.ru:/usr/obj/lh/src/sys/MINI amd64 > > defining CPUTYPE=athlon64 in /etc/make conf renders loader unusable: it builds > with athlon64 optimization, and crashes (reboots) immediately. The following > patch fixes the problem for me.I had the exact same problem with CPUTYPE?=athlonxp on an i386 system several months ago: http://lists.freebsd.org/pipermail/freebsd-current/2004-October/040493.html http://lists.freebsd.org/pipermail/freebsd-current/2004-October/041981.html http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042127.html I've just been running without CPUTYPE defined as I didn't know what steps to take to debug it and didn't get a response to help. I can test and debug this if someone will help me out. Jon> Index: sys/boot/i386/Makefile.inc > ==================================================================> RCS file: /home/ncvs/src/sys/boot/i386/Makefile.inc,v > retrieving revision 1.9 > diff -u -r1.9 Makefile.inc > --- sys/boot/i386/Makefile.inc 9 Feb 2004 14:11:55 -0000 1.9 > +++ sys/boot/i386/Makefile.inc 1 Mar 2005 15:32:44 -0000 > @@ -9,6 +9,7 @@ > LDFLAGS+= -nostdlib > > .if ${MACHINE_ARCH} == "amd64" > +CPUTYPE= i686 > CFLAGS+= -m32 > LDFLAGS+= -m elf_i386_fbsd > AFLAGS+= --32 > > > Sincerely, > D.Marck [DM5020, MCK-RIPE, DM3-RIPN] > ------------------------------------------------------------------------ > *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** > ------------------------------------------------------------------------ > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
On Mar 1, 2005, at 10:39 AM, Dmitry Morozovsky wrote:> defining CPUTYPE=athlon64 in /etc/make conf renders loader > unusable: it builds > with athlon64 optimization, and crashes (reboots) immediately. The > following > patch fixes the problem for me. >This appears not to be a problem with CPUTYPE=opteron on 5.4-RELEASE-p1 I was trembling just before the reboot, but it came back just fine... or does one need to explicitly re-install the loader (other than via installworld)? Vivek Khera, Ph.D. +1-301-869-4449 x806