WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: No package provides kernel module xor  (Read 2866 times)

Offline dafan

  • Newbie
  • *
  • Posts: 7
No package provides kernel module xor
« on: February 25, 2021, 09:41:27 PM »
piCore 12.0 aarch64

The module is needed to mount btrfs partitions.

Code: [Select]
# uname -a
Linux picore 5.4.51-piCore-v8 #1 SMP PREEMPT Tue Jul 28 16:02:58 EDT 2020 aarch64 GNU/Linux
# modprobe btrfs
modprobe: can't load module xor (kernel/crypto/xor.ko.gz): unknown symbol in module, or unknown parameter

I have tested all the kernel module packages (*-5.4.51-piCore-v8.tcz). None of them provides the file.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: No package provides kernel module xor
« Reply #1 on: February 25, 2021, 09:51:50 PM »
Hi dafan
I think it might be included with the base install. Does it show up with this command:
Code: [Select]
ls -l /lib/modules/5.4.51-piCore-v8/kernel/crypto

Offline dafan

  • Newbie
  • *
  • Posts: 7
Re: No package provides kernel module xor
« Reply #2 on: February 26, 2021, 03:52:57 AM »
Hi dafan
I think it might be included with the base install. Does it show up with this command:
Code: [Select]
ls -l /lib/modules/5.4.51-piCore-v8/kernel/crypto

Yes, indeed.

Is something wrong with the file? Why can it not be loaded?

Code: [Select]
# ls -l /lib/modules/5.4.51-piCore-v8/kernel/crypto
total 48
-rw-r--r-- 1 root root 1730 Aug 12  2020 arc4.ko.gz
drwxr-xr-x 2 root root  100 Jan  1  1970 async_tx
-rw-r--r-- 1 root root 7208 Aug 12  2020 ccm.ko.gz
-rw-r--r-- 1 root root 2844 Aug 12  2020 cmac.ko.gz
-rw-r--r-- 1 root root 3387 Aug 12  2020 ctr.ko.gz
-rw-r--r-- 1 root root 1937 Aug 12  2020 lz4.ko.gz
-rw-r--r-- 1 root root 2841 Aug 12  2020 md4.ko.gz
-rw-r--r-- 1 root root 3906 Aug 12  2020 md5.ko.gz
-rw-r--r-- 1 root root 2852 Aug 12  2020 sha1_generic.ko.gz
-rw-r--r-- 1 root root 2390 Aug 12  2020 sha256_generic.ko.gz
-rw-r--r-- 1 root root 4136 Aug 12  2020 xor.ko.gz
# sha256sum /lib/modules/5.4.51-piCore-v8/kernel/crypto/xor.ko.gz
2522887c04499b0258f50f772619913c9988da80231704d25769f87f29b2a2d5  /lib/modules/5.4.51-piCore-v8/kernel/crypto/xor.ko.gz
# grep "xor.ko.gz" /lib/modules/5.4.51-piCore-v8/modules.dep
kernel/crypto/xor.ko.gz:
kernel.tclocal/drivers/md/dm-raid.ko: kernel.tclocal/drivers/md/dm-mod.ko kernel.tclocal/drivers/md/raid456.ko kernel.tclocal/crypto/async_tx/async_raid6_recov.ko kernel.tclocal/crypto/async_tx/async_pq.ko kernel.tclocal/lib/raid6/raid6_pq.ko kernel/crypto/async_tx/async_memcpy.ko.gz kernel/crypto/async_tx/async_xor.ko.gz kernel/crypto/async_tx/async_tx.ko.gz kernel/crypto/xor.ko.gz kernel.tclocal/drivers/md/md-mod.ko
kernel.tclocal/fs/btrfs/btrfs.ko: kernel/lib/zstd/zstd_compress.ko.gz kernel/lib/zstd/zstd_decompress.ko.gz kernel/lib/xxhash.ko.gz kernel.tclocal/lib/raid6/raid6_pq.ko kernel/crypto/xor.ko.gz kernel/lib/zlib_deflate/zlib_deflate.ko.gz
kernel/crypto/async_tx/async_xor.ko.gz: kernel/crypto/async_tx/async_tx.ko.gz kernel/crypto/xor.ko.gz
kernel.tclocal/crypto/async_tx/async_pq.ko: kernel.tclocal/lib/raid6/raid6_pq.ko kernel/crypto/async_tx/async_xor.ko.gz kernel/crypto/async_tx/async_tx.ko.gz kernel/crypto/xor.ko.gz
kernel.tclocal/drivers/md/raid456.ko: kernel.tclocal/crypto/async_tx/async_raid6_recov.ko kernel.tclocal/drivers/md/md-mod.ko kernel.tclocal/crypto/async_tx/async_pq.ko kernel.tclocal/lib/raid6/raid6_pq.ko kernel/crypto/async_tx/async_memcpy.ko.gz kernel/crypto/async_tx/async_xor.ko.gz kernel/crypto/async_tx/async_tx.ko.gz kernel/crypto/xor.ko.gz
« Last Edit: February 26, 2021, 03:57:40 AM by dafan »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: No package provides kernel module xor
« Reply #3 on: February 26, 2021, 04:28:31 AM »
Did you try:
Code: [Select]
$ sudo modprobe xor

Offline dafan

  • Newbie
  • *
  • Posts: 7
Re: No package provides kernel module xor
« Reply #4 on: February 26, 2021, 04:41:08 AM »
Did you try:
Code: [Select]
$ sudo modprobe xor

Yes. It doesn't work.

Code: [Select]
# modprobe xor
modprobe: can't load module xor (kernel/crypto/xor.ko.gz): unknown symbol in module, or unknown parameter

Offline dafan

  • Newbie
  • *
  • Posts: 7
Re: No package provides kernel module xor
« Reply #5 on: February 26, 2021, 04:55:21 AM »
Btw, the ungzipped file xor.ko is the same as the file in http://www.tinycorelinux.net/12.x/aarch64/releases/RPi/src/kernel/modules-5.4.51-piCore-v8.tar.xz. So it shouldn't be that the file in my system is corrupted.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: No package provides kernel module xor
« Reply #6 on: February 26, 2021, 05:34:29 AM »
That message means that xor depends on another kernel module that is not present - you can find out which one with:
Code: [Select]
$ modinfo xor
Edit: piCore and Tinycore will load both *.ko and *.ko.gz kernel modules

Edit2: xor depends on xor-neon in piCore
« Last Edit: February 26, 2021, 06:08:29 AM by Juanito »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: No package provides kernel module xor
« Reply #7 on: February 26, 2021, 07:24:25 AM »
Hi dafan
... Edit2: xor depends on xor-neon in piCore

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: No package provides kernel module xor
« Reply #8 on: February 26, 2021, 07:58:34 AM »
Hi dafan
It should be in:
Code: [Select]
/lib/modules/5.4.51-piCore-v8/kernel/arch/arm/lib/If not in the base system, check the modules file you linked to in reply #5.

Offline dafan

  • Newbie
  • *
  • Posts: 7
Re: No package provides kernel module xor
« Reply #9 on: February 26, 2021, 05:15:09 PM »
Sorry for the late reply. I couldn't post messages. It always said internal error.

Yes, it was xor-neon and it is not in the base system. The solution:

Code: [Select]
w g e t http://www.tinycorelinux.net/12.x/aarch64/releases/RPi/src/kernel/modules-5.4.51-piCore-v8.tar.xz
tar xf modules-5.4.51-piCore-v8.tar.xz
m k d i r /lib/modules/5.4.51-piCore-v8/kernel/arch/arm64/lib
c p lib/modules/5.4.51-piCore-v8/kernel/arch/arm64/lib/xor-neon.ko /lib/modules/5.4.51-piCore-v8/kernel/arch/arm64/lib
depmod -a `uname -r`

Some commands above are separted with spaces. If not, there will be the internal error. That is why I post this message so late :)

After that the modules xor and btrfs can be loaded properly.

Please add xor-neon.ko in the piCore base in the future release.

Thanks
« Last Edit: February 26, 2021, 05:16:57 PM by dafan »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: No package provides kernel module xor
« Reply #10 on: February 26, 2021, 05:25:36 PM »
Hi dafan
You might want to add  lib/modules/5.4.51-piCore-v8/kernel/arch/arm64/lib  to your  /opt/.filetool.lst  file and run a backup.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: No package provides kernel module xor
« Reply #11 on: February 26, 2021, 09:12:44 PM »
Future release will be picore13.  I’ll check the base there.