From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 11:39:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1E7E16A4CE for ; Fri, 3 Sep 2004 11:39:26 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A0ED43D3F for ; Fri, 3 Sep 2004 11:39:26 +0000 (GMT) (envelope-from tacoboy24@dragoweb.com) Received: from sneaky.dragoweb.com (h00105a1fac2a.ne.client2.attbi.com[24.128.236.189]) by comcast.net (rwcrmhc13) with SMTP id <2004090311392501500lsu9be>; Fri, 3 Sep 2004 11:39:25 +0000 From: Andrew To: freebsd-questions@freebsd.org Date: Fri, 3 Sep 2004 07:48:17 -0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200409030734.06163.tacoboy24@dragoweb.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: freebsd builds X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 11:39:26 -0000 Hi, Building kernels I am comfortable with. I have been doing it a while for SUSE. Now I wanted to try freebsd 5.1. So I have some questions about freebsd builds. Some of the questions may sound dumb but I want to make sure I don't do something catostrophic based on a past experience with SUSE. So... make clean - simply cleans objects, executables in the work area /usr/src. Nothing else make buildkernel - simply builds the kernel, support modules, and so on in the work area only /usr/src. The biilt kernel is located in /usr/obj/usr/src/....../kernel. make installkernel - once this is done, that which was in the work area is placed in working directories of the installed system. For SUSE I used GRUB or lilo to write the boot block. For freebsd I use bsdlabel? I am targeting the kernel for a Soekris 4511. The 4511 has a national semiconductor ethernet chip. On SUSE I add the configuration parameter NATSEMI=Y to build the ethernet driver. What is the configruation parameter for Freebsd ethernet driver. I was reading a notes file on a technique of building a jail sandbox. The sandbox becomes something like freebsd inside freebsd. The purpose was to allow someone to make major modifications to the kernel and not affect the working operating system components. Per the notes file, the sandbox is set by: perform a customer install. During the install change the installation location to point to the sandbox. chroot Do a build in the sandbox I create the folder, changed the destintation to be the sandbox in the installation options, and installed freebsd in the sandbox folder. Then I: chroot to the sandbox To verify my sandbox install was correct, I tried to rebuild the GENERIC kernel in the sandbox. An error occured in makefile.inc1 line 139. That line has a make command dealing with CPUTYPE. The error was its value not being zero. I then exited the sandbox (command shell) and reexecuted the make command to rebuild the GENERIC kernel in the standard /usr/src location. It worked fine. So it is not the installation kit. The problem is something I have not done or did improperly in creating the sandbox. Thoughts. A