From owner-freebsd-arm@FreeBSD.ORG Fri Nov 24 00:42: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 C690316A412 for ; Fri, 24 Nov 2006 00:42:56 +0000 (UTC) (envelope-from daimon@dev-random.org) Received: from sharp.org (sharp.org [161.58.2.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7699243D45 for ; Fri, 24 Nov 2006 00:42:18 +0000 (GMT) (envelope-from daimon@dev-random.org) Received: from betty.wa.sharp.org (sharp.org [161.58.2.117]) by sharp.org (8.12.11.20060614/8.12.9) with ESMTP id kAO0gsTl061928 for ; Thu, 23 Nov 2006 17:42:55 -0700 (MST) Received: from betty.wa.sharp.org (2d30ffc1ee241b6ab4b50c9e48679bcd@localhost [127.0.0.1]) by betty.wa.sharp.org (8.13.6/8.13.3) with ESMTP id kAO0g9vb002965; Thu, 23 Nov 2006 16:42:16 -0800 (PST) (envelope-from daimon@dev-random.org) Received: (from djs@localhost) by betty.wa.sharp.org (8.13.6/8.13.6/Submit) id kAO0NBMT002584; Thu, 23 Nov 2006 16:23:11 -0800 (PST) (envelope-from daimon@dev-random.org) X-Authentication-Warning: betty.wa.sharp.org: djs set sender to daimon@dev-random.org using -f Date: Thu, 23 Nov 2006 16:23:10 -0800 From: David Sharp To: Doug Brewer Message-ID: <20061124002310.GA2324@mail.secure.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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:42:57 -0000 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 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 cd /usr/src/sys/arm/conf config KB920X cd ../compile/KB920X make cleandepend && make depend && make && make trampoline 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. also, to get make buildworld to work it was necessary to disable some things in /etc/make.conf. the one i use looks like: WITHOUT_ACPI=YES WITHOUT_ASSERT_DEBUG=YES WITHOUT_ATM=YES WITHOUT_AUDIT=YES WITHOUT_BIND=YES WITHOUT_BIND_DNSSEC=YES WITHOUT_BIND_LIBS_LWRES=YES WITHOUT_BIND_MTREE=YES WITHOUT_BIND_ETC=YES WITHOUT_BIND_NAMED=YES WITHOUT_BIND_UTILS=YES WITHOUT_BLUETOOTH=YES #WITHOUT_BOOT=YES WITHOUT_CALENDAR=YES #WITHOUT_CPP=YES #WITHOUT_CVS=YES #WITHOUT_CXX=YES WITHOUT_DICT=YES #WITHOUT_DYNAMICROOT=YES WITHOUT_EXAMPLES=YES WITHOUT_FORTH=YES WITHOUT_FORTRAN=YES #WITHOUT_FP_LIBC=YES WITHOUT_GAMES=YES WITHOUT_GCOV=YES #WITHOUT_GNU=YES WITHOUT_GPIB=YES WITHOUT_GROFF=YES WITHOUT_HTML=YES WITHOUT_I4B=YES #WITHOUT_INET6=YES WITHOUT_INFO=YES WITHOUT_IPFILTER=YES WITHOUT_IPX=YES WITHOUT_NCP=YES WITHOUT_LIB32=YES #WITHOUT_LIBPTHREAD=YES #WITHOUT_LIBTHR=YES WITHOUT_LOCALES=YES WITHOUT_LPR=YES WITHOUT_MAILWRAPPER=YES WITHOUT_MAN=YES WITHOUT_NETCAT=YES WITHOUT_NIS=YES WITHOUT_NLS=YES WITHOUT_NLS_CATALOGS=YES WITHOUT_NS_CACHING=YES WITHOUT_OBJC=YES #WITHOUT_CRYPT=YES # WITHOUT_OPENSSL=YES # WITHOUT_OPENSSH=YES # WITHOUT_KERBEROS=YES #WITHOUT_PAM=YES #WITHOUT_PF=YES # WITHOUT_AUTHPF=YES WITHOUT_PROFILE=YES WITHOUT_RCMDS=YES WITHOUT_RCS=YES WITHOUT_RESCUE=YES WITHOUT_SENDMAIL=YES #WITHOUT_SETUID_LOGIN=YES WITHOUT_SHAREDOCS=YES WITHOUT_SYSCONS=YES #WITHOUT_TCSH=YES #WITHOUT_TOOLCHAIN=YES # WITHOUT_GDB=YES WITHOUT_USB=YES WITHOUT_WPA_SUPPLICANT_EAPOL=YES On 2006.11.23 22:29:32 +0000, Doug Brewer wrote: > Hello David, > > I saw your message on freebsd-arm@, I have a problem about making > trampoline on FreeBSD. > Would you tell me the procedures about how to make trampoline ? Thanks. > > My steps are: > > 1. cd /usr/src && make TARGET=arm TARGET_ARCH=arm kernel-toolchain > 2. make buildenv && cd sys/arm/conf && config KB920X >