-
Notifications
You must be signed in to change notification settings - Fork 131
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
Raspberry Pi 2 Incompatibility #33
Comments
According to the above link the DMA base hase moved from 0x20000000 to 0x3f000000 i tried to change that in pi-blaster.c : -#define DMA_BASE 0x20007000 recompiled, but GPIOs / PWM still does not seem to work |
maybe also worth to follow this: richardghirst#43 |
richardghirst seems to have fixed servoblaster (see comment in the above bug), he is now using mailbox commands to request memory and some more changes as far as i can see... i am not sure how easy it is to adapt to pi-blaster... the mailbox files look like they are open source from Broadcom so the could be copied to pi-blaster as well... then the different membases would need to be used in pi-blaster i guess... |
Servoblaster is the original repository this is a fork of as far as I know and it had no commit in the past 12 months, so how should that be more up to date than this? |
In case anyone cares... i started adapting richardghirsts changes mentioned above from http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=99115&p=699651#p699651 to pi-blaster... I just got my first pi-blaster PWM signal on my Pi 2 using that code... it did not seem very stable but that may be due to me adding -g to CFLAGS and maybe other problems... I did not try the code on my Pi 1 B+ either... will do so in the next days and maybe post updates. |
I tested my current state on my Pi 1 B+ and Pi 2... it is generating a PWM Signal on both, however i can currently see 2 issues:
So... still some work left ;) |
i didn't have a lot of time lately... still working on it though... and having fun :) my guess is that something is wrong in the setup of the PWM/CLK/DMA Registers but i haven't figured it out... with servoblaster the frequency on Pi2 is ok so i must be missing something... i'll keep you updated, maybe i'll find some time this weekend |
@phueper Any news on the Pi 2 issue? |
Any news? I just got a PI2 and am looking forward to this! |
Sorry... family kept me busy the last few weeks... I am planning to work on On Thu, Mar 19, 2015 at 2:57 AM, kboyington [email protected]
|
Really appreciate your efforts and hope you will find some time to fix it: the life of many robots depend on this :) |
@phueper Thanks for the update! Enjoy the weekend! Looking forward to the next commit! |
Still no good news, sorry... The problem still is that the frequency of the PWM is too high (~1kHz) the I will checkin my current code into my repo with lots of debugging in case Regards, Pattrick On Sun, Mar 22, 2015 at 3:09 AM, kboyington [email protected]
|
Hi, FINALLY... some good news... i think i have figured out the problem i had... wrong calculation of the wait trigger address for the DMA... i need to cleanup the code a little bit... probably will checkin a version sometime later today Regards, Pattrick |
I committed the fix into https://github.com/phueper/pi-blaster The code only worked by chance on the Pi1 since the Pi1, the calculation of the phys_fifo_addr was wrong. I am not quite ready for a Pull Request, some debug printfs need to be removed and i would also like to test the code on my Pi1... but if anyone wants to try the current state it should be working on Pi2 now... any feedback is appreciated Regards, Pattrick |
Thank you very much. I will test it on Pi2 as soon as possible. |
Quick Test on my Pi1 indicates that it is also still working on Pi1... so here comes the Pull Request |
Hi, I found 2 issues playing with phueper's fork:
My ugly workaround for both problems is at the moment to install and uninstall pi-blaster (sudo make (un)install) everytime i start my application. Cheers, |
Hi, Thanks for testing... The "failed to create mailbox device" message is maybe because you didn't I have not tried running with X, but others have reported problems with Cheers, Pattrick
|
I can confirm that X is not starting (screen remains dark) when pi-blaster is running... if i start pi-blaster after X everything seems to be OK. |
... i think i have an idea what the problem might be... expect an update today, maybe tomorrow... |
PR #38 updated... works for me now with startx while pi-blaster is running |
PI-Blaster is no longer compatible with the updated system image used since the release of the Raspberry Pi 2 http://direct.raspberrypi.org/forums/viewtopic.php?t=99115&p=690599
The text was updated successfully, but these errors were encountered: