From owner-freebsd-current@FreeBSD.ORG Wed May 18 17:14:48 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0783F16A4CE for ; Wed, 18 May 2005 17:14:48 +0000 (GMT) Received: from smtp812.mail.sc5.yahoo.com (smtp812.mail.sc5.yahoo.com [66.163.170.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 9E4EE43DA1 for ; Wed, 18 May 2005 17:14:47 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp812.mail.sc5.yahoo.com with SMTP; 18 May 2005 17:14:44 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 9F2586192; Wed, 18 May 2005 12:14:39 -0500 (CDT) 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 14961-12; Wed, 18 May 2005 12:14:38 -0500 (CDT) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id EF2DA618F; Wed, 18 May 2005 12:14:37 -0500 (CDT) Message-ID: <428B77F9.7030508@alumni.rice.edu> Date: Wed, 18 May 2005 12:14:33 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Li-Lun Wang (Leland Wang)" References: <20050518051111.GA33262@Athena.infor.org> <428ADE11.8040109@alumni.rice.edu> <20050518162344.GA48280@Athena.infor.org> In-Reply-To: <20050518162344.GA48280@Athena.infor.org> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA10F4A360495E42255A9D604" X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-current@freebsd.org Subject: Re: Newest loader from CVS not working X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 17:14:48 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA10F4A360495E42255A9D604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/18/2005 11:23 AM, Li-Lun Wang (Leland Wang) wrote: > On Wed, May 18, 2005 at 01:17:53AM -0500, Jonathan Noack wrote: >>>On 05/18/05 00:11, Li-Lun Wang (Leland Wang) wrote: >>>>I just upgraded my pentium-m laptop from 5.4-STABLE to the newest >>>>6.0-CURRENT. However, the newest loader does not seem to work for >>>>me. BTX reboots right after it detects the internal keyboard/console >>>>and dumps the registers. I have tried to set CPUTYPE?=p-m, CPUTYPE=p3, >>>>and even not setting CPUTYPE at all, but none of them solves my >>>>problem. The old loader from 5.4 works perfectly. Any ideas? >>> >>>If you are building/installing just the loader, do a full build/install >>>world without setting CPUTYPE. From my experience it seems like it is >>>gcc that is being affected (when it is compiled with CPUTYPE set) and >>>producing incorrect code for the loader, so a build/install world is >>>necessary. This may not help, but it narrows the problem. > > I rebuilt the world without setting CPUTYPE, and the loader works. > I wonder if setting CPUTYPE=p3 when building the world will also work. > It is strange how gcc could be affected... It is strange, but there's a way to confirm it is gcc: with your world built without setting CPUTYPE (as you have it now), compile and install *JUST* the loader with CPUTYPE defined. The steps to do this (the 'grep' just shows that CPUTYPE is set): # grep CPUTYPE /etc/make.conf CPUTYPE?=p-m # cd /usr/src/sys/boot/ # make depend && make && make install && make clean && make cleandepend When I tried the same thing on my athlon-xp machine, the new loader worked. So it is only when gcc is compiled with CPUTYPE set that there is a problem. I now run 5.4 on the machine and no longer experience the issue, so who knows... -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enigA10F4A360495E42255A9D604 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iD8DBQFCi3f+UFz01pkdgZURAqp4AKDgCa4NHlJXJFvNsXIiNYVSN8BdkgCfbMxP e/jIs+LUfzjSfmw0MgyHLYs= =dTDA -----END PGP SIGNATURE----- --------------enigA10F4A360495E42255A9D604--