Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having device which is having only one USB port and is a boxed device.I want to autodetect a USB drive,which i can do by adding :
/dev/sda1 /mnt/flash vfat auto 0 0
in /etc/fstab.Is it right way for autodetecting a USB drive?
And also, i am having multiple kernel modules in that USB drive, and after autodetecting they will be in /mnt/flash directory of my filesystem.I want to load those modules by adding this line in my /etc/rc.sysinit script,the script is as follows:
if [ -f /mnt/flash/*.ko ]
then
find /mnt/flash/*.ko -print | xargs insmod
fi
but when i am tryng to add two kernel modules,through command line,it is giving: "Unknown symbol found in module".
I'm going to take a guess that the first thing you should examine, is whether or not these kernel modules were built using the same source as the running kernel. The error message you show, indicates otherwise. "Unknown Symbol" indicates that the module contains code that the kernel doesn't recognize (the kernel and the module are not compatible).
Rebuild the modules using the same source code as the running kernel.
i have checked the source code and kernel version,both are same.In my home directory there are .ko files,which i want to insmod using
"insmod *.ko",but it is giving me error:
i have moved my modules as per your suggestions,it works.After that,I want to ask you,why we have to make changes in modules.dep.As far as i know my both the modules are independent of each other.Still i have done as per your suggestions.But after dong "depmod -A" and doing "lsmod",the modules are not in list modules.What we have to do this to make it working for applications?
If you execute "depmod" command after moving the modules into the modules folder, the kernel examines its modules directory, and updates its dependency information for all modules present, if there have been any changes since last time it did so.
At this stage, `lsmod` will not show anything.
However, if you now MODPROBE your modules (to insert them; similar to insmod but newer), they will appear in `lsmod` output. For example, if your module is called "hello.ko", you would do:
shell# modprobe hello
and now, `lsmod` will show hello.
Whether or not each of your modules depends on the other, is not too important as far as this discussion goes. The important part is that the KERNEL is aware of the modules, and their dependencies, whatever those dependencies may be..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.