All of lore.kernel.org
 help / color / mirror / Atom feed
* UIO Kernel Driver with Buildroot and QEMU
@ 2015-10-20 15:58 Kenneth Adam Miller
  2015-10-20 20:29 ` Kenneth Adam Miller
  2015-10-20 22:54 ` Greg KH
  0 siblings, 2 replies; 10+ messages in thread
From: Kenneth Adam Miller @ 2015-10-20 15:58 UTC (permalink / raw)
  To: kernelnewbies

So I'm building a uio kernel driver with buildroot, and I've gotten the
driver to compile, installed it and can insmod it in the final buildroot
target after booting the image with QEMU.

I'm on linux kernel version 3.14, and I followed the guide here:

https://www.kernel.org/doc/htmldocs/uio-howto/userspace_driver.html

And it describes the location on where the device file that should be
opened by userland code as either one of two locations:

/dev/uioX, with X being a number

or /sys/class/uio/uioX

But the each of following returns nothing:

ls /dev/uio*
ls /sys/class/uio/

After I compile the uio example that is provided in the linux source at
source/drivers/uio/uio.c and uio_dmem_genirq.c, and insmod them, I do
modprobe uio and modprobe uio_dmem_genirq and each of those return nothing.
However, I do see that /sys/modules/uio and /sys/modules/uio_dmem_genirq


What am I doing wrong? Or where are the respective device files that I'm
supposed to use in my userland driver process?

int fd = open("where is it!!?");
mmap(...., fd,..);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151020/0b4365c9/attachment.html 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-10-21  0:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 15:58 UIO Kernel Driver with Buildroot and QEMU Kenneth Adam Miller
2015-10-20 20:29 ` Kenneth Adam Miller
2015-10-20 21:56   ` Mandeep Sandhu
2015-10-20 22:55     ` Kenneth Adam Miller
2015-10-20 22:54 ` Greg KH
2015-10-20 23:40   ` Kenneth Adam Miller
2015-10-21  0:17     ` Greg KH
2015-10-21  0:28       ` Kenneth Adam Miller
2015-10-21  0:43         ` Greg KH
2015-10-21  0:48           ` Kenneth Adam Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.