starfive-tech / VisionFive2

445 stars 79 forks source link

Both /dev/mapper/control file and dm_mod missed in 202302 image #31

Open N0rbert opened 1 year ago

N0rbert commented 1 year ago

I have just flashed fresh 202302 image to SDcard, booted directly into it (RGPIO_0=1, RGPIO_1=0). Then I have installed kpartx package. When I tried to run it I get the following error:

# kpartx -a -v /mnt/sda1/starfive-jh7110-202302-SD-minimal-desktop.img 
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.185 (2022-05-18) and kernel driver (unknown version).
device mapper prerequisites not met

Additional system details:

# find /lib/modules/ -iname dm*.ko
# lsmod 
Module                  Size  Used by
venc                   28672  0
vdec                   28672  0
jpu                    24576  0
# uname -a
Linux starfive 5.15.0-starfive #1 SMP Mon Feb 27 14:03:14 EST 2023 riscv64 GNU/Linux

Please build device-mapper module(s) in the next release.

MichaelZhuxx commented 1 year ago

@N0rbert Thanks. we will enable CONFIG_MD=y and CONFIG_BLK_DEV_DM=m for next April release.