使用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)
离线
请问这个你是测试过吗?
我用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)
离线