Table of Contents

Advertisement

NXP Semiconductors
Document Number: LS1028ABSPUG
User's Guide
Rev. 0.3, 04/2019
Layerscape LS1028A BSP User Guide
Supports BSP v0.3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Layerscape LS1028A BSP and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for NXP Semiconductors Layerscape LS1028A BSP

  • Page 1 NXP Semiconductors Document Number: LS1028ABSPUG User's Guide Rev. 0.3, 04/2019 Layerscape LS1028A BSP User Guide Supports BSP v0.3...
  • Page 2: Table Of Contents

    4.2.12.1 Interface naming.........................88 4.2.12.2 ENETC Ethernet controller......................91 4.2.12.3 Felix Ethernet switch....................... 95 4.2.12.3.1 Modules and dependencies..................95 4.2.12.3.2 Device Tree bindings....................95 4.2.12.3.3 Linux usage.........................97 4.2.13 TSN................................. 103 4.2.13.1 Tsntool user manual.........................103 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 3 4.2.13.4.6 Qav test case......................122 4.2.13.4.7 Seamless redundancy test case................123 4.2.14 Multimedia...............................125 4.2.14.1 DisplayPort and LCD controller....................125 4.2.14.2 Graphics processing unit (GPU)....................129 4.2.14.3 Synchronous audio interface (SAI)................... 131 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 4: Chapter 1 Introduction

    But this richness means that the user space file is large, too large for RAM disks. Therefore, LS1028A BSP requires installation to and use of a mass storage device such as • SD card • USB flash drive • USB hard drive Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 5: Reference Documentation

    QorIQ LS1028A Development Sytem Provides detailed information about Contact FAE / sales representative Reference Manual LS1028AQDS interfaces, power supplies, clocks, DIP switches, LEDs, and CPLD system controller. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 6: Chapter 2 Release Notes

    • SerDes protocol support: — SerDes1: 0x85bb [default] — SerDes2: 0x85be • Multimedia and audio support: — Resolution supported: 480p,720p,1080p, and 4K — Support audio on serial interfaces with frame synchronization Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 7 — Mutimedia IPs - GPU, LCD, eDP/DP — Integrated Interchip Sound (I2S) / Synchronous Audio Interface (SAI) — eDMA, CAN Userspace components — TSNtool for configuring ENETC-TSN and L2Switch — OpenCL and OpenGL testcases and applications Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 8: Component Location

    Click here 2.4 Feature Support Matrix The following tables show the features that are supported in this release. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 9 • Switchdev support • TSN Qci, Qbv, Qbu, Qav, 802.1CB support ENETC-TSN • 1588 two steps time stamping support • Qbv, Qbu, Qci, Qav protocol support Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 10: Open, Fixed And Known Issues

    • Table3: Open/known issues: Contains Issues which have do not currently have a resolution. Workaround suggestions are provided wherever possible. Table 3. Fixed issues Description Status QLINUX-10979 LS1028ARDB - flextimer: no 'ftm_alarm' under /sys/ Fixed devices/platform/soc/2800000.ftm0/ Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 11 LS1028ARDB: video playback using GStreamer hang quickly on weston QLINUX-11423 LS1028AQDS: Kernel booting failed using LPUART U-Boot NOTE PPA is replaced by ‘TF-A’ , that is, Trusted Firmware for ARM in this release. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 12: Chapter 3 Ls1028A Bsp User Guide

    User can run the command cut -d: -f1 /etc/group | sort to check if docker group is included in the list of all the available groups. Add your account to “ docker” group $ sudo usermod -aG docker <accountname> $ sudo gpasswd –a <accountname> docker Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 13: Download And Assemble Ls1028A Bsp Images

    3. Generate LS1028A BSP Ubuntu userland, untar the prebuilt components tarball, and merge them into target userland. • Generate Ubuntu arm64 userland. $ flex-builder -i mkrfs -a arm64 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 14: Deploy Ls1028A Bsp Images On Board

    This option is typically useful when a remote Linux host server is used, and/or the user is accessing the reference board remotely. For this option, a network connection to the reference board is required. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 15: Ls1028Ardb Reference Information

    256 MB FlexSPI Region #1 More FlexSPI space below 0x0000_3000_0000 0x0000_3FFF_FFFF 256 MB Reserved 0x0000_4000_0000 0x0000_5FFF_FFFF 512 MB Reserved 0x0000_6000_0000 0x0000_7FFF_FFFF 512 MB Reserved Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 16 0x005F_FFFF_FFFF 128 GB Reserved 0x0060_0000_0000 0x007F_FFFF_FFFF 128 GB GPP DRAM Region #3 0x0080_0000_0000 0x0087_FFFF_FFFF 32 GB PCI Express 1 High-speed I/O (0x0080_0000_0000 -0x00FF_FFFF_FFFF) 0x0088_0000_0000 0x008F_FFFF_FFFF 32 GB PCI Express 2 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 17 U-Boot image in one chip-select to program an image set into a different chip-select. If the new images are flawed, the old images are still functional to let you deploy corrected images. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 18 MDIO MUX: no MDIO MUX node Hit any key to stop autoboot: Boot option switching can be performed in U-Boot using the following statements. • Switch to FlexSPI NOR flash (default): =>qixis_reset Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 19: Option 1 - Deploy Ls1028A Bsp Images Using Removable Storage Device

    5. After a successful installation, the message “installation finished successfully” appears. Execute the following command to unmount all mounted partitions of the target device. Example: $ sudo umount /run/media/sdX 6. Unplug removable storage device from the Linux host and plugin into the reference board. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 20: Option 2 - Deploy Bsp Images Directly To The Storage Device On A Board

    BSP images to the storage device on a reference board. The reference board may be accessed by the user remotely. For this option, a network connection to the reference board is required. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 21 For LS1028ARDB, this interface is named as Eth0 in TinyDistro and is labeled as 1G MAC0 on chassis front panel as shown in diagram below. 5. Use flex-installer to create and format the partitions for storage device (USB/SATA/SD). Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 22 $ flex-installer -i install -b bootpartition_<arch>_lts_<version>.tgz -r rootfs_ubuntu_<codename>_<arch>_<timestamp>.tgz -d /dev/mmcblk0 eMMC $ cd /run/media/mmcblk1p3 b. Download bootpartition_<arch>_<version>.tgz and using the ubuntu_<codename>_<arch>_rootfs_<timestamp>.tgz wget command. $ flex-installer -i install -b bootpartition_<arch>_lts_<version>.tgz -r rootfs_ubuntu_<codename>_<arch>_<timestamp>.tgz -d /dev/mmcblk1 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 23 => mmc write a0000000 8 0x25000 where, 0x25000 is number of blocks (max) on eMMC that are required to write the eMMC composite firmware. Each block is 512 bytes size. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 24: How To Build Ls1028A Bsp With Flexbuild

    The '-s' option is used for secure boot, OPTEE and FUSE_PROVISIONING are not enabled by default, change CONFIG_BUILD_OPTEE=n to y and/or change CONFIG_FUSE_PROVISIONING=n to y in configs/build_lsdk.cfg to enable it if necessary. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 25 (if -a <arch> is not specified, arm64 arch is used by default) $ flex-builder -c linux:custom -a arm64 (optional, customize kernel config in interactive menu) $ flex-builder -c linux -a arm64 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 26 (arm64 is the default arch if -a <arch> is not specified) To add new application component in Flexbuild, follow the steps below: 1. Add new <component> to apps_repo_list and set CONFIG_BUILD_<component>=y in configs/build_xx.cfg. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 27 => run sd_bootcmd (or run xspi_bootcmd to enter Tiny distro Linux environment) Download app_components_LS_arm64.tgz via wget or scp command root@TinyDistro:~# tar xf app_components_LS_arm64.tgz root@TinyDistro:~# cp -a components_LS_arm64/* /run/media/mmcblk0p3 root@TinyDistro:~# reboot Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 28 TF-A image based on U-Boot for SD boot on LS1043AXX $ cd packages/firmware/atf $ git checkout LSDK-18.12 -b LSDK-18.12-LS1043AXX $ flex-builder -c atf -m ls1043axx -b sd Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 29 $ flex-builder -i mkrfs -a arm64 $ flex-builder -c apps -a arm64 $ flex-builder -i mkbootpartition -a arm64 $ flex-builder -i merge-component -a arm64 $ flex-builder -i compressrfs -a arm64 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 30 • After booting and logging in to Linux on the target board, download the prebuilt distro tarballs generated by Flexbuild and install using the commands below: $ flex-installer -i pf -d /dev/sdx $ cd /run/media/{mmcblk0p3 or sdx3}, then download distro images to SD/USB/SATA storage disk via Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 31 ◦ Option 2: Download the prebuilt image using the command. wget $ wget https://www.nxp.com/lgfiles/sdk/ls1028a_bsp_03/ firmware_ls1028ardb_uboot_xspiboot.img ◦ Option 3: To locally generate firmware_ls1028ardb_uboot_xspiboot.img, run the command as below: $ flex-builder -i mkfw -m ls1028ardb -b xspi Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 32: Procedure To Run Secure Boot

    Write OTPMK fuse values on shadow registers. md 1e90014 80000900 md 1e80024 00000000 You will see ‘0’ in the second nibble. No parity errors, that is, bits marked in read are all 0’s. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 33 4. Put the board into RSP (reset pause). config_chain {ls1028a dap}; display ccs::get_config_chain; # To enable RSP: ccs::config_chain testcore; jtag::lock; jtag::state_move test_logic_reset; jtag::scan_out ir 4 3; jtag::scan_out dr 6 1; Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 34: Ls1028A Bsp Memory Layout

    ATF FIP Image (fip.bin) BL31 + BL32 + BL33 0x00100000 0x00800 Boot firmware Environment 0x00500000 0x02800 DP firmware 256KB 0x00900000 0x04800 Kernel lsdk_linux_<arch>.itb 16MB 0x01000000 0x08000 Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 35: Build Tools

    • Support native build on aarch64/armhf machine for ARM arch target. • Support creating an Ubuntu docker container and building LSDK inside it when the host machine is using CentOS, RHEL, Fedora, SUSE, Debian, non-18.04 Ubuntu, etc. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 36 • Run flex-builder docker command on the existing non Ubuntu 18.04 host to create a ubuntu 18.04 docker container in which GCC 7.3.0 is available, then build LSDK in docker. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 37: Chapter 4 Linux Kernel

    License(GPL) version 2. It rapidly attracted developers around the world. In 2015 the Linux kernel has received contributions from nearly 12,000 programmers from more than 1,200 companies. The software is officially released on http://www.kernel.org website Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 38: Configuring And Building

    These are done through make commands, below we will talk about commands you probably need to know as a kernel user. make Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 39 Specific command to load the default configuration of different platforms for LS1028A BSP will be: • For Layerscape ARMv8 platforms in 64bit mode: $ make defconfig lsdk.config • For Layerscape ARMv7 platforms: $ make multi_v7_defconfig multi_v7_lpae.config lsdk.config Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 40 • Copy kernel image, dtb and kernel modules from your kernel tree to the staging folder of the flexbuild script (Skip if you are using the flexbuild -c linux to build the kernel directly). — For 64-bit ARM: $ cp arch/arm64/boot/Image.gz ${path-to-flexbuild}/build/linux/kernel/arm64/ $ cp arch/arm64/boot/dts/freescale/*.dtb ${path-to-flexbuild}/build/linux/kernel/arm64/ $ make modules_install INSTALL_MOD_PATH=${path-to-flexbuild}/build/linux/kernel/arm64/ Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 41: Device Drivers

    CAAM DMA driver. The driver is based on the DMA engine framework and it is located under the DMA Engine support category in the kernel config menu. Kernel Configure Options Tree Overview Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 42 1 root root 0 Jan 1970 dma0chan0 -> ../../devices/platform/soc/1700000.crypto/ 1700000.crypto:caam_dma/dma/dma0chan0 lrwxrwxrwx 1 root root 0 Jan 1970 dma0chan1 -> ../../devices/platform/soc/1700000.crypto/ 1700000.crypto:caam_dma/dma/dma0chan1 lrwxrwxrwx 1 root root 0 Jan 1970 dma0chan2 -> ../../devices/platform/soc/1700000.crypto/ 1700000.crypto:caam_dma/dma/dma0chan2 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 43: Enhanced Secured Digital Host Controller (Esdhc)

    72.114927] dmatest: dma0chan0-copy2: summary 1 tests, 0 failures 24390 iops 0 KB/s (0) 72.115098] dmatest: dma0chan0-copy3: summary 1 tests, 0 failures 37037 iops 0 KB/s (0) 4.2.2 Enhanced Secured Digital Host Controller (eSDHC) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 44 Enable common helper function support for sdhci platform and OF drivers CONFIG_MMC_SDHCI_OF_ Enable NXP eSDHC support ESDHC Source Files The driver source is maintained in the Linux kernel source tree. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 45 MMC write: dev # 0, block # 0, count 2 ... 2 blocks written: OK => mmc read 82000000 0 2 MMC read: dev # 0, block # 0, count 2 ... 2 blocks read: OK Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 46 Disk /dev/mmcblk0: 7.5 GiB, 8001683456 bytes, 15628288 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 47 SD card working on UHS-I speed mode. When the card is on UHS-I speed mode, this hardware problem may cause unexpected result after board reset. The workaround is using power off/on instead of reset when using SD UHS-I card. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 48: Ieee 1588

    ENETC hardware timestamping support 2. Felix switch Kernel Configure Tree View Options Description Enable 1588 driver for Felix switch Device Drivers ---> [*] Network device support ---> Ethernet driver support ---> Microsemi devices Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 49 ENETC PTP driver 2. Felix switch Source File Description drivers/net/ethernet/mscc/felix_board.c Felix switch driver drivers/net/ethernet/mscc/felix_ptp.c Felix PTP driver Device Tree Binding 1. ENETC Property Type Status Description integer Required Register map Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 50 L2 Ethernet protocol with -2 option for CPU port with bridge case. Known Bugs, Limitations, or Technical Issues • The Felix switch interrupt had not been implemented in driver. Polling method in work queue was used instead temporary for timestamping support. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 51: Low Power Universal Asynchronous Receiver/Transmitter (Lpuart)

    Below are the configure options need to be set/unset while doing "make menuconfig" for kernel Kernel Configure Tree View Options Description LPUART driver and enable console support Device Drivers ---> Character devices ---> Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 52 1. Boot up U-Boot from bank0, and update rcw and U-Boot for LPUART support to bank4, first copy the rcw and U-Boot binary to the TFTP directory. 2. Please refer to the platform deploy document to update the rcw and U-Boot. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 53 - LinaroGCC 2013.11) ) #664 SMP Tue Jun 24 15:30:45 CST 2014 CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c73c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Freescale Layerscape LS1021A, model: LS1021A TWR Board Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 54: Flex Serial Peripheral Interface (Flexspi)

    This enabled support for the FlexSPI controller in master mode. Symbol: SPI_NXP_FLEXSPI [=y] Type : tristate Prompt: NXP Flex SPI controller Location: -> Device Drivers -> Memory Technology Device (MTD) support (MTD [=y]) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 55 Write the FlexSPI flash ~ # dd if=/bin/ls.coreutils of=tp bs=4096 count=1 ~ # mtd_debug write /dev/mtd0 0 4096 tp Copied 4096 bytes from tp to address 0x00000000 in flash Read the FlexSPI flash Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 56: Real Time Clock (Rtc)

    Set the system time from RTC when startup and resume CONFIG_RTC_HCTOSYS_D "rtc0" RTC used to set the system EVICE time CONFIG_RTC_INTF_SYSFS y/m/n Enable RTC to use sysfs Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 57 MC object device driver dpaa2_rtc registered rtc-ds3232 0-0068: setting system clock to 2000-01-01 00:00:51 UTC (946684851) NOTE: Please refer to the related DTS file to enable the RTC driver before building. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 58: Queue Direct Memory Access Controller (Qdma)

    DMA jobs from, different work queues. This module can be found on Freescale LS SoCs. Identifier Below are the configure identifiers which are used in kernel source code and default configuration files. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 59 32.529756] dmatest: dma0chan2-copy2: summary 100 tests, 0 failures 5211 iops 2709 KB/s (0) 32.537881] dmatest: dma0chan1-copy1: summary 100 tests, 0 failures 3044 iops 1461 KB/s (0) (0) dmatest: dma0chan0-copy3: summary 1000 tests, 0 failures 4078 iops 33474 KB/s (0) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 60 1 > /sys/module/dmatest/parameters/run Example log: root@ls2085ardb:~# echo 8 > /sys/module/dmatest/parameters/test_flag root@ls2085ardb:~# echo 10 > /sys/module/dmatest/parameters/iterations root@ls2085ardb:~# echo 2 > /sys/module/dmatest/parameters/threads_per_chan root@ls2085ardb:~# echo 32384 > /sys/module/dmatest/parameters/test_buf_size root@ls2085ardb:~# echo 4 > /sys/module/dmatest/parameters/max_channels Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 61: Serial Advanced Technology Attachment (Sata)

    Enables SATA controller CONFIG_SATA_AHCI_QORI y/m/n Enables SATA controller Source Files The driver source is maintained in the Linux kernel source tree. Source File Description drivers/ata/ahci_qoriq.c Platform AHCI SATA support Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 62 First data block=0 Maximum filesystem blocks=268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 63: Security Engine (Sec)

    Note: there are cases when fewer rings are accessible / visible in the kernel - for e.g. when firmware like Primary Protected Application (PPA) reserves one of the rings. • Queue Interface (QI) - available on SoCs implementing DPAA v1.x (Data Path Acceleration Architecture) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 64 QI frontend based implementation of echainiv(authenc(hmac(sha1),cbc(aes))) algorithm is: $ ./crconf update driver "echainiv-authenc-hmac-sha1-cbc-aes-caam-qi" type 3 priority 5000 Figure 3. Linux kernel - SEC device drivers overview Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 65 Hardware crypto devices ---> driver backend (SEC); all non-DPAA2 sub-options depend on <*> Freescale CAAM-Multicore platform driver backend (SEC) Enable debug output in CAAM Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 66 = "fsl,sec-v4.0"; fsl,sec-era = <2>; #address-cells = <1>; #size-cells = <1>; reg = <0x300000 0x10000>; ranges = <0 0x300000 0x10000>; interrupt-parent = <&mpic>; interrupts = <92 2>; clocks = <&clks IMX6QDL_CLK_CAAM_MEM>, Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 67 No test for echainiv(authenc(hmac(sha256),cbc(des))) (echainiv-authenc-hmac-sha256-cbc-des-caam) alg: No test for echainiv(authenc(hmac(sha384),cbc(des))) (echainiv-authenc-hmac-sha384-cbc-des-caam) alg: No test for echainiv(authenc(hmac(sha512),cbc(des))) (echainiv-authenc-hmac-sha512-cbc-des-caam) alg: No test for authenc(hmac(md5),rfc3686(ctr(aes))) (authenc-hmac-md5-rfc3686-ctr-aes-caam) alg: No test for seqiv(authenc(hmac(md5),rfc3686(ctr(aes)))) (seqiv-authenc-hmac-md5-rfc3686-ctr-aes- caam) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 68 No test for echainiv(authenc(hmac(sha384),cbc(des))) (echainiv-authenc-hmac-sha384-cbc-des-caam- alg: No test for echainiv(authenc(hmac(sha512),cbc(des))) (echainiv-authenc-hmac-sha512-cbc-des-caam- platform caam_qi: algorithms registered in /proc/crypto caam_jr 1710000.jr: registering rng-caam caam 1700000.crypto: caam pkc algorithms registered in /proc/crypto [...] Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 69 3. verify the kernel gets entropy: $ rngtest -C 1000 < /dev/random If it blocks, a kernel entropy supplier daemon, such as rngd, may need to be run. See linux/Documentation/hw_random.txt for more info. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 70 Yes (also echainiv) es)) authenc(hmac(sha384),cbc(d Yes (also echainiv) Yes (also echainiv) Yes (also echainiv) es)) authenc(hmac(sha512),cbc(d Yes (also echainiv) Yes (also echainiv) Yes (also echainiv) es)) Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 71 Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 72 (public key / asymmetric algorithms) can be turned off too, if needed. caamrng frontend (Random Number Generation) may be turned off in case there is an alternate source of entropy available to the kernel. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 73 No test for authenc(hmac(sha224),ecb(cipher_null)) (authenc-hmac-sha224-ecb-cipher_null-caam) alg: No test for authenc(hmac(sha256),ecb(cipher_null)) (authenc-hmac-sha256-ecb-cipher_null-caam) [...] alg: No test for authenc(hmac(md5),cbc(aes)) (authenc-hmac-md5-cbc-aes-caam) alg: No test for echainiv(authenc(hmac(md5),cbc(aes))) (echainiv-authenc-hmac-md5-cbc-aes-caam) alg: No test for echainiv(authenc(hmac(sha1),cbc(aes))) (echainiv-authenc-hmac-sha1-cbc-aes-caam) [...] Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 74 SEC hardware. Documentation regarding how to set up an IPsec tunnel can be found in corresponding open source IPsec suite packages, e.g. strongswan.org, openswan, setkey, etc. DPAA2-specific section contains a generic helper script to configure IPsec tunnels. Running OpenSSL Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 75 — Enqueue a frame descriptor (FD) into a QMan frame queue. Returns 0 if OK, -EBUSY if QMan driver fails to enqueue the FD for some reason or if congestion is detected. Synopsis int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req); Arguments dev: DPSECI device. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 76: Universal Serial Bus Interfaces

    The default kernel configuration enables support for USB_DWC3 as built-in kernel module. Kernel Configure Tree View Options Kernel Configure Tree View Options Description Enables USB host controller support Device Drivers---> USB support ---> Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 77 Network Control Model (NCM) support < > Gadget Filesystem < > Function Filesystem <M> Mass Storage Gadget < > Serial Gadget (with CDC ACM and CDC OBEX support) Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 78 Enables OSS PCM OSS_PLUGINS (digital audio) API - Include plugin system CONFIG_SND_SUPP Enables old ALSA API ORT_OLD_API CONFIG_SND_USB Enables USB sound devices CONFIG_SND_USB_A y/m/n Enables USB Audio/ UDIO MIDI driver Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 79 Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 80 There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 81 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 root@freescale /$ root@freescale /$ root@freescale /$ root@freescale /$ root@freescale /$ root@freescale /$ mount /dev/sda1 my_mnt/ root@freescale /$ root@freescale /$ root@freescale /$ root@freescale /$ df Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 82 Mass Storage Gadget To use ramdisk as a backing store use the following root@freescale /$ mkdir /mnt/ramdrive root@freescale /$ mount -t tmpfs tmpfs /mnt/ramdrive -o size=600M Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 83 Playback Switch' numid=4,iface=MIXER,name='PCM Playback Volume' numid=5,iface=MIXER,name='Headset Capture Switch' numid=6,iface=MIXER,name='Headset Capture Volume' numid=2,iface=PCM,name='Capture Channel Map' numid=1,iface=PCM,name='Playback Channel Map' [root@freescale ~]$ amixer –c1 Simple mixer control 'PCM',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 84 /$ insmod configfs.ko root@freescale /$ insmod libcomposite.ko root@freescale /$ insmod u_ether.ko root@freescale /$ insmod u_rndis.ko root@freescale /$ insmod usb_f_ecm.ko root@freescale /$ insmod usb_f_ecm_subset.ko root@freescale /$ insmod usb_f_rndis.ko root@freescale /$ insmod g_ether.ko Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 85 TX bytes:8976 (8.7 KiB) Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 86: Watchdog

    Watchdog device driver support kernel built-in mode. U-Boot Configuration Runtime options Env Variable Env Description Sub option Option Description bootargs Kernel command line setenv othbootargs Sets the watchdog timer argument passed to kernel wdt_period=35 period timeout Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 87 • Set NFS rootfs. Build a rootfs image which includes watchdog daemon. • Set boot parameter. On the U-Boot prompt, set following parameter: Set nfsargs: setenv bootargs wdt_period=35 root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip: $gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 88: Networking

    The following figure shows the Ethernet ports as presented in U-Boot. Note that not all ports are available. enetc#0 enetc#1 enetc#2 enetc#3 swp4 swp5 switch swp0 swp1 swp2 swp3 QSGMII Figure 4. U-boot network interfaces on RDB Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 89 QSXGMII add-on card. Interface naming in Linux The following figure shows how Ethernet ports are presented in Linux. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 90 Internal 0000:00:00.2 Connected internally (MAC to MAC) to swp4. This is used to carry traffic between the switch and software running on Arm cores. Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 91: Enetc Ethernet Controller

    To enable the ENETC PF and VF driver modules via make menuconfig Device Drivers ---> Network device support ---> Ethernet driver support ---> Freescale devices <*> ENETC PF driver <*> ENETC VF driver Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 92 { reg = <0x000600 0 0 0 0>; Source files Source file Description enetc_pf.c, enetc_pf.h ENETC PF driver, ENETC PSI and Port specific code Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 93 0000:00:00.6 eth3: ENETC PF driver v0.9 ENETC VF driver probing For example: probing ENETC VF0 of ENETC PF0 (Port0) # echo 1 > /sys/bus/pci/devices/0000\:00\:00.0/sriov_numvfs fsl_enetc 0000:00:00.0: SR-IOV start, 1 VFs # modprobe fsl-enetc- Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 94 • Rx flow steering (RFS) • Statistics and debug H/W counters (ethtool -S) and register dump (ethtool -d) • VF primary MAC addressconfig and MAC anti-spoofing • QoS – TC offloading with H/W MQPRIO Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 95: Felix Ethernet Switch

    For this binding, the follwing properties are required, their bindings already defined in ethernet.txt, under Documentation/ devicetree/bindings/net/* in the kernel source tree. Required: • phy-handle – reference to a PHY device node for switch ports [0 … 3]. Defined in ethernet.txt. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 96 = <&qsgmii_phy4>; phy-connection-type = "qsgmii"; port@4 { reg = <4>; fixed-link { speed = <1000>; full-duplex; port@5 { reg = <5>; cpu-ethernet = <&enetc_port3> fixed-link { speed = <1000>; full-duplex; Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 97: Linux Usage

    In CPU port mode, the user will use the net device interface of the switch port or the bridge interface. The below figure shows the connection of the L2Switch with the host CPU: Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 98 MAC and VLAN tables. As mentioned earlier, the frames transiting a non-CPU port are not carrying any custom tags. In this mode only, the peer net device port (that is, ENETC port) acts Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 99 The following script configures the L2Switch for the above setup: • Creates a bridge interface br0 • For each interface: — sets the MAC address — adds it to the bridge interface — brings up the interface Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 100 0000:00:00.5 swp0: Unsupported PHY speed: 0 Vitesse VSC8514 1f8100000:10: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:10, irq=POLL) br0: port 1(swp0) entered blocking state br0: port 1(swp0) entered forwarding state Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 101 0000:00:00.5 swp5: Link is Up - 1Gbps/Full - flow control off fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control off fsl_enetc 0000:00:00.6 eno3: Link is Up - 1Gbps/Full - flow control off Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 102 L2 forwarding does not work by default. Another difference from bridge mode is that each switch port interface can be used independently to send and receive packets. Figure 8. on page 103 shows the high-level view of this mode. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 103: Tsn

    4.2.13.1 Tsntool user manual The tsntool is a tool to set the hardware TSN capability ethernet ports. Source code Use the following link to get the access of tsntool source code: https://github.com/openil/tsntool.git. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 104 Set queues map to PCP tag (specific for LS1028A switch) sendpkt Not supported regtool Register read/write of bar0 of PFs (specific for LS1028A ENETC) ptptool Not supported Tsntool command parameters The following table describes the tsntool supported command parameters. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 105 ConfigChange. Default set to 1. --configchangetime <value> ConfigChangeTime command cbstreamidget --device <ifname> Interface, such as eth0/sw0p0 --index <value> Index entry number in this controller. Must have. Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 106 Default to set enable if no enable or disable input --configchange configchange --enblkinvrx PSFPGateClosedDueToInvalidRxEnable --blkinvrx PSFPGateClosedDueToInvalidRx --initgate PSFPAdminGateStates --initipv AdminIPV --cycletime Default not set. Get by gatelistfile. --cycletimeext PSFPAdminCycleTimeExtension --basetime PSFPAdminBaseTime Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 107 Index entry number in this controller. Must have. --disable Not set disable then to be set enable. --cir <value> cir. kbit/s. --cbs <value> cbs. octets. Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 108 : offset into pci memory region to act upon data : data to be written command ctset --device <ifname> Interface, such as eth0/sw0p0 Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 109 0x0 to 0xFFF. --his_len <value> SEQ_HISTORY_LEN: Refer to SEQ_HISTORY, Min 1 and Max --rtag_pop_en REDTAG_POP: If True, then the redundancy tag is popped by rewriter. Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 110: Kernel Configuration

    │ Prompt: 802.1 Time-Sensitive Networking support │ Location: │ -> Networking support (NET [=y]) │ -> Networking options │ Depends on: NET [=y] && VLAN_8021Q [=y] && PTP_1588_CLOCK [=y] │ Symbol: ENETC_TSN [=y] Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 111: Basic Tsn Configure Examples On Enetc

    The tsntool is an application configuration tool to configure the TSN capability. You can find files /usr/bin/tsntool and /usr/lib/ libtsn.so in the rootfs. Run tsntool to start the setting shell. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 112: Linuxptp Test

    Following are the qbv tests: Case 1: Basic gates close cat > qbv0.txt << EOF 00000000b 20000 #Exmplain: # 'NUMBER' # 'GATE_VLAUE' 00000000b # 'TIME_LONG' 20000 ns cp libtsn.so /lib ./tsntool Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 113 Case 3: Qbv performance test Test ENETC port0(MAC0) Figure 9. Setup cat > qbv5.txt << EOF 11111111b 1000000 00000000b 1000000 qbvset --device eth0 --entryfile qbv5.txt ./pktgen/pktgen_twoqueue.sh -i eth0 -q 3 -n 0 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 114: Qci Test Cases

    4. Send one frame from Test center. tsntool> qcisfiget --device eth0 --index 2 5. Set Stream Gate entry 2, gate close permanently. tsntool> qcisgiset --device eth0 --index 2 --initgate 0 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 115 4. Send frame from test center. The frame passes to stream filter index 1. tsntool> qcisfiget --device eth0 --index 1 SGI stream gate list cat > sgi1.txt << EOF 1000 1000 tsntool> qcisfiset --device eth0 --index 2 --gateid 2 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 116: Qbu Test

    Set frame path from eth0 to external by link enetc MAC0 - SWP0. Figure 11. QBU test setup NOTE • 0x11f10 Port MAC Merge Frame Assembly OK Count Register • 0x11f18 Port MAC Merge Fragment Count TX Register (MAC_MERGE_MMFCTXR) Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 117: Qav Test

    ./pktgen/pktgen_sample01_simple.sh -i eth0 -q 7 -s 500 -n 0 This gets approx 60% percentage line rate. 4.2.13.4 Basic TSN configure examples on switch 4.2.13.4.1 Switch configuration The following figure shows the switch configuration. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 118: Enable Timestamp On Switch

    Follow the following commands to enable timestamp on switch: #Init PTP: devmem 0x1fc0900a0 w 0x00000004 #Get PTP real time(second): devmem 0x1fc0900c4 4.2.13.4.3 Qbv test The following figure shows the Qbv test setup. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 119 # ’basetime’ (current_second_time+offset)<<32 + current_nsecond_time #send one broadcast frame to eth4 on TestCenter. #Frame could not pass eth5 until time offset. Gate time limitation echo “t0 00000000b 20000” > qbv0.txt Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 120: Qbu Test

    #set queue 1 to be preemptable tsntool> qbuset --device eth7 --preemptable 0x02 # Send two streams from TestCenter, then check the number of additional mPackets transmitted by PMAC: devmem 0x1fc010e48 32 && devmem 0x1fc010280 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 121: Qci Test Cases

    --device eth4 --enable --index 1 --initgate 1 --initipv 0 --gatelistfile sgi.txt -- basetime 0x0 # Send one frame on TestCenter. ethtool -S eth5 # Frame could not pass. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 122: Qav Test Case

    # Send one yellow stream (rate = 300M) on TestCenter. ethtool -S eth4 # Not all frames could pass and get yellow and red frames. 4.2.13.4.6 Qav test case The following figure shows Qav test case setup. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 123: Seamless Redundancy Test Case

    # Capture frames on eth6 on TestCenter. # Get Frame sequence is: (PCP=1), (PCP=2), (PCP=2), (PCP=1), (PCP=2), (PCP=2),… 4.2.13.4.7 Seamless redundancy test case The following figure shows the Seamless redundancy test case setup. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 124 --device eth8 –streamhandle 1 --nulldmac 0x7EA88C9B41DD --nullvid 1 tsntool> cbrec --device eth4 --index 1 --seq_len 16 --his_len 31 --rtag_pop_en tcpdump -i eth2 -w eth2.pcap # On board A: ping 192.168.0.2 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 125: Multimedia

    [*] IMX8 HD Display Controller [*] Bootup logo---> [*] Standard 224-color Linux logo Device tree configuration The following is default device tree configuration for LS1028A RDB and QDS board: &edp { fsl,no_edid; Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 126 Agreement and you acknowledge that you have the authority, for yourself or on behalf of your company, to bind your company to these terms. You may then download or install the file. … Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 127 Erase Group Size: 512 Bytes MMC read: dev # 0, block # 18432, count 512 ... 512 blocks read: OK Loading hdp firmware from 0x00000000a0000000 offset 0x0000000000002000 Loading hdp firmware Complete Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 128 2.650575] [drm] lanes: 4, vswing 0..3: 2 2 2, preemp 0..3: 2 1 1 2.650761] [drm] CDN_API_DPTX_Set_VIC_blocking (ret = 0) 2.650766] [drm] CDN_API_DPTX_SetVideo_blocking (ret = 0) 2.698031] Console: switching to colour frame buffer device 480x135 Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 129: Graphics Processing Unit (Gpu)

    Source files The GPU driver source is maintained in the Linux kernel source tree. Source File Description drivers/mxc/* GPU module support Test procedure Follow the below procedure to use GPU. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 130 4 (p=16)... running kernel 5 (p=32)... running kernel 6 (p=64)... Kernel execution time on GPU (kernel 0) : 0.000342 seconds Kernel execution time on GPU (kernel 1) : 0.000215 seconds Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 131: Synchronous Audio Interface (Sai)

    LS1028AQDS rcw_1300_audio.rcw, SDHC1_BASE_PMUX = 3 Kernel configure options tree view The following table describes the tree view of the kernel configuration options. Options Description Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 132 CONFIG_SND_PCM_OSS y/m/n Enable OSS digital audio CONFIG_SND_PCM_OSS_P y/m/n Support conversion of LUGINS channels, formats and rates CONFIG_SND_SUPPORT_O y/m/n Enable support old ALSA API LD_API Table continues on the next page... Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 133 0x66 0x53 0x4 c. The lineout interface is J34. 3. On the LS1028AQDS board: a. Set the switch SW6[1] = OFF and switch SW6[2] = ON. b. Connect the jumpers for J59. Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 134 4. Run the following command to test playback. aplay aplay -f S16_LE -r 44100 -t wav -c 2 44k-16bit-stereo.wav 5. Use alsamixer to adjust the volume for playing by the option “PCM” . Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019 NXP Semiconductors...
  • Page 136 How To Reach Us Information in this document is provided solely to enable system and software implementers to use NXP products. There are no express or implied copyright licenses granted hereunder to Home Page: design or fabricate any integrated circuits based on the information in this document. NXP nxp.com reserves the right to make changes without further notice to any products herein.

Table of Contents