Forum Discussion
Altera_Forum
Honored Contributor
13 years agoPorting non-mmu code to MMU -- MMU memcpy SEGV
Thanks in Advance. With the non-mmu nios2 our design defined sdram regions that we utilized for buffers in our custom device driver. **** device driver sharedMem = kmalloc( SHARED_MEMSIZE...
Altera_Forum
Honored Contributor
13 years agoHi,
--- Quote Start --- I've "THINK" I have properly requested four minor numbers for my driver. When I open "/dev/mine1" and try and do the mmap from user space the mmap function IS NOT entered!! So, I'm figuring I have done something incorrectly when doing the cdev_add and the driver funtions are not properly being pointed to --- but it looks like what Rubini has... --- Quote End --- What error code does the 'mmap' return ? It seems that you can open "/dev/mine1", so please check it in your function 'mine_open'. Kazu