From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 11 22:03:54 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6B46106566B; Wed, 11 Jan 2012 22:03:54 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 058A08FC0A; Wed, 11 Jan 2012 22:03:53 +0000 (UTC) Received: by eekd49 with SMTP id d49so613932eek.13 for ; Wed, 11 Jan 2012 14:03:53 -0800 (PST) Received: by 10.14.10.213 with SMTP id 61mr322394eev.102.1326319432819; Wed, 11 Jan 2012 14:03:52 -0800 (PST) Received: from rnote.ddteam.net (222-234-133-95.pool.ukrtel.net. [95.133.234.222]) by mx.google.com with ESMTPS id s16sm11134281eef.2.2012.01.11.14.03.50 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 14:03:51 -0800 (PST) Date: Thu, 12 Jan 2012 00:03:43 +0200 From: Aleksandr Rybalko To: Adrian Chadd Message-Id: <20120112000343.83ba5630.ray@ddteam.net> In-Reply-To: References: <615267607.20120112004555@serebryakov.spb.ru> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-embedded@freebsd.org Subject: Re: Stripping down embedded kernel -- MII PHY & ATA sub-drivers X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 22:03:54 -0000 On Wed, 11 Jan 2012 13:13:09 -0800 Adrian Chadd wrote: > Hi, > > 2012/1/11 Lev Serebryakov : > > Hello, Freebsd-embedded. > > > >  Is it possible to build kernel with only needed MII and ATA (legacy > > ATA) drivers? For example, my Sokeris net5501 has only one MII PHY > > (for vrX, Generic IEEE 802.3u media interface) and only one ATA > > controller (AMD CS5536 UDMA100 controller). So it doesn't need all > > these sub-drivers, and it looks like a lot of objects (several > > megabytes). > > It _should_ only be including the phy's you require, right? (eg, if > you only include drivers as modules, and "miibus", it shouldn't link > in any files.) > > In terms of ATA controller though - that's a good question. I haven't > yet looked at breaking out the ATA controller code into chipset stuff. > Maybe that's a good mini project for you :) Hi embeddeders! :) All that good info located in sys/conf/files PHY's defined as: phydrrv.c miibus | phydrv so if you need only one phy, enable device mii # instead of miibus device phydrv same for ata/ahci (I don't remember exact, just look into that file) also some interesting info for such case may by located in sys/conf/files.${target_arch} > > > Adrian > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to > "freebsd-embedded-unsubscribe@freebsd.org" WBW -- Aleksandr Rybalko