您尚未登录。

楼主 # 2021-08-22 19:30:43

skliu
会员
注册时间: 2020-06-07
已发帖子: 54
积分: 23

EGL Error : Could not create the egl surface: error = 0x3003 问题请教

使用buildroot生成的img。
make xxx_defconfig
make linux-menuconfig (设定DRM_FBDEV_LEAK_PHYS_SMEM 需要的依赖,修改overalloc=400)
make生成img,在tf卡上运行测试的。
由于不会编译mali/test. 所以编译了qt的2dpainting测试。结果如何。
内核: 5.4.142

下面是引用大神的总结。(第四条是自己加的:))
1.    Must enable DRM_FBDEV_LEAK_PHYS_SMEM from kernel   确认已选择
2.    set drm_leak_fbdev_smem on compile time (for some reason, passing in command line did not help) in drm_fb_helper.c 确认已设定true(有两个地方)
3.    use latest r8p1   使用buildroot生成的mali.ko.
4.     CONFIG_DRM_FBDEV_OVERALLOC=400   从100修改到了400。


 insmod /lib/modules/5.4.142/extra/mali.ko
[   62.494686] mali: loading out-of-tree module taints kernel.
[   62.511242] Allwinner sunXi mali glue initialized
[   62.516464] Mali:
[   62.516469] Found Mali GPU Mali-400 MP r1p1
[   62.523508] Mali:
[   62.523512] 2+0 PP cores initialized
[   62.529704] Mali:
[   62.529707] Mali device driver loaded
[   62.535946] sun8i-a33-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator

# ./2dpainting -platform eglfs linuxfb
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
EGL Error : Could not create the egl surface: error = 0x3003

Aborted

感谢。

最近编辑记录 skliu (2021-08-22 19:31:48)

离线

#1 2021-08-22 19:35:27

memory
会员
注册时间: 2021-08-11
已发帖子: 236
积分: 210

Re: EGL Error : Could not create the egl surface: error = 0x3003 问题请教

https://blog.csdn.net/zzwdkxx/article/details/83502304

EGL Error : Could not create the egl surface: error = 0x3003 错误的解决办法

离线

楼主 #2 2021-08-22 20:03:11

skliu
会员
注册时间: 2020-06-07
已发帖子: 54
积分: 23

Re: EGL Error : Could not create the egl surface: error = 0x3003 问题请教

请问这个你是测试过吗?
我用A33, uboot里面是simplefb_lcd. 没看到里面的深度设定。
用过下面方法没用。
ech0 16 > /sys/class/graphics/fb0/bits_per_pixel

使用下面语句在uboot里面操作,无效。
setenv video "video=simplefb_lcd0:dev=ldb,LDB-XGA,if=RGB24,bpp=16 fbpix=RGB24 consoleblank=0 fbmem=28M ldb=dul0"


修改uboot里面的dtsi方法没试过。

最近编辑记录 skliu (2021-08-22 20:12:54)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn