PINE64

Full Version: Adding a missing kernel module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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-pine6...ter/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?
Can you post the output of dmesg while you try to load the module?
(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
Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...
(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.
(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.
(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.
(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.
You could also try one of the recent Armbian/Debian images, I use them on most of my Pines... https://www.armbian.com/pine64/