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
Snapdragon start instructions don't work #11114
Comments
Try "px4 -s mainapp.config". I observed that some of the scripts copy second config file (px4.config) to adsp folder. From the content of it seems like it should be executed on qurt side. I couldn't get that working. So for starting qurt modules I am using qshell command from main config similar to https://github.com/PX4/Firmware/blob/master/posix-configs/eagle/init/rcS . This comments also indicates that this might be the current intended behavior. |
Ok turns out the command is:
It's just not documented anywhere. |
It should match the common posix code used by other linux based platfroms. |
I agree but that doesn't mean it shouldn't be noted anywhere! 😄 |
I also find it quite confusing. My personal preference would be to push everything into the binary itself. This makes debugging and deployment easier/obvious. |
@dagar so you would bake the config files into the binary? |
The problem is too that we don't have a generic way to have more than one autostart config for targets like Snapdragon or RPi. |
Yes, then at startup we respect the regular SYS_AUTOSTART param. There's also no reason the external script mechanism couldn't be preserved if someone really wanted it.
On Linux we're getting there. I want the vast majority of init to be unified across platforms. We simply miss too many trivial problems with this kind of code sprawl. |
I agree but I feel like config files like these should be actual files (and pushed like that) just because it's clearer and less magic. However, I'm all for unifying it all. |
What's needed (either way) is a proper package for deployment. PX4 needs to be installed somewhere on the system, including integration with the init system. Dumping all the files to a home directory and starting out of rc.local isn't great. In the snapdragon case the package would include both the linux binary, startup config, dsp dynamic library, qurt config file, and probably setup the area for parameter store and logging. We'd probably use systemd to manage the daemon. |
Yes, that all sounds reasonable. And in that case all the startup files should probably go either into |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing for now, can be improved if we get more support from people behind Snappy again. |
I could not figure out (anymore) how to actually start px4 on Snapdragon.
It's not clear reading through https://docs.px4.io/en/flight_controller/snapdragon_flight.html.
I tried the old command (see below) but it doesn't work anymore.
Any chance you could help @karliss? Thanks.
The text was updated successfully, but these errors were encountered: