okay, I've written a driver - Raspberry Pi Forums


what got me started on explained here. basically, accessing 1mhz timer requires root when done through /dev/mem. wrote kernel driver expose character-major-240 device (in experimental space) allow non-root read timer. doesn't allow write, , reads start clock's lsb, avoiding overhead of position management (which seems silly on 8 bytes anyway).

module loads, unloads, , reloads, , specially-coded function (*read)() works expected. have quick-and-dirty demo showing expect typical usage pattern.

give review , possible commitment raspberry pi kernel patches?

patches kernel best submitted pull requests on github page.

know major take lot of consideration.

i'm interested in how driver works though - i'm envisaging similar process being of significant interest gpio users, , i'd interested in how changed so. able put source online somewhere?


raspberrypi



Comments

Popular posts from this blog

Qualcuno mi sa dire perchè non va questo protocollo seriale ?

Prezzemolo!

play video