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

Add support for OnLogic FR201 device #4382

Merged
merged 8 commits into from
Nov 6, 2024

Conversation

dpoulios
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.93%. Comparing base (d1e13b8) to head (a1972fc).
Report is 112 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4382      +/-   ##
==========================================
- Coverage   21.05%   20.93%   -0.13%     
==========================================
  Files          13       13              
  Lines        2878     2895      +17     
==========================================
  Hits          606      606              
- Misses       2146     2163      +17     
  Partials      126      126              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dpoulios, left some comments, the WIP commit must be addressed....

README.md Outdated Show resolved Hide resolved
pkg/dom0-ztools/rootfs/etc/init.d/000-mod-params Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
kernel-commits.mk Outdated Show resolved Hide resolved
@@ -1,11 +1,11 @@
FROM lfedge/eve-alpine:591df01e581889c3027514c8a91feaca1c8ad49f AS build-base
ENV BUILD_PKGS bash binutils-dev build-base bc bison flex openssl-dev python3 swig dtc
FROM lfedge/eve-alpine:591df01e581889c3027514c8a91feaca1c8ad49f as build-base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this change AS -> as

pkg/u-boot/Dockerfile Show resolved Hide resolved
@eriknordmark
Copy link
Contributor

@rene is part of this in #4395 ?

@rene
Copy link
Contributor

rene commented Oct 24, 2024

@rene is part of this in #4395 ?

Only the kernel update commit @eriknordmark , so @dpoulios doesn't need to include the kernel hash update here...

rene and others added 5 commits October 25, 2024 17:09
Add support to OnLogic FR201 device, based on the Raspberry Pi 4 Compute Module (CM4):

- Migrate to u-boot v2024.10-rc2
- Provide device tree overlay for the TPM chip
- Provide SMBIOS information for the device
- Provide custom boot parameters for the device

Signed-off-by: Renê de Souza Pinto <[email protected]>
If the OnLogic FR201 device is detected, load the corresponding device
tree. Also, set ttyS0 and tty0 as the default consoles, eMMC as default
installer device and NVMe (sdb) as the default persist device.

Signed-off-by: Renê de Souza Pinto <[email protected]>
- Enables USB2 ports of FR201 in u-boot (and consequently in grub) using
the XHCI USB controller (with XHCI_BRCM device driver)
- Removes unneeded support for the old DWC2 USB controller

Signed-off-by: Dimitrios Poulios <[email protected]>
eve-kernel creates a dedicated device tree for OnLogic's FR201, based
on RaspberryPi CM4 device tree (commit: bad2b4454467)

Signed-off-by: Dimitrios Poulios <[email protected]>
Cleanup u-boot dockerfile and patches for the old and new version
(v2024.10-rc2)

Signed-off-by: Dimitrios Poulios <[email protected]>
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just one small comment, will approve to trigger the tests...

@eriknordmark
Copy link
Contributor

The riscv build failed in https://github.com/lf-edge/eve/actions/runs/11522045471?pr=4382

README update on how to use EVE on the OnLogic FR201 device

Signed-off-by: Dimitrios Poulios <[email protected]>
This commit updates the kernel version for arm64 on branches
6.1.106 & 6.1.112 to enable support for the rtc device on
OnLogic FR201 board.

eve-kernel-arm64-v6.1.106-generic
    3d5519df04f1: arm64: make rtc_pcf85063 driver builtin

eve-kernel-arm64-v6.1.112-generic
    4f8bebb80835: arm64: make rtc_pcf85063 driver builtin

Signed-off-by: Dimitrios Poulios <[email protected]>
@dpoulios
Copy link
Contributor Author

dpoulios commented Nov 1, 2024

The riscv build failed in https://github.com/lf-edge/eve/actions/runs/11522045471?pr=4382

The riscv64 build fails because the package gnutls-dev (needed to build the updated u-boot) is not available in alpine 3.16 for risc.
It becomes available in 3.20. Should we update alpine?

Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It becomes available in 3.20. Should we update alpine?

Can't we work around it for now? We can update Alpine to 3.20, but it can bring some other issues in other packages; that would be nice to resolve in a dedicated PR, I would say.

So, we

  • either postpone this PR merge until we do the Alpine upgrade to 3.20 in a dedicated PR
  • or introduce a workaround here for 3.16 and do the upgrade later

Our option depends on how urgent we expect the OnLogic device support.

@dpoulios
Copy link
Contributor Author

dpoulios commented Nov 4, 2024

It becomes available in 3.20. Should we update alpine?

Can't we work around it for now? We can update Alpine to 3.20, but it can bring some other issues in other packages; that would be nice to resolve in a dedicated PR, I would say.

So, we

* either postpone this PR merge until we do the Alpine upgrade to 3.20 in a dedicated PR

* or introduce a workaround here for 3.16 and do the upgrade later

Our option depends on how urgent we expect the OnLogic device support.

Ok, I was able to build it without the gnutls_dev package. This is needed just to build the mkeficapsule tool of u-boot. So, we can safely disable it.

I will upload a patch shortly.

@rene
Copy link
Contributor

rene commented Nov 4, 2024

It becomes available in 3.20. Should we update alpine?

Can't we work around it for now? We can update Alpine to 3.20, but it can bring some other issues in other packages; that would be nice to resolve in a dedicated PR, I would say.
So, we

* either postpone this PR merge until we do the Alpine upgrade to 3.20 in a dedicated PR

* or introduce a workaround here for 3.16 and do the upgrade later

Our option depends on how urgent we expect the OnLogic device support.

Ok, I was able to build it without the gnutls_dev package. This is needed just to build the mkeficapsule tool of u-boot. So, we can safely disable it.

I will upload a patch shortly.

Thank you @dpoulios , that's perfect...

Don't build mkeficapsule tool in u-boot to fix riscv64 build. The latest
u-boot requires gnutls-dev package which is not available in alpine 3.16
for riscv64 (alpine 3.20 is needed).

Signed-off-by: Dimitrios Poulios <[email protected]>
Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's trigger tests....

Copy link
Contributor

@rene rene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triggering tests....

@eriknordmark eriknordmark merged commit 8e60e96 into lf-edge:master Nov 6, 2024
65 of 95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants