From owner-freebsd-questions@FreeBSD.ORG Tue Jul 21 22:41:40 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB8FF1065689 for ; Tue, 21 Jul 2009 22:41:40 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by mx1.freebsd.org (Postfix) with ESMTP id 48AF08FC13 for ; Tue, 21 Jul 2009 22:41:39 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by bwz24 with SMTP id 24so631996bwz.43 for ; Tue, 21 Jul 2009 15:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=TC7ohybBh8Y89sI7iwlKXVcQXDHE0XTAf1bR+k+DjVo=; b=msLkg2WNt3H/b0IGNZ8PaTb5C5VJGzsuI00VvXVwzwnF63X/E+PwQ+k2Zb8hgIHn6f D4ty+duCUpyi931gHFEtMEnwTZnCoYo+GYBeWpWhrdE1Oome50LoMRC9vwu4lI4iUkJx SvFgfP7U32PgQtMLC3oCZ7crTHSslgAV0Fvro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=IlcCH3fkVrFgo8YcolXMgFim/xbJ9/wBd2iv8JCMl2TqLhPswO0ceCnKvGhyuIdUdG uCPr9TKdwvHoEbN1Qpz9rM6EVyYStrqPVjzPKgskv/vjzMkRaGe/OBvCl34sNsqDIuAU ffgY46jV7ly1TF9Cp4aRMwTLk5Y/AQzAxGnDQ= MIME-Version: 1.0 Received: by 10.239.159.3 with SMTP id w3mr21191hbc.96.1248216098594; Tue, 21 Jul 2009 15:41:38 -0700 (PDT) Date: Tue, 21 Jul 2009 22:41:38 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: af.gourmet@videotron.ca Subject: Re: custom amd64 kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 22:41:41 -0000 >Frankly, I have no idea how to configure the kernel from GENERIC... I >have installed, in the past and recently, Intel i386 kernels without >problem but this amd64 thingy is incomprehensible for me... the default >GENERIC example holds HAMMER as the cpu; mine is Turion with some other >name for the cpu. >Changing that does not fix things either. I'd guess not -- in fact, it should break things. HAMMER is the name for a whole class of cpus supported by the amd64 port, as explained in the comment in src/sys/amd64/conf/NOTES -- which you read before configuring a custom kernel, right? Leave it alone. Turions should be supported with HAMMER. >make buildkernel generates error messages regarding "undefined >reference" to "critical_enter" and "critical_exit" in functions >"sysarch" and "cpu_set_user_tls" >The GENERIC (default) kernel works except of errors re ACPI - how to get >rid of those? You may not be able to get rid of them easily. They may be harmless, or they may be errors that will compromise your machine's performance. They may be due to problems with FreeBSD's implementation of ACPI, or with your machine's BIOS. We need to know more before we can guess at the cause(s). Try setting hw.acpi.verbose="1" in /boot/loader.conf. Then reboot and record the error messages. They should be in the output of dmesg(8) , or in /var/run/dmesg.boot. Follow the instructions in Chapter 11.16 of the FreeBSD Handbook. >How can I capture the output errors? and/or how to make a custom kernel >for amd64 ? For the first question, run script(1) before running "make buildkernel" to dump the output to a text file that you can examine, or post to the list. Make sure that you are using a clean source tree that is up-to-date, and that you've cleaned out /usr/obj beforehand. If you are building from sources that are much newer or much older than what you have installed on the machine, then you will have to build either a full world or a kernel toolchain before building the kernel. Consult src/UPDATING for details. There is no single answer to the second question. It depends on what you want in your kernel, and your hardware, and what sources you are using. That's why it's a custom kernel, and not one-size-fits-all. Again, you've read the relevant sections of the Handbook, src/UPDATING, NOTES in src/sys/conf and src/sys/amd64/conf, and maybe parts of the source code, right? If you haven't, then you shouldn't be doing this. b.