7. The board

This chapter introduces the board, its hardware and how to boot it.

7.1. Hardware

The hardware documentation of TWR-LS1021A can be found here:

TWR-LS1021A: QorIQ LS1021A Tower System Module

7.2. Power-On

TWR-LS1021A takes the power from the J3 connector. The board is shipped with an external power adapter.

_images/power-on.jpg

To power-on the board, connect the power supply to J3.

7.3. Serial Console

On TWR-LS1021A the USB-UART port J5 is used for serial console.

_images/serial-usb.jpg

which you can connect, by means of a mini-USB cable, to your personal computer.

Note

Every operating system has its own killer application to give you a serial terminal interface. In this guide, we are assuming your host operating system is Ubuntu.

On a Linux (Ubuntu) host machine, the console is seen as a ttyACMX device and you can access to it by means of an application like minicom.

Minicom needs to know the name of the serial device. The simplest way for you to discover the name of the device is by looking to the kernel messages, so:

  1. clean the kernel messages
  Host    select
sudo dmesg -c
  1. power on the board connecting the power supply cable to PWR JACK J3
  2. connect the mini-USB cable to the board
  3. display the kernel messages
  Host    select
dmesg
  1. read the output
  Host    select
[ 5522.462414] usb 2-1.1: new full-speed USB device number 6 using ehci_hcd
[ 5522.557574] cp210x 2-1.1:1.0: cp210x converter detected
[ 5522.630151] usb 2-1.1: reset full-speed USB device number 6 using ehci_hcd
[ 5522.723501] usb 2-1.1: cp210x converter now attached to /dev/ttyACM0

As you can see, here the device has been recognized as /dev/ttyACM0.

Now that you know the device name, run minicom:

  Host    select
sudo minicom -ws

If minicom is not installed, you can install it with:

  Host    select
sudo apt-get install minicom

then you can setup your port with these parameters:

  Host    select
+-----------------------------------------------------------------------+
| A -    Serial Device      : /dev/ttyACM0                              |
| B - Lockfile Location     : /var/lock                                 |
| C -   Callin Program      :                                           |
| D -  Callout Program      :                                           |
| E -    Bps/Par/Bits       : 115200 8N1                                |
| F - Hardware Flow Control : No                                        |
| G - Software Flow Control : No                                        |
|                                                                       |
|    Change which setting?                                              |
+-----------------------------------------------------------------------+
        | Screen and keyboard      |
        | Save setup as dfl        |
        | Save setup as..          |
        | Exit                     |
        | Exit from Minicom        |
        +--------------------------+

If on your system the device has not been recognized as /dev/ttyACM0, just replace /dev/ttyACM0 with the proper device.

Once you are done configuring the serial port, you are back to minicom main menu and you can select exit.

7.4. Let’s boot

Make sure that TWR-LS1021A boot mode jumpers are set like in the following picture:

_images/sdcard-jumpers.jpg

Insert the SD card you just prepared inside socket J18.

Set the jumpers J20 and J19 pin2-3:

_images/sdcard-jumpers2.jpg

Connect the power supply cable to PWR JACK J3.

Connect the mini-USB cable from your PC to TWR-LS1021A USB connector.

And now proceed by setting up the serial console.

Give root to the login prompt:

  Board    select
ls1021atwr login: root

and press Enter.

Note

Sometimes, the time you spend setting up minicom makes you miss all the output that leads to the login and you see just a black screen, press Enter then to get the login prompt.