From owner-freebsd-arm@FreeBSD.ORG Fri Nov 24 00:59:56 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E27C16A403 for ; Fri, 24 Nov 2006 00:59:56 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A947A43D49 for ; Fri, 24 Nov 2006 00:59:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kAO0vBHl026865; Thu, 23 Nov 2006 17:57:11 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 23 Nov 2006 17:57:56 -0700 (MST) Message-Id: <20061123.175756.-1398301896.imp@bsdimp.com> To: daimon@dev-random.org From: "M. Warner Losh" In-Reply-To: <20061124002310.GA2324@mail.secure.net> References: <20061124002310.GA2324@mail.secure.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 23 Nov 2006 17:57:11 -0700 (MST) Cc: freebsd-arm@freebsd.org Subject: Re: Question about "make trampoline" on FreeBSD X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 00:59:56 -0000 In message: <20061124002310.GA2324@mail.secure.net> David Sharp writes: : doug, : : i am replying to freebsd-arm as well. perhaps someone with more clue than myself : can point out a better way to do this. : : david. : : : my method is something like: : : cd /usr/src && make TARGET_ARCH=arm buildworld good so far. I always add TARGET=arm too. : setenv MAKEOBJDIRPREFIX /usr/obj/arm : setenv MACHINE_ARCH arm : setenv MACHINE arm : setenv CPUTYPE : setenv GROFF_BIN_PATH /usr/obj/arm/usr/src/tmp/legacy/usr/bin : setenv GROFF_FONT_PATH /usr/obj/arm/usr/src/tmp/legacy/usr/share/groff_font : setenv GROFF_TMAC_PATH /usr/obj/arm/usr/src/tmp/legacy/usr/share/tmac : setenv _SHLIBDIRPREFIX /usr/obj/arm/usr/src/tmp : setenv INSTALL "sh /usr/src/tools/install.sh" : : setenv PATH /usr/obj/arm/usr/src/tmp/legacy/usr/sbin:/usr/obj/arm/usr/src/tmp/legacy/usr/bin:/usr/obj/arm/usr/src/tmp/legacy/usr/games:/usr/obj/arm/usr/src/tmp/usr/sbin:/usr/obj/arm/usr/src/tmp/usr/bin:/usr/obj/arm/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin the above is the hard way of saying "make TARGET=arm TARGET_ARCH=arm buildenv" : cd /usr/src/sys/arm/conf : config KB920X : cd ../compile/KB920X : make cleandepend && make depend && make && make trampoline This works. I have some changes in one of my tree that cause make kernel.tramp (err, make trampoline) to happen automatically, and for both kernel.gz and kernel.gz.tramp to be installed. Once that's integrated, a simple 'make buildkernel : to be sure, i have not actually tried recently to make this to work : on a KB920X board. my own boards however work well. both SD : boot/root and tftp boot nfs root work. however, SD root is pretty : slow. takes about 2 min to boot a full multiuser system from reset : to login:. /etc/rc.d/root and /etc/rc.d/mountcritlocal account for : about half of the boot time. SD root isn't that slow. I get from power on to login prompt in 1 minute on the machines at work as well as the KB9202 boards. Over NFS root it takes about the same amount of time. Maybe there's something weird in your setup... No doubt this could be optimized, and I'll be looking at optimizing the boot time in the near future. : also, to get make buildworld to work it was necessary to disable some : things in /etc/make.conf. the one i use looks like: Yea, I have custom scripts that build everything, but only install a very limited subset. Warner