As the kernel finds the correct driver on the disk?
Can someone explain to me where the table with the assignement between
the hardware and drivers to be loaded can be found in the system? Or: How does the kernel know which driver has to be load when it sees a peace of hardware ? |
Which distro. The methods vary depending on the distro.
|
I think this is handled by the udev .
|
Quote:
I thought it was kernel task .. Debian Squeeze |
Quote:
|
I am not sure if it is dependent or distro or not, but here is the working of udev system
https://www.linux.com/news/hardware/...ls/180950-udev |
It is not depend on distro. The association is make by kernel and kernel alone! It is part of /lib/modules/ and files are created using depmod, which is reading all modules and extract pci.ids and usb.ids and include it to files.
Code:
alias pci:v000010B7d0000900Asv*sd*bc*sc*i* 3c59x Again it is not distro depend! It is plainly kernel thing and for instance you have id in pci.ids, but as long as kernel do not include device in driver, you wont be able to use device! |
Thanks a lot!!!
That was the answer I searched for!! .. and now I search for the method how the kernel creates such ID's: pci:v000014E4d0000164Asv*sd*bc*sc*i* But I think the kernel will create an ID without '*' and the '*' are wildcards .. Can I create such an ID by hand with a tool ?? Quote:
|
udev is the mechanism by which device entries are located and the proper drivers are selected for them. The same mechanism also comes into play (IIRC...) when a USB device is inserted.
A device driver is always "part of the kernel" and it may therefore either be resident, or a loadable module. Personally, I like to use a bootable-CD distro to determine what drivers are suitable for my system, then specify those specific drivers in a custom-built kernel. Drivers needed for non-removable hardware are compiled in. Drivers needed for removable hardware that I know I need, are modules. In this way I am able to eliminate the "initial RAM disk" step at boot-time altogether. If I don't have, say, a "DECsystem token-ring adapter card," :rolleyes: I don't need to build a driver for it and I don't need to search for it at startup time. |
You are free to do so, but I am afraid it won't work, as module won't have this id.
sundialsvcs: I recommend to you to build kernel with modules for most hardware even this integrated in motherboard. It comes handy when you want to reset hardware - simply unload module. |
All times are GMT -5. The time now is 08:41 PM. |