Note: If you want to use one of the older kernels, you may also need to set up a ping in u-boot. Replace 192.168.1.1 in the command below with an IP address from your network and PASTE it to the u-boot:

If your server does not support dhcp, you need to paste also the following commands (otherwise skip this). In the first command update the IP address which will be assigned to the Rex board and the subnet mask of your network (in format 192.168.1.78:::255.255.255.0):

Insert the prepared SD card to the J29 SD slot (it is the slot placed on the board edge). Unplug and plug power cable (this will reset the board). The board should boot up to the Linux command line within one minute. If the booting is slower, your network configuration is possibly incorrect (kernel is waiting for an answer from DHCP server).

DDR3 Memory

This is a good memory test. It will run for 20 seconds. If you need to run it for longer change the number "20" to something higher (e.g. 600000). If you need to run it on more then 100MB, change the number "100" (e.g. 256). To interrupt the test use CTRL+C:

UART

Interface UART1 (RS232) is used as a serial console - so if you see uboot and Linux booting up and you can write some commands, the UART1 is working. To test UART2 we will use a simple serial loopback test. Before you start the test, fit a link to connect pins: J31.3 together with J31.5. Following test application will check if data sent are received back correctly:

Run the serial-loopback-test command, wait few seconds (e.g. 10 seconds) and then press CTRL+C. FAILED must be 0.

CFAST SATA

Turn the board OFF (disconnect power). Plug a CFAST card into the J15 holder and connect the board power back. The board will boot up into Linux. Use "dmesg" command to find out, where the CFAST disk is located:

# dmesg | tail

From the dmesg, you will see how the CFAST was recognized. In our case, the CFAST is located in /dev/sda and has one partition at /dev/sda1. We will map this sda1 partition into /media and do a simple copy test:

SD card

The SD2 interface (SD2 interface is connected to the slot placed on the board edge) has been already tested (you have successfully booted up Linux from an SD card plugged into this socket). To test the SD3 interface, we use a simple copy test. First, check how the SD card was recognized:

# dmesg | tail
mmcblk1: mmc0:e624 SU32G 29.7 GiB
mmcblk1: p1

In this example, the card is recognized as /dev/mmcblk1 and has one partition called /dev/mmcblk1p1. Check if a jumper on the header JP3 is fitted on. If the header is open, fit the jumper and reboot the board. (Note: If the jumper is not fitted, the SD3 is read only. If the jumper is fitted on, the SD card is read/write). Insert SD3 card after the board has booted up (when the Linux command line is ready). COPY & PASTE these commands:

You should see something similar as above. The numbers must not be all FF or 00.

LVDS

Connect an LVDS display to the Rex board. Connect the LVDS backlight to a power. Fit a link to the header J17 between pins 2-3. Be aware! If you connect the link wrong way you may damage your LVDS display! (Note: the link selects LVDS power voltage between 3.3V or 5V). COPY & PASTE this command to run a test video on the LVDS display:

# mplayer -vo fbdev2 -vf scale -zoom -xy 1024 ~/Clouds.avi

HDMI

Connect HDMI monitor. Be sure that the monitor has selected the correct input (hdmi). Paste these commands and you should see the test video:

Audio

Plug your headphones into the black jack connector and your speakers into the green jack connector. Set up audio first (in the alsamixer set headphones volume to the maximum - first column - and turn ON the speakers):

# alsamixer

Run this command to play a simple audio test file (you should hear birds):

# aplay -D hw:0,0 ~/blackbird.wav

PCIE

Turn off the board. Plug Intel 4965AGN wifi card to PCIE mini card slot J4. Connect also antennas in the ports 1 and 3. After you power up the board stop autoboot and paste these commands to the u-boot:

The Red LED diode next to the USB stacked connector indicates that USB is plugged in. Test if the mouse is working in the graphical GUI - move it and see the cursor on the LVDS display. It has to work. Do exactly same for the second USB connector (unplug the USB mouse and plug it into the second position):

USB 1 & SIM card

To test USB 1, we need to plug in the Telit HE 910 modem. Plug also the SIM card to the holder J5 located on the bottom side. Turn off the board. Insert the modem card into the PCIE mini slot J4 and connect an antenna to the center RF connector. Power up the board. Run serial console on the modem port:

# picocom /dev/ttyACM3 -b 115200

To test the USB interface and setup the modem, use these AT commands (COPY & PASTE the commands starting with AT):

AT
OK
AT#DVI=1,2,1
OK
AT#DVIEXT=1,0,0,1,0
OK

Now, the iMX6 Rex is ready to receive a call. Call your modem (use the SIM card number which is inserted in the Baseboard). You should see the RING message in the picocom. Use "ATA" command to receive the call:

RING
RING
ATA
OK

To exit from the picocom, press CTRL+A and then CTRL+X.

Important!

Before you send the tested module to a customer, update the u-boot environmental variables (run these commands):