- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey guys, right now I am trying to make a linux module to communicate with hardware on my CycloneV SOC running Linux 3.7. So far I have register_chrdev() followed by request_mem_region() and then ioremap(). This all appears to work and returns a virtual kernel pointer (-1064394752) but when I try to talk to my IPcore in hardware using ioread32, readl, ect I get all 0's. Am I missing a step or is there a better way to address hardware from the kernel space?
FYI a simple memory map from user space works perfectly so I am certain the driver code is the issue. Thanks, ZackLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You'll need to post some actual code so we can try to find what's wrong with it.

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