您尚未登录。

#2 Re: 全志 SOC » 有没有大佬知道f1c200s的TCON控制I80接口LCD帧率不高是什么原因? » 2024-07-20 00:21:25

只能勉强能用,使用fb设备不会出现光标乱跳的问题

将文件上传上来给大家参考,8bit i80接口驱动,随便写来验证,没有规范

f1c200s_i80_drv.zip

#3 Re: 全志 SOC » 有没有大佬知道f1c200s的TCON控制I80接口LCD帧率不高是什么原因? » 2024-07-18 23:06:34

最终调节结果数据19us,空闲63us,一行数据在80多us,不知道怎么优化了。

然后还有个问题是,使用modetest后坐标就会随机乱掉。

原因是在modetest结束的时候有一帧只传了一部分,导致后面整屏的数据会接着从这个位置开始,导致坐标乱掉

这个也不知道怎么修复

#4 Re: 全志 SOC » 有没有大佬知道f1c200s的TCON控制I80接口LCD帧率不高是什么原因? » 2024-07-18 11:10:32

通过设置两个值可以降低间隔时间,每帧时间50ms,达到20帧:
tcon->dclk_min_div = 7
tcon->dclk_max_div = 7
设置再大后数据帧就不太对了,感觉设置这个值只是把i80总线的时钟提高了,实际上每一行的数据后依旧会有一个空闲时间

fix:
确实调大这个值会提高i80输出的频率,设置到10后总线频率到达50Mhz,然后每一行数据有效时间占20%,其余80%时间是空闲的

#5 Re: 全志 SOC » 有没有大佬知道f1c200s的TCON控制I80接口LCD帧率不高是什么原因? » 2024-07-17 23:12:52

lovexulu 说:

大概率时序问题,使用i80接口还需要注意是否有te引脚,以及初始化时是否开启了te模式以及模式类型。正常情况不会低到13帧!

没有TE脚,f1c200s的资料好像没看到关于te的说明?

#7 全志 SOC » 有没有大佬知道f1c200s的TCON控制I80接口LCD帧率不高是什么原因? » 2024-07-17 19:28:20

nTliang
回复: 6

使用逻辑分析仪抓数据看每发送完一行数据后会有个180us的空闲期

_17212155971448.png

导致帧率最多只能到13帧

尝试修改TCON的各个参数效果不大,有没有大佬知道是什么原因?

等做好后将这部分驱动发上来

#8 Re: 全志 SOC » F1C200S系列该如何调出视频tv-out输出呢? » 2024-07-09 14:19:35

楼主知道怎么配置i8080接口?我用i8080接口也是有fb0和dri/card0,但是没有输出。
先用gpio模式初始化了屏幕,刷了一屏蓝色。之后加载显示驱动后显示没有变化

#9 全志 SOC » 谁有f1c200s在linux系统下的i80接口LCD驱动吗? » 2024-06-14 11:13:14

nTliang
回复: 0

看论坛分享的都是裸机下的驱动,不知道有没有linux的驱动呢?

目前按照xboot里的驱动修改了sun4i里cpu接口的tcon配置,可以成功加载出/dev/fb0和/dev/dri/card0

屏幕使用GPIO模式先进行了初始化设置了屏幕颜色,之后往fb0写数据屏幕没有变化,估计tcon没有时序出来。

#13 Re: 全志 SOC » 请教关于F1C100S的声卡使用speaker-test播放无声音问题 » 2024-01-12 22:52:26

已经解决,使用alsamixer把音量设大没有什么用,我以为把音量开启就可以了。

使用tinymix -D 1 contents 发现switch并没有开启。

使用tinymix -D 1 set 2 1开启switch后再使用speaker-test就有噪音输出了。

#14 全志 SOC » 请教关于F1C100S的声卡使用speaker-test播放无声音问题 » 2024-01-10 22:36:26

nTliang
回复: 1

使用的linux6.1.54版本内核,移植论坛大佬提供的驱动。

目前现象是驱动加载后引脚上能有1.5V电压,声卡也能正常的显示出来。

内核启动时有以下输出:

[    1.191964] ALSA device list:
[    1.195021]   #0: Loopback 1
[    1.197913]   #1: suniv Audio Codec

然后使用speaker-test播放时喇叭只有一个上电的吧嗒声。

在DMA和声卡驱动中加上日志输出,从日志看DMA和声卡都有正常工作。
按理speaker-test播放应该会输出噪音,不知道有没有哪位大佬知道什么情况?

附播放时DMA驱动和声卡驱动日志:

[  491.569777] !!!sun4i_dma_prep_dma_cyclic,len:524288,per:131072, dir:1!!!
[  491.577985]
[  491.577985] !!!generate_ndma_promise,len:131072,src:-2118123520,dest:29506572!!!
[  491.586836]
[  491.586836] !!!sanitize_config!!!
[  491.591623] dma dma0chan0: src burst 4, dst burst 4, src buswidth 2, dst buswidth 2
[  491.599265]
[  491.599265] !!!convert_burst_f1c100s!!!
[  491.604553]
[  491.604553] !!!convert_burst_f1c100s!!!
[  491.609846]
[  491.609846] !!!convert_buswidth!!!
[  491.614707]
[  491.614707] !!!set_src_data_width_f1c100s, w:1!!!
[  491.620866]
[  491.620866] !!!convert_buswidth!!!
[  491.625727]
[  491.625727] !!!set_dst_data_width_f1c100s, w:1!!!
[  491.631888]
[  491.631888] !!!generate_ndma_promise,len:131072,src:-2117992448,dest:29506572!!!
[  491.640730]
[  491.640730] !!!sanitize_config!!!
[  491.645509] dma dma0chan0: src burst 4, dst burst 4, src buswidth 2, dst buswidth 2
[  491.653145]
[  491.653145] !!!convert_burst_f1c100s!!!
[  491.658439]
[  491.658439] !!!convert_burst_f1c100s!!!
[  491.663732]
[  491.663732] !!!convert_buswidth!!!
[  491.668593]
[  491.668593] !!!set_src_data_width_f1c100s, w:1!!!
[  491.674753]
[  491.674753] !!!convert_buswidth!!!
[  491.679614]
[  491.679614] !!!set_dst_data_width_f1c100s, w:1!!!
[  491.685773]
[  491.685773] !!!generate_ndma_promise,len:131072,src:-2117861376,dest:29506572!!!
[  491.694615]
[  491.694615] !!!sanitize_config!!!
[  491.699393] dma dma0chan0: src burst 4, dst burst 4, src buswidth 2, dst buswidth 2
[  491.707030]
[  491.707030] !!!convert_burst_f1c100s!!!
[  491.712324]
[  491.712324] !!!convert_burst_f1c100s!!!
[  491.717618]
[  491.717618] !!!convert_buswidth!!!
[  491.722478]
[  491.722478] !!!set_src_data_width_f1c100s, w:1!!!
[  491.728637]
[  491.728637] !!!convert_buswidth!!!
[  491.733497]
[  491.733497] !!!set_dst_data_width_f1c100s, w:1!!!
[  491.739657]
[  491.739657] !!!generate_ndma_promise,len:131072,src:-2117730304,dest:29506572!!!
[  491.748499]
[  491.748499] !!!sanitize_config!!!
[  491.753278] dma dma0chan0: src burst 4, dst burst 4, src buswidth 2, dst buswidth 2
[  491.760915]
[  491.760915] !!!convert_burst_f1c100s!!!
[  491.766210]
[  491.766210] !!!convert_burst_f1c100s!!!
[  491.771504]
[  491.771504] !!!convert_buswidth!!!
[  491.776364]
[  491.776364] !!!set_src_data_width_f1c100s, w:1!!!
[  491.782523]
[  491.782523] !!!convert_buswidth!!!
[  491.787384]
[  491.787384] !!!set_dst_data_width_f1c100s, w:1!!!
[  491.793546]
[  491.793546] !!!sun4i_dma_issue_pending!!!
[  491.799013]
[  491.799013] !!!__execute_vchan_pending!!!
[  491.804480]
[  491.804480] !!!find_and_use_pchan!!!
[  491.809516]
[  491.809516] !!!to_sun4i_dma_contract!!!
[  491.814812]
[  491.814812] !!!set_pchan_interrupt,half:1,num:0!!!
[  491.821060]
[  491.821060] !!!configure_pchan,-2118123520,29506572,131072,-2119401071!!!
[  491.829307]
[  491.829307] !!!sun4i_codec_start_playback!!!
[  492.516437]
[  492.516437] !!!sun4i_dma_interrupt!!!
[  492.521605]
[  492.521605] !!!half done interrupt, 1!!!
[  492.527012]
[  492.527012] !!!sun4i_dma_tx_status,ret:1,state!!!-1060102820
[  492.534135]
[  492.534135] !!!to_sun4i_dma_contract!!!
[  492.539431]
[  492.539431] !!!bytes:524288!!!
[  493.199899]
[  493.199899] !!!sun4i_dma_interrupt!!!
[  493.205069]
[  493.205069] !!!get_next_cyclic_promise!!!
[  493.210544]
[  493.210544] !!!configure_pchan,-2117992448,29506572,131072,-2119401071!!!
[  493.218811]
[  493.218811] !!!sun4i_dma_tx_status,ret:1,state!!!-1060102820
[  493.225933]
[  493.225933] !!!to_sun4i_dma_contract!!!
[  493.231227]
[  493.231227] !!!bytes:393216!!!
[  493.900203]
[  493.900203] !!!sun4i_dma_interrupt!!!
[  493.905368]
[  493.905368] !!!half done interrupt, 1!!!
[  493.910776]
[  493.910776] !!!sun4i_dma_tx_status,ret:1,state!!!-1060102820
[  493.917901]
[  493.917901] !!!to_sun4i_dma_contract!!!
[  493.923199]
[  493.923199] !!!bytes:393216!!!
[  494.583653]
[  494.583653] !!!sun4i_dma_interrupt!!!
[  494.588824]
[  494.588824] !!!get_next_cyclic_promise!!!
[  494.594296]
[  494.594296] !!!configure_pchan,-2117861376,29506572,131072,-2119401071!!!
[  494.602562]
[  494.602562] !!!sun4i_dma_tx_status,ret:1,state!!!-1060102820
[  494.609684]
[  494.609684] !!!to_sun4i_dma_contract!!!
[  494.614979]
[  494.614979] !!!bytes:262144!!!
[  494.619511]
[  494.619511] !!!sun4i_codec_stop_playback!!!
[  494.625168]
[  494.625168] !!!sun4i_dma_terminate_all!!!
[  494.630641]
[  494.630641] !!!set_pchan_interrupt,half:0,num:0!!!
[  494.636892]
[  494.636892] !!!release_pchan!!!
[  494.641496]
[  494.641496] !!!to_sun4i_dma_contract!!!
[  494.646791]
[  494.646791] !!!sun4i_dma_free_contract!!!
[  494.652408]
[  494.652408] !!!sun4i_codec_prepare!!!
[  494.657576]
[  494.657576] !!!sun4i_codec_prepare_playback!!!

#15 Re: 全志 SOC » F1C200S进入文件系统失败 » 2023-12-08 09:31:47

没有设置ARGS指定ROOT位置
加上这个
CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2"

#16 Re: 全志 SOC » f1c200s使用主线uboot,spi速度很慢的解决方法记录 » 2023-04-28 18:19:40

使用sunxi-fel直接把uboot,kernel,rootfs烧录到内存中启动方法:

1.修改uboot配置
    bootargs=“console=ttyS0,115200 earlyprink panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc rw”
    bootcommand=“bootz 0x80008000 0x80d00000 0x80c00000”

2.生成uImage格式的rootfs
    cd /opt/buildroot-2018.08.2/output/target

    find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz

    mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz  /var/www/html/rootfs.cpio.gz.uImage
3.烧录文件
    sudo ./sunxi-fel -p uboot ./u-boot-sunxi-with-spl.bin write 0x80c00000 ./suniv-f1c100s-licheepi-nano.dtb write 0x80008000 ./zImage write 0x80d00000 ./rootfs.cpio.gz.uImage

#17 Re: 全志 SOC » f1c200s使用主线uboot,spi速度很慢的解决方法记录 » 2023-04-27 13:48:06

使用主线linux时,要使用licheepi的5.2版本内核配置文件。否则不能正常使用,之前从其他地方下载的配置文件一直卡在启动内核那里,换了5.2的配置文件后就正常了。对比了一下有很多选项名字变了

#18 全志 SOC » f1c200s使用主线uboot,spi速度很慢的解决方法记录 » 2023-04-24 14:56:45

nTliang
回复: 3

在使用uboot2023.04时发现sf read 0x80008000 0x110000 0x400000命令要很久才能完成。

调试发现获取不到spi-max-frequency参数,使用了默认1000000hz频率。

打开设备树文件sunxi-f1c100s-licheepi-nano.dts把spi-max-frequency = <40000000>;复制到flash@0上面。

烧录后测试最大速度到40000000hz,指令只需要2,3秒就完成了。

#19 Re: 全志 SOC » 全志H6开发板-从零入门ARM高速电路设计 » 2023-04-11 17:24:21

楼主牛逼,才知道usb和sd卡都要做阻抗匹配

页脚

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

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