Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753091AbbEFQ4B (ORCPT ); Wed, 6 May 2015 12:56:01 -0400 Received: from know-smtprelay-omc-7.server.virginmedia.net ([80.0.253.71]:38165 "EHLO know-smtprelay-omc-7.server.virginmedia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbbEFQz6 (ORCPT ); Wed, 6 May 2015 12:55:58 -0400 X-Originating-IP: [81.106.150.188] X-Spam: 0 X-Authority: v=2.1 cv=cpwVkjIi c=1 sm=1 tr=0 a=DGj713NdaxKrsjjgQne7PA==:117 a=DGj713NdaxKrsjjgQne7PA==:17 a=J0QyKEt1u0cA:10 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=h1PgugrvaO0A:10 a=66E07naXwM1GkDYB3PgA:9 a=QEXdDO2ut3YA:10 Date: Wed, 6 May 2015 17:55:56 +0100 From: Ken Moffat To: linuxcbon linuxcbon Cc: Richard Weinberger , LKML Subject: Re: how to have the kernel do udev's job and autoload the right modules ? Message-ID: <20150506165556.GA23190@milliways> References: <5547B89B.5070502@nod.at> <5547FFB8.5050007@nod.at> <20150505222644.GA27497@milliways> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2097 Lines: 50 On Wed, May 06, 2015 at 01:54:27AM +0100, linuxcbon linuxcbon wrote: > On Tue, May 5, 2015 at 11:26 PM, Ken Moffat wrote: > > I don't think you have ever given any context about what you are > > trying to do. It looks to me as if there are two alternatives: > (...) > I am trying to write a minimal rc.sysinit > Only the udev part is missing , because the kernel doesn't > know how to modprobe many modules by itself. > (Without udev, I can boot up to desktop, but sound , network and > full screen video are missing.) > > > 1. You are building for a particular machine. > > 2. You are building a distro. > > ĸen > (...) > I need it to work for any hardware, (well normal pc), so answer 2. > I need udev to detect and modprobe which modules are needed. > > linuxcbon So, your earlier comment that only two different network drivers and two sound drivers are needed will turn out to be incorrect when you have access to more hardware. And when that happens, you will discover that there are all sorts of things which differ - since you asked on the kernel list, I will mention KMS for the video, of which we have at least three variants on x86 hardware. I suggest that you take the time to look at eudev and mdev, and think about how you can use the facilities they offer. Alternatively, get over your dislike of modprobe and write some scripts - perhaps using lspci as well as reading /sys - to work out what hardware is present. If you have not compiled all of the necesary disk drivers into the kernel, you are likely to find that some (older) machines will not be able to access their disk(s). But we all learn best when we try things out, so I wish you an enjoyable learning experience! ĸen -- Nanny Ogg usually went to bed early. After all, she was an old lady. Sometimes she went to bed as early as 6 a.m. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/