joan wrote:Anything which uses userland DMA will require updating above and beyond the peripheral base address move (0x20000000 -> 0x3F00000) to work on the Pi 2.
Looking in servo.d I see
Code: Select all
#define DMA_BASE 0x20007000
#define DMA_LEN 0x24
#define PWM_BASE 0x2020C000
#define PWM_LEN 0x28
#define CLK_BASE 0x20101000
#define CLK_LEN 0xA8
#define GPIO_BASE 0x20200000
#define GPIO_LEN 0x100
#define PCM_BASE 0x20203000
#define PCM_LEN 0x24
Code: Select all
#define DMA_BASE 0x3F007000
#define DMA_LEN 0x24
#define PWM_BASE 0x3F20C000
#define PWM_LEN 0x28
#define CLK_BASE 0x3F101000
#define CLK_LEN 0xA8
#define GPIO_BASE 0x3F200000
#define GPIO_LEN 0x100
#define PCM_BASE 0x3F203000
#define PCM_LEN 0x24