PINE64
Adding a missing kernel module - 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: Adding a missing kernel module (/showthread.php?tid=3045)



Adding a missing kernel module - spz2k - 01-06-2017

Hi,

I'm making some tests with external harddrive with LVM2 and I need pvmove... but it won't work without dm-mirror. I've checked and this kernel module isn't enabled. So I downloaded the kernel source from (https://github.com/longsleep/build-pine64-image/tree/master/kernel) and proceeded to check the dm-mirror module with the menuconfig. Once completed I then made a (make modules) and copied the module in /lib/module/... folder.

Now if I do depmod && modprobe dm-mirror it complains that the format is invalid. I neved had that knind of error... unless I was cross compiling wich i'm not since I built the module on the pine itself.

The exact error is :

modprobe: ERROR: could not insert 'dm_mirror': Exec format error

Any idea about how to fix the problem?


RE: Adding a missing kernel module - xalius - 01-07-2017

Can you post the output of dmesg while you try to load the module?


RE: Adding a missing kernel module - spz2k - 01-07-2017

(01-07-2017, 06:37 AM)xalius Wrote: Can you post the output of dmesg while you try to load the module?

It seems to be :

[4004499.905539] dm_mirror: no symbol version for module_layout
[4006301.241369] dm_mirror: no symbol version for module_layout


RE: Adding a missing kernel module - xalius - 01-07-2017

Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...


RE: Adding a missing kernel module - spz2k - 01-08-2017

(01-07-2017, 06:19 PM)xalius Wrote: Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...

I did... but it didn't work. Anyway I'm on another type of problem... I updated uboot and the kernel to the latest version... and it doesn't boot anymore. It just load the kernel (at least partially since I see some of the kernel message while booting) then it goes to a black screen and it dies.


RE: Adding a missing kernel module - dkryder - 01-08-2017

(01-08-2017, 05:44 PM)spz2k Wrote:
(01-07-2017, 06:19 PM)xalius Wrote: Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...

I did... but it didn't work. Anyway I'm on another type of problem... I updated uboot and the kernel to the latest version... and it doesn't boot anymore. It just load the kernel (at least partially since I see some of the kernel message while booting) then it goes to a black screen and it dies.

this sounds a bit like what i experience at boot. if i turn off monitor most of the time it boots ok.


RE: Adding a missing kernel module - spz2k - 01-09-2017

(01-08-2017, 08:54 PM)dkryder Wrote:
(01-08-2017, 05:44 PM)spz2k Wrote:
(01-07-2017, 06:19 PM)xalius Wrote: Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...

I did... but it didn't work. Anyway I'm on another type of problem... I updated uboot and the kernel to the latest version... and it doesn't boot anymore. It just load the kernel (at least partially since I see some of the kernel message while booting) then it goes to a black screen and it dies.

this sounds a bit like what i experience at boot. if i turn off monitor most of the time it boots ok.

I tried, but it doesn't boot anymore. I guess it's dead. neither the keyboard nor the lan adapter lights up.


RE: Adding a missing kernel module - dkryder - 01-09-2017

(01-09-2017, 07:14 PM)spz2k Wrote:
(01-08-2017, 08:54 PM)dkryder Wrote:
(01-08-2017, 05:44 PM)spz2k Wrote:
(01-07-2017, 06:19 PM)xalius Wrote: Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...

I did... but it didn't work. Anyway I'm on another type of problem... I updated uboot and the kernel to the latest version... and it doesn't boot anymore. It just load the kernel (at least partially since I see some of the kernel message while booting) then it goes to a black screen and it dies.

this sounds a bit like what i experience at boot. if i turn off monitor most of the time it boots ok.

I tried, but it doesn't boot anymore. I guess it's dead. neither the keyboard nor the lan adapter lights up.
i started troubleshoot by installing a fresh debian build from july which had the old uboot/kernel. that booted for me. i also needed to change the resolution of the monitor in the config file, UEnv.txt from 720p60 to 1080p. it took me awhile to get the correct resolution. the 720 booted but had overscan on my monitor. i'd suggest you get a fresh july image and try booting with monitor off or unplugged.


RE: Adding a missing kernel module - xalius - 01-10-2017

You could also try one of the recent Armbian/Debian images, I use them on most of my Pines... https://www.armbian.com/pine64/