From owner-freebsd-stable@FreeBSD.ORG Thu Jan 8 13:28:33 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 146E516A4CE for ; Thu, 8 Jan 2004 13:28:33 -0800 (PST) Received: from enterprise.sd73.bc.ca (romulus-net.sd73.bc.ca [142.24.13.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E11943D4C for ; Thu, 8 Jan 2004 13:28:30 -0800 (PST) (envelope-from fcash-ml@sd73.bc.ca) Received: from 192.168.0.200 (romulus-net.sd73.bc.ca [142.24.13.134]) i08LMN7O028537; Thu, 8 Jan 2004 13:22:24 -0800 From: Freddie Cash Organization: School District 73 To: jonathan michaels Date: Thu, 8 Jan 2004 13:28:00 -0800 User-Agent: KMail/1.5.4 References: <20040109081408.08548@caamora.com.au> In-Reply-To: <20040109081408.08548@caamora.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401081328.00462.fcash-ml@sd73.bc.ca> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (enterprise.sd73.bc.ca) cc: stable@freebsd.org Subject: Re: cross compiling freebsd for target intel platform other than pentium X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fcash-ml@sd73.bc.ca List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 21:28:33 -0000 On January 8, 2004 01:14 pm, jonathan michaels wrote: > i'm not sure if this is the best place to discuss this topic as i > would like some information about taking a -stable or most likely a > -release edition off of teh cd and installing it on teh host and then > to bump it up to -security edition while 'cross compiling' the whole > box and dice for the two production hosts (both of which are intel, > supermicro sourced motherboards off almost extreme vintage with 16 mb > dram and a couple of scsi hard drives hung off of an adaptec > aha-1542b. both of these machines have been running reliably for some > 12 to 15 years and as routers they do a superb job and i see no > currently viable reason to throw them out. On the build box, edit /etc/make.conf and set CPUTYPE to the CPU type of the old boxes. For instance, set this to 486 if the old boxes are 486s, and so on. You may need to copy the default file from /etc/defaults/make.conf to /etc/make.conf. There are very nice comments in this file about the supported CPUTYPES. Run the buildworld and buildkernel stages as per normal. Next configure the build box as an NFS server and share out /usr/src and /usr/obj. On the ancient boxes, use NFS to mount /usr/src and /usr/obj from the build box. Run the installkernel and installworld stages as per normal. You will now have an updated FreeBSD system, compiled specifically for whatever CPU is in the ancient boxes. The comments in /etc/make.conf and /usr/src/README, /usr/src/UPDATING, and /usr/src/Makefile explain quite nicely how the buidlworld process works and how it uses the variables in /etc/make.conf to control everything. Hope that helps. -- Freddie Cash District HelpDesk / Network Admin http://www.sd73.bc.ca