- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also changed the tool chain to arm-linux-gnueabihf-,but it never finish making the kernel.(for wrong comprocessor)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex
Apologies on the delay.
Let me get back to you by this week.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex
The ioremap_nocache is no longer available starting from version 5.
You should try out version 4.20.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks to reply,
I'll try later, please do whatever you need to do to this thread.
Reguards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page