From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 11 21:13:10 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 78C4D106564A; Wed, 11 Jan 2012 21:13:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 38A0C8FC14; Wed, 11 Jan 2012 21:13:10 +0000 (UTC) Received: by iazz13 with SMTP id z13so2433016iaz.13 for ; Wed, 11 Jan 2012 13:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UyH1F3rdMbg/Ae2UcJlX8oF3CdblWRZ+14OHU+X+B0k=; b=phmZkM5qjPkFQz/rV0G/KwZWGXnLtCYzyaa4tMFNkHKs/tAikJrX5NbN/RO5TrFN3A 92rOdMYik/pvWUtLxkTaZn3vEEIsksUHRlY2ufs1GxXrLPIDsXQycFbEYXzOGd3Zug+H pzfu6zdLdroltMLCdn7gi97TiCoyEFtyUFPbE= MIME-Version: 1.0 Received: by 10.42.246.71 with SMTP id lx7mr619479icb.54.1326316389895; Wed, 11 Jan 2012 13:13:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.42.243.65 with HTTP; Wed, 11 Jan 2012 13:13:09 -0800 (PST) In-Reply-To: <615267607.20120112004555@serebryakov.spb.ru> References: <615267607.20120112004555@serebryakov.spb.ru> Date: Wed, 11 Jan 2012 13:13:09 -0800 X-Google-Sender-Auth: i9KBoeUb6nGCRFg1ETTEQfRfhfY Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 21:13:10 -0000 Hi, 2012/1/11 Lev Serebryakov : > Hello, Freebsd-embedded. > > =A0Is 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 :) Adrian