Armbian - Ubuntu (SOPINE) 3.10.105 [May 22] | Android 7.1 (PINE A64(+)) v0.3.5-r61 [May 15] | Android 7.1 (Pinebook) v0.3.5-r61 [May 15] | Q4OS (Pinebook) 1803 [May 15] | PINE64 Installer 2.0.0-beta.2 [May 13] | Ubuntu Mate (Pinebook) 20170505 [May 5]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


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 A64 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 A64 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 A64 IRC channel >>
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Debian Jessie with 4.x.y kernel and complete hardware support? Spark 2 448 04-24-2017, 09:56 PM
Last Post: Spark
  Debian Jessie Images (3.10.102 BSP Kernel) New Release lenny.raposo-pine64.pro 257 66,308 04-12-2017, 10:54 AM
Last Post: dontpostalot
  [SOLVED]Problem Compiling modules: Recipe | kernel-headers not found acenos 0 269 12-14-2016, 09:11 AM
Last Post: acenos
  NIC not visible after kernel update xleon 1 400 11-15-2016, 05:23 PM
Last Post: xleon
  What should I see on login? (Missing stuff, I think) TheGear 2 148 08-14-2016, 05:48 PM
Last Post: HayseedGeek
  Debian Jessie (4.7.0-rc1 Kernel) Images fire219 4 2,478 07-20-2016, 02:36 PM
Last Post: umiddelb
  i2c-bus kernel modules robertvaldimarsson 15 848 06-07-2016, 01:48 PM
Last Post: robertvaldimarsson
  Debian kernel upgrade question jl_678 2 613 04-18-2016, 05:54 PM
Last Post: jl_678

Forum Jump:


Users browsing this thread: 1 Guest(s)