Hide thumbs Also See for TrustBox:

Advertisement

Quick Links

TrustBox BSP user guide
Description
This technical reference document serves as a guide on
how to build and use the BSP for the Scalys TrustBox.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TrustBox and is the answer not in the manual?

Questions and answers

Summary of Contents for Scalys TrustBox

  • Page 1 TrustBox BSP user guide Description This technical reference document serves as a guide on how to build and use the BSP for the Scalys TrustBox.
  • Page 2 Introduction This document serves as a technical reference document on how to build the Board Support Package (BSP) for the Scalys TrustBox. It is meant to supplement the available documentation already provided by NXP[ , ]. The TrustBox features a QorIQ LS A processor[ ] that contains a single Arm Cortex-A core.
  • Page 3: Table Of Contents

    ........Why doesn’t my TrustBox seem to accept my commands on the serial port? .
  • Page 4 Primary NOR ash Partitioning ....... . Copyright © , Scalys BV Restricted...
  • Page 5: Install The Dependencies Using The Package Manager

    The LSDK build has been veri ed to work on Debian .8. Git setup # Setup username and email for git if not already done git config --global user.name "Your Name" git config --global user.email "user@example.com" Copyright © , Scalys BV Restricted...
  • Page 6: Building Images

    -a <accountname> docker sudo service docker restart Make sure to logout once to apply the changes to your user. . Clone bsp-lsdk repository from the Scalys github page to your working directory: git clone https://github.com/Scalys/bsp-lsdk.git . Switch to the release branch: cd bsp-lsdk &&...
  • Page 7 . in order to prepare the SD card for the TrustBox or continue with the following sections to build and modify U-boot and the Linux kernel. Copyright © , Scalys BV...
  • Page 8: Standalone Linux Kernel Build

    NXP guide[ ] to get more details on how to accomplish this. In this section we will show how to build a Linux kernel in a stand-alone fashion. Start by cloning the correct Linux kernel repository (with the appropriate branch) from the Scalys github page. For this example we take the kernel used in the...
  • Page 9: Firmware Components

    Namely an external QSPI ash device and an internal hardcoded source. The TrustBox by default selects the QSPI device as the source. The is a set of 6 bytes, which de ne how the LS A and its interfaces are con gured.
  • Page 10: U-Boot

    The exbuild build system supports the command to build a U-boot image, starting from this version it is available for the TrustBox machine: flex-builder -c uboot -m trustbox -b qspi The corresponding binary can be found at build/ rmware/u-boot/trustbox/. Standalone U-boot build Download the Scalys U-boot repository: git clone https://github.com/Scalys/u-boot-qoriq.git -b trustbox-1903 &&...
  • Page 11: Trustbox Ash Con Guration

    BSP User guide www.scalys.com TrustBox ash con guration Primary ash partitioning The primary NOR ash has been partitioned into the following functional parts: u-boot Partition containing the PBL (RCW + PBI) at x and U-boot bootloader starting from the offset...
  • Page 12: Rescue Ash Partitioning

    The rescue ash is read-only by default and contains a U-boot binary to recover the Tustbox primary ash. It also holds unique board con guration data, such as MAC addresses and manu- facturing data. Contact Scalys for more information regarding the rescue ash memory. Copyright ©...
  • Page 13: Installing And Updating Images

    Installing and updating images Flashing/updating the RFS on the SD card By default the TrustBox will attempt to boot the Linux kernel from an SD card. Without modi cation it requires the rst partition to be formatted into a ext lesystem.
  • Page 14: Recovering From The Rescue Ash

    <variable> command. Recovering from the rescue ash The primary ash memory data may become corrupted during usage. The TrustBox therefore includes a back-up U-boot image on a read-only rescue ash memory, that may be used to write correct data onto the primary ash memory . To boot from this rescue ash the following two steps should be performed: .
  • Page 15: Con Guration Necessary For A Tftp Boot

    Warning: TFTP has no security so be aware this folder is NOT SECURE! sudo mkdir /tftpboot sudo chmod -R 777 /tftpboot sudo chown -R nobody /tftpboot sudo chmod g+s /tftpboot Restart the xinetd service: sudo /etc/init.d/xinetd restart Copyright © , Scalys BV Restricted...
  • Page 16: Dhcp Server Installation And Con Guration

    00:11:22:33:44:55; fixed-address 192.168.1.180; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.150 192.168.1.200; option routers 192.168.1.254; option domain-name-servers 192.168.1.1, 192.168.1.2; Specify the interface in the ’/etc/default/isc-dhcp-server’ le: INTERFACES="<interface>" Restart the DHCP service. sudo service isc-dhcp-server restart Copyright © , Scalys BV Restricted...
  • Page 17: Frequently Asked Questions

    TrustBox with a static IP in the address range of your dedicated network port on your host PC. To do this we can add the following lines in the ’/etc/network/interfaces’ le:...
  • Page 18: Why Doesn't My Trustbox Produce Any Output Data On The Serial Interface

    Why doesn’t my TrustBox produce any output data on the serial interface? Firstly make sure you have the correct power supply for the TrustBox, or else it might not boot fully. Even though the green power LED is lit it might not be enough for all the interfaces on the TrustBox.
  • Page 19 Note that the LSDK kernel expects a valid ppa rmware to be available to boot succesfully. You can generate a default LS A ppa binary in the LSDK exbuild environment using: flex-builder -c ppa-generic -m trustbox You can then nd the binary under build/ rmware/ppa/soc-ls /ppa.itb, which may be pro- grammed in the primary ash under U-boot.
  • Page 20 [ ] NXP supporting information on LSDK in comparison to QorIQ Linux SDK, 8. [Online]. Available: https://www.nxp.com/docs/en/supporting-information/DN-LSDK-Introduction.pdf [6] Layerscape Software Development Kit download link (requires registration. [Online]. Available: https://www. nxp.com/support/developer-resources/run-time-software/linux-software-and-development-tools/ layerscape-software-development-kit-v . :LAYERSCAPE-SDK?tab=Design_Tools_Tab [ ] Layerscape Software Development Kit github page. [Online]. Available: https://lsdk.github.io/ Copyright © , Scalys BV Restricted...
  • Page 21 BSP User guide www.scalys.com List of Acronyms Board Support Package Reset Con guration Word LSDK Layerscape Software Development Kit Software Development Kit Pre-Boot Instructions Packet Forwarding Engine Pre-Boot Loader Root File System Primary Protected Application Copyright © , Scalys BV Restricted...

Table of Contents