Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Linux] insmod bifrost_kbase.ko fail, can't run glmak2-es2

33

积分

0

威望

0

贡献

技术小白

积分
33

insmod bifrost_kbase.ko fail, can't run glmak2-es2

发表于 2022-8-1 14:43:48      浏览:4976 | 回复:13        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk356x_linux_release_20211019
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: arch/arm64/boot/dts/rockchip/rk3568-firefly-port.dtsi:
  • Log日志: compile_kernel.log
问题描述及复现步骤:
本帖最后由 qianqian321 于 2022-8-1 14:55 编辑

1. cd kernel,
   make menuconfig   CONFIG_MALI_BIFROST=m
2.  cd ../
./build.sh uboot

./build.sh kernel
./build.sh recovery
./mkfirmware.sh
./build.sh rawimg
3. use balena-etcher-electron-1.4.9-linux-x64 flash to SD, then power on the board
4. after boot, insmod bifrost_kbase.ko
encounter follow error:
dev_pm_opp_set_regulators: no regulator (shadercores) found: -19
devfreq fde60000.gpu: Couldn't update frequency transition information.

and can't run glmark2-es2
arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
Error: eglInitialize() failed with error: 0x3001
arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
Error: eglInitialize() failed with error: 0x3001
Error: main: Could not initialize canvas

另外如果我采用built-in的方式,将mali直接编译进内核,即直接运行build.sh,这样启动后是可以运行的glmark2-es2的。






compile_kernel.log

9.53 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-1 14:57:08        只看该作者  沙发
有没有人可以帮我看看,非常感谢
回复

使用道具 举报

2077

积分

10

威望

12

贡献

中级创客

Rank: 4

积分
2077
发表于 2022-8-1 15:40:45        只看该作者  板凳
你一定要用模块方式?
你编译成模块后有没有把ko文件安装到板子里?
回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-1 15:59:07        只看该作者  地板
Liuth 发表于 2022-8-1 15:40
你一定要用模块方式?
你编译成模块后有没有把ko文件安装到板子里?

insmod bifrost_kbase.ko
我执行了这句

嗯,我要用模块的方式的
回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-1 19:38:51        只看该作者  5#
补充信息:
用模块加载的方式,在dmesg搜到的mali相关的打印和built-in的打印是一样的:
[  700.571013] mali fde60000.gpu: Kernel DDK version g7p1-01bet0
[  700.571365] mali fde60000.gpu: Looking up mali-supply from device tree
[  700.571451] mali fde60000.gpu: Linked as a consumer to regulator.18
[  700.571457] mali fde60000.gpu: Looking up shadercores-supply from device tree
[  700.571467] mali fde60000.gpu: Looking up shadercores-supply property in node /gpu@fde60000 failed
[  700.571532] mali fde60000.gpu: Looking up mali-supply from device tree
[  700.571571] mali fde60000.gpu: Looking up shadercores-supply from device tree
[  700.571579] mali fde60000.gpu: Looking up shadercores-supply property in node /gpu@fde60000 failed
[  700.571603] mali fde60000.gpu: dev_pm_opp_set_regulators: no regulator (shadercores) found: -19
[  700.571720] mali fde60000.gpu: leakage=6
[  700.572173] mali fde60000.gpu: avs=0
[  700.572186] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 112; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[  700.572603] mali fde60000.gpu: GPU identified as 0x2 arch 7.4.0 r1p0 status 0
[  700.572685] mali fde60000.gpu: No priority control manager is configured
[  700.572692] mali fde60000.gpu: No memory group manager is configured
[  700.573412] mali fde60000.gpu: l=-2147483648 h=2147483647 hyst=0 l_limit=0 h_limit=0 h_table=0
[  700.577607] mali fde60000.gpu: Probed as mali0
回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-1 19:46:09        只看该作者  6#

insmod bifrost_kbase.ko fail, can't run glmak2-es2

raw_no_built_in.zip (40.05 KB, 下载次数: 1)


arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
Error: eglInitialize() failed with error: 0x3001
arm_release_ver of this libmali is 'g2p0-01eac0', rk_so_ver is '4'.
Error: eglInitialize() failed with error: 0x3001
Error: main: Could not initialize canvas

回复

使用道具 举报

2077

积分

10

威望

12

贡献

中级创客

Rank: 4

积分
2077
发表于 2022-8-2 09:28:48        只看该作者  7#
我试过了没问题,步骤如下:
SDK 更新到最新
CONFIG_MALI_BIFROST改为m并保存
./build.sh extboot 编译内核
sudo upgrade_tool di -b extboot.img 烧录内核
执行lsmod可以看到系统已经自动找到模块并已经在使用了,根本无需手动insmod
执行glmark2-es2没有问题
回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-2 13:38:07        只看该作者  8#
Liuth 发表于 2022-8-2 09:28
我试过了没问题,步骤如下:
SDK 更新到最新
CONFIG_MALI_BIFROST改为m并保存

请问这个extboot.img是包含uboot, kernel, rootfs的吗?你也是通过烧到SD卡启动的吗?
回复

使用道具 举报

2077

积分

10

威望

12

贡献

中级创客

Rank: 4

积分
2077
发表于 2022-8-2 14:34:07        只看该作者  9#
不是,extboot.img就是单纯内核,如果你要用sd卡,那你修改完成后执行./build.sh rawimg,编译完整固件
回复

使用道具 举报

33

积分

0

威望

0

贡献

技术小白

积分
33
发表于 2022-8-2 14:38:02        只看该作者  10#
Liuth 发表于 2022-8-2 14:34
不是,extboot.img就是单纯内核,如果你要用sd卡,那你修改完成后执行./build.sh rawimg,编译完整固件

sudo upgrade_tool di -b extboot.img 烧录内核
请问你这个烧录内核,是烧到开发板上吗,是可以只烧录内核的吗?文件系统呢?
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表