Zalewa / bakingpi

Fun stuff with Raspberry Pi
0 stars 0 forks source link

Hi, I had a question: why the base address for the mailbox is 0x2000b880 on raspberry pi 2B? #1

Open afreecoder-zz opened 7 years ago

afreecoder-zz commented 7 years ago

First ,thank you for your code, I made my raspberry pi 2B run the screen code correctly, but I also had a question: why the base address for the mailbox is 0x2000b880 on raspberry pi 2B? I learned the lesson on http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/screen01.html. In the OK series lessons, the base address for the GPIO controller is 0x3f200000, not the same as 0x20200000, but why the base address for the mailbox is 0x2000b880 ? Thank you !

Zalewa commented 7 years ago

Unfortunately, I cannot answer this. That might be a question that can only be answered by RPi hardware designers. Different Pis have different addresses in several combinations, depending on your RPi version you will have to use different variants. There are different combinations for RPi 1, 2 and B+ and I'm afraid you can only learn about them by scouring the net. The bakingpi website has a fork on Github that changes the addresses to fit RPi 2.