Update failed for unipi-kernel-modules-dkms 1.60



  • When updating via apt the build process fails on Neuron M103:

    Loading new unipi-1.60 DKMS files...
    It is likely that 5.10.11-v7+ belongs to a chroot's host
    Building for 5.10.11+, 5.10.11-v7+, 5.10.11-v7l+ and 5.10.11-v8+
    Building initial module for 5.10.11+
    Error!  Build of unipi.ko failed for: 5.10.11+ (armv7l)
    Consult the make.log in the build directory
    

    The make.log shows:

    DKMS make.log for unipi-1.60 for kernel 5.10.11+ (armv7l)
    Mo 8. Feb 11:33:06 CET 2021
    make: Verzeichnis „/usr/src/linux-headers-5.10.11+“ wird betreten
      CC [M]  /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_spi.o
      CC [M]  /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_iio.o
      CC [M]  /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_gpio.o
      CC [M]  /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_uart.o
    /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_spi.c: In function ‘neuronspi_spi_probe’:
    /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_spi.c:1322:23: error: ‘struct spi_controller’ has no member named ‘kworker_task’; did you mean ‘kworker’?
      if (spi->controller->kworker_task)
                           ^~~~~~~~~~~~
                           kworker
    /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_spi.c:1323:39: error: ‘struct spi_controller’ has no member named ‘kworker_task’; did you mean ‘kworker’?
       sched_setscheduler(spi->controller->kworker_task, SCHED_FIFO, &rt_param);
                                           ^~~~~~~~~~~~
                                           kworker
    make[1]: *** [scripts/Makefile.build:279: /var/lib/dkms/unipi/1.60/build/unipi/src/unipi_spi.o] Fehler 1
    make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
    make: *** [Makefile:1808: /var/lib/dkms/unipi/1.60/build/unipi] Fehler 2
    make: Verzeichnis „/usr/src/linux-headers-5.10.11+“ wird verlassen
    make: Verzeichnis „/usr/src/linux-headers-5.10.11+“ wird betreten
      CC [M]  /var/lib/dkms/unipi/1.60/build/rtc-unipi/rtc-unipi.o
    /var/lib/dkms/unipi/1.60/build/rtc-unipi/rtc-unipi.c: In function ‘rtc_unipi_probe’:
    /var/lib/dkms/unipi/1.60/build/rtc-unipi/rtc-unipi.c:666:6: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
          struct nvmem_config nvmem_cfg = {
          ^~~~~~
      MODPOST /var/lib/dkms/unipi/1.60/build/rtc-unipi/Module.symvers
      CC [M]  /var/lib/dkms/unipi/1.60/build/rtc-unipi/rtc-unipi.mod.o
      LD [M]  /var/lib/dkms/unipi/1.60/build/rtc-unipi/rtc-unipi.ko
    make: Verzeichnis „/usr/src/linux-headers-5.10.11+“ wird verlassen
    

    I did a reboot, did a "apt purge unipi-kernel-modules-dkms", "apt install unipi-kernel-modules-dkms" with exactly the same output.


  • administrators

    Hello @Joerg,
    this was caused by RPI releasing a new kernel (5.10). Since we release the appropriate kernel modules manually after testing, the APT decided to install the module via DKMS, which was also not prepared for the new kernel.

    The unipi-kernel-modules 1.62 fix this. apt update && apt upgrade should fix it.

    Best regards,
    Martin



  • @Joerg said in Update failed for unipi-kernel-modules-dkms 1.60:

    nipi-kernel-modules

    Hi @Martin-Kudláček ,

    thank you for the quick answer - but after the "apt purge unipi-kernel-modules-dkms" the system did not want to boot anymore, so I decided to do a fresh install as described in README.apt.

    Best regards
    Jörg


Log in to reply