Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
455 Discussions

linux-socfpga issue : ioremap_nocache

CAlex
New Contributor II
1,104 Views

Hi,

 

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

CAlex_0-1680487438664.png

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.

0 Kudos
10 Replies
JingyangTeh
Employee
1,077 Views

Hi Alex


Did you include the io.h which the function is declared?

https://elixir.bootlin.com/linux/v5.0.21/C/ident/ioremap_nocache


Regards

Jingyang, Teh


0 Kudos
CAlex
New Contributor II
1,076 Views

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.

0 Kudos
CAlex
New Contributor II
1,076 Views

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

0 Kudos
JingyangTeh
Employee
1,005 Views

Hi Alex


Apologies on the delay.

Let me get back to you by this week.


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
973 Views

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


0 Kudos
CAlex
New Contributor II
966 Views

Hi,

 

Sorry it would be very difficult to share this for my permission limits.

I can provide some information instead:

 

My environment is as following:

kernel:6.0.0zImage-221234-g968dfc188ae5 linux-socfpga.

the download link is :altera-opensource/linux-socfpga: Linux development repository for socfpga (github.com)

My toolchain is arm-linux-gnueabihf- 

I make the kernel by the follow order:

       make ARCH=arm socfpga_defconfig

       make LOCALVERSION=zImage ARCH=arm -j <n>

To use the <asm/io.h>, you may need to link the "asm-generic" with "asm" for after making the asm file didn't exist.

 

You can use this toolchain by visit this website: https://www.acmesystems.it/arm9_toolchain

I attached my personal make file.

 

Reguards.

0 Kudos
JingyangTeh
Employee
929 Views

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


0 Kudos
JingyangTeh
Employee
888 Views

Hi Alex


The ioremap_nocache is no longer available starting from version 5.

You should try out version 4.20.


Regards

Jingyang, Teh


0 Kudos
CAlex
New Contributor II
885 Views

Hi,

Thanks to reply,

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

Reguards.

0 Kudos
JingyangTeh
Employee
845 Views

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


0 Kudos
Reply