Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2006 16:23:10 -0800
From:      David Sharp <daimon@dev-random.org>
To:        Doug Brewer <brewer.doug@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Question about "make trampoline" on FreeBSD
Message-ID:  <20061124002310.GA2324@mail.secure.net>
In-Reply-To: <b2ec5cad0611230629r5db3ac81k565068449d13b090@mail.gmail.com>
References:  <b2ec5cad0611230629r5db3ac81k565068449d13b090@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061124002310.GA2324>