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

Panfrost GPU Driver #7

Open
tianjianh opened this issue Aug 16, 2024 · 8 comments
Open

Panfrost GPU Driver #7

tianjianh opened this issue Aug 16, 2024 · 8 comments

Comments

@tianjianh
Copy link

Do we have any compiled images with panfrost driver enabled or any instructions on how to compile with it?

I try to enable it in the linux config and then compile but always get errors.

Thank you.

@SamulKyull
Copy link
Contributor

At present, all versions enable the Panforst driver already, Panforst is normally used, but because the use of sunxi-drm, mesa driver does not support this new drm driver, you need to manually compile sunxi-drm_dri.so to support it. Patches located at: https://github.com/AvaotaSBC/buildroot-external-avaota/tree/main/patches. The buildroot is supported with GPU + Mesa driver

@tianjianh
Copy link
Author

tianjianh commented Aug 17, 2024

Thank you for your quick response! Now I know the reason why mesa complains about the driver.

Could you please elaborate a bit more on how to manually compile sunxi drm? Should I just apply the patches to the source and run the build script? Sorry I am a newbie and don’t have much experience.

By the way, I think the default config does not turn on the Panfrost in the driver section? Should I turn it on during the built or leave it off?

Thank you again!

@tianjianh
Copy link
Author

Accidentally close the issue, reopen it.

@SamulKyull
Copy link
Contributor

SamulKyull commented Aug 17, 2024

We already enable Panforst driver with config
CONFIG_AW_DRM_PANFROST=y
This version of panforst add support fot Mali-G57 and V-F Table
source: https://github.com/AvaotaSBC/linux/tree/main/bsp/drivers/gpu/panfrost

You can try to build buildroot and copy the mesa driver to AvaotaOS, and enable dlcd0 in dts which will enable the GPU support, enable dlcd0 is a bug for right now, otherwise the panforst will register as /dev/dri/card0 and cause error

@Va12423
Copy link

Va12423 commented Aug 19, 2024

vai ter suporte pra Mali-G68

@tianjianh
Copy link
Author

@SamulKyull Thanks for the information. When I try to build the buildroot with default config, I get the following error:

ERROR: Feature "opengles2": Forcing to "ON" breaks its condition:
NOT WIN32 AND NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND
Condition values dump:
WIN32 = ""
WATCHOS = "0"
QT_FEATURE_opengl_desktop = "ON"
GLESv2_FOUND = "TRUE"

Could you please help? There seems to be a conflict between opengl and gles. Thank you!

@tianjianh tianjianh reopened this Aug 27, 2024
@YuzukiTsuru
Copy link
Contributor

try to disable QT_FEATURE_opengl_desktop package in buildroot

@tianjianh
Copy link
Author

@SamulKyull Thank you for your help and the information.

I tried to compile the buildroot and copied the sunxi-drm_dri.so to AvaotaOS. Also decompiled the dtb to dts and enabled the dlcd0 related node and recompiled back it to dtb. It seems Mesa still says LLVM pipeline and does not recognize sunxi-drm_dri.

Could you please kindly show which node in the dts needs to be enabled or any other modifications on Mesa are needed. Could you please provide any compiled or working binary by any chance? Thank you!

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

No branches or pull requests

4 participants