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

new(driverkit/config): add build config for 6.1.0-rpi7-rpi-2712_1 #1323

Closed
wants to merge 3 commits into from

Conversation

Nabsku
Copy link

@Nabsku Nabsku commented Dec 15, 2023

No description provided.

@poiana
Copy link
Contributor

poiana commented Dec 15, 2023

Welcome @Nabsku! It looks like this is your first PR to falcosecurity/test-infra 🎉

@poiana
Copy link
Contributor

poiana commented Dec 15, 2023

Hi @Nabsku. Thanks for your PR.

I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana poiana added the size/S label Dec 15, 2023
@poiana poiana requested review from FedeDP and zuc December 15, 2023 14:40
@poiana
Copy link
Contributor

poiana commented Dec 15, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Nabsku
Once this PR has been reviewed and has the lgtm label, please assign maxgio92 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

/ok-to-test

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

Hi! Thanks for opening this PR!
Can you share uname -a on your debian rpi machine?

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

Of course!

It's a RaspiOS Debian running on a Pi5.

Linux node5 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

Thanks! I am trying to understand why we are not catching any rpi kernel in kernel-crawler: falcosecurity/kernel-crawler#192

We can try merging this one but i fear that without specifying kernelurls, driverkit won't be able to build any driver.

EDIT: unfortunately my PR on kernel-crawler is not enough :/ falcosecurity/kernel-crawler#192 (comment)

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

Am not the most proficient kernel guru but I can try and find these kernelurls, if that helps?

But it seems we've uncovered a bug in the crawler then?

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

But it seems we've uncovered a bug in the crawler then?

Exactly :)

Am not the most proficient kernel guru but I can try and find these kernelurls, if that helps?

Yes that would be great! If you check other debian configs in the same folders, you'll see how the kernelurls are added!

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

I believe/hope this is correct.

Now that I think of it, does the crawler look for kernels in the Raspberry repos?

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

Now that I think of it, does the crawler look for kernels in the Raspberry repos?

I don't think so, that's the problem :D

EDIT: i am trying locally to add http://archive.raspberrypi.com/debian to the list of repositories to be crawled.

@poiana poiana added size/M and removed size/S labels Dec 15, 2023
@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

Yay:

Building dependency tree  [####################################]  100%
{
  "debian": [
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.21-1+rpt1-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi1-rpi-v8_6.1.21-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi1-common-rpi_6.1.21-1+rpt1_all.deb"
      ]
    },
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.47-1+rpt2-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi2-common-rpi_6.1.47-1+rpt2_all.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi2-rpi-v8_6.1.47-1+rpt2_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb"
      ]
    },
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.47-1+rpt4-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi3-common-rpi_6.1.47-1+rpt4_all.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi3-rpi-2712_6.1.47-1+rpt4_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi3-rpi-v8_6.1.47-1+rpt4_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb"
      ]
    },
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.54-1+rpt2-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi4-rpi-v8_6.1.54-1+rpt2_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi4-rpi-2712_6.1.54-1+rpt2_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi4-common-rpi_6.1.54-1+rpt2_all.deb"
      ]
    },
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.58-1+rpt2-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi6-rpi-2712_6.1.58-1+rpt2_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi6-rpi-v8_6.1.58-1+rpt2_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi6-common-rpi_6.1.58-1+rpt2_all.deb"
      ]
    },
    {
      "kernelversion": "1",
      "kernelrelease": "1:6.1.63-1+rpt1-rpi-arm64",
      "target": "debian",
      "headers": [
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi7-rpi-v8_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-kbuild-6.1_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi7-rpi-2712_6.1.63-1+rpt1_arm64.deb",
        "http://archive.raspberrypi.com/debian/pool/main/l/linux/linux-headers-6.1.0-rpi7-common-rpi_6.1.63-1+rpt1_all.deb"
      ]
    }
  ]
}

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

Awesome!

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

If we are quick enough to merge the PR, i would let the next kernel-crawler pipeline run (tomorrow morning) create the new driverkit configs for us! Wdyt?

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

I'm all for it :) Is there anything left to do? If so just say the word!

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

I'm all for it :) Is there anything left to do? If so just say the word!

Nothing, as soon as my kenrel-crawler patch gets merged, i will tag a new release and tomorrow morning you will find Falco drivers built and published on download.falco.org!

@Nabsku
Copy link
Author

Nabsku commented Dec 15, 2023

Shall I close this PR? Probably not needed anymore, right? :) Thanks for your help!

@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

I think so! You are welcome, thanks for spotting the issue!

@Nabsku Nabsku closed this Dec 15, 2023
@FedeDP
Copy link
Contributor

FedeDP commented Dec 15, 2023

Tag created: https://github.com/falcosecurity/kernel-crawler/releases/tag/0.14.0

@FedeDP
Copy link
Contributor

FedeDP commented Dec 16, 2023

Oh I didn't notice the "1:" prefix in the output kernel release:

1:6.1.63-1+rpt1-rpi-arm64

Will need to fix this on Monday; sorry!

@FedeDP
Copy link
Contributor

FedeDP commented Dec 18, 2023

Ok fixed, and currently re running kernel-crawler: https://github.com/falcosecurity/kernel-crawler/actions/runs/7246238172.
Expect drivers to come alive in ~1h!

@FedeDP
Copy link
Contributor

FedeDP commented Dec 19, 2023

Unfortunately, it seems driverkit is not able to build the drivers for rpi debian kernels.
Here is the fix: falcosecurity/driverkit#314

@FedeDP
Copy link
Contributor

FedeDP commented Dec 20, 2023

We finally have prebuilt drivers for rpi debian kernels 😄
Thanks for your patience @Nabsku

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

Successfully merging this pull request may close these issues.

3 participants