From owner-freebsd-stable@FreeBSD.ORG Tue Mar 1 16:08:32 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D928E16A4CE for ; Tue, 1 Mar 2005 16:08:32 +0000 (GMT) Received: from smtp801.mail.sc5.yahoo.com (smtp801.mail.sc5.yahoo.com [66.163.168.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 5BF4343D58 for ; Tue, 1 Mar 2005 16:08:32 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.225.210 with login) by smtp801.mail.sc5.yahoo.com with SMTP; 1 Mar 2005 16:08:32 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 409ED617E; Tue, 1 Mar 2005 10:08:31 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02036-09; Tue, 1 Mar 2005 10:08:29 -0600 (CST) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id 36086615D; Tue, 1 Mar 2005 10:08:29 -0600 (CST) Message-ID: <4224937D.2090602@alumni.rice.edu> Date: Tue, 01 Mar 2005 10:08:29 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dmitry Morozovsky References: <20050301183251.E14643@woozle.rinet.ru> In-Reply-To: <20050301183251.E14643@woozle.rinet.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org cc: stable@FreeBSD.org Subject: Re: amd64 and CPUTYPE: i386 loader unusable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 16:08:33 -0000 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" >