xref: /OK3568_Linux_fs/buildroot/board/freescale/imx6sabre/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun********************************************************
2*4882a593SmuzhiyunFreescale i.MX6 Q, DL and SoloX SABRE development boards
3*4882a593Smuzhiyun********************************************************
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunThis file documents the Buildroot support for the Freescale SABRE Board
6*4882a593Smuzhiyunfor Smart Devices Based on the i.MX 6 and i.MX 6SoloX Series (SABRESD),
7*4882a593Smuzhiyunas well as the Freescale SABRE Board for Automotive Infotainment.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRead the i.MX 6 SABRESD Quick Start Guide for an introduction to the
10*4882a593Smuzhiyunboard:
11*4882a593Smuzhiyunhttp://cache.freescale.com/files/32bit/doc/quick_start_guide/SABRESDB_IMX6_QSG.pdf
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRead the i.MX 6 SoloX SABRESD Quick Start Guide for an introduction to
14*4882a593Smuzhiyunthe board:
15*4882a593Smuzhiyunhttp://cache.freescale.com/files/32bit/doc/user_guide/IMX6SOLOXQSG.pdf
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunRead the SABRE for Automotive Infotainment Quick Start Guide for an
18*4882a593Smuzhiyunintroduction to the board:
19*4882a593Smuzhiyunhttp://cache.freescale.com/files/32bit/doc/user_guide/IMX6SABREINFOQSG.pdf
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunBuilding with NXP kernel and NXP U-Boot
22*4882a593Smuzhiyun=======================================
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunFirst, configure Buildroot for your SABRE board.
25*4882a593SmuzhiyunFor i.MX6Q SABRE SD board:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  make freescale_imx6qsabresd_defconfig
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunFor i.MX6DL SABRE SD board:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  make freescale_imx6dlsabresd_defconfig
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunFor i.MX6 SoloX SABRE SD board:
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  make freescale_imx6sxsabresd_defconfig
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunFor i.MX6Q SABRE Auto board:
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun  make freescale_imx6qsabreauto_defconfig
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunFor i.MX6DL SABRE Auto board:
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun  make freescale_imx6dlsabreauto_defconfig
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunBuild all components:
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun  make
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunYou will find in ./output/images/ the following files:
50*4882a593Smuzhiyun  - imx6dl-sabresd.dtb or imx6q-sabresd.dtb or imx6sx-sdb.dtb or
51*4882a593Smuzhiyun    imx6q-sabreauto.dtb or imx6dl-sabreauto.dtb
52*4882a593Smuzhiyun  - rootfs.ext2
53*4882a593Smuzhiyun  - rootfs.tar
54*4882a593Smuzhiyun  - u-boot.imx
55*4882a593Smuzhiyun  - uImage, or zImage for i.MX6 SoloX
56*4882a593Smuzhiyun
57*4882a593SmuzhiyunBuilding with mainline kernel and mainline U-Boot
58*4882a593Smuzhiyun=================================================
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunMainline U-Boot uses SPL and can support the three
61*4882a593Smuzhiyunvariants of mx6sabreauto boards: mx6q, mx6dl and mx6qp.
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunFirst, configure Buildroot for your mx6sabreauto board
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun  make imx6-sabreauto_defconfig
66*4882a593Smuzhiyun
67*4882a593SmuzhiyunBuild all components:
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun  make
70*4882a593Smuzhiyun
71*4882a593SmuzhiyunYou will find in output/images/ the following files:
72*4882a593Smuzhiyun  - imx6dl-sabresd.dtb, imx6q-sabresd.dtb, imx6q-sabresd.dtb
73*4882a593Smuzhiyun  - rootfs.ext2
74*4882a593Smuzhiyun  - SPL and u-boot.img
75*4882a593Smuzhiyun  - u-boot.imx
76*4882a593Smuzhiyun  - zImage
77*4882a593Smuzhiyun
78*4882a593SmuzhiyunCreate a bootable SD card
79*4882a593Smuzhiyun=========================
80*4882a593Smuzhiyun
81*4882a593SmuzhiyunTo determine the device associated to the SD card have a look in the
82*4882a593Smuzhiyun/proc/partitions file:
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun  cat /proc/partitions
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunBuildroot prepares a bootable "sdcard.img" image in the output/images/
87*4882a593Smuzhiyundirectory, ready to be dumped on a microSD card. Launch the following
88*4882a593Smuzhiyuncommand as root:
89*4882a593Smuzhiyun
90*4882a593Smuzhiyun  dd if=./output/images/sdcard.img of=/dev/<your-microsd-device>
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun*** WARNING! The script will destroy all the card content. Use with care! ***
93*4882a593Smuzhiyun
94*4882a593SmuzhiyunFor details about the medium image layout, see the definition in
95*4882a593Smuzhiyunboard/freescale/common/imx/genimage.cfg.template.
96*4882a593Smuzhiyun
97*4882a593SmuzhiyunBoot the SABRE board
98*4882a593Smuzhiyun====================
99*4882a593Smuzhiyun
100*4882a593Smuzhiyuni.MX6 SABRE SD
101*4882a593Smuzhiyun--------------
102*4882a593Smuzhiyun
103*4882a593SmuzhiyunTo boot your newly created system on an i.MX6 SABRE SD Board (refer to
104*4882a593Smuzhiyunthe i.MX6 SABRE SD Quick Start Guide for guidance):
105*4882a593Smuzhiyun- insert the SD card in the SD3 slot of the board;
106*4882a593Smuzhiyun- locate the BOOT dip switches (SW6), set dips 2 and 7 to ON, all others to OFF;
107*4882a593Smuzhiyun- connect a Micro USB cable to Debug Port and connect using a terminal emulator
108*4882a593Smuzhiyun  at 115200 bps, 8n1;
109*4882a593Smuzhiyun- power on the board.
110*4882a593Smuzhiyun
111*4882a593Smuzhiyuni.MX6 SoloX SABRE SD
112*4882a593Smuzhiyun--------------------
113*4882a593Smuzhiyun
114*4882a593SmuzhiyunTo boot your newly created system on an i.MX6 SoloX SABRE SD Board
115*4882a593Smuzhiyun(refer to the i.MX6 SoloX SABRE SD Quick Start Guide for guidance):
116*4882a593Smuzhiyun- insert the SD card in the J4-SD4 socket at the bottom of the board;
117*4882a593Smuzhiyun- Set the SW10, SW11 and SW12 DIP switches at the top of the board in
118*4882a593Smuzhiyun  their default position, to boot from SD card. Reference configuration:
119*4882a593Smuzhiyun
120*4882a593Smuzhiyun    SW10
121*4882a593Smuzhiyun     1   2   3   4   5   6   7   8
122*4882a593Smuzhiyun    off off off off off off off off
123*4882a593Smuzhiyun
124*4882a593Smuzhiyun    SW11
125*4882a593Smuzhiyun     1   2  3  4  5   6   7   8
126*4882a593Smuzhiyun    off off ON ON ON off off off
127*4882a593Smuzhiyun
128*4882a593Smuzhiyun    SW12
129*4882a593Smuzhiyun     1  2   3   4   5   6   7   8
130*4882a593Smuzhiyun    off ON off off off off off off
131*4882a593Smuzhiyun
132*4882a593Smuzhiyun- connect a Micro USB cable to the J16 Debug Port at the bottom of the
133*4882a593Smuzhiyun  board. This is a dual UART debug port; connect to the first tty using
134*4882a593Smuzhiyun  a terminal emulator at 115200 bps, 8n1;
135*4882a593Smuzhiyun- power on the board with the SW1-PWR switch at the top of the board.
136*4882a593Smuzhiyun
137*4882a593SmuzhiyunSABRE Auto
138*4882a593Smuzhiyun----------
139*4882a593Smuzhiyun
140*4882a593SmuzhiyunTo boot your newly created system on a SABRE Auto Board (refer to the SABRE for
141*4882a593SmuzhiyunAutomotive Infotainment Quick Start Guide for guidance):
142*4882a593Smuzhiyun- insert the SD card in the CPU card SD card socket J14;
143*4882a593Smuzhiyun- Set the S1, S2 and S3 DIP switches and J3 jumper to boot from SD on CPU card.
144*4882a593Smuzhiyun  Reference configuration:
145*4882a593Smuzhiyun
146*4882a593Smuzhiyun    S1
147*4882a593Smuzhiyun     1  2   3   4  5   6   7   8   9  10
148*4882a593Smuzhiyun    off ON off off ON off off off off off
149*4882a593Smuzhiyun
150*4882a593Smuzhiyun    S2
151*4882a593Smuzhiyun     1   2  3   4
152*4882a593Smuzhiyun    off off ON off
153*4882a593Smuzhiyun
154*4882a593Smuzhiyun    S3
155*4882a593Smuzhiyun     1   2  3  4
156*4882a593Smuzhiyun    off off ON ON
157*4882a593Smuzhiyun
158*4882a593Smuzhiyun    J3: 1-2
159*4882a593Smuzhiyun
160*4882a593Smuzhiyun- connect an RS-232 UART cable to CPU card debug port J18 UART DB9 and
161*4882a593Smuzhiyun  connect using a terminal emulator at 115200 bps, 8n1;
162*4882a593Smuzhiyun- power on the board.
163*4882a593Smuzhiyun
164*4882a593SmuzhiyunEnjoy!
165*4882a593Smuzhiyun
166*4882a593SmuzhiyunReferences
167*4882a593Smuzhiyun==========
168*4882a593Smuzhiyun
169*4882a593Smuzhiyunhttps://community.freescale.com/docs/DOC-95015
170*4882a593Smuzhiyunhttps://community.freescale.com/docs/DOC-95017
171*4882a593Smuzhiyunhttps://community.freescale.com/docs/DOC-99218
172