Adding a missing kernel module
#1
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?
  Reply
#2
Can you post the output of dmesg while you try to load the module?
Come have a chat in the Pine IRC channel >>
  Reply
#3
(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
  Reply
#4
Did you try to rebuild the kernel (with oldconfig) and modules, then install that? Maybe try if force-loading works...
Come have a chat in the Pine IRC channel >>
  Reply
#5
(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.
  Reply
#6
(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.
  Reply
#7
(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.
  Reply
#8
(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.
  Reply
#9
You could also try one of the recent Armbian/Debian images, I use them on most of my Pines... https://www.armbian.com/pine64/
Come have a chat in the Pine IRC channel >>
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  insmod ko: Invalid module format zener 0 2,524 03-25-2019, 01:00 PM
Last Post: zener
  (ARCHIVED) Debian Jessie Images (3.10.102 BSP Kernel) New Release lenny.raposo-pine64.pro 259 508,129 05-21-2018, 06:30 AM
Last Post: Luke
  how to set kernel parameter 'fsck.mode=force' marcelser 6 13,372 05-09-2018, 09:07 PM
Last Post: pfeerick
  eMMC module as storage for Debian/Android le_moose1 1 4,299 03-25-2018, 08:11 PM
Last Post: KNERD
  dvb-usb-dib0700 module not found. Miguel Campos 2 5,166 12-02-2017, 06:05 AM
Last Post: Miguel Campos
Question Debian Jessie with 4.x.y kernel and complete hardware support? Spark 2 6,329 04-24-2017, 09:56 PM
Last Post: Spark
  NIC not visible after kernel update xleon 1 3,466 11-15-2016, 05:23 PM
Last Post: xleon
  What should I see on login? (Missing stuff, I think) TheGear 2 4,337 08-14-2016, 05:48 PM
Last Post: HayseedGeek
  [OUTDATED] Debian Jessie (4.7.0-rc1 Kernel) Images fire219 4 18,032 07-20-2016, 02:36 PM
Last Post: umiddelb
  i2c-bus kernel modules robertvaldimarsson 15 18,887 06-07-2016, 01:48 PM
Last Post: robertvaldimarsson

Forum Jump:


Users browsing this thread: 1 Guest(s)