README (1622559066d890f1b7622be0ede8a5d64de66ef3) README (54d63bb1ad4fbf95e7136a4fef819e4631adbc39)
1How to use and build U-Boot on mx6sabresd:
2----------------------------------
1How to use and build U-Boot on mx6sabresd
2-----------------------------------------
3
3
4Currently there are four methods for booting mx6sabresd boards:
4The following methods can be used for booting mx6sabresd boards:
5
5
61. Booting from SD card via normal U-Boot (u-boot.imx)
61. Booting from SD card
7
7
82. Booting from eMMC via normal U-Boot
82. Booting from eMMC
9
9
103. Booting via SPL (SPL and u-boot.img)
103. Booting via Falcon mode (SPL launches the kernel directly)
11
11
124. Booting via Falcon mode (SPL launches the kernel directly)
13
12
131. Booting from SD card via SPL
14-------------------------------
14
15
151. Booting from SD card via normal U-Boot
16-----------------------------------------
16mx6sabresd_defconfig target supports mx6q/mx6dl/mx6qp sabresd variants.
17
17
18$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd)
18In order to build it:
19
19
20or
20$ make mx6sabresd_defconfig
21
21
22$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd)
23
24$ make
25
22$ make
23
26This will generate the image called u-boot.imx.
24This will generate the SPL and u-boot.img binaries.
27
25
28- Flash the u-boot.imx binary into the SD card:
26- Flash the SPL binary into the SD card:
29
27
30$ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync
28$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync
31
29
30- Flash the u-boot.img binary into the SD card:
32
31
332. Booting from eMMC via normal U-Boot
34--------------------------------------
32$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync
35
33
36$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd)
37
34
38or
352. Booting from eMMC
36--------------------
39
37
40$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd)
38$ make mx6sabresd_defconfig
41
42$ make
43
39
40$ make
41
44This will generate the image called u-boot.imx.
42This will generate the SPL and u-boot.img binaries.
45
43
46- Flash the u-boot.imx binary into the eMMC:
44- Boot first from SD card as shown in the previous section
47
45
48Set SW6 to download mode: 00001100
49
50Plug a usb cable to USB-OTG and load the u-boot image using the imx_usb_loader
51tool (https://github.com/boundarydevices/imx_usb_loader):
52
53$ sudo ./imx_usb u-boot.imx
54
55In U-boot change the eMMC partition config:
56
57=> mmc partconf 2 1 0 0
58
59Mount the eMMC in the host PC:
60
61=> ums 0 mmc 2
62
46In U-boot change the eMMC partition config:
47
48=> mmc partconf 2 1 0 0
49
50Mount the eMMC in the host PC:
51
52=> ums 0 mmc 2
53
63Flash the u-boot.imx binary
54- Flash SPL and u-boot.img binaries into the eMMC:
64
55
65$ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync
56$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync
57$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync
66
67Set SW6 to eMMC 8-bit boot: 11010110
68
69
58
59Set SW6 to eMMC 8-bit boot: 11010110
60
61
703. Booting via SPL
71------------------
72
73Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is
74through SPL. In order to do so:
75
76$ make mx6sabresd_spl_defconfig
77$ make
78
79This will generate the SPL image called SPL and the u-boot.img.
80
81- Flash the SPL image into the SD card:
82
83$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync
84
85- Flash the u-boot.img image into the SD card:
86
87$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 && sync
88
89
904. Booting via Falcon mode
623. Booting via Falcon mode
91--------------------------
92
63--------------------------
64
93$ make mx6sabresd_spl_defconfig
65$ make mx6sabresd_defconfig
94$ make
95
96This will generate the SPL image called SPL and the u-boot.img.
97
98- Flash the SPL image into the SD card:
99
66$ make
67
68This will generate the SPL image called SPL and the u-boot.img.
69
70- Flash the SPL image into the SD card:
71
100$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync
72$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 oflag=sync status=none && sync
101
102- Flash the u-boot.img image into the SD card:
103
73
74- Flash the u-boot.img image into the SD card:
75
104$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 oflag=sync status=none && sync
76$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 oflag=sync status=none && sync
105
106Create a partition for root file system and extract it there:
107
108$ sudo tar xvf rootfs.tar.gz -C /media/root
109
110The SD card must have enough space for raw "args" and "kernel".
111To configure Falcon mode for the first time, on U-Boot do the following commands:
112

--- 30 unchanged lines hidden ---
77
78Create a partition for root file system and extract it there:
79
80$ sudo tar xvf rootfs.tar.gz -C /media/root
81
82The SD card must have enough space for raw "args" and "kernel".
83To configure Falcon mode for the first time, on U-Boot do the following commands:
84

--- 30 unchanged lines hidden ---