实例介绍
【实例截图】
【核心代码】
Contents
Section number Title Page
Chapter 1
Introduction
1.1 Introduction.....................................................................................................................................................................7
1.2 References.......................................................................................................................................................................7
Chapter 2
Porting Kernel
2.1 Kernel overview..............................................................................................................................................................9
2.1.1 How to build and load Kernel in standalone environment.................................................................................9
2.1.2 How to build and load Kernel in Yocto Project.................................................................................................10
Chapter 3
Porting U-Boot
3.1 U-Boot overview.............................................................................................................................................................13
3.1.1 How to build U-Boot in standalone environment..............................................................................................13
3.1.2 How to build and load U-Boot in Yocto Project................................................................................................14
3.2 Customizing the i.MX custom board code..................................................................................................................... 15
3.2.1 Changing the DCD table for i.MX DDR initialization......................................................................................16
3.2.2 Booting with the modified U-Boot ................................................................................................................... 16
3.2.3 Adding new driver initialization code to board files..........................................................................................19
3.2.4 Further customization at system boot................................................................................................................ 19
3.2.5 Customizing the printed board name.................................................................................................................20
3.3 Debugging.......................................................................................................................................................................20
3.3.1 Using JTAG tool for debugging.........................................................................................................................20
3.3.2 Using printf for debugging.................................................................................................................................21
Chapter 4
Configuring IOMUX Controller
4.1 IOMUX overview...........................................................................................................................................................23
4.1.1 Information for setting IOMUX controller registers..........................................................................................23
4.1.2 Using IOMUX in the Device Tree - example....................................................................................................24
i.MX BSP Porting Guide, Rev. L4.9.88_2.0.0-ga, 05/2018
NXP Semiconductors 3
Section number Title Page
Chapter 5
Registering a new UART Driver
5.1 UART overview..............................................................................................................................................................27
5.2 UART settings................................................................................................................................................................ 27
Chapter 6
Adding support for SDHC
6.1 SDHC overview..............................................................................................................................................................29
Chapter 7
Configuring the SPI NOR Flash Memory Technology Device (MTD) Driver
7.1 SPI NOR overview......................................................................................................................................................... 31
7.1.1 Selecting SPI NOR on the Linux image............................................................................................................ 31
7.1.2 Changing the SPI interface configuration..........................................................................................................32
7.1.3 Hardware operation............................................................................................................................................32
Chapter 8
Connecting an LVDS Panel to an i.MX 6Quad/Solo/Dual/DualLite Reference Board
8.1 LVDS overview..............................................................................................................................................................33
8.1.1 Connecting an LVDS panel to the i.MX 6Dual/6Quad/6DualLite reference board..........................................33
8.2 Enabling an LVDS channel............................................................................................................................................ 33
8.3 LDB ports........................................................................................................................................................................34
8.3.1 Input parallel display ports.................................................................................................................................35
8.3.2 Output LVDS ports............................................................................................................................................36
8.4 Additional information....................................................................................................................................................36
Chapter 9
Supporting the i.MX 6 Quad/Solo/Dual/DualLite Camera Censor with CSI
9.1 CSI overview.................................................................................................................................................................. 37
9.1.1 Required software .............................................................................................................................................37
9.1.2 i.MX 6Dual/6Quad/6Solo/6DualLite CSI interfaces layout..............................................................................38
9.1.3 Configuring the CSI unit in test mode...............................................................................................................38
9.2 Adding support for a new CMOS camera sensor...........................................................................................................39
9.2.1 Adding a camera sensor entry in Kconfig..........................................................................................................39
i.MX BSP Porting Guide, Rev. L4.9.88_2.0.0-ga, 05/2018
4 NXP Semiconductors
Section number Title Page
9.2.2 Creating the camera sensor file..........................................................................................................................40
9.2.3 Adding a compilation flag for the new camera..................................................................................................42
9.3 Using the I2C interface...................................................................................................................................................43
9.3.1 Loading and testing the camera module............................................................................................................ 45
9.4 Additional reference information....................................................................................................................................45
9.4.1 CMOS interfaces supported by the i.MX 6Dual/6Quad/6Solo/6DualLite........................................................45
9.4.2 i.MX 6Dual/6Quad/6Solo/6DualLite CSI parallel interface..............................................................................47
9.4.3 Timing data mode protocols.............................................................................................................................. 49
Chapter 10
Porting Audio Codecs to a Custom Board
10.1 Audio overview...............................................................................................................................................................51
10.1.1 Common porting task.........................................................................................................................................51
10.1.2 Porting the reference BSP to a custom board (audio codec is the same as in the reference design).................52
10.1.3 Porting the reference BSP to a custom board (audio codec is different from the reference design).................53
Chapter 11
Porting the Ethernet Controller Driver
11.1 Ethernet controller overview...........................................................................................................................................55
11.1.1 Pin configuration................................................................................................................................................55
11.1.2 Ethernet configuration........................................................................................................................................56
Chapter 12
Porting USB Host1 and USB OTG
12.1 USB overview for i.MX 6Dual/6Quad/6Solo/6DualLite/6UltraLite/7Dual...................................................................59
12.2 USB overview for i.MX 6SoloLite/6SoloX....................................................................................................................61
12.3 USB overview for i.MX 8MQuad.................................................................................................................................. 62
Chapter 13
Revision History
13.1 Revision History.............................................................................................................................................................65
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论