From owner-freebsd-questions@FreeBSD.ORG Thu Jun 10 03:06:40 2010 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 BEE37106566C for ; Thu, 10 Jun 2010 03:06:40 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 560198FC17 for ; Thu, 10 Jun 2010 03:06:39 +0000 (UTC) Received: by wwb22 with SMTP id 22so6463528wwb.13 for ; Wed, 09 Jun 2010 20:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=FXJK2cKDAhA0pV+YUDMiEOmWKQqrMnpFHilN3Z1rEao=; b=B4OVz8/uEa+Vj5EfJqaCZyjeLVL09e5X0Drk7KSmUYuGge6fmQU+lNPgZvPBS3HkOu krkXhpMpheUjTxZmjJZygNX9gd2X1bqLAGviEsHO5NaMgJ+Mm9IjDGfxyJU9AXGDgYpF 44kmWb64nS+GykD41l6zs85uuKnzFRoBP9kv8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=B6obbxrqpD+IhPh+iD41kkXSSPciR6msxLhqdoOdIIrI6nRPWEb1NDAwh78bzPlNVs sg7+pIwLbsK8GkQpFWwzgAx2I8w9GEIsKPR/HD6+EfOsKcBtJo8I56mvBdfy4S03RW1g FUw64Fppn2X9C7af+LEaQPe6gEAGzse+Y50lk= MIME-Version: 1.0 Received: by 10.216.163.137 with SMTP id a9mr169233wel.63.1276139196975; Wed, 09 Jun 2010 20:06:36 -0700 (PDT) Received: by 10.216.183.5 with HTTP; Wed, 9 Jun 2010 20:06:36 -0700 (PDT) Date: Thu, 10 Jun 2010 03:06:36 +0000 Message-ID: From: "b. f." To: Jerry Bell Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@FreeBSD.org Subject: Re: Building amd64 kernel problems (missing kernel configuration files) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 03:06:40 -0000 > I am have a fresh install of FreeBSD 8.0 i386 and need to install an amd64 > kernel. > > I have copied /usr/src/sys/amd64/conf/GENERIC to > /usr/src/sys/amd64/conf/JERRY Support for cross-building is limited in the FreeBSD base system. /usr/src/Makefile states: "# If TARGET=machine (e.g. ia64, sparc64, ...) is specified you can # cross build world for other machine types using the buildworld target, # and once the world is built you can cross build a kernel using the # buildkernel target." but there are unwritten limitations, and this requires some care. See, for example, developers running into problems even with i386 --> amd64: http://bsdimp.blogspot.com/2006/09/cross-building-freebsd.html The fact that you are asking how to do this on the freebsd-questions list probably means that you should _not_ be cross-building. _Don't_ try to run an amd64 kernel with i386 world, or vice versa. With some patches and tweaking you may get a few things to work, but you're asking for trouble. It would be better to get an amd64 installation disk, back up your data, and do a re-installation from scratch, or at least a binary upgrade of the existing base system, and then build a custom kernel and world, if that's what you want to do. b.