LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not loading drivers (insmod ....*ko) (https://www.linuxquestions.org/questions/linux-newbie-8/not-loading-drivers-insmod-%2Ako-844363/)

xwishmasterx 11-15-2010 09:15 AM

Not loading drivers (insmod ....*ko)
 
Hi

I am trying to make a device load some drivers with the "insmod" command
but somehow it doesn't seem to work.

I do not have any direct connection to my device, so I am doing this with a flash stick when the device boots.

my code is:
Code:

insmod /tmp/mnt/sda1/r8192s_usb.ko
is there something wrong with this command, or more likely wrong path?

other alternatives?

camorri 11-15-2010 09:43 AM

Loading modules is a privileged command, you need to be root to load a module.

insmod is the old version command to load a module. modprobe is the newer one. I'm not sure I understand how you are trying to accomplish this task. Usually you open a root konsole and 'modprobe nameofmodule'. If you get no errors, then it worked. Errors indicate something is wrong.

Once you know the module(s) you need loaded, then there are file on each distro to load the modules at boot time. The file names may be different. If you need help with that, then post the version and release of the distro you are running.

You said you do not have a direct connection to the device. Can you ssh into it?

xwishmasterx 11-15-2010 09:46 AM

First of all, I'm not even considering myself a "linux-beginner", I'm not that skilled :/

Second, the command line is located in a file that is loaded on boot.

third, I have no idea what "distro" means..lol

camorri 11-15-2010 12:51 PM

Quote:

Second, the command line is located in a file that is loaded on boot.
Hmmm... Mandriva uses a file called /etc/modprobe.preload to load drivers. It has to be edited as root to add commands. I load some modules there on my system. Is this what you are talking about, or some similar file??? The root user owns this file.

The command has to be run as a root user( in a konsole), or it will not work. What makes sense is to ssh ( like telnet in DOS ) into the system, and run the commands, and if possible set it up to load at boot time.

Distro, short for Distribution. Examples are Debain, Slackware, Ubuntu. A distro is a linux kernel, with a group of programs that will install from a file.

xwishmasterx 11-15-2010 01:16 PM

my problem is my device does not support network access, so no ssh/telnet. In fact this is what I am trying to setup. A custom firmware has been built and a wireless-mod.bin.
However my wifi dongle is not supported, an compiling is not really anything I can do (had a friend trying but it doesn't work)

I have gotten my hands on the driver as .ko file and therefore trying to load the drivers this way.

If this is to hard (if not impossible), maybe I can find a real linux-genius who would be kind enough to compile it for me again.

camorri 11-15-2010 03:55 PM

Quote:

I have gotten my hands on the driver as .ko file and therefore trying to load the drivers this way.
That file has to compiled against your kernel source, or it will not load or work. So I think you will need to find someone to compile a kernel. Then of course you will have to install it.

xwishmasterx 11-15-2010 04:19 PM

I do believe the kernel has been compiled also.

I am trying to compile it again myself with a step by step guide (and that's even hard to do).

Is there a way I can check the .bin to see if the kernel has been compiled or not?

ORBiTrus 11-26-2010 09:43 AM

What device is this? A router? A NAS? A netbook?

What you've described in the first posts suggests that the wifi driver/firmware was built on a separate system, then loaded on whatever you are work on. That's normally a very bad way to do things, unless you can ensure that the two systems are mirror images of one another.

But without knowing what type of system you are working with, it's hard for us to know if what you probably need to do (build on the device you are installing to, or use an upstream-provided package) is even feasible.

Regardless, I think it would help everyone here have a better idea what you're working with if you could tell us the output of:
uname -a

ls /etc/*release /etc/*version

cat /etc/*release /etc/*version


All times are GMT -5. The time now is 02:54 AM.