Comments (3)
Changes will need to be made to adapt these Pi1 A/B tutorials for Pi2 and Pi3.
The first change is that the memory mapped I/O space moved from 0x2000000 on early Pi up to 0x3f000000 to allow for the larger memory being added to these.
Second, the GPIO header went from 26 to 40 pins, which resulted in the OK/ACT LED moving from GPIO 16 to GPIO47 (i think).
I think there may be some more code changes will be needed when it comes to the screen series tutorials.
Please see Issue 12 and Issue 16 for more tips on how to get these working.
Also take a look at the excellent bare metal code examples from Dave Welch also here on github and referred to be the bare metal forum on the Raspberry Pi site.
It is cool to see more people interested in these tutorials, and with some experimentation and research, as well as a lot of testing, hopefully we can figure out how to update these for newer Pi and add more and more OS features....
from bakingpi-www.
I would like it too. :)
I'm doing Computer Science in my university here in Brazil and I would love to see an update in this tutorial. I think my biggest difficulty would be to make the Pi "see and execute" my code.
I guess that would be setting the Program counter to the code, the stack and data pointer correctly...
I'm tryng to the see the processor manual to see where all these adresses are. :)
Thank you. :D
from bakingpi-www.
Has anyone managed to identify the precise memory addresses for the Raspberry Pi 4 LED (not just an estimate: I think 0x2000000 is possibly out by a factor of 10??)?
In the tutorial, there is this additional unexplained caveat that means I really don't know where to start when trying to figure out the memory mapped addresses on the Pi 4: For added confusion, the manual uses a different addressing system. An address listed as 0x7E200000 would be 0x20200000 in our OS.
Any hints most appreciated!
from bakingpi-www.
Related Issues (20)
- OK01 Section 2 and template.tar.gz
- Makefile "clean" completely removes build/ subdirectory rather than content
- OK02 working on Raspberry Pi 2 B (with changes needed) HOT 14
- OK04 Text Typo line 39
- ok04_extension example code
- lesson 8: screen 03 on Raspberry Pi 2 HOT 3
- ok04 - wait method implementation missing the method declaration
- Which toolchain to use for Raspberry Pi 2 Model 2
- Framebuffer text approach
- GPIO Address different from the datasheet HOT 2
- Newer Pi Linux doesn't do ATAGS by default (cmdline example)
- I could not make the screen01 work on my Raspberry Pi 2B, help HOT 1
- Add information for 3B+ Model HOT 2
- C++ ( or C ) HOT 1
- Make is not a command HOT 1
- OK04 Questions
- screen01 Questions HOT 1
- kernel not booting
- OK01 odd behavior HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bakingpi-www.