You're trying to directly access the hardware from userspace which you can't do. You have change the kernel to support it I'm afraid.

- Trevor