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

Convert setup.sh to .bbio files #31

Open
ArcEye opened this issue Aug 2, 2018 · 3 comments
Open

Convert setup.sh to .bbio files #31

ArcEye opened this issue Aug 2, 2018 · 3 comments
Labels
good first issue Good for newcomers

Comments

@ArcEye
Copy link
Collaborator

ArcEye commented Aug 2, 2018

Issue by machinekoder
Fri Nov 3 08:20:27 2017
Originally opened as machinekit/machinekit#1310


Description

Early configurations used custom setup.sh bash scripts to configure pin muxing on the BBB. In the meantime, the BB universal IO has been introduced.

Unfortunately, the device tree overlay format has changed since the 3.8 kernel generation and all setup.sh files need to be modified. However, I sugged converting them to .bbio files so we don't face this problem again in the future.

In most cases, this is pretty much a copy and paste job and therefore great for beginners.

Example BBIO file:
https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS/CRAMPS.bbio

Example setup.sh: https://github.com/machinekit/machinekit/blob/master/configs/ARM/BeagleBone/Probotix/setup.sh

There is also a graphical BBIOConfig editor

Task

Find and convert setup.sh files in https://github.com/machinekit/machinekit/tree/master/configs/ARM/BeagleBone

@ArcEye
Copy link
Collaborator Author

ArcEye commented Aug 2, 2018

Comment by JTrantow
Wed Nov 8 22:37:06 2017


setup.sh also checks for PRU files. Is this redundant with run.py calling launcher.check_installation() in which case setup.sh could be removed?

@ArcEye ArcEye added the good first issue Good for newcomers label Aug 2, 2018
@ArcEye
Copy link
Collaborator Author

ArcEye commented Aug 2, 2018

Comment by JTrantow
Thu Nov 9 16:27:01 2017


I looked at configs/ARM/BeagleBone/Fabrikator-Mini-CRAMPS/run.py which uses launcher.load_bbio_file('cramps2_cape.bbio'). This works fine if you are launching the GUI and using run.py but what about if someone wants to run the config from the command line or desktop? setup.sh gets called from .hal no matter how the config is started.

Can launcher.load_bbio_file() get moved inside the .hal? Seems like this is where it belongs.

@ArcEye
Copy link
Collaborator Author

ArcEye commented Aug 2, 2018

Comment by machinekoder
Fri Dec 8 08:19:29 2017


@JTrantow I think that's a good idea.

The right place would be hardware.py (cramps.py) for the Python-based configs.

For HAL language files you can use loadusr config-pin -f cramp.bbio at the beginning of the file.

Let me know if it works.

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

No branches or pull requests

1 participant