Jump to content

Petr Fedchenkov

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Petr Fedchenkov

  1. Hi! Faced a similar problem. As a workaround, I made a small script (in the attachment) that repack the package with postinst patches. Please try it, if you need. /bin/bash remakedkmsdeb.sh YOURDEB Unfortunately, it doesn't work with acpi-call-dkms (I try to modify after apt install --download-only acpi-call-dkms), but it works for my modules. remakedkmsdeb.sh
  2. Thank you for answer. Unfortunately, it doesn`t work (and no desire to do this manually after installing the package). root@aml:/usr/src/linux-headers-5.3.0-rc6-aml-g12# make scripts arch/arm64/Makefile:56: CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built HOSTCC scripts/selinux/genheaders/genheaders scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No such file or directory #include "classmap.h" ^~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/Makefile.host:90: scripts/selinux/genheaders/genheaders] Error 1 make[2]: *** [scripts/Makefile.build:497: scripts/selinux/genheaders] Error 2 make[1]: *** [scripts/Makefile.build:497: scripts/selinux] Error 2 make: *** [Makefile:1097: scripts] Error 2 But in a cloned repo from git it works, and I have already compiled a number of modules using files from git (for Ceph storage). But, for me the main problem is the lack of automation (I want to use dkms for building modules after kernel update), i.e. linux-headers seem to be attached, but they do not work properly.
  3. Hi, @balbes150 I want to use dkms to build the kernel modules I need. However, there is a problem with the linux-headers-aml-g12 package (at least for Debian Buster), where for some reason the scripts are built for x86_64. root@aml:~# file /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/mod/modpost /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/mod/modpost: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=37623a5bbaf64b5e167da1f3a2cf2e0e3aade20f, for GNU/Linux 3.2.0, not stripped Actually, there are 15 files in scripts directory with x86-64 arch (find /usr/src/linux-headers-5.3.0-rc6-aml-g12/scripts/ -name '*'|xargs file|grep x86-64). Could you please compile the scripts for the aarch64 architecture and rebuild this package?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines