foxcube2
Posts: 1
Joined: Thu Jun 18, 2020 10:54 am

Kernel module IO mapping problem.

Sat Jul 25, 2020 6:41 pm

I'm having trouble mapping to peripherals in a kernel module using io-mapping.h on an RPi4. I'm a beginner at kernel modules.

What address do I use for the peripherals base? 0xFE000000? I tried that and although it gives me a sensible looking address, it also gives a non-terminal segmentation fault after insmod. It will let me access something using that address in the initialisation routine without any error, although it is obviously not looking at the peripheral registers I expect.

Is this a valid method, or am I barking up the wrong tree?

Return to “Advanced users”