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?