readme.txt
1****************************
2Technexion i.MX7D Pico board
3****************************
4
5This file documents the Buildroot support for the Technexion i.MX7D Pico board.
6
7Build
8=====
9
10First, configure Buildroot for the i.MX7D Pico board:
11
12 make imx7dpico_defconfig
13
14Build all components:
15
16 make
17
18You will find in output/images/ the following files:
19 - imx7d-pico.dtb
20 - rootfs.ext4
21 - rootfs.tar
22 - sdcard.img
23 - u-boot-dtb.img
24 - SPL
25 - zImage
26
27Flash U-Boot and SPL
28=====
29
30Note: This method is convenient for development purposes.
31If the eMMC has already a U-Boot flashed with DFU support then
32the user can go to step 2 below in order to update U-Boot.
33
34Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
35page 3)
36
37Connect a USB to serial adapter between the host PC and pico.
38
39Connect a USB cable between the OTG pico port and the host PC.
40
41Note: Some computers may be a bit strict with USB current draw and will
42shut down their ports if the draw is too high. The solution for that is
43to use an externally powered USB hub between the board and the host computer.
44
45Open a terminal program such as minicom.
46
47Copy SPL and u-boot-dtb.img to the imx_usb_loader folder.
48
49Load the SPL binary via USB:
50
51$ sudo ./imx_usb SPL
52
53Load the u-boot-dtb.img binary via USB:
54
55$ sudo ./imx_usb u-boot-dtb.img
56
57Then U-Boot starts and its messages appear in the console program.
58
59Use the default environment variables:
60
61=> env default -f -a
62=> saveenv
63
64Run the DFU agent so we can flash the new images using dfu-util tool:
65
66=> dfu 0 mmc 0
67
68Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC:
69
70$ sudo dfu-util -D SPL -a spl
71
72$ sudo dfu-util -D u-boot-dtb.img -a u-boot
73
74Remove power from the pico board.
75
76Put pico board into normal boot mode.
77
78Power up the board and the new updated U-Boot should boot from eMMC.
79
80Flash the eMMC
81==============
82
83In the U-Boot prompt lauch:
84
85=> ums 0 mmc 0
86
87This will mount the eMMC content in the host PC as a mass storage device.
88
89To determine the device associated to the eMMC card have a look in the
90/proc/partitions file:
91
92 cat /proc/partitions
93
94Buildroot prepares a bootable "sdcard.img" image in the output/images/
95directory, ready to be dumped on the eMMC card. Launch the following
96command as root:
97
98 dd if=output/images/sdcard.img of=/dev/<your-sd-device>
99
100*** WARNING! This will destroy all the eMMC content. Use with care! ***
101
102For details about the medium image layout, see the definition in
103board/freescale/common/imx/genimage.cfg.template.
104
105Boot the i.MX7D Pico board
106==========================
107
108To boot your newly created system:
109- put a micro USB cable into the Debug USB Port and connect using a terminal
110 emulator at 115200 bps, 8n1;
111- power on the board.
112
113Using Wifi
114==========
115
116# modprobe brcmfmac
117# iwconfig wlan0 essid ACCESSPOINTNAME
118# wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
119(enter the wifi password and press enter)
120# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
121# udhcpc -i wlan0
122# ping buildroot.org
123
124Enjoy!
125