Jump to content

Petr Fedchenkov

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Petr Fedchenkov

  1. On 5/10/2019 at 10:45 AM, DrPO said:

    I'm doing some driver work, and distribute these driver via DKMS package.

    when installed on armbian, there is some problem.

     

    Test Environment

    * Board: OrangePi Plus 2E

    * Armbian: 5.85

    * OS: Ubuntu 18.04.2

     

    Reproduce step

    * install dkms and kernel header: `sudo apt-get install dkms linux-headers-next-sunxi`

    * install some *-dkms package, acpi-call-dkms for example: `sudo apt-get install acpi-call-dkms`

    * you get some error in _/var/lib/dkms/acpi-call/1.1.0/build/make.log_

    ```

    DKMS make.log for acpi-call-1.1.0 for kernel 4.19.38-sunxi (armv7l)
    Fri May 10 14:56:03 CST 2019
    make: Entering directory '/usr/src/linux-headers-4.19.38-sunxi'
    Makefile:619: arch//Makefile: No such file or directory
    make: *** No rule to make target 'arch//Makefile'.  Stop.
    make: Leaving directory '/usr/src/linux-headers-4.19.38-sunxi'

    ```

     

    but if you manually build with `dkms` command, it built with no error.

    `sudo dkms build acpi-call/1.1.0`

     

    then I check the source of dkms at https://github.com/dell/dkms

    and found that in the postinst hook, ARCH variable is set to empty. so

    `ARCH= dkms build acpi-call/1.1.0`

    will get the same error as in the `apt-get install` command

     

    but ARCH is set to arm in `/etc/environment`

     

    finally, as manually build of *-dkms is OK, unable to auto install DKMS package is not a very big problem.

     

    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. 39 minutes ago, Igor said:

     

    Try:
    cd /usr/src/linux-headers-5.3.0-rc6-aml-g12/

    make scripts

     

    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