= Gateworks Newport Family Support =
{{{
#!html
}}}
[[PageOutline]]
The Gateworks Newport product family utilizes the Cavium ARM ThunderX CN80xx / CN81xx SoC (System On Chip) offering a large variety of peripherals with a focus on Networking, and Security. See here for a product comparison matrix.
= Links =
'''Please note: This is a subset of information for Newport, however, please visit our [wiki:WikiStart Main Wiki] for all other information'''
== Software ==
* [#bsp Newport Board Support Packages and Operating Systems]
* [#linux Linux kernel support]
* [#third-party-linux Booting Third Party Linux Distro's on Newport]
* [#jtag Newport JTAG Programming]
== Peripheral Support ==
* [wiki:ventana/expansion Gateworks Expansion Modules - GW16081, GW16082, GW16083]
* [wiki:SPI SPI Support]
* [wiki:gpio/#gpiolib GPIO Control]
* [wiki:gpio/#led_class LED Control]
* [wiki:alternateconnectors Connector and Cable Information]
* [wiki:sata mSATA Information]
* [wiki:gps GPS Support]
* [wiki:canbus CAN Bus Support]
* [wiki:ventana/PCIe PCI/PCIe information]
* [wiki:minipciexpressmodules PCIe Accessory Cards]
* [wiki:ventana/simsd SIM and microSD Card Information]
* [wiki:gsc Gateworks System Controller (GSC)] - Temperature, voltage, RTC, GPIO, Digital IO, I/O, pushbutton, etc
* [wiki:enclosures Gateworks Enclosures]
== Performance / Processor / Memory / Power / Thermal ==
* [wiki:multicoreprocessing Multi Core Processing]
* [wiki:boot_speed Increasing Boot Speeds]
== Other Info ==
* [http://www.gateworks.com/product#newport Product Info]
* [http://shop.gateworks.com Where to Buy]
* [wiki:newport/errata Newport Board Errata]
* [wiki:linux/devicetree Linux Kernel Device-Tree info]
[=#jtag]
== JTAG Programming
The Gateworks JTAG dongle (GW16099) is available in the Newport Dev Kit as well as on the Gateworks web store [http://shop.gateworks.com/index.php?route=product/category&path=70_80 here]
All Newport boards have a 10-pin JTAG header which provides:
* JTAG Programming for embedded FLASH - see [wiki:jtag_instructions here] for instructions
* Serial Console access via UART0 (/dev/ttyAMA0)
Please Note:
* '''Linux software is supported for programming Newport (jtag_usbv4 required).''' Windows is not supported at this time.''' (serial console through Windows does work).
* '''JTAG Programming of eMMC has not been made available yet'''. You must boot from a microSD image to program or re-program eMMC flash
== User Manual ==
* [http://www.gateworks.com/usermanuals All Gateworks User Manuals]
== Processor Reference Manual / Datasheet / Errata ==
The [http://www.cavium.com/OCTEON-TX-CN80XX-81XX.html Cavium Website] contains details about the OCTEON TX Dual and Quad core 64bit ARM based SoC's.
Additional references:
* [http://www.cavium.com/pdfFiles/OCTEON-TX-CN80XX-CN81XX-Product-Brief-Rev1.pdf OCTEON TX CN80XX-CN81XX Product Brief]
[=#bsp]
= Board Support Packages (BSP) Software =
{{{
#!html
}}}
== Choosing a BSP ==
Gateworks offers several Board Support Packages for the Newport Product family. Which one we recommend depends a bit upon what your goal is and what your experience level is
* [#OpenWrtBoardSupportPackageBSP OpenWrt] - '''Coming Soon for Newport''' - intended for wireless routers and access points (low flash and memory footprint)
- '''Recommended for networking users wanting to create a headless router, VPN, basestation, wireless access point and more. Produces by far the smallest storage and memory footprint but users new to Embedded Linux will have a bit of a learning curve'''
- Fairly up-to-date and/or vanilla kernel support
- Latest wireless drivers (via linux-backports)
- Custom application config and init system (nice for small footprint, but can make adding support for additional packages more work)
- Wide variety of packages (including a fairly nice web-admin)
- Console-based build system (expect 60mins to build BSP for a specific board family)
- Downloadable SDK and Toolchain available to build apps on a development host without building the entire BSP
- Pre-built images available
* [#Ubuntu Ubuntu]
- '''Recommended for developers trying to heavily leverage opensource software packages or libraries that are not supported by the other BSP's. This is the most user-friendly for developers new to Embedded Linux but will not produce a very trimmed down filesystem image.'''
- Uses mainline kernel.
- Supports all Newport features.
- Documentation provided to use Ubuntu pre-built packages and debootstrap to create a root filesystem in minutes
- Native compilation: no SDK or cross-toolchain needed
The following table may also help in choosing what BSP is right for you:
||= Feature =||= OpenWrt =||= Ubuntu =||= Notes =||
|| Pre-built images || Yes || Yes || ||
|| Storage Needed || <256MB || 2GB or larger || ||
|| Build-System || Yes || No || 1 ||
|| Toolchain || SDK || Native || 2 ||
|| Web-Admin || Yes || No || 3 ||
1. The OpenWrt BSP contain an integrated build-system. Ubuntu has step-by-step instructions on how to build an bootable system in 10 or so steps.
2. The OpenWrt BSP provides a downloadable SDK for cross-compiling applications on a development hosts. For Ubuntu native development and compilation is supported.
3. The OpenWrt BSP is designed to be a wireless router and has an integrated web-admin for configuration and control.
[=#openwrt]
== OpenWrt Board Support Package (BSP) ==
'''Coming Soon'''
Newport OpenWrt BSP:
* [wiki:newport/openwrt#Step2.InstallingFirmware Pre-Built Binaries]
* [wiki:newport/openwrt Building/Installing OpenWrt w/ Gateworks Patches for the Newport Family]
* [wiki:OpenWrt Main OpenWrt Wiki Page]
* [wiki:OpenWrt/SDK#NewportNotes OpenWrt SDK Toolchain]
* join the [http://www.gateworks.com/mailman/listinfo maillist] to follow activity
* [wiki:OpenWrt/gpio GPIO and LED Configuration]
The Newport OpenWrt BSP provides the following:
* Linux 4.x kernel (fairly vanilla)
* latest wireless drivers (compat-wireless)
* tuned for minimal FLASH/memory footprint (entire distro fits on embedded 16MB FLASH)
[=#ubuntu]
== Ubuntu ==
Gateworks offers a pre-built Ubuntu distribution using the latest Gateworks kernel as well as instructions on how to build your own Ubuntu based distribution.
* [wiki:ventana/ubuntu Ubuntu Wiki and Software]
[=#third_party_linux]
= Third Party Linux Distros =
While Gateworks cannot fully support all Linux distros, it is relatively simple to overlay a Gateworks Newport kernel onto any non-Gateworks third party Linux distro rootfs image.
The following links will describe what is needed:
1. Linux kernel supporting Newport: [wiki:linux/kernel]
2. Root Filesystem: [#rootfs see below]
3. Bootable media: [wiki:linux/blockdev]
[=#rootfs]
=== Root filesystem Sources ===
There are several sources of pre-built root filesystems that are compatible with Newport. As Newport uses an ARM 64bit based SoC, you need to use something that is compatible with an ARMv8 instruction set. Many pre-built distributions will reference 'arm64' which means 'ARM 64-bit' which is appropriate for the CN80XX / CN81XX SoC.
Some popular third-party sources:
* [http://cdimage.ubuntu.com/ubuntu-core/releases/ Ubuntu Core] - this is a minimal filesystem that you can build off of at runtime by adding packages from various repositories.
* [https://releases.linaro.org/ Linaro] - Linaro has several root filesystems including server, nano, developer, core, and ALIP. Each root filesystem will have different things installed for different purposes. Choose carefully which will work for you.
Notes:
* some root filesystems may require you to manually add a user before booting (ie Ubuntu Core)
* the default Newport bootloader expects to find the Image in the /boot directory on the 2nd partition of type ext2/3/4
[=#mainline-linux]
= Mainline Linux Kernel support =
Gateworks actively participates in the development of the Linux kernel.
Cavium licenses CPU core IP from ARM and the name they give the CPU core within the OCTEON-TX CN80XX / CN81XX is the Cavium 'ThunderX'. Therefore many of the peripheral drivers within the Linux kernel have 'thunderx' in their name and more often then not the 'OCTEON' name refers to the older OCTEON MIP64 core.
The following table shows what OCTEON-TX CN80XX / CN81XX peripherals support is available in the mainline kernel starting from 4.13:
||= Feature =||= Support =||= Notes =||
|| [wiki:multicoreprocessing SMP] || Yes || ||
|| [wiki:serial] UART || Yes || ||
|| I2C || Yes (4.9+) ||
|| Networking MAC (thunderx_bgx) || Yes (4.2+) ||
|| Networking PHY (thunder_xcv) || Yes (4.9+) ||
|| PCI || Yes (4.6+) ||
|| SPI || Yes (4.9+) ||
|| [wiki:MultiMediaCard MultiMediaCard] eMMC / microSD || Yes (4.12+) ||
|| HW RNG (Hardware Random Number Generator) || Yes (4.9+) || ||
|| HW Compressions offload || Yes (4.12+) || ||
|| Crypto || Yes (4.11+) || ||
|| [wiki:gsc#rtc RTC] || Yes || ||
|| [wiki:gpio LED/GPIO] || Yes (4.14+) || ||
|| USB 3.0 || Yes || ||
|| [wiki:sata mSATA] || Yes || ||
|| [wiki:canbus CAN bus] || Yes || ||
For details on building a Linux kernel see [wiki:linux/kernel here]