LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 12-19-2014, 09:19 AM   #16
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled

Quote:
Originally Posted by gearheadgeek View Post
I have too much else to do to keep up with kernel development so I missed that. I have been using 2.6 kernels recently and this is my first go with a 3.x series. I can't find anything anywhere that explains tmpdevfs or how to use it.

As I mentioned, I have been using Slack in embedded since 4.0 (or maybe it was 3.4) so I actually do understand device nodes know how to make them.
problem is that the whole udev thing is made by Kay Sievers with help from GKH
hence NO documentation, 0, nada
Kay is too smart to explain anything

the hotplug doc i linked is the best documentation there is

as for the /dev entries being nodes
afaik they always have been, at least since 2.6 (maybe in 2.4 they werent, idk)
 
Old 12-19-2014, 01:14 PM   #17
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by genss View Post
problem is that the whole udev thing is made by Kay Sievers with help from GKH
hence NO documentation, 0, nada
Kay is too smart to explain anything
Which, to me, is a very good reason to avoid udev.
Quote:
the hotplug doc i linked is the best documentation there is
I will take a look at that.
 
Old 12-19-2014, 01:19 PM   #18
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by veerain View Post
To use devtmpfs all you have to do is:

mount -t devtmpfs devtmpfs /dev
Apparently it is not that simple. The kernel seems to populate /dev with what it finds at boot, but needs some hotplug mechanism (udev/mdev/etc) to find anything that is added later. In my case, the only thing added is a thumb drive to get data off the device. That works fine with a static /dev but not with devtmpfs.
 
Old 12-19-2014, 01:22 PM   #19
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
As a postscript to this, I am happy. I have 14.1 running without udev and with a monolithic kernel (no modules or initrd) and it is booting in about 12 seconds and everything works.
 
Old 12-19-2014, 02:26 PM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
Quote:
Originally Posted by genss View Post
problem is that the whole udev thing is made by Kay Sievers with help from GKH
hence NO documentation, 0, nada
Kay is too smart to explain anything
Really? What about the man page? the reference manual? If you miss something, please state what. But maybe you've found something wrong, inaccurate, or not up to date in the documentation: please tell us what. Till then, I'll assume that you are just spreading FUD.
 
Old 12-19-2014, 08:33 PM   #21
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Using mdev as an alternative to udev will require some heavy work.

I've been tinkering with a SlackBuild to build a working mdev solution for a few weeks now, but I need to get the rc.mdev init script crafted before I can try to test the package. Be heavily forewarned, mdev does not have rule-based auto-loading of modules. All it does is creates an instance of the device node and attempts to populate it based on it's configuration.

If you want additional rule-based assignment of devices, such as input devices, you'll need haldaemon (hal with hal-info). Also, if you decide to disable udev, do NOT uninstall it. Several projects rely on libudev as a dependency, but don't actively use it. Plus, you'll need to use the xf86-input-keyboard/mouse/joystick drivers for input devices if you go with mdev.
 
Old 12-20-2014, 04:20 PM   #22
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Really? What about the man page? the reference manual? If you miss something, please state what. But maybe you've found something wrong, inaccurate, or not up to date in the documentation: please tell us what. Till then, I'll assume that you are just spreading FUD.
you can assume whatever you want

that is not documentation on udev, but on writing against udev
udev does A LOT of things that you don't know about and even the things you do know about (making nodes, loading firmware) are never explained in any way
like that udev sends events to xorg-server

you can also go check the source code to find almost no comments and absolutely non existent function naming convention
(i counted 3 styles, one of them OO)

in short it's about just a little less documented then X
and it matters for udev more then your avg program in that there is only one way to do what it does
not to mention that a page of ascii art drawings and half a page of text could explain it all



anyway we were not here talking about udev api, but about what udev does to make those dev nodes




PS if you can find me documentation on how logind/console-kit does anything, id be grateful
PPS look at the udev's device struct to see something funny

Last edited by genss; 12-20-2014 at 04:23 PM.
 
Old 12-20-2014, 04:42 PM   #23
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,621

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
As a postscript to this, I am happy. I have 14.1 running without udev and with a monolithic kernel (no modules or initrd) and it is booting in about 12 seconds and everything works.
now ,plug in that kindle fire that is under the tree and see it it works
or
the usb laser Virtual keyboard

Last edited by John VV; 12-20-2014 at 04:45 PM.
 
Old 12-22-2014, 10:29 PM   #24
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
You might go the devtmpfs route, really. It makes little difference in boot memory or kernel size, but you do have to set custom permissions after boot.

If you must go static, there's Documentation/devices.txt in the kernel source, which tells your where the devices are supposed to be. Use mknod if you have to do so. Also, /proc/devices can give a hint on where devices are located. There are also files in /sys that tell you about the nodes. For a command like `find /sys -name dev`, the actual contents of those dev files are the major and minor numbers for the device. You might have to figure out if the device is a block device, character device, or something else.

Slackware can be done without udev, easily. But yeah, it helps to have a PS/2 keyboard. I think I'll find that reply and mod it up. A bit of precaution: You might look at the /dev directory of your system by booting from a utility disk, just to be sure that the static devs are still there. Also, if you want to slack off, you could just tar the devtmpfs /dev from a running system, then restore it as static devs from a utility disk, to have a nice starting point. Reboot using a devtmpfs-free kernel, and you should be good to go.
 
Old 12-23-2014, 03:58 PM   #25
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
now ,plug in that kindle fire that is under the tree and see it it works
or
the usb laser Virtual keyboard
Apparently you haven't been paying attention. Neither of those get plugged into my embedded device.
 
Old 12-25-2014, 04:55 AM   #26
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
LFS has a good section on setting up static devices also:

http://linuxfromscratch.org/blfs/vie...s/devices.html
 
Old 01-02-2015, 07:06 AM   #27
gearheadgeek
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ReaperX7 View Post
LFS has a good section on setting up static devices also:

http://linuxfromscratch.org/blfs/vie...s/devices.html
Thanks. Interesting that they recommend static devices on servers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] udev and dbus - using the notivy-send command in a script started by udev markush Slackware 2 10-14-2012 09:26 AM
UDEV: Unable to run a command line interface script after USB automount using udev mohamr2 Linux - Embedded & Single-board computer 8 08-16-2011 10:39 AM
LXer: Downgrade udev 157->151 on opensuse 11.3 to bring back to life Xen 4.0 (2.6.34-12-xen) LXer Syndicated Linux News 0 07-26-2010 08:50 PM
UDEV - SBLive(emu10k) - Mandriva hangs at UDEV during boot.....still! Grrr. peterlowrie Linux - Hardware 2 05-23-2010 06:37 PM
LXer: How Half Life could save your life LXer Syndicated Linux News 0 02-05-2009 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration