From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Duka Date: Sat, 03 Jan 2004 05:54:24 +0000 Subject: Re: how to use udev Message-Id: <3FF65910.1010804@mail.ru> List-Id: References: <3FF61CFA.2080501@mail.ru> In-Reply-To: <3FF61CFA.2080501@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg KH wrote: > On Sat, Jan 03, 2004 at 01:38:02AM +0000, Roman Duka wrote: > >>could somebody explain to me please how to use this udev thing >>i've compiled and installed udev-012 and hotplug-2003_08_05 >>udev documentaion says "Add and remove devices from the system and >>marvel as nodes are creaed and removed in /udev/ based on the device >>types" so how do I add devices? Do I have to call "mknod" or just >>calling "modprobe" to load a give device module would be enough? I mean >>neither seems to work, I get absolutely nothing in /dev/ or /udev/ ??? >>Am I missing something here??? > > > If you go into the test directory, after installing udev, and run the > test.all script as root with the 'add' paramater: > test.all add > > Do you see new nodes show up in /udev? > > If not, something is not installed properly. > > If there are nodes, great, it's working :) > No Greg I don't get anything in /udev the script calls udev and there are no error messages or anything, however /udev is still empty I need to ask you a few questions: - I compiled udev on Linux running kenel 2.4.20, however I am trying to get udev working on kernel 2.6.0 which has support for hot-pluggable devices and module loading/unloading enabled. I don't think I need to be running kernel 2.6.0 in order to just compile udev, am I correct here?? - I didn't switch my system to kernel 2.6.0 and udev, I am trying to test it within initrd (Initial Ram Disk), so what I have is a subdirectory in my home directory, where I installed busybox, bash, insmod, modprobe, hotplug scripts and udev, plus the needed shared libraries in /lib. Note I installed udev with the following command "make DESTDIR=mydir install" i.e. I didn't use "prefix" so all the config files etc should be relative to the root directory, and I've checked them, they're fine. I created a initrd and put it on a CD-RW disk and that's what I am booting from and testing udev. My question is, does running udev withing initrd make any impact on its operations? May be the reason why it doesn't work for me is because it has some issues in initrd environment??? If nothing else, what else do you think could be wrong?? ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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