当前位置:网站首页>F1c100s self made development board debugging process
F1c100s self made development board debugging process
2022-06-30 03:03:00 【Be worthy of the original intention】
epidemic situation , After waiting for a long time, the board finally arrived .


What I use here is provided by the pit net boss tiny200 Development kit , Mango pie R3 The configuration file
1, Configure its media , What I use on the board is nor-spi-flash, Therefore, it is necessary to shield the device tree nand-flash Related nodes , Otherwise, there will be errors during startup .
2, Configuration screen , I have been troubled here for a long time , In fact, it only needs to be in uboot Configure the screen parameters inside , The others don't need to be changed , I think it's wrong , To modify panel, It has been changed for a long time. Many parameters are effective , It's a dead end , Finally, I saw the comments of the little friend of keng.com :F1C100s How to initialize LCD Pin ?24bit How to change it to 18bit.RGB666 How to change it to 565..... / Full ambition SOC / WhyCan Forum( Wow, cool developer community )
linux If you use drm drive , Well then uboot irrelevant .
linux If you use simplefb drive , So that's the use uboot The initialization of the
I suddenly realized , Go directly to uboot Just modify the screen parameters

This is the time , I have another question , these le,ri,up, What is a parameter , After Baidu found the following information :
/******************************************************************
* Parse structure
******************************************************************/
struct ctfb_res_modes {
int xres; /* Visible resolution */
int yres;
/* sequential : All values are in pixel clock units ( Except, of course, the pixel clock itself ) */
int pixclock; /* Pixel clock ( Company : Microsecond ) */
int left_margin; /* The number of pixel clocks synchronized from the row to the left edge of the image */
int right_margin; /* The number of pixel clocks synchronized from the row to the right edge of the image */
int upper_margin; /* The number of lines synchronized from the field to the top edge of the image */
int lower_margin; /* The number of lines from field synchronization to the bottom edge of the image */
int hsync_len; /* Line synchronization time length ( Pixel clocks ) */
int vsync_len; /* Field synchronization time length ( Row number ) */
int sync; /* see FB_SYNC_* */
int vmode; /* see FB_VMODE_* */
};

You will know how to set the parameters , And the meaning of parameters .
Finally, let's take a look at the test results :

3, Switch through console command USB Pattern , Refer to the following post
&usb_otg {
dr_mode = "otg"; /* Three options : otg / host / peripheral */
status = "okay";
};
## Switch to host Pattern :
# 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
#
## Switch to device Pattern :
# 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 3The next step is to debug the camera .
边栏推荐
- New edition of diazotization process in 2022 and analysis of diazotization process
- WPF Initialized事件在.cs中绑定不被触发的原因
- 怎样的外汇交易平台是有监管的,是安全的?
- F1C100S自制开发板调试过程
- Formal and actual parameters, value passing and address passing
- MySQL extracts strings from table fields
- The rigorous judgment of ID number is accurate to the last place in the team
- Auto.js学习笔记16:按项目保存到手机上,不用每次都保存单个js文件,方便调试和打包
- 行政路线编码 字母+数字的排序方式
- [live broadcast notes 0629] Concurrent Programming II: lock
猜你喜欢
随机推荐
2022 underground coal mine electrical test and underground coal mine electrical simulation test
2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
炒现货黄金的交易平台如何保障资金安全?
Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
Federal learning: dividing non IID samples by Dirichlet distribution
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
Auto.js学习笔记15:autojs的UI界面基础篇2
Shell counts all strings before the last occurrence of a string
Simulate activity startup mode in compose
Heavy attack -- ue5's open source digital twin solution
Comparable和Comparator的区别
一篇文章带你入门vim
Three solutions to forced hibernation of corporate computers
Interrupt operation: abortcontroller learning notes
Summary of PHP test sites encountered in CTF questions (I)
(图论) 连通分量(模板) + 强连通分量(模板)
Azure 开发者新闻快讯丨开发者6月大事记一览
How do I enable assembly binding logging- How can I enable Assembly binding logging?
Which is a good foreign exchange trading platform? Is it safe to have regulated funds?
CMake教程系列-02-使用cmake代碼生成二進制







