当前位置:网站首页>F1C100S自制开发板调试过程
F1C100S自制开发板调试过程
2022-06-30 02:59:00 【初心不辜】
疫情,等了好久板子终于到了。


我这里使用的是坑网大佬提供的tiny200开发包,用的芒果派R3配置文件
1,配置其的介质,我板子上用的是nor-spi-flash,所以需要在设备树里面屏蔽掉nand-flash相关的节点,否则启动会有错误。
2,配置屏幕,这里我被困扰好久,其实只需要在uboot里面配置好屏幕参数即可,其他的无需修改,我想歪了,去修改panel,改了好久好多参数都灭有效果,钻牛角尖了,最后看到坑网小伙伴评论:F1C100s如何初始化LCD引脚 ?24bit如何修改成18bit。RGB666如何修改成565.。。。。 / 全志 SOC / WhyCan Forum(哇酷开发者社区)
linux如果用drm驱动,那么就和uboot无关。
linux如果用simplefb驱动,那么就是用uboot初始化的
我才恍然大悟,直接去uboot里面修改屏幕参数就行了

这个时候,我又有疑问了,这些le,ri,up,参数是个什么玩意,百度后找到了如下资料:
U-boot中通过ENV设置显示设备(如LCD)参数的方法与格式_韩半仙的博客-CSDN博客
/******************************************************************
* 解析结构体
******************************************************************/
struct ctfb_res_modes {
int xres; /* 可见分辨率 */
int yres;
/* 时序: 所有值都以像素时钟为单位(当然除了像素时钟本身) */
int pixclock; /* 像素时钟(单位:微秒) */
int left_margin; /* 从行同步到图像左边沿的像素时钟数 */
int right_margin; /* 从行同步到图像右边沿的像素时钟数 */
int upper_margin; /* 从场同步到图像上边沿的行数 */
int lower_margin; /* 从场同步到图像下边沿的行数 */
int hsync_len; /* 行同步时间长度(像素时钟数) */
int vsync_len; /* 场同步时间长度(行数) */
int sync; /* see FB_SYNC_* */
int vmode; /* see FB_VMODE_* */
};参数无效_lcd参数解释及刷新率计算,LCD时序_刘万祥ExcelPro的博客-CSDN博客


到这就知道参数怎么设置,以及参数的含义了。
最后看下测试效果:

3,通过控制台命令切换USB模式,参考下面帖子
主线Linux用shell命令切换 OTG(分享)tiny200/licheepi nano|zero均可以使用 / 全志 SOC / WhyCan Forum(哇酷开发者社区)
&usb_otg {
dr_mode = "otg"; /* 三个可选项: otg / host / peripheral */
status = "okay";
};
##切换到host模式:
# echo host > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
# [ 117.758152] phy phy-1c13400.phy.0: Changing dr_mode to 1
[ 118.414817] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[ 118.598193] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 118.611789] scsi host0: usb-storage 1-1:1.0
[ 119.686198] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS
[ 119.703976] sd 0:0:0:0: [sda] 3842048 512-byte logical blocks: (1.97 GB/1.83 GiB)
[ 119.725260] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 119.739844] sd 0:0:0:0: [sda] Write Protect is off
[ 119.771819] sd 0:0:0:0: [sda] No Caching mode page found
[ 119.777288] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 119.801571] sda: sda1 sda2 sda3
[ 119.817224] sd 0:0:0:0: [sda] Attached SCSI removable disk
#
##切换到device模式:
# echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode
[ 123.880272] phy phy-1c13400.phy.0: Changing dr_mode to 2
# [ 123.890905] usb 1-1: USB disconnect, device number 3下一步就是调试摄像头了。
边栏推荐
- Wechat applet +php to realize authorized login operation
- oracle怎么设置密码复杂度及超时退出的功能
- Global and Chinese market of relay lens 2022-2028: Research Report on technology, participants, trends, market size and share
- How to use redis to realize the like function
- 个人PC安装软件
- Some configuration details about servlet initial development
- 2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
- Cross domain, CORS, jsonp
- 并发请求下如何防重复提交
- 外汇交易平台哪个好?有监管的资金就安全吗?
猜你喜欢

可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写

Cross domain, CORS, jsonp

Some configuration details about servlet initial development

中断操作:AbortController学习笔记

Time complexity analysis

prompt learning 一个空格引发的血案

浅谈IDEA的优化和使用

Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing

Mysql表数据比较大情况下怎么修改添加字段

mysql 主从数据库同步失败的原因
随机推荐
华为面试题: 高矮个子排队
What is the concept of string in PHP
MySQL extracts strings from table fields
How does native JS generate Jiugong lattice
Raki's notes on reading paper: discontinuous named entity recognition as maximum clique discovery
迅为恩智浦iTOP-IMX6开发平台
HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification
Distributed file storage system fastdfs hands on how to do it
Intel-Hex , Motorola S-Record 格式详细解析
002 color classification
How to switch ipykernel to a different CONDA virtual environment in jupyterlab?
How do I enable assembly binding logging- How can I enable Assembly binding logging?
Summary of interview and Employment Questions
Redis+AOP怎么自定义注解实现限流
2022护网行动在即,关于护网的那些事儿
shell统计某个字符串最后一次出现的位置之前的所有字符串
CMake教程系列-01-最小配置示例
SQLite使用
公司电脑强制休眠的3种解决方案
  Difference from spaces