From owner-freebsd-mobile@FreeBSD.ORG Sat May 21 09:50:45 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB74016A4CE for ; Sat, 21 May 2005 09:50:45 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id EABB143D8C for ; Sat, 21 May 2005 09:50:44 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 21 May 2005 09:50:43 -0000 Received: from p54A7EA18.dip.t-dialin.net (EHLO [192.168.0.12]) [84.167.234.24] by mail.gmx.net (mp006) with SMTP; 21 May 2005 11:50:43 +0200 X-Authenticated: #5465401 Message-ID: <428F04BF.1090103@gmx.de> Date: Sat, 21 May 2005 11:51:59 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050509) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: building kernel with pentium-m X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2005 09:50:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I remember that someone reported problems with building a kernel and the CPUTYPE?=pentium-m in /etc/make.conf The mail listed a detailed bug report where which code has to be fixed. Anyway I did the same thing and yesterday and my kernel wouldn't boot as well. Anyway after some trial and error I recognized the problem was not /boot/kernel/kernel, but /boot/loader. So I just replaced /boot/loader with /boot/loader.old and can now run my ~ pentium-m kernel. This is what I do when I build a kernel now: I set CPUTYPE?=p3 in /etc/make.conf # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # cp /boot/loader /boot/loader.p3 Now I set CPUTYPE?=pentium-m in /etc/make.conf # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # mv /boot/loader /boot/loader.pentium-m # cp /boot/loader.p3 /boot/loader Done. I know it's a bit dirty to build the whole kernel twice, but it doesn't take that long, so it won't kill anyone. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCjwS/fMDIb41/+S0RAgsYAJwJEejhveGCLZaVUXTcYuJqzBIIEgCeKzDs Sn96+yn8h5BwqrEo8oqB7V4= =eFOB -----END PGP SIGNATURE-----