-
Notifications
You must be signed in to change notification settings - Fork 164
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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.
@dpoulios, left some comments, the WIP commit must be addressed....
pkg/u-boot/Dockerfile
Outdated
@@ -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 |
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.
You don't need this change AS -> as
pkg/u-boot/patches/patches-v2024.10-rc2/0002-0007-tweak-uefi-dt-selection.patch.patch
Outdated
Show resolved
Hide resolved
Only the kernel update commit @eriknordmark , so @dpoulios doesn't need to include the kernel hash update here... |
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]>
a1972fc
to
0bf74d6
Compare
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 just one small comment, will approve to trigger the tests...
0bf74d6
to
fdf2a73
Compare
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]>
fdf2a73
to
d40de7a
Compare
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]>
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. |
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.
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... |
pkg/u-boot/patches/patches-v2024.10-rc2/0004-Disable-mkeficapsule-tool.patch
Outdated
Show resolved
Hide resolved
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]>
c075ca1
to
e7106fe
Compare
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.
LGTM, let's trigger tests....
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.
Triggering tests....
No description provided.