• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Update failed for unipi-kernel-modules-dkms 1.60

    Scheduled Pinned Locked Moved Neuron Series
    3 Posts 2 Posters 985 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Joerg
      last edited by

      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.

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @Joerg
        last edited by

        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

        1 Reply Last reply
        Reply Quote 0
        • J
          Joerg
          last edited by

          @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

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post