From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vassilis Virvilis Date: Thu, 16 Jun 2005 17:10:11 +0000 Subject: Re: udev vs. devfs Message-Id: <42B1B273.30302@iit.demokritos.gr> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Pelle Svensson wrote: > > Hi, > [snip] > Can't somebody tell me what I need to get udev up and running from scratch. > > I'm building a ARM system with 2.6 kernel from scratch so I only need the > most basic stuff to get a 'dev' list. > Halo, I don't if it will help you but it mostly works for my setup so you may give it a try. Assuming you are booting correctly and 0) you have the latest kernel >= 2.6.11.rc4 and the latest udev (git versions) 1) you have mount your root partition 2) you have mount /proc /sys in your init 1) run start_udev (it is distributed with udev sources) 2) later run coldplug ---- coldplug ----- #!/bin/sh BUSSES="pci usb"; for bus in $BUSSES; do for DEV in /sys/bus/$bus/devices/*; do echo -n "Checking bus $bus device $DEV..."; if [ -L "$DEV" -a -f $DEV/modalias ]; then echo "modprobing"; modprobe `cat $DEV/modalias`; else echo "no"; fi done; done; --------------- and of course have a hotplug handy in /sbin/hotplug ----------- /sbin/hotplug ------------ #!/bin/sh #echo "*** hotplug 'subsystem=$1' 'MODALIAS=$MODALIAS' 'DEVPATH=$DEVPATH' ***" > /dev/kmsg; if [ -n "$MODALIAS" -a ! -L /sys/$DEVPATH/driver ]; then echo "*** hotplug 'subsystem=$1' 'MODALIAS=$MODALIAS' 'DEVPATH=$DEVPATH' ***" > /dev/kmsg; modprobe -v $MODALIAS > /dev/kmsg; fi if [ -n "$DEVPATH" -a -d "/sys" ]; then #echo "udevsend $1 -------------" > /dev/kmsg; /sbin/udevsend $1; fi if everything goes out well you can comment out the /dev/kmesg redirection. Oh and in my /dev I have already /dev/kmsg /dev/null /dev/console. I am sure somebody will popup with a better script/procedure or something but anyway here are my 2dr. .bill ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel