Building amd64 kernel problems (missing kernel configuration files)
Hello, 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 Then, I run make buildkernel KERNCONF=JERRY in /usr/src and get the following error: ERROR: Missing kernel configuration file(s) (JERRY). *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. It seems to want JERRY to be in i386/conf. If I copy JERRY to i386/conf and run make buildkernel KERNCONF=JERRY, I get the following error: -- Kernel build for JERRY started on Wed Jun 9 20:50:30 EDT 2010 -- === JERRY mkdir -p /usr/obj/usr/src/sys -- stage 1: configuring the kernel -- cd /usr/src/sys/i386/conf; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/JERRY /usr/src/sys/i386/conf/JERRY /usr/src/sys/i386/conf/JERRY: unknown option HAMMER *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. I know I'm missing something simple, but can't quite figure out what it is. Thanks, Jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Building amd64 kernel problems (missing kernel configuration files)
On Wed, Jun 9, 2010 at 8:38 PM, Jerry Bell jerry.b...@gmail.com wrote: 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 Then, I run make buildkernel KERNCONF=JERRY in /usr/src and get the following error: ERROR: Missing kernel configuration file(s) (JERRY). *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. It seems to want JERRY to be in i386/conf. If I copy JERRY to i386/conf and run make buildkernel KERNCONF=JERRY, I get the following error: -- Kernel build for JERRY started on Wed Jun 9 20:50:30 EDT 2010 -- === JERRY mkdir -p /usr/obj/usr/src/sys -- stage 1: configuring the kernel -- cd /usr/src/sys/i386/conf; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d /usr/obj/usr/src/sys/JERRY /usr/src/sys/i386/conf/JERRY /usr/src/sys/i386/conf/JERRY: unknown option HAMMER *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. I know I'm missing something simple, but can't quite figure out what it is. I think you have to set TARGET_ARCH=amd64 -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Building amd64 kernel problems (missing kernel configuration files)
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org