Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751485AbbEDR1k (ORCPT ); Mon, 4 May 2015 13:27:40 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:33116 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbbEDR1c (ORCPT ); Mon, 4 May 2015 13:27:32 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 4 May 2015 18:27:31 +0100 Message-ID: Subject: Re: how to have the kernel do udev's job and autoload the right modules ? From: linux cbon To: Richard Weinberger Cc: LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1645 Lines: 49 On Mon, May 4, 2015 at 8:34 AM, Richard Weinberger wrote: > On Mon, May 4, 2015 at 7:31 AM, linux cbon wrote: >> Hi, >> >> I am experimenting a rc.sysinit without udev. >> Only creating /dev with mount -t devtmpfs dev /dev >> It also mounts /proc and /sys and /tmp and /var . >> So the kernel boots up loading a lot of hardware, but some important >> modules are not loaded , like sound, network and video. >> I am not sure how to have them auto loaded by the kernel without udev ? >> I though kernel would have some kind of auto-loading of the right >> modules, without needing any help like udev. > > We have request_module() but it is not a magic bullet. > You can re-invent a mini udev or just use udev. > >> I don't know the simplest and easiest way to achieve this ? >> Thanks for your help. > > We have udev for a reason. :-) > > -- > Thanks, > //richard Hi Richard, thanks for your answer. use request_module() and reinvent a userspace mini udev ? Well thats above my skills, and I though the kernel was more magical. Do you know why not give a "minimal" network, sound, and amd video support in the kernel, so that loading those modules would be optional ? I read there is mdev from busybox, but not sure if it's better or easier. One last question : compiling the kernel with modules included would help ? Best regards Linuxcbon -- 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/