没有合适的资源?快使用搜索试试~ 我知道了~
首页i.MX_BSP_Porting_Guide_Linux.pdf
This document provides an overview on how to develop a custom i.MX solution from an i.MX BSP release. This document describes how to customize kernel changes, U-Boot, memory, and various configurations for a custom hardware solution using an i.MX SoC
资源详情
资源评论
资源推荐

i.MX BSP Porting Guide
Document Number: IMXBSPPG
Rev. L4.9.88_2.0.0-ga, 05/2018

i.MX BSP Porting Guide, Rev. L4.9.88_2.0.0-ga, 05/2018
2 NXP Semiconductors

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
i.MX BSP Porting Guide, Rev. L4.9.88_2.0.0-ga, 05/2018
NXP Semiconductors 5
剩余66页未读,继续阅读













安全验证
文档复制为VIP权益,开通VIP直接复制

评论0