目前R818,tina系统在调试Ov5648摄像头的过程中使用camerademo发现无法打开摄像头,查看log,
摄像头驱动已经成功加载(相同的硬件在安卓系统下可以打开摄像头),camerademo调试过程的日志如图所示,提示isp相关的文件报错。
该问题是否因为缺少对应isp引起的,能不能提供对应的isp文件?
多谢支持。
目前R818,tina系统在调试Ov5648摄像头的过程中使用camerademo发现无法打开摄像头,查看log,
摄像头驱动已经成功加载(相同的硬件在安卓系统下可以打开摄像头),camerademo调试过程的日志如图所示,提示isp相关的文件报错。
该问题是否因为缺少对应isp引起的,能不能提供对应的isp文件?
多谢支持。
@anruliu 嗯嗯之前尝试过在 Tina 2.0 环境下重新迁移驱动等,不过遇到一些问题(比如 https://bbs.aw-ol.com/topic/2674/lcd-kernel-亮屏后立马黑屏 以及 触控驱动问题)
现在还是在 0.2 的环境下 使用了 2.0 的 linux-4.9/modules/gpu
package/kernel/gpu-km
package/libs/libgpu
现在用 eglfs 不跳帧了 ,不过性能好像和 linuxfb 差不是太多 o(╯□╰)o 我再试试 APP 方面能不能再优化优化…… 如果GPU优化方面还有其他思路的话也非常感谢提示更多信息
再次感谢大佬支持
hello 大佬 @anruliu
screen 0:
de_rate 300000000 hz, ref_fps:58
mgr0: 800x1280 fmt[rgb] cs[0x204] range[full] eotf[0x4] bits[8bits] err[0] force_sync[0] unblank direct_show[false]
dmabuf: cache[0] cache max[0] umap skip[0] overflow[0]
lcd output backlight( 50) fps:58.9 800x1280
err:1 skip:48 irq:659444 vsync:0 vsync_skip:0
BUF enable ch[1] lyr[0] z[16] prem[N] a[pixel 255] fmt[ 0] fb[ 800,1280; 800,1280; 800,1280] crop[ 0, 0, 800,1280] frame[ 0, 0, 800,1280] addr[ff800000, 0, 0] flags[0x 0] trd[0,0]
depth[ 0]
Hello @anruliu 大佬, 我们换成了 Qt 5.12.9 ,eglfs 渲染还是会出现这种情况。 我们试过,旋转不旋转还是一样会跳帧(回跳)。
@tigger 才意识到这是GPU的型号 我手头上 的 Tina 0.2 / 2.0 都没有
package/kernel/kmod-ge8300-km
这个目录。 附件是目前SDK的 package/libs/libgpu/ge8300
目录 非常感谢大佬支持! ge8300.zip
PS1: 目前我用的是 Tina 0.2 版本, 机器上替换成 Tina 2.0 的这些 so 和 firmware 后 APP 出现 Could not initialize egl display
报错。
hello @anruliu , 请教一下整个显示流程哪个步骤会拉低RESET呢? 我们现在是手头上没有示波器这些硬件调试手段
PS1: 现在 uboot 阶段偶尔不亮屏幕
PS2: 休眠唤醒lcd 一定能够亮起屏幕
PS3: 我们现在手头上的源码(tina 2.0) 信息如下,应该不会有问题吧?
# repo forall -c "pwd; git log --oneline;echo;echo"
/works/to-download/build
9677096 smartx-r818-tina-v2.0-release release
11276aa smartx-r818-tina-v1.0.0-release release
0aee083 smartx-r818-tina-v0.2.0-release release
/r818/config
b9b4e3e smartx-r818-tina-v1.0.0-release release
c265e5d smartx-r818-tina-v0.2.0-release release
/r818/device/config/chips/r818
961a3d9 [fix] 适配产品,可以 烧写并 adb shell
7667829 smartx-r818-tina-v2.0-release release
/r818/device/config/common
d3d5e39 smartx-r818-tina-v1.0.0-release release
a76bf10 smartx-r818-tina-v0.2.0-release release
/r818/dl
6b687c4 remove unused package
1819cd9 smartx-r818-tina-v1.0.0-release release
0e5a144 smartx-r818-tina-v0.2.0-release release
/r818/docs
e4127ef smartx-r818-tina-v0.2.0-release release
/r818/lichee/arisc
c357572 smartx-r818-tina-v2.0-release release
589bc39 smartx-r818-tina-v1.0.0-release release
bfc598f smartx-r818-tina-v0.2.0-release release
/r818/lichee/brandy-2.0/spl
0ca0957 smartx-r818-tina-v2.0-release release
0f2b788 smartx-r818-tina-v1.0.0-release release
9ab7078 smartx-r818-tina-v0.2.0-release release
/r818/lichee/brandy-2.0/tools
3f0f997 smartx-r818-tina-v1.0.0-release release
77e0592 smartx-r818-tina-v0.2.0-release release
/r818/lichee/brandy-2.0/u-boot-2018
5ec57ef [fix] 勾选 LCD_SUPPORT_K101IM2BYL02L
e568104 smartx-r818-tina-v2.0-release release
9b56363 smartx-r818-tina-v1.0.0-release release
44e5477 smartx-r818-tina-v0.2.0-release release
/r818/lichee/linux-4.9
8a99727f0 [feature]添加 k101im2byl02l 屏幕显示驱动
8b9cb8723 smartx-r818-tina-v2.0-release release
352550f19 smartx-r818-tina-v1.0.0-release release
842f0db32 smartx-r818-tina-v0.2.0-release release
/r818/package
38e46ac3 smartx-r818-tina-v2.0-release release
04e65073 remove unused package
667cc61e smartx-r818-tina-v1.0.0-release release
047ce9bd smartx-r818-tina-v0.2.0-release release
/r818/prebuilt
d771fad smartx-r818-tina-v0.2.0-release release
/r818/scripts
37ecb36 smartx-r818-tina-v2.0-release release
984d79d smartx-r818-tina-v1.0.0-release release
1c87d6c smartx-r818-tina-v0.2.0-release release
/r818/target
50cf978 smartx-r818-tina-v2.0-release release
b804823 defconfig:remove unused info
7a1879a smartx-r818-tina-v1.0.0-release release
8582b0c smartx-r818-tina-v0.2.0-release release
/r818/toolchain
9f90325 smartx-r818-tina-v0.2.0-release release
/r818/tools
48b4556 smartx-r818-tina-v2.0-release release
936113f smartx-r818-tina-v1.0.0-release release
a4745b7 smartx-r818-tina-v0.2.0-release release
hello @anruliu
确认是哪个阶段后黑屏的,内核加载disp驱动后?
--> 我看代码有 pr_info("[DISP]%s\n", __func__);
不过开机后, dmesg
没有看到 dev_disp.c
的代码。休眠唤醒后 dmesg | grep -i disp
才能看到相关代码。
colorbar是什么时候显示的?到内核后执行命令显示的?
--> 开头的视频我没有执行任何操作,只是单纯的系统启动。 colorbar 是因为 kernel_menuconfig 的时候配置了CONFIG_DISP2_SUNXI_BOOT_COLORBAR=y
后来我找到了相关代码在 drivers/video/fbdev/sunxi/disp2/disp/dev_disp.c 的 disp_draw_colorbar 函数,所以 按道理,这时候 disp驱动已经被加载到 kernel 了吧?
3、确认黑屏状态背光是否有,屏供电是否有,lcd的各gpio是否正常
--> 楼上我贴了 cat /sys/kernel/debug/pwm
, 不知道 polarity: inverse
之类的有没有问题呢?
(PS1: 休眠唤醒后发现 一直都是 polarity: inverse
)
(PS2: 休眠唤醒并且正常显示 COLORBAR 的状态时候, 用 brightnesstester 程序,发现brightness
数值大小和实际效果是正相关的,说明这时候 背光 应该是 OK的?)
4、开机后尝试休眠唤醒lcd,看能否点亮
--> 非常神奇的是,唤醒 后, 屏幕就正常亮了~ 并且使用 echo X > /sys/class/disp/disp/attr/colorbar
命令(X: 0~8),可以 显示不同的图像出来。
所以现在不知道是什么原因,手动休眠唤醒LCD就可以了? 这是什么原理呢?
多谢多谢
hello @whycan
查看了一下
root@TinaLinux:/# cat /sys/kernel/debug/pwm
platform/7020c00.pwm, 1 PWM device
pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal
platform/300a000.pwm, 16 PWM devices
pwm-0 (lcd ): requested enabled period: 20000 ns duty: 3984 ns polarity: inverse
pwm-1 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-2 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-3 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-4 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-5 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-6 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-7 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-8 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-9 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-10 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-11 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-12 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-13 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-14 ((null) ): period: 0 ns duty: 0 ns polarity: normal
pwm-15 ((null) ): period: 0 ns duty: 0 ns polarity: normal
根据《Tina Linux LCD v1.1 (2020.03.06 版本)》, 上面的“requested enabled”表示请求并且使能了
,但是 polarity: inverse
不知道有没有问题?
Hello all,
先谢谢各位大佬了
@chengwei_peng 我们后来找代理厂商拿到了最新的SDK后, 能够cat 该节点~
多谢各位大佬支持