linux - Driver Compilation Redhat -
I'm totally new to compiling drivers for Linux and I have some problems!
I am trying to compile a driver for the USB device.
Result:
[thayoz @ lacalpc13 linux] lib qrng in driver for $ i; CD $ i & amp; Amp; (Do all) exit) & amp; Amp; CD ..; [1]: Directory / home / thayoz / desktop / untitled folder / quantis-usb / src / linux / driver 'make -c / usr / src / kernels / m = / home / thayoz / desktop / title Free folder / quantis-usb / sqr / linux / driver make v = 1 modules [2]: enter the directory
/ usr / src / kernels' [2]: * to create a target No rules folder / quantis-usb / src / linux / drivers'. Stop. Create [2]: making the directory
/ usr / src / kernels' [1]: * [all] make error 2 [1]: directory `/ home / thayoz / desktop / untitled folder Except / Quantis-USB / src / linux / driver '/ bin / sh: line 0: cd: lib: such a file or directory / bin / sh: line 0: cd: qrng: do not create any such file or directory I am not sure what is wrong << / p>
Usually something like this:
make-c & lt; From directory to kernel source & gt; M = & lt; The module / driver source from the directory & gt; Creating Module-C & lt; For directory kernel source & gt; M = & lt; The module / driver source from the directory & gt; Modules_install
is sufficient.
Did your driver come with a makefile? Are you compiling it with the proper kernel sources, the correct version, for example?
Comments
Post a Comment