From owner-freebsd-current@FreeBSD.ORG Sat Jun 26 03:00:03 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA1C0106564A; Sat, 26 Jun 2010 03:00:03 +0000 (UTC) (envelope-from matt.thyer@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3BF4A8FC1C; Sat, 26 Jun 2010 03:00:02 +0000 (UTC) Received: by vws13 with SMTP id 13so5059066vws.13 for ; Fri, 25 Jun 2010 20:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=nyYcgDJRx44CWX9GK44olfB1JgWJGoLM9bSIb9AG1PU=; b=FmKmHG5secRW11VyBFDaj1hV9MKae7nACLhPOeNwZlihj/mxSTBEZnwGa4C3N6frIv MQ4LJ4w09fxaAo0xCPzP/Z0h9pjq2e0uH0kp2yzmKQyPU9W9luwP8kdGmZ/ycBYvPJEd VYc0+9p0XcxsFqMfNOW7/53gP2NnbM83IITZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EctMIZ8HY8dsicAcm9ViywwvBi6mtZV3PxVgLicRRLOGtNEQWAzu0VY4w7UyNCUN+v DXM17KX8XftUIuLZiX8qL5yI7pCxJzsGWrpjzdOB3fsuV7CRUI49ZustSJZ5YaZh2BsG 6Lde6I5eVJbZieqTQM9CEgs8zXSZa7+UjWNMY= MIME-Version: 1.0 Received: by 10.220.161.201 with SMTP id s9mr957184vcx.137.1277521202196; Fri, 25 Jun 2010 20:00:02 -0700 (PDT) Received: by 10.220.180.204 with HTTP; Fri, 25 Jun 2010 20:00:02 -0700 (PDT) In-Reply-To: References: <20100612100006.000073fa@unknown> Date: Sat, 26 Jun 2010 12:30:02 +0930 Message-ID: From: Matt Thyer To: Mohammed Farrag Content-Type: text/plain; charset=ISO-8859-1 Cc: Bruce Cran , Chargen , freebsd-current@freebsd.org, Mohammed@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: I need reply in Embedded FreeBSD Kernel Theme X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2010 03:00:04 -0000 On 24 June 2010 11:06, Mohammed Farrag wrote: > @ Matt > Thanx for ur reply Matt. > ///////////////////////////////////////////////////// > FreeBSD is already a very modular system and the traditional way (a > traditional way) to build for embedded systems is to follow the > NanoBSD build method (tools included in the source tree) with a > stripped down kernel in which you only load the modules your hardware > requires using the FreeBSD loader (or after the initial boot). > //////////////////////////////////////////////////// > yeah I read about that. My mentor suggested that before and my idea is very > close to NanoBSD but I don't know if the freebsd loader will load the moduls > based on the hardware requirements or user requirements. I will be glad to > reply me. Modules are loaded by the user adding entries to /boot/loader.conf. e.g. if_sis_load="YES". That example will load the "sis" driver for the Silicon Image network interfaces on my Soekris net4801 board as I have removed almost everything in my kernel and just load the modules I require. Some modules will automatically load when another driver requires them. FreeBSD does not try to discover and reconfigure your hardware at boot time like the "kudzu" utility in Linux. Instead it will attach to the hardware for which you have drivers in your kernel or for which you have told the loader to load modules for.