-
Notifications
You must be signed in to change notification settings - Fork 22
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
Initial yocto support #240
base: master
Are you sure you want to change the base?
Conversation
b77b113
to
6cdc7f0
Compare
@bhargavdas Wondering if we can start with a proven mtda platform for the initial support. Beaglebone black might be a good candidate to start with. All you need is the poky repo. Starting with such a platform will give us some idea on how much of things we can reuse, and how we can align our existing implementation to achieve that. |
https://github.com/vj-kumar/mtda/blob/vijai/yocto/kas/yocto/bbb.yml Initial yocto bbb yml file. Builds fine. |
I agree, but I don't have a beaglebone black to test. Though I can build an image using this layer and ask someone to test it. |
I have one and I can lend it to you. |
Sounds good :) |
|
|
Initial checks on beaglebone black looks fine. service
mtda-cli help
Next tasks before dropping WIP tag
|
Somehow
|
@chombourger @vj-kumar , Do I need to add / load any modules or dts entries ? Need a starting point to start debugging. |
Is CONFIG_GPIO_SYSFS kernel config set? zcat /proc/config.gz|grep GPIO |
After multiple rebuilds (with different kernels ) I found that Initial gpio control tests |
9fe1015
to
02db081
Compare
Update: gpio controls validated by checking sysfs values of |
meta-mtda/recipes-core/usb-otg/mtda-usb-functions/mtda-usb-functions.service
Outdated
Show resolved
Hide resolved
363d823
to
06e0e40
Compare
CI fails on the following reuse errors:
|
06e0e40
to
d29c132
Compare
|
||
S = "${WORKDIR}/working-repo" | ||
|
||
do_gen_working_repo() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chombourger @vj-kumar Please review the SRI_URI changes.
Let's hold this PR for few more days, until python3-daemon recipe gets merged in meta-python |
26b3c14
to
0f2c681
Compare
0f2c681 |
@chombourger , @vj-kumar this PR is ready to merge now. |
Signed-off-by: bhargavdas <[email protected]>
Signed-off-by: Bhargav Das <[email protected]>
Signed-off-by: Bhargav Das <[email protected]>
Signed-off-by: Bhargav Das <[email protected]>
0f2c681
to
9d4198c
Compare
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build image | ||
if: github.ref == 'refs/heads/master' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are wanting PR builds to check Yocto builds then this line should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh understood now, then we can keep this I guess, I have already checked the builds. Checking each PR build might take quite a lot of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea how long it would take? I am worried that Yocto support could easily get broken if not checked regularly
maybe we need to implement sstate caching like done in https://github.com/siemens/meta-coral ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more than 1hr in a 16 core machine. But I believe the machines provide by github actions are quite low powered.
We can only build the mtda package instead of building the whole image. Let me check in a similar machine for the same , will get a rough idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added this stage (2f0a9f9) to build only the mtda package, please assign a check
tag to check how much time it takes.
I triggered a mtda package build yesterday in a fairly older machine the build took around 4hrs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the space offered by the github ci machine are enough need find alternate methods :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chombourger @vj-kumar how should we handle the ci for yocto since github's runners run out of space. Shall we run locally once a week ? or hook a self hosted runner? Suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhargavdas You should probably enable rm_work, which will at least help with the space usage issue.
Signed-off-by: Bhargav Das <[email protected]>
@chombourger , What should be the approach for this PR ? Since the runners provided by GH are not powerful enough shall I setup a build at my end locally and publish results weekly or monthly in some form here ? |
Yocto recipes for mtda.
Yocto Compatibilty
Release: v3.4 , honister (since the overriding syntax has changed and are not backward compatible)
What's been done
Status
What works
What doesn't work
Tested on
Maintenance Strategy (suggestion)
Thing to review now for Maintainers