Date: Thu, 10 Jun 2010 03:06:36 +0000 From: "b. f." <bf1783@googlemail.com> To: Jerry Bell <jerry.bell@gmail.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: Building amd64 kernel problems (missing kernel configuration files) Message-ID: <AANLkTiklhs47tzxrpbWztSMjkSI4XY2ValwYsemvYCwK@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiklhs47tzxrpbWztSMjkSI4XY2ValwYsemvYCwK>