-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low Peripheral mode? #13
Comments
Yeah - low peripheral mode is the default boot environment. If you want to set high peripheral mode, you can do it explicitly in config.txt using arm_peri_high=1 (source: https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md). You'll need to do quite a bit of refactoring to make the kernel in this tutorial support that though... All the best, |
Essentially "Low Peripheral mode" maps the peripherals over the last 64mb of RAM. People might wish to enable High Peripheral mode (full 35-bit address map) so as to avoid "losing" that last 64mb of RAM. There are various side effects, however, of doing this and it would require some refactoring of the kernel (even in this simple tutorial) to make it work. This thread does a good job of explaining the nuances: raspberrypi/firmware#1374. Hope it helps! |
Oh I see! Thanks a lot of the info, that cleared up a lot for me. |
I was confused by the exact same issue when reading the BCM2711 Peripherals manual. Maybe it'd be nice to add little note regarding this in Part 4? Amazing resource by the way. Appreciate it a lot, and already looking forward to the next steps in this journey. |
Thanks @guichristmann, it's a good point! I've added a note at the beginning of part4-miniuart as you suggested 👍 |
I was a bit confused about the
PERIPHERAL_BASE
being set to0xFE000000
in these examples as the BCM2711 doc is listing a different base address in the docs. Then I stumbled over this sentence in the beginning of the docs:So I'm assuming you are using this Low Peripheral mode? The docs say you need to specifically enable it though but do not seem to talk further about it. Where are you enabling this mode or is the wording confusing and its always enabled by default?
Also what is the use of it?
The text was updated successfully, but these errors were encountered: