Skip to content
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

Adding support for all Raspberry Pi models #17

Open
vanvught opened this issue Apr 2, 2018 · 3 comments
Open

Adding support for all Raspberry Pi models #17

vanvught opened this issue Apr 2, 2018 · 3 comments

Comments

@vanvught
Copy link

vanvught commented Apr 2, 2018

In order to support all Raspberry Pi models, what would be the best naming convention for defines?
Any other considerations?
We need to different memory barriers based on RPi model. The same for the GPIO base address.

@LdB-ECM
Copy link

LdB-ECM commented Aug 27, 2018

I have actually completed the port for all the Pi models there is no requirement for any additional defines you can detect them all and correct for them in platformint.c. For example for the GPIO address just first check if address 0x20980040 has the value 0x4F54280A (that is the USB vendor ID) .. if you don't see it then the IOBase is 0x3F000000 and you can confirm it by reading 0x3F980040 and it should have that value. From there you have access to the Pi mailbox and you can request memory split etc. You load all the stuff you need into your drivers usually using the csr pointer and when initialize.c does an open on the drivers they have the right settings.

@vanvught
Copy link
Author

@LdB-ECM Thanks. Are you going to push the code to this GitHub repository?

@LdB-ECM
Copy link

LdB-ECM commented Aug 27, 2018

yes just need to format for directories
If anyone would like to confirm we have no bugs I have compiled version
https://github.com/LdB-ECM/Exchange/tree/master/Xinu
A quick overview of my attack on the code to get that out is given here.
https://github.com/LdB-ECM/Docs_and_Images/blob/master/Documentation/Xinu.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants