For the complete documentation index, see llms.txt. This page is also available as Markdown.

HoneyComb LX2 / ClearFog CX LX2 Quick Start Guide

HoneyComb LX2 / ClearFog CX LX2

Introduction

The following quick start guide provides background information about the HoneyComb LX2 and ClearFog CX LX2 products which use the LX2160A Computer on module.

The guide will give a technical overview about the product and by the end of it you should be able to boot an operating system and begin testing your application.

Revision and Notes

Date

Owner

Revision

Notes

28 Oct 2021

1.0

Hardware Setup

Product Specifications

ClearFog CX LX2

HoneyComb LX2

I/Os

3 x USB 3.0 3 x USB 2.0

3 x USB 3.0 3 x USB 2.0

Networking

1 x QSFP port 100GbE 4 x SFP+ ports (10GbE each) 1 x 1GbE copper (RJ45)

4 x SFP+ ports (10GbE each) 1 x 1GbE copper (RJ45)

Processor

NXP Layerscape LX2160A 16-core Arm Cortex A72 up to 2GHz

NXP Layerscape LX2160A 16-core Arm Cortex A72 up to 2GHz

Memory & Storage

Up to 64GB DDR4 DIMM 64GB eMMC MicroSD 4 x SATA 3.0

Up to 64GB DDR4 DIMM 64GB eMMC MicroSD 4 x SATA 3.0

Misc.

USB to STM32 for remote management

USB to STM32 for remote management

Development and Debug interfaces

Micro USB JTAG

Micro USB JTAG

Power

ATX standard

ATX standard

Expansion card I/Os

1 x PCIe x8 Gen 3.0, open slot (can support x16) 1 x M.2

1 x PCIe x8 Gen 3.0, open slot (can support x16) 1 x M.2

Temperature

Commercial: 0°C to 70°C

Commercial: 0°C to 70°C

Dimensions

PCBA: 170 x 170mm

PCBA: 170 x 170mm

  • See list of tested LX2160A COM Tested SO-DIMM Memory modules.

  • The difference between the two versions is that HoneyComb does not have a QSFP interface

  • Serdes-1 lanes 0..3 are routed to the QSFP28 connector via TI retimers

  • Serdes-1 lanes 4..7 are directly connected to the 4xSFP+ ports

Block Diagram

The following figure describes the ClearFog CX Block Diagram.

Visual features overview

Please see below the features overview of the connector side of the HoneyComb

Software Setup

Cable setup and prerequisites

Here is what you will need to power up the board:

  • Linux or Windows PC

  • ClearFog CX/ HoneyComb

  • ATX 150W+ or Pico PSU 5A@12V

  • Micro USB to USB for console, the ClearFog Base has an onboard FTDI chip.

  • IP router or IP switch

The following is a list of industry-standard cables, sorted by type, with the necessary compliance requirements that have been proven to work well with the ClearFog product family.

These examples are the cables which SolidRun uses for testing, and should provide enough information to source products from your preferred cable vendor.

  • Ethernet cable: Monoprice 24AWG Cat6A 500MHz STP

  • USB Cable: SuperSpeed USB 3.0 Type A Male to Female Extension Cable in Black

  • SFP connector: GigaLite GE-GB-P1RT-E SFP module with Monoprice 24AWG Cat6A 500MHz STP cable

Boot Select

Before powering up the board for the first time it is recommended to select the boot media. In order to configure the boot media, please refer to the following DIP switch:

Boot media

Switch 1

Switch 2

Switch 3

Switch 4

Switch 5

SD

OFF

ON

ON

ON

X

eMMC

OFF

ON

ON

OFF

X

SPI

OFF

OFF

OFF

OFF

X

The following shows how to set the switches on the boot source selector:

Booting from an SD card

The switches on the boot source SW1 selector must be set as follows:

Switch 1

Switch 2

Switch 3

Switch 4

Switch 5

OFF

ON

ON

ON

X

The following shows how to set the switches on the boot source selector:

Once you set the switches, you can apply the following for booting from an SD card.

1. Downloading the image

See Selecting an LX2 Image to choose the correct image.

Download a pre-built snapshot image from SolidRun Images

Those images are organised by branch, build-date and commit id from the GitHub - SolidRun/lx2160a_build project that you can clone and build by yourself.

Please note The prebuilt images are configured for SO-DIMM DDR4 with speed of 2900, 2600 and 2400 Mtps (with or without ECC support),. Images that have the infix _xspi_ are intended to be flashed into SPI and recommended for later use after booting another image from micro SD

You can build your own image using the script in here – GitHub - SolidRun/lx2160a_build

2. Writing the image to the SD card

Use the following commands for writing the image to an SD card:

Note: Plug a micro SD into your Linux PC, the following assumes that the micro SD is added as /dev/sdX and all it’s partitions are unmounted.

3. SD card insertion

Please Insert the SD card into your device.

4. Power connection

Connect your power ATX, and then connect the adaptor to mains supply.

5. Serial Connection

Please insert the micro USB into your device, then you can refer to Serial Connection for installing necessary serial connection software in Linux/Windows.

6. Install rootfs Image to eMMC (or microSD)

The default images are designed to simplify installation of rootfs to eMMC, booting only into a minimal initramfs. For access to a full featured rootfs, install the contained image to either eMMC or the very same microSD:

Stop the u-boot count down by clicking any key –

To flash to eMMC run the following commands (it will wipe your data on the eMMC device).

Alternatively flash to the same microSD card used to boot:

Note: On BSP releases LSDK-21.08 and LS-5.15, sbstitute above "emmc.img" for "ubuntu-core.img".

Boot the machine by running ‘boot’ in u-boot.

Once you installed the necessary serial connection software and ran the above commands , you should be able to see the following:

  • In order to be able to log in , please insert “root” as a username and password as follows:

7. Final stages

The following stages need to be done in order to finalise the imaging:

  1. Run fdisk /dev/mmcblk1 if using SD, or run if using fdisk /dev/mmcblk0 eMMC.

  2. Recreate the first partition by deleting it and then creating a new partition that starts at block 131072 and extends to the end of the drive (or less depending on your needs).

  3. Write the new partition, when prompt about ‘Do you want to remove the signature?’ then answer with No.

  4. Run resize2fs /dev/mmcblk1p1 if using SD Card, or Run resize2fs /dev/mmcblk0p1 if using eMMC.

  5. In this stage the root partition should be big enough to start populating it; but first update the RTC clock.

  6. Connect the RJ45 to your network with internet access (and DHCP server); and then run dhclient .

  7. Update the RTC clock by running ntpdate pool.ntp.org and then hwclock -w.

  8. Run apt-update commands below and then populate the root filesystem as you wish.

Please see below an example of resizing the filesystem :

SFP Modules

For some SFP modules that were tested on SolidRun LX216x Platforms see SFP Modules: Tested on LX216x.

Using the built-in NICs

In case of SERDES configuration of 18 (default build) then dpmac.3 to dpmac.10 can be exposed. Those are 8x10 interfaces where first 4 dpmac.3 to dpmac.6 are exposed on QSFP connector, the remaining dpmac.7 to dpmac.10 are on the 2x2 SFP+ connector cage.

The 4 ports on QSFP can be accessed via 40G to 4x10G or 100G to 4x25G splitter cables (so called octopus cable), for 25Gbps speed Linux device-tree needs to be changed.

The SFP+ ports are designed for 10G. They can still support 25G with active modules (i.e. fiber or RJ45) however with some risk of noise between connector and CPU.

Ports are activated using NXP’s “restool” package. For example – dpmac.9 is the SFP+ port on the upper row and left towards PCB edge –

and then a new ethX ethernet interface is attached to the kernel.

For SERDES SD1 config 20 which is dual 40G, then dpmac.1 and dpmac.2 are to be used where dpmac.1 is achieved directly by using the QSFP port and dpmac.2 by using an 40G to 4x10G splitter cable where the splitter cable is connected to HoneyComb.

For different dpmac configuration please refer to the reference manual on different SERDES configuration and how it’s map to the different dpmacs.

DPDK

For DPDK support please see our LX2160A DPDK Documentation.

IEEE 1588

The LX2160A CEX-7 module can expose some IEEE1588 related pins of LX2160A SoC to the carrier board using non-standard reserved pins of CEX-7 connector. It must be enabled manually, see LX2160A CEX-7 HW User Manual for rework instructions.

IEEE 1588

The Clearfog-CX & Honeycomb boards have a dedicated pin header providing optional access to the IEEE1588 features of LX2160A, located between PCI-E and M.2 connectors and labeled J29:

LX2160A Signal
Pin on J29
Voltage
Notes

I1588_PULSE_OUT2

1

1.8V

Assemble R542

I1588_TRIG_IN1

2

1.8V

I1588_PULSE_OUT1

3

1.8V

Assemble R540

I1588_TRIG_IN2

4

1.8V

I1588_ALARM_OUT1

5

1.8V

EVT3_B

6

3.3V

GPIO3_DAT15 (I/O)

I1588_ALARM_OUT2

7

1.8V

I1588_CLK_OUT

8

1.8V

IEEE_RCLK0

9

1.8V

I1588_CLK_IN

10

1.8V

GND

11

GND

12

LX2160A Clearfog-CX IEEE1588 Assembly Options Location

IEEE 1588 / Sync-E SMU

The Clearfog-CX & Honeycomb boards have assembly option for a Synchronization Management Unit (SMU), which was never tested.

IEEE 1588 Trigger Input

The LX2160A SoC features two trigger inputs (I1588_TRIG_IN1, I1588_TRIG_IN2) which are available on the pin header described above. These triggers are directly used by the PTP Hardware Block and the Linux PTP driver.

The logic level is 1.8V and there are no pull-up or pull-down resistors. When left unconnected, this causes random noise to create hundreds of trigger events. When using just a single trigger, the other should be tied to GND or 1.8V. Depending on the trigger source, pull-up or pull-down resistors may be required.

Trigger events can be validated using Linux kernel testptp utility:

An easy test-case is shorting I1588_PULSE_OUT2 with I1588_TRIG_IN2 (i.e. J29 pins 1 and 4), since LX2160 by default outputs 1pps:

IEEE 1588 / Sync-E Recovered Clock

The LX2160A SoC can output the recovered clock of up to two of its SerDes lanes on the RCLK0 and RCLK1 pins. On this board RCLK0 is available on pin header J29, while RCLK1 is routed to the untested Sync-E SMU.

RCLK0 is controlled by two registers:

  • SerDes Lane m RX General Control Register 1 (LNmRGCR1, 32-bit @ base + 0x848 + (m * 0x100))

    SerDes 1 base: 0x01EA0000 SerDes 2 base: 0x01EB0000

    Bits 10-8 select the external recovered clock divider:

    • 0: off

    • 1: /32

    • 2: /40

    • 3: /48

    • 4: /64

    • 5: /80

    • 6: /96

    • 7: /100

    See QorIQ LX2160A Reference Manual, Rev. 0, 07/2020 Section 26.4.1.20.

  • SerDes_1_2_RECOVERED_CLOCK_SELECT_FOR_RCLK0_PAD (RECOV_CLK_SEL_RCLK0 32-bit @ 0x01FC004C)

    A one-hot mux for the RCLK0 pad, covering the lanes of both SerDes:

    • bits 0-7 select a SerDes 1 lane, i.e. set bit n for lane index n

    • bits 8-15 select a SerDes 2 lane, i.e. set bit 8 + n for lane index n

    See QorIQ LX2160A Reference Manual, Rev. 0, 07/2020 Section 10.3.1.1.

Both registers address a lane by its letter, i.e. index 0 for lane A through index 7 for lane H. For SerDes 2 this matches the lane numbers used elsewhere in the Reference Manual, but for SerDes 1 the two run in opposite directions. Use the listing below to translate a documented lane number / letter / mac number into the register lane index:

  • SerDes 1 Lane 0 (H / MAC 3): Index 7

  • SerDes 1 Lane 1 (G / MAC 4): Index 6

  • SerDes 1 Lane 2 (F / MAC 5): Index 5

  • SerDes 1 Lane 3 (E / MAC 6): Index 4

  • SerDes 1 Lane 4 (D / MAC 7): Index 3

  • SerDes 1 Lane 5 (C / MAC 8): Index 2

  • SerDes 1 Lane 6 (B / MAC 9): Index 1

  • SerDes 1 Lane 7 (A / MAC 10): Index 0

  • SerDes 2 Lane 0 (A / MAC 11): Index 0

  • SerDes 2 Lane 1 (B / MAC 12): Index 1

  • SerDes 2 Lane 2 (C / MAC 13): Index 2

  • SerDes 2 Lane 3 (D / MAC 14): Index 3

  • SerDes 2 Lane 4 (E / MAC 15): Index 4

  • SerDes 2 Lane 5 (F / MAC 16): Index 5

  • SerDes 2 Lane 6 (G / MAC 17): Index 6

  • SerDes 2 Lane 7 (H / MAC 18): Index 7

Example: recover the 10Gbps clock from the lower-left SFP+ port (MAC 10), and output 161MHz on RCLK0 (J29-9). MAC 10 is SerDes 1 lane 7, i.e. lane A, which the registers address as index 0:

The pin idles high and starts producing a 161MHz sine wave as soon as the Linux netdev is brought up.

While the lane is linked, this waveform is the clock actually recovered by the SerDes receiver, and therefore generated by the link partner. Without a link the receiver keeps retrying adaptation, and the resulting free-running clock drifts slightly.

The waveform below was captured with the port linked to an external Zyxel switch over fiber, using a consumer-grade 200MHz bandwidth scope:

GPUs

GPUs that were briefly tested –

  1. AMD RX550 2GB – requires installing the kernel modules first and then ‘linux-firmware’ package. Running ‘glmark2’ under X results 4633 and ‘glmark2 –fullscreen’ results 3983.

  2. GeForce GTX 1050 2GT OCV1 – requires instsalling the kernel modules (simply untar on the root filesystem root directory) then the GPU is recognized and initialized. windowed glmark2 result is 150; which is very poor and most probably related to the OSS drivers (no binary drivers for ARM as for the time writing this article).

Tips

  1. sshd is disabled by default for root access. Edit /etc/ssh/sshd_config and set ‘PermitRootLogin yes’

  2. ssh to the machine might take long time after boot. To accelerate that install ‘rng-tools’ where it’s main daemon increases the kernel’s entropy and accelerates random number key generation (which used by libssl and sshd afterwards).

Example to install Gentoo from the Ubuntu

Gentoo is a free and open-source distribution with a rolling-release model. The bootloader and kernel provided are recent enough to install Gentoo from the eMMC Ubuntu to the NVMe or SATA device.

Build From Source

Documentation

Last updated