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 Rock 2A and 2F #7820

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

CodeChenL
Copy link
Contributor

Description

  1. Add support for Rock 2A and 2F
  2. use systemd.link instead of udev rule(99-radxa-aic8800.rules)

How Has This Been Tested?

  • ./compile.sh build BOARD=rock-2a BRANCH=vendor BUILD_DESKTOP=yes BUILD_MINIMAL=no DESKTOP_APPGROUPS_SELECTED= DESKTOP_ENVIRONMENT=gnome DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base KERNEL_CONFIGURE=no RELEASE=noble DOWNLOAD_MIRROR=china
  • ./compile.sh build BOARD=rock-2f BRANCH=vendor BUILD_DESKTOP=yes BUILD_MINIMAL=no DESKTOP_APPGROUPS_SELECTED= DESKTOP_ENVIRONMENT=gnome DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base KERNEL_CONFIGURE=no RELEASE=noble DOWNLOAD_MIRROR=china

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... labels Feb 11, 2025
@CodeChenL
Copy link
Contributor Author

@RadxaStephen @lsj123lsjlsj @RadxaYuntian Please review together

Copy link
Collaborator

@RadxaYuntian RadxaYuntian left a comment

Choose a reason for hiding this comment

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

Might be better to make AIC88800 link renaming a shared function.

config/boards/rock-2a.csc Outdated Show resolved Hide resolved
config/boards/rock-2f.csc Outdated Show resolved Hide resolved
config/boards/rock-2f.csc Outdated Show resolved Hide resolved
@CodeChenL
Copy link
Contributor Author

CodeChenL commented Feb 12, 2025

Hi @amazingfate , i see arm64: dts: rk3528: use lima driver for gpu was submitted by you, could you please tell me if you tested glmark-es2 under gnome X11?
I run it on rock2f with only 80-90 points, under wayland with 280-300 points
Can achieve 280-300 points when running glmark-es2 using xfce with radxa os bullseye
I'm not sure if the weak performance under x11 is a common thing with armbian or just rock2.

@github-actions github-actions bot added the Framework Framework components label Feb 12, 2025
@@ -51,4 +51,12 @@ function post_install_kernel_debs__install_aic8800_dkms_package() {
declare -ag if_error_find_files_sdcard=("/var/lib/dkms/aic8800*/*/build/*.log")
use_clean_environment="yes" chroot_sdcard_apt_get_install "/tmp/${aic8800_dkms_file_name} /tmp/aic8800-firmware_${latest_version}_all.deb"
use_clean_environment="yes" chroot_sdcard "rm -f /tmp/aic8800*.deb"
use_clean_environment="yes" chroot_sdcard "mkdir -p /usr/lib/systemd/network/"
use_clean_environment="yes" chroot_sdcard 'cat <<- EOF > /usr/lib/systemd/network/50-radxa-aic8800.link
[Match]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a MAC prefix match as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

How about Driver=?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't it be more specific to affect AIC drivers only?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The driver for the aic8800 is reported as ID_NET_DRIVER=usb, and the other cards are the real driver name, e.g. rtw_8822bu.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And the aic8800 driver for other interfaces will not be affected by the system's default systemd.link rule, I think the current change is appropriate

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please also check the driver name for SDIO version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

armbian currently has no products or configurations that support the sdio aic8800.

Copy link
Contributor

Choose a reason for hiding this comment

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

hinlink ht2 is the one with aic8800 sdio, while this board is not mainlined and the driver is inside bsp kernel.

@amazingfate
Copy link
Contributor

Hi @amazingfate , i see arm64: dts: rk3528: use lima driver for gpu was submitted by you, could you please tell me if you tested glmark-es2 under gnome X11? I run it on rock2f with only 80-90 points, under wayland with 280-300 points Can achieve 280-300 points when running glmark-es2 using xfce with radxa os bullseye I'm not sure if the weak performance under x11 is a common thing with armbian or just rock2.

I have tested with hinlink ht2, ubuntu noble gnome x11 session the glmark-es2 score is also 80~90. While glmark2-es2-wayland is better. And score of glmark-es2 under wayland session can reach to 120.

@CodeChenL
Copy link
Contributor Author

Hi @amazingfate , i see arm64: dts: rk3528: use lima driver for gpu was submitted by you, could you please tell me if you tested glmark-es2 under gnome X11? I run it on rock2f with only 80-90 points, under wayland with 280-300 points Can achieve 280-300 points when running glmark-es2 using xfce with radxa os bullseye I'm not sure if the weak performance under x11 is a common thing with armbian or just rock2.

I have tested with hinlink ht2, ubuntu noble gnome x11 session the glmark-es2 score is also 80~90. While glmark2-es2-wayland is better. And score of glmark-es2 under wayland session can reach to 120.

Thanks for the test, that doesn't look like I did anything wrong or missed any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Framework components Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

3 participants