Forum Discussion

CAlex's avatar
CAlex
Icon for Contributor rankContributor
3 years ago

linux-socfpga issue : ioremap_nocache

Hi,

I want to use ioremap_nocache() function in Kernel module, but the following error occurred:

I've tried almoset all the branchs from 5.10 to 5.15

But the error still exist.

I wonder how to fix it.

Reguards.

10 Replies

  • CAlex's avatar
    CAlex
    Icon for Contributor rankContributor

    Hi,

    Yes I included <asm/io.h>,<linux/io.h>,<asm-generatic/io.h>

    And I checked socfpga-5-10 to socfpga-5-15 LTSs,maked them as zImage and make my module.

    The result is the same.

    My tool chain is arm-linux-gnueabi-

    Reguards.

    • CAlex's avatar
      CAlex
      Icon for Contributor rankContributor

      I also changed the tool chain to arm-linux-gnueabihf-,but it never finish making the kernel.(for wrong comprocessor)

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    Apologies on the delay.

    Let me get back to you by this week.


    Regards

    Jingyang, Teh


  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    Is it possible if you could zip your project and share it with me.

    I could not find any reported issue or any solution to thee issue.

    Let me try to reproduce the issue and hopefully find the solution for you.


    Regards

    Jingyang, Teh


  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    Could you give me somemore time to try out the steps provided by you.

    I will get back to you as soon as possible.


    Regards

    Jingyang, Teh


  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    The ioremap_nocache is no longer available starting from version 5.

    You should try out version 4.20.


    Regards

    Jingyang, Teh


    • CAlex's avatar
      CAlex
      Icon for Contributor rankContributor

      Hi,

      Thanks to reply,

      I'll try later, please do whatever you need to do to this thread.

      Reguards.

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 10 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


    Regards

    Jingyang, Teh