Missing xfs kernel module - vim4 ubuntu 22.04

Which system do you use? Android, Ubuntu, OOWOW or others?

ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

offficial image

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Please describe your issue below:

missing kernel module for xfs

Post a console log of your issue below:

modprobe: FATAL: Module xfs not found in directory /lib/modules/5.4.125

Hello @matteoguglielmi

Thanks for your feedback, we will add in next release.

Thank you for including the xfs kernel module in the next release.

I’m completely new to VIMs… so, after digging into khadas’s doc, here below I report the procedure I found to quickly re-build the linux kernel packages for your device (and supported distribution) with the missing module(s).

jump on a x86_64 box that is debian/ubuntu based and install the following packages:

apt-get install git make lsb-release qemu-user-static

as a normal user do:

mkdir ~/project

cd ~/project/

git clone --depth 1 https://github.com/khadas/fenix

cd ~/project/fenix

source env/setenv.sh

now answer to the very few questions that will appear on the terminal, then run:

make kernel-config

now add the kernel module you need (in my case xfs, which is there!), then run:

make kernel-saveconfig

NO_GIT_UPDATE=1 make kernel

NO_GIT_UPDATE=1 make kernel-deb

my new kernel packages were in here:

ls build/images/debs/1.1.1/VIM4

linux-dtb-amlogic-5.4_1.1.1_arm64.deb
linux-headers-amlogic-5.4_1.1.1_arm64.deb
linux-image-amlogic-5.4_1.1.1_arm64.deb

now s-copy them over to your khadas device and install them all:

dpkg -i linux-*

that’s it.

2 Likes

I’ve seen that the xfs support was added to the kernel.

Would it be possible to add this option too on the next release?

--- Network File Systems
<M> NFS server support
-*-   NFS server support for NFS version 3
[*]     NFS server support for the NFSv3 ACL protocol extension

which corresponds to this option in the .config file:

CONFIG_NFSD_V3_ACL=y

(needed when exporting root file systems over the network a.k.a. nfsroot using nfsv3)

Thank you!

Hello @matteoguglielmi

Thanks for your feedback, will enable in next release.

Thanks for having done so.