cubie/a7z/app-dev/npu-dev/g2d-usage-guide #1758
Replies: 4 comments 2 replies
-
|
我碰到一个权限问题(表面看起来是权限问题,实际可能不是),求助。我的设备信息: radxa@radxa-cubie-a7z:~/Documents/G2D$ ls -la /dev/g2d radxa@radxa-cubie-a7z:~/Documents/G2D$ ls -la /dev/dma_heap/system 并配置了udev规则到文件 /etc/udev/rules.d/99-g2d.rules: 在执行文件时(用sudo或直接执行)仍然出现错误: open g2d fd result value: 3 open g2d fd result value: 3 我的代码为: #define W 1920 static int alloc_dmabuf(int *fd, void **vaddr, size_t size) int main(void) } |
Beta Was this translation helpful? Give feedback.
-
|
补充一下,我用的R6 KDE。 |
Beta Was this translation helpful? Give feedback.
-
|
我艹, 我将这一行: ret = ioctl(g2d_fd, G2D_CMD_BITBLT_H, (void *)(&blit));,修改成: ret = ioctl(g2d_fd, G2D_CMD_BITBLT, (void *)(&blit));,没有权限报错了。文档《Linux_G2D_开发指南.pdf》中说,G2D_CMD_BITBLT_H是2.0接口,G2D_CMD_BITBLT是1.0接口。 |
Beta Was this translation helpful? Give feedback.
-
|
伙计们,我用该页面“4.示例运行结果”里提示里说到的github中的格式转换示例(https://github.com/Ronin-1124/allwinner-g2d-usage-guide/blob/main/g2d_format_conversion.c)跑通了。我的代码为: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
cubie/a7z/app-dev/npu-dev/g2d-usage-guide
https://docs.radxa.com/cubie/a7z/app-dev/npu-dev/g2d-usage-guide
Beta Was this translation helpful? Give feedback.
All reactions