From owner-svn-src-head@FreeBSD.ORG Mon Aug 29 11:48:03 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 892F2106564A; Mon, 29 Aug 2011 11:48:03 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 4375C8FC0C; Mon, 29 Aug 2011 11:48:03 +0000 (UTC) Received: by pzk33 with SMTP id 33so18957160pzk.18 for ; Mon, 29 Aug 2011 04:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=QGigdtMkrovKv7SmFEti22vKW/K7fGpTYpeXIEAmM6k=; b=GWBksJxo/JaYDoiLyvVeAh6evrFxKShmQsZO/VHZ/tF4l6I3PZexy+VAivHtzkohRz PGkMY4/KLnIodiXLd2tLLUKZxFDuhkpG/LspgeYOfven64ismyysjyTqI4dWagDOtrev WL582fO2T1fePS3iISxpMNUGO7Y5pGCK6vPj8= Received: by 10.142.152.32 with SMTP id z32mr2454119wfd.200.1314618482896; Mon, 29 Aug 2011 04:48:02 -0700 (PDT) Received: from c-24-6-49-154.hsd1.ca.comcast.net (c-24-6-49-154.hsd1.ca.comcast.net. [24.6.49.154]) by mx.google.com with ESMTPS id i1sm18258958pbi.10.2011.08.29.04.48.00 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Aug 2011 04:48:01 -0700 (PDT) Date: Mon, 29 Aug 2011 04:47:59 -0700 (PDT) From: Garrett Cooper To: Vadim Goncharov In-Reply-To: <201108291032.p7TAWZ6p023254@kernblitz.nuclight.avtf.net> Message-ID: References: <201108262122.p7QLMZXW071323@svn.freebsd.org> <4E583B92.3060100@FreeBSD.org> <20110827081103.GB21676@zxy.spb.ru> <86obzbi75n.fsf@srvbsdfenssv.interne.associated-bears.org> <20110827105342.GC21676@zxy.spb.ru> <4E58D8E8.3090603@FreeBSD.org> <20110827124432.GD21676@zxy.spb.ru> <4E595447.8000104@FreeBSD.org> <20110827210448.GE21676@zxy.spb.ru> <4E595EC8.40307__41269.9701650583$1314479863$gmane$org@FreeBSD.org> <201108291032.p7TAWZ6p023254@kernblitz.nuclight.avtf.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Doug Barton , John Baldwin Subject: Re: svn commit: r225201 - in head/sys: amd64/conf i386/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 11:48:03 -0000 On Mon, 29 Aug 2011, Vadim Goncharov wrote: > Hi Doug Barton! > > On Sat, 27 Aug 2011 14:16:56 -0700; Doug Barton wrote: > >>>>>>> May be for fist step: w/o devd, simle remove all posible from GENERIC and include all removed >>>>>>> drivers in /boot/loader.conf? >>>>>> >>>>>> You're better off using kld_list in rc.conf for anything that doesn't >>>>>> absolutely have to be loaded with the kernel. >>>>> >>>>> What drivers in GENERIC don't need to boot from disk or network? >>>>> sound only? >>>> >>>> man rc.conf, search for kld_list. >>> >>> Sorry for bad english. >>> What drivers (from current GENERIC) don't need for network or disk >>> boot and can be moved to kld_list? >>> >>> I see only sound and agp. >> >> I'm not going to do your homework for you. :) Try it and find out for >> yourself. I will tell you that given that rc.d/kld runs right after the >> disks are mounted means that (unless you are netbooting) you can put >> just about everything that isn't directly related to mounting your disks >> in kld_list. Beyond that, you just need to experiment on your own. > > No, you've misunderstood him. For the installation or simple boot you may > need *all* network drivers and _all_ storage drivers (including USB) already > on boot, you can't move them to kld_list as it is after initial boot. Not true. Network interfaces are only truly critical in PXE boot applications for boot, unless you're doing something unsupported early on in the boot process. > And most lines in GENERIC are exactly for storage and network cards. Also, > as only GENERIC is updated by freebsd-update(8), you can't workaround such > things for installation media but also need to keep in kernel/loader for > production use, too. Some are some aren't. If someone understands what hardware they're dealing with and take the time to strip down their kernel (takes about 5 minutes), then it's not too hard to determine what needs to stay and go given you have experience rolling your own kernel. > So what could be really axed from there? Just agp, PCMCIA, parallel ports, > some of firewire drivers (not all - some needed for SCSI). Again, this varies (and there isn't really a one-size fits all). Hence, that's why I recommended a list of guidelines for what should be removed that should be added to the handbook after some polishing. > The possible solution to this may be to have a MINIMAL kernel, also updated > by freebsd-update(8), but that will double requirements for space in /boot... Trying to define what is minimal won't be an easy task, unless you're removing some support like tape drives, mostly EOLed or broken RAID controllers (aac, iir comes to mind), etc. Thanks! -Garrett