PINE64
How to install modules into system? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+---- Forum: Debian (https://forum.pine64.org/forumdisplay.php?fid=24)
+---- Thread: How to install modules into system? (/showthread.php?tid=1168)



How to install modules into system? - MicroDiery - 05-26-2016

I compiled the usb wifi driver for system,but make filed,information of error is 

make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/3.10.101-3-pine64-longsleep/build M=/home/pine64user/Downloads/rtl8192eu  modules
make[1]: *** /lib/modules/3.10.101-3-pine64-longsleep/build: No such file or directory.  Stop.
Makefile:1335: recipe for target 'modules' failed
make: *** [modules] Error 2

Can someone help me please?

THanks


RE: How to install modules into system? - longsleep - 05-26-2016

Lucky you that i fixed out of tree module compilation today (https://github.com/longsleep/build-pine64-image/commit/2febd9b911f7b1af7821c94303554ae9d862d161) - next Kernel build will have it, either wait for it or build your own Kernel.


RE: How to install modules into system? - JamesHarris - 05-26-2016

How about just building all the modules that compile cleanly and included them in the longsleep release? For example I was going to use the net/bonding.ko until I learned it was missing.


RE: How to install modules into system? - MicroDiery - 05-26-2016

(05-26-2016, 08:00 AM)longsleep Wrote: Lucky you that i fixed out of tree module compilation today (https://github.com/longsleep/build-pine64-image/commit/2febd9b911f7b1af7821c94303554ae9d862d161) - next Kernel build will have it, either wait for it or build your own Kernel.

I don't know how to compiled the kernel. so i am looking forward to the new kernel version


RE: How to install modules into system? - longsleep - 05-26-2016

(05-26-2016, 08:18 AM)JamesHarris Wrote: How about just building all the modules that compile cleanly and included them in the longsleep release? For example I was going to use the net/bonding.ko until I learned it was missing.

Make a use case which was tested and create a PR on GitHub. I am willing to accept modules if the use case makes sense, works and has been tested.


RE: How to install modules into system? - longsleep - 05-26-2016

3.10.101-4-pine64-longsleep-51 was released, with support for out-of-tree compiling. I also added network bonding as module.

@MicroDiery for proper and maintainable extra modules, i suggest to look at DKMS and integrate your module with it.


RE: How to install modules into system? - JamesHarris - 05-27-2016

Thanks for the bonding module. With so many network interfaces I like to use bonding in master-slave mode so ethernet is backed up by wifi and the others.

I have used dkms with zfs on my file server for a few years. When it works it is great unfortunately that seems to be about 50% of the time. If your module code isn't changing and you just need to compile for new kernels it works well. When the module code revs it can have trouble building and installing for all installed kernels. At least that is my experience. I often need to do a dkms remove the dkms install when my module code is updated. Just a heads up.