markondej / fm_transmitter

Raspberry Pi as FM transmitter
1.31k stars 290 forks source link

mmap error #52

Open FOSSBOSS opened 7 years ago

FOSSBOSS commented 7 years ago

Cannot obtain access to peripherals (mmap error) I am using an Asus Tinkerboard, (Asus Pi) even under sudo I get this. The command I give is: sudo ./fm_transmitter -f 100.0 -r Aglass.mp3

in source: this traces back to: peripherals = mmap(NULL, 0x002FFFFF, PROT_READ | PROT_WRITE, MAP_SHARED, memFd, isBcm2835 ? 0x20000000 : 0x3F000000); close(memFd); if (peripherals == MAP_FAILED) { throw ErrorReporter("Cannot obtain access to peripherals (mmap error)"); }

I will look into the source...

markondej commented 7 years ago

I believe Asus Thinkboard has different chip peripherals so it is not possible to make this code working without changes.