Date: Thu, 12 Jan 2012 00:03:43 +0200 From: Aleksandr Rybalko <ray@ddteam.net> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-embedded@freebsd.org Subject: Re: Stripping down embedded kernel -- MII PHY & ATA sub-drivers Message-ID: <20120112000343.83ba5630.ray@ddteam.net> In-Reply-To: <CAJ-Vmon=JYfMsqO73DU%2BpXrvJX=syyOCseLKxzDKy5oZBjC5dw@mail.gmail.com> References: <615267607.20120112004555@serebryakov.spb.ru> <CAJ-Vmon=JYfMsqO73DU%2BpXrvJX=syyOCseLKxzDKy5oZBjC5dw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jan 2012 13:13:09 -0800 Adrian Chadd <adrian@freebsd.org> wrote: > Hi, > > 2012/1/11 Lev Serebryakov <lev@freebsd.org>: > > 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 <ray@ddteam.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120112000343.83ba5630.ray>