orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
630 stars 272 forks source link

device-mapper missing from orange pi 5 plus 32gb #167

Open samrocketman opened 4 days ago

samrocketman commented 4 days ago

OS

Ubuntu

Package

# apt-cache show linux-image-current-rockchip-rk3588
Package: linux-image-current-rockchip-rk3588
Status: install ok installed
Priority: optional
Section: kernel
Installed-Size: 113653
Maintainer: Orange Pi <leeboby@aliyun.com>
Architecture: arm64
Source: linux-6.1.43-rockchip-rk3588
Version: 1.0.8
Description: Linux kernel, version 6.1.43-rockchip-rk3588
 This package contains the Linux kernel, modules and corresponding other
 files, version: 6.1.43-rockchip-rk3588.
Description-md5: 556d1c3248b99a15012a77d57ccce977
Homepage: https://www.kernel.org/

Error

# cryptsetup luksOpen /dev/nvme0n1p2 encrypted
Cannot initialize device-mapper. Is dm_mod kernel module loaded?
Cannot use device encrypted, name is invalid or still in use.
Enter passphrase for /dev/nvme0n1p2:

Attempt to load module:

# modprobe dm_mod
modprobe: FATAL: Module dm_mod not found in directory /lib/modules/6.1.43-rockchip-rk3588

Config?: https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-current.config

Upstream config? https://github.com/torvalds/linux/blob/661e504db04c6b7278737ee3a9116738536b4ed4/drivers/md/Kconfig#L183-L200

Question

How do I compile this myself? I'm new to orangepi and kernel compiling. I know I need to define

CONFIG_BLK_DEV_DM=y

https://github.com/orangepi-xunlong/orangepi-build/blob/52624375b8ce2dfc6356667351631b5c8520d312/external/config/kernel/linux-rockchip-rk3588-current.config#L2293

samrocketman commented 3 days ago

I notice there's /opt/linux-headers-current-rockchip-rk3588_1.0.8_arm64.deb on my orangepi but I don't think there's a source package so I can't recompile the kernel directly on the board easily.