Module.symvers - availability

Discussion in 'UDOO NEO' started by bgicu, Mar 21, 2016.

  1. bgicu

    bgicu New Member

    Joined:
    Mar 19, 2016
    Messages:
    4
    Likes Received:
    0
    I am trying to create a kernel loadable module (*.ko). My very first kernel module.
    Is the Module.symvers file available for the latest Udoo Neo image? Any documentation regarding develpment of drivers for Udoo boards is welcome.

    Thanks.
     
  2. bgicu

    bgicu New Member

    Joined:
    Mar 19, 2016
    Messages:
    4
    Likes Received:
    0
    Hi,
    In order to create a compatible kernel moduel with the UDOObuntu_neo_v2.0rc1 image I need the source code for this specific build( 3.14.56_udooneo_02202_gfeef1c3 )
    Is there a git tag/branch or maybe a downloadable pacakge with this setup?

    Thank you for your support.
     
  3. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    The kernel source is here and instructions for building a kernel are here .
     
  4. bgicu

    bgicu New Member

    Joined:
    Mar 19, 2016
    Messages:
    4
    Likes Received:
    0
    Thank you Jas-max.
    I still have the issue that the driver compiled with the latest version is not compatible with the UDOObuntu_neo_v2.0rc1 image.

    I would prefer to use the standard udoo image insted of custom one.

    Is there a tag/branch to get the sources for the UDOObuntu_neo_v2.0rc1 variant.
    Thanks.
     
  5. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    UDOO Kernel is currently in rolling release, we are building it and pushing it to the repository several times during the month.
    You can safely use the latest kernel (linked by jas-mx). Please note we are also going to release a new SD release with the newer kernel.
    We can include `Module.symvers` in next releases, but I think that it is too late to include it in the very next one. Why module do you have troubles to load it?
     
  6. bgicu

    bgicu New Member

    Joined:
    Mar 19, 2016
    Messages:
    4
    Likes Received:
    0
    Thank you Francesco.

    In order to setup an IPC with the M4 core we need an own Kernel module to allocate some resources.
    Due the different Symbol Module layout the kernel is not loading the driver.

    I managed to compile the latest kernel and the own image is created. Is there a command/tool to create the SD loadable Image?
     
  7. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    You do not need to create a loadable SD image from the scratch (but if you want to, you can: here there is an explanation on how we do the SD images)
    Just flash an SD image over an SD card, then replace the kernel in the SD card with the one built by yourself (see the last section of this document)
     
    delba and Andrea Rovai like this.

Share This Page