Page 1 of 1

ocfs2 on HC2

Posted: Tue May 28, 2019 11:36 pm
by pekabo
Hello @ all

I'm trying to install ocfs2 on drbd.
drbd works fine, I can't mount ocfs2.

get the following error

FATAL: Module ocfs2_stackglue not found in directory /lib/modules/4.14.120-160.
FATAL: Module ocfs2_dlmfs not found in directory /lib/modules/4.14.120-160.

Am I missing a kernel module?

I tried this solution ... al-modules
There is no installation package for Linux modules-extra
apt install linux-module-extra-4.14.120-160

Anyone have any idea how to get ocfs2 to run on odroid HC2?
Any help is welcome

Re: ocfs2 on HC2

Posted: Wed May 29, 2019 9:08 am
by odroid
OCFS2 driver was not enabled in our default configuration. ... nfig#L5510

Download Kernel source and enable the driver as a module and build/install it.
Refer to this instruction for the custom kernel build process. ... rnel_build

Once you can confirm the driver functionality and stability, we will add it in the next Kernel update package.

Re: ocfs2 on HC2

Posted: Wed May 29, 2019 3:52 pm
by pekabo
Thanks for hint.

enclosed my HowTo:
Login in to your odroid with ssh.

check your kernel version with
$ uname -r

I get the Kernel version 4.14.120-160

switch to home dir
$ cd ~

I installed the developers tool and cloned the repository.
$ sudo apt install git gcc g++ build-essential libssl-dev bc flex bison

then installed with ncurses-devel
$ sudo apt install libncurses5-dev

clone Linux Kernel from hardkernel github to loacl device
$ sudo git clone --depth 1 -b odroidxu4-4.14.y
You will see in the Terminal
Cloning into 'linux'...

switch to the linux dir
$ cd linux

Then I download the current odroid config from /proc/config.gz to a folder on my pc and extract it with 7zip
Rename the config filr to ".config-org"
Upload the extractet .config-org" file to /home/odroid/linux
Start Kernel Konfiguration with
$ sudo make menuconfig

in menuconfig load the extractet .config-org" file.

Enter in menuconfig to "File systems --->"
aktivate "ocfs2 file system Support, hit "m" on the keyboard to install it as module.
Exit menu "File system --->" and go to "General setup --->"
Cange "Local version -append to kernel release" to "-161"
save the new config as .config" and exit menuconfig

$ make -j8

Please note that native kernel compile on ODROID-XU4 will take about 25 minutes.

$ sudo make modules_install
check if the folder ocfs2 exist in "/lib/modules/4.14.120-161+/kernel/fs"

$ sudo cp -f arch/arm/boot/zImage /media/boot
$ sudo cp -f arch/arm/boot/dts/exynos5422-odroid*dtb /media/boot
$ sync

Before you start with new Linux kernel v4.14
You would check all necessary files are in place as below before reboot. The file size would differ

-rwxr-xr-x 1 root root 9536 Oct 25 23:29 boot.ini
-rwxr-xr-x 1 root root 753 Aug 20 22:38 boot.ini.default
-rwxr-xr-x 1 root root 62565 Nov 2 01:24 exynos5422-odroidxu3.dtb
-rwxr-xr-x 1 root root 61814 Nov 2 01:24 exynos5422-odroidxu3-lite.dtb
-rwxr-xr-x 1 root root 62225 Nov 2 01:24 exynos5422-odroidxu4.dtb
-rwxr-xr-x 1 root root 61714 Oct 25 23:30 exynos5422-odroidxu4-kvm.dtb
-rwxr-xr-x 1 root root 9996513 Nov 2 01:27 uInitrd
-rwxr-xr-x 1 root root 4844744 Nov 2 01:24 zImage

Reboot odroid device
$ sudo reboot

check your kernel new version with
$ uname -r

Now I the Kernel version 4.14.120-161+

I successfully booted the new kernel version 4.14.120-161+.
Now I will setup ocfs2, if it runs stable for 2-3 month I will let you now.

Re: ocfs2 on HC2

Posted: Wed May 29, 2019 7:03 pm
by odroid
Glad to know that you made it work. ;)

Re: ocfs2 on HC2

Posted: Wed May 29, 2019 7:51 pm
by pekabo
Yes it works, I mounted successfully ocfs2 :D :D :D

Re: ocfs2 on HC2

Posted: Wed Jun 26, 2019 11:43 am
by odroid
We enabled it by default with Kernel 4.14.127 release. ... 62d5581078