AnsweredAssumed Answered

help with mmap on cm-bf527

Question asked by pez3 on Nov 29, 2011
Latest reply on Dec 14, 2011 by sonic



currently i'm writing on my own uclinux char dev driver and want to use memory mapping.


to understand principles i wanted to test the mmap test provided with the kernel. i compiled mmap test into the kernel and modprobe the module. i also did the mknod to get /dev/simple.


but if i start the userspace program as it is in the doc ([]=mmap) suggested, it fails with error output: failed to mmap device: no such device or directory


i used the code example 2 in the doc


as i noticed (with printk statements) the drivers mmap routine isn't called...



can anybody help me getting mmap to run? do i have to change something into kernel config?


thank you for your help