Liquorix vs cdemu  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
dolphin_oracle
Developer
Posts: 22245
Joined: Sun Dec 16, 2007 12:17 pm

Re: Liquorix vs cdemu

#11 Post by dolphin_oracle »

its not the kernel package that is forcing the warning to be treated as an error. the vhba module has a Makefile with the "ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror" in it. -Werror is forcing the error.

and so since errors aren't allowed during kernel configuration, it fails.

probably you could remove the -Werror from the Makefile.

the vhba c code actually has a problem. there is an updated source, maybe its been fixed, otherwise I would report the problem upstream.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 22245
Joined: Sun Dec 16, 2007 12:17 pm

Re: Liquorix vs cdemu

#12 Post by dolphin_oracle »

indeed, looks like the problem was patched.

https://github.com/cdemu/cdemu/commit/1 ... 059074d4f9
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Liquorix vs cdemu

#13 Post by rambo919 »

Editing /var/lib/dkms/vhba/20240202/source/vhba.c with those changes allows the kernel to update.

However there are lots of warnings that I don't remember seeing in the past.

Code: Select all

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.10.12-1-liquorix-amd64 linux-image-6.10.12-1-liquorix-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-headers-6.11.3-3-liquorix-amd64 (6.11-5~mx23ahs) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.11.3-3-liquorix-amd64.
/usr/sbin/dkms.mx autoinstall --kernelver 6.11.3-3-liquorix-amd64
Sign command: /lib/modules/6.11.3-3-liquorix-amd64/build/scripts/sign-file
Binary /lib/modules/6.11.3-3-liquorix-amd64/build/scripts/sign-file not found, modules won't be signed

Building module:
Cleaning build area...
make -j12 KERNELRELEASE=6.11.3-3-liquorix-amd64...
Cleaning build area...

vhba.ko.zst:
Running module version sanity check.
Error! Module version 20240202 for vhba.ko.zst
is not newer than what is already found in kernel 6.11.3-3-liquorix-amd64 (20240917).
You may override by specifying --force.
depmod...
dkms: autoinstall for kernel: 6.11.3-3-liquorix-amd64.
Setting up linux-image-6.11.3-3-liquorix-amd64 (6.11-5~mx23ahs) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.11.3-3-liquorix-amd64.
/usr/sbin/dkms.mx autoinstall --kernelver 6.11.3-3-liquorix-amd64
dkms: autoinstall for kernel: 6.11.3-3-liquorix-amd64.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.11.3-3-liquorix-amd64
I: The initramfs will attempt to resume from /dev/sdc3
I: (UUID=1a3ecd1e-bcaa-4a15-8f2a-efd91bebf6cf)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found theme: /boot/grub/themes/mx_linux/theme.txt
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.11.3-3-liquorix-amd64
Found initrd image: /boot/initrd.img-6.11.3-3-liquorix-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.11.3-1-liquorix-amd64
Found initrd image: /boot/initrd.img-6.11.3-1-liquorix-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.10.12-1-liquorix-amd64
Found initrd image: /boot/initrd.img-6.10.12-1-liquorix-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.9.12-amd64
Found initrd image: /boot/initrd.img-6.9.12-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.6.15-amd64
Found initrd image: /boot/initrd.img-6.6.15-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.6.12-1-liquorix-amd64
Found initrd image: /boot/initrd.img-6.6.12-1-liquorix-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.6.11-amd64
Found initrd image: /boot/initrd.img-6.6.11-amd64
Found Windows Recovery Environment on /dev/nvme0n1p1
Found Linux Mint 22 Wilma (22) on /dev/sda6
done
Setting up linux-headers-liquorix-amd64 (6.11-5~mx23ahs) ...
Setting up linux-image-liquorix-amd64 (6.11-5~mx23ahs) ...

User avatar
Stevo
Developer
Posts: 14560
Joined: Fri Dec 15, 2006 7:07 pm

Re: Liquorix vs cdemu

#14 Post by Stevo »

That would indicate that the Liquorix kernel is already including a vhba module. It is not present in the Debian 6.11 kernel, however.

I will backport vhba-dkms 20240917 from Debian testing for our test repos to remedy this.

Code: Select all

sudo modinfo vhba

filename:       /lib/modules/6.11.3-1-liquorix-amd64/kernel/drivers/scsi/vhba/vhba.ko.xz
license:        GPL
description:    Virtual SCSI HBA
version:        20240917
author:         Chia-I Wu
srcversion:     EFB019563391FEE1BB3B3EE
depends:        
retpoline:      Y
intree:         Y
name:           vhba
vermagic:       6.11.3-1-liquorix-amd64 SMP preempt mod_unload 
parm:           can_queue:int
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
Stevo
Developer
Posts: 14560
Joined: Fri Dec 15, 2006 7:07 pm

Re: Liquorix vs cdemu

#15 Post by Stevo »

For those that want to upgrade to the new test repo version of vhba-dkms, it will be necessary to remove the older MX 1:20240202 first. That one carried over a higher "1:" epoch versioning from deb-multimedia, and now that we can backport it from upstream Debian itself, the new version will get us back in sync.

Upon checking, the vanilla kernel source does not include the vhba driver. The Liquorix kernel "zen" patchset adds it, so the separate dkms driver is still necessary on Debian kernels.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Liquorix vs cdemu

#16 Post by rambo919 »

Also worth noting, libmirage must also be explicitly removed and then reinstalled. Otherwise you are likely to run into problems where the daemon cannot start.

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Liquorix vs cdemu

#17 Post by rambo919 »

Stevo wrote: Thu Oct 17, 2024 11:03 pm That would indicate that the Liquorix kernel is already including a vhba module. It is not present in the Debian 6.11 kernel, however.

I will backport vhba-dkms 20240917 from Debian testing for our test repos to remedy this.
Same kind of thing happened again. Kindly update vhba-module in test repo please.

Only useful hit I found on ddg search, indicates bug was fixed in specific updated release : https://github.com/NixOS/nixpkgs/issues/393534

My make.log output

Code: Select all

DKMS make.log for vhba-20240917 for kernel 6.14.1-1-liquorix-amd64 (x86_64)
Wed  9 Apr 06:24:24 SAST 2025
make: Entering directory '/usr/src/linux-headers-6.14.1-1-liquorix-amd64'
make[1]: Entering directory '/var/lib/dkms/vhba/20240917/build'
  CC [M]  vhba.o
vhba.c:541:6: error: ‘struct scsi_host_template’ has no member named ‘tag_alloc_policy’; did you mean ‘tag_alloc_policy_rr’?
  541 |     .tag_alloc_policy = BLK_TAG_ALLOC_RR,
      |      ^~~~~~~~~~~~~~~~
      |      tag_alloc_policy_rr
vhba.c:541:25: error: ‘BLK_TAG_ALLOC_RR’ undeclared here (not in a function)
  541 |     .tag_alloc_policy = BLK_TAG_ALLOC_RR,
      |                         ^~~~~~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-6.14.1-1-liquorix-amd64/scripts/Makefile.build:207: vhba.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.14.1-1-liquorix-amd64/Makefile:2004: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.14.1-1-liquorix-amd64/Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/vhba/20240917/build'
make: *** [Makefile:251: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.14.1-1-liquorix-amd64'

User avatar
Stevo
Developer
Posts: 14560
Joined: Fri Dec 15, 2006 7:07 pm

Re: Liquorix vs cdemu

#18 Post by Stevo »

Why are you using vhba-dkms when it's already in the Liquorix kernel?
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Liquorix vs cdemu

#19 Post by rambo919 »

Stevo wrote: Wed Apr 09, 2025 11:22 am Why are you using vhba-dkms when it's already in the Liquorix kernel?
Tested now to be sure but cdemu-deamon requires it for running on system autostart. It's also one of the recommends of cdemu-daemon, probably for this specifically.

Get the error

Code: Select all

Daemon autostart failed. Error: g-io-error-quark: Error calling StartServiceByName for net.sf.cdemu.CDEmuDaemon: Timeout was reached (24)

User avatar
Stevo
Developer
Posts: 14560
Joined: Fri Dec 15, 2006 7:07 pm

Re: Liquorix vs cdemu  [Solved]

#20 Post by Stevo »

vhba-module-update.zip
Here's the latest update attached:
You do not have the required permissions to view the files attached to this post.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

Post Reply

Return to “MX Help”