background image

d. Reboot with eMMC as boot source.

=> qixis_reset emmc

In the steps above, the contents of the eMMC are overwritten with the new eMMC firmware. The board is then
rebooted using the onboard eMMC.

3.2 How to build LS1028A BSP with Flexbuild

Flexbuild provides cmdline for various build scenarios. The 

LS1028A BSP Quick Start

 on page 12 section introduces how to build

the LS1028A BSP distro userland with prebuilt boot partition and component tarballs for quick deployment on the target board.
This section introduces detailed steps to build LS1028A BSP with Flexbuild.

Click here

 to download flexbuild source tarball in the name format flexbuild_<version>.tgz

$  tar xvzf flexbuild_<version>.tgz
$  cd flexbuild 
$  source setup.env 
$  flex-builder -h

Build TF-A with RCW and U-Boot in Flexbuild

Layerscape platforms support TF-A (Trusted Firmware-A) which provides a reference implementation of secure world software
for Armv7-A and Armv8-A.

flex-builder can automatically build the dependent RCW, U-Boot, OPTEE and CST when building ATF to generate bl2 and fip
images for Layerscape platforms.

Use the commands below to build uboot-based ATF image in Flexbuild.

Usage:
$ flex-builder -c atf  -m <machine>  -b <boottype> [-s]
Example:
$ flex-builder -c atf -m ls1028ardb -b xspi            # build uboot-based ATF image for Flexspi-NOR 
boot on ls1028ardb
$ flex-builder -c atf -m ls1028ardb -b sd              # build uboot-based ATF image for SD boot on 
ls1028ardb
$ flex-builder -c atf -m ls1028ardb -b xspi -s         # build uboot-based ATF image for Flexspi-NOR 
secure boot on ls1028ardb

 

In case users modify RCW source code (in packages/firmware/rcw) or specify different RCW binary rather than
the default one, run 'flex-builder -c rcw' to regenerate RCW binary, then reconfigure rcw_<boottype> variable in
configs/board/<machine>/manifest.

  NOTE  

 

If RCW or U-Boot source code is updated since last build, make sure clean the obsolete image by commands 'rm
-rf build/firmware/u-boot/<machine>' and/or 'rm -rf build/firmware/rcw/<machine>', then re-build ATF by command
'flex-builder -c atf -m <machine> -b <boottype>'

  NOTE  

 

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.

  NOTE  

LS1028A BSP user guide

Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019

24

NXP Semiconductors

Summary of Contents for Layerscape LS1028A BSP

Page 1: ...Layerscape LS1028A BSP User Guide Supports BSP v0 3 NXP Semiconductors Document Number LS1028ABSPUG User s Guide Rev 0 3 04 2019...

Page 2: ...5 Build tools 35 Chapter 4 Linux kernel 37 4 1 Configuring and building 38 4 2 Device Drivers 41 4 2 1 CAAM Direct Memory Access DMA 41 4 2 2 Enhanced Secured Digital Host Controller eSDHC 43 4 2 3 I...

Page 3: ...17 4 2 13 4 1 Switch configuration 117 4 2 13 4 2 Enable timestamp on switch 118 4 2 13 4 3 Qbv test 118 4 2 13 4 4 Qbu test 120 4 2 13 4 5 Qci test cases 121 4 2 13 4 6 Qav test case 122 4 2 13 4 7 S...

Page 4: ...script to create and install LS1028A BSP onto a mass storage device as an integration ready for use on an NXP reference or evaluation board You can build NXP components from source using a script call...

Page 5: ...ut the LS1028A QorIQ multicore processor and its features such as memory map serial interfaces power supply chip features and clock information Contact FAE sales representative QorIQ LS1028A Reference...

Page 6: ...rt in Linux Gstreamer video player support in user space Run time detection of display monitor s resolution 2 2 Summary of overall features Highlights Processor support LS1028A processor Board support...

Page 7: ...4 14 47 A72 core Timer SMP boot Clock UART DDR4 DSPI QDS board only eSDHC eMMC GIC I2C OCRAM USB SATA FlexSPI access to NOR flash PCIe gen3 rootcomplex USB SATA Networking interfaces ENETC L2Switch EN...

Page 8: ...org external qoriq qoriq components atf ls1028a early access bsp0 3 dp firmware https www nxp com lgfiles sdk ls1028a_bsp_01 ls1028a dp fw bin NA tsntool https source codeaurora org external qoriq qo...

Page 9: ...d recycling Multiple Rx and Tx queues supported separate MSI X per CPU Scather Gather and Jumbo frame up to 9600B support Rx Tx MAC filtering VLAN insertion extraction and VLAN filtering Checksum offl...

Page 10: ...Read write support in U Boot Flextimer Support in Linux Performance monitor Perf events support in Linux CAN Tx Rx support in Linux 2 5 Open Fixed and Known Issues This section contains Fixed and Ope...

Page 11: ...does not reboot after kill watchdog process Fixed QLINUX 11391 LS1028ARDB System hangs when add switch port to bridge when connect switch port to TFTP server Fixed QUBOOT 4990 LS1028ARDB SATA does not...

Page 12: ...build For non root users obtain sudo permission by running the command sudoedit etc sudoers and adding a line user account name ALL ALL ALL NOPASSWD ALL in etc sudoers To build the target Ubuntu user...

Page 13: ...28A BSP images perform the steps below 1 Download the flexbuild source tarball and set up flexbuild environment Go to www nxp com and click the Download button to download flexbuild source tarball nam...

Page 14: ...hough other non official userland Debian CentOS buildroot based tiny distro etc can be generated and composed with the common LS1028A BSP boot partition containing Linux kernel DTBs distro boot script...

Page 15: ...FFFF 1 MB CCSR Boot ROM 64 KB 0x0000_0010_0000 0x0000_00FF_FFFF 15 MB Reserved 0x0000_0100_0000 0x0000_0FFF_FFFF 240 MB CCSR 0x0000_1000_0000 0x0000_10FF_FFFF 16 MB Reserved 0x0000_1100_0000 0x0000_11...

Page 16: ..._0000 0x0004_0FFF_FFFF 256 MB SPI Hole 0x0004_1000_0000 0x0004_FFFF_FFFF 3 75 GB FlexSPI Region 2 256 MB 4 GB 3 75 GB 0x0005_0000_0000 0x0005_FFFF_FFFF 4 GB Reserved 0x0006_0000_0000 0x0006_FFFF_FFFF...

Page 17: ...VBAT_EN Open Disable battery backup for TA_BB_VDD default value Shorted Enable battery backup for TA_BB_VDD J27 1x2 pin connector PROG_MTR voltage control for NXP use only Open PROG_MTR pin is powere...

Page 18: ...00 00000000 00000000 00000000 00000050 00000000 00000000 00000000 00000000 00000060 00000000 00000000 200e705a 00000000 00000070 bb580000 00000000 Model NXP Layerscape 1028a RDB Board Board LS1028AE R...

Page 19: ...nic_LS_arm64 tgz 64 bit 3 Setup the environment for flex installer to run cd flexbuild source setup env 4 Execute flex installer with appropriate arguments to deploy LS1028A BSP images to the storage...

Page 20: ...a0000000 0 filesize qixis_reset If SD card is to be used as boot source execute the commands below to program the SD card mmc rescan mmc dev 0 mmc write a0000000 8 0x25000 qixis_reset sd If eMMC is t...

Page 21: ...ce the reference board to boot TinyDistro Reboot the board and stop autoboot to enter U Boot prompt in FlexSPI NOR flash or SD card eMMC If FlexSPI NOR is the boot source run the following command to...

Page 22: ...scp command c flex installer b bootpartition_ arch _lts_ version tgz r rootfs_ubuntu_ codename _ arch _ timestamp tgz d dev sdX SATA a cd run media sdX3 b Download bootpartition_ arch _ version tgz a...

Page 23: ...NOR flash CS0 or SD card eMMC and stop autoboot to enter U Boot prompt b Download the BSP SD composite firmware for LS1028ARDB using the command wget http www nxp com lgfiles sdk ls1028a_bsp_03 firmwa...

Page 24: ...orms Use the commands below to build uboot based ATF image in Flexbuild Usage flex builder c atf m machine b boottype s Example flex builder c atf m ls1028ardb b xspi build uboot based ATF image for F...

Page 25: ...tory then run the command below to compile kernel as per the default defconfig lsdk config and the additional test config flex builder c linux a arm64 B fragment test config Platform Command for build...

Page 26: ...ot img firmware_ls1028aqds_uboot_xspiboot_secure img firmware_ls1028ardb_uboot_emmcboot img To generate LS1028A BSP boot partition tarball run the command as below flex builder i mkbootpartition a arm...

Page 27: ...for example as below root localhost dhclient i eno0 root localhost cd root localhost wget path linux_4 14_LS_arm64_ timestamp tgz or by scp command root localhost tar xf linux_4 14_LS_arm64_ timestam...

Page 28: ...qoriq_arm64_moderate_defconfig flex builder i mkrfs r buildroot custom a arm64 be generate arm64 big endian buildroot userland with custom qoriq_arm64_moderate_defconfig flex builder i mkrfs r buildr...

Page 29: ...anifest for new machine as below mkdir configs board ls1043axx cp configs board ls1043ardb manifest configs board ls1043axx g Update the settings in configs board ls1043axx manifest on demand h Genera...

Page 30: ...mize kernel config in interactive menu flex builder c linux a arch flex builder i mkfw m machine b boottype flex builder i mkrfs a arch flex builder c apps a arch flex builder i merge component a arch...

Page 31: ...3 firmware_ls1028ardb_uboot_sdboot img Option 3 To locally generate firmware_ls1028ardb_uboot_sdboot img run the command as below flex builder i mkfw m ls1028ardb b sd 2 Program firmware_ machine _ubo...

Page 32: ...ot img to Flexspi NOR flash sf probe 0 0 sf erase 0 filesize sf write 0xa0000000 0 filesize 3 3 Procedure to run secure boot The following steps describe how to run secure boot on the LS1028A RDB QDS...

Page 33: ..._secure pbi header ii uni_sign input_files uni_sign ls1028 nor input_uboot_secure uboot header iii uni_sign input_files uni_sign ls1028 nor input_ppa_secure ppa header iv uni_sign input_files uni_sign...

Page 34: ...1E80270 4 0 SRKH8 ccs display_mem 1 0x1e80254 4 0 8 ccs run_core 1 ccs write_mem 2 0x7 0x001000D0 4 0 0x00040000 After implementing all the above steps the board boots up and Linux prompt appear after...

Page 35: ...ild framework and integrated platform with capabilities of flexible easy to use scalable system build and distro installation With flex builder CLI tool users can build various components Linux U Boot...

Page 36: ...Ubuntu userland containing the specified packages and application components Since LSDK 18 06 upgrading of toolchain is required for U Boot v2018 03 or later if your host machine is not a Ubutnu 18 0...

Page 37: ...ations running on the system and manages system hardware A typical Linux system looks like this Figure 2 Typical Linux System The Linux kernel was created in 1991 by Linus Torvalds and released as an...

Page 38: ...eleases NXP Layerscape SDK kernel NXP s SDK kernel often contains patches that are not upstream yet so essentially the LSDK kernel is an enhanced Linaro LSK which is in turn an enhanced kernel org LTS...

Page 39: ...them will save effort if you are using make in kernel frequently Configuring kernel The current kernel configuration for a kernel source tree will be kept in a hidden file named config at the top lev...

Page 40: ...enable all these listed kernel configure options together Building kernel Building the kernel is simple To build kernel images and device tree images make To build loadable kernel modules make module...

Page 41: ...e any available remote update approach to do the same if compiled remotely Update kernel modules Note kernel modules are required to be updated when you updated the kernel image If you compiled the ke...

Page 42: ...le fsl sec v5 4 dma Source Files The following source file is related to this feature in the Linux kernel Source File Description drivers dma caam_dma c The CAAM DMA driver Verification in Linux On a...

Page 43: ...matest parameters test_buf_size The above configuration is self explanatory except a few If you set the noverify parameter to 0 it will not perform check of the copied buffer at the end of each testin...

Page 44: ...SDHCI OF support for the NXP eSDHC controller Enables NXP eSDHC driver support Compile time Configuration Options Option Values Default Value Description CONFIG_MMC y n y Enable SD MMC bus protocol C...

Page 45: ...1800 1800 3300 3300 sdhci auto cmd12 big endian bus width 4 Verification in U Boot The U Boot log mmcinfo Device FSL_SDHC Manufacturer ID 74 OEM 4a45 Name SDC Tran Speed 50000000 Rd Block Len 512 SD...

Page 46: ...e them Be careful before using the write command Device does not contain a recognized partition table Created a new DOS disklabel with disk identifier 0x5a5f34b3 Command m for help n Partition type p...

Page 47: ...ng group tables done Writing inode tables done Writing superblocks and filesystem accounting information done Mount read and write mount dev mmcblk0p1 mnt ls mnt lost found cp r lib mnt sync ls mnt li...

Page 48: ...s node 6 For LS1012ARDB RevD and later versions I2C reading for DIP switch setting is not reliable so U Boot could not enable disable SDHC2 automatically If SDHC2 is used esdhc1 should be set in U Boo...

Page 49: ...itch driver support CONFIG_MSCC_FELIX_SWI TCH_PTP_CLOCK y n m n Enables PTP driver support Source Files The driver source is maintained in the Linux kernel source tree 1 ENETC Source File Description...

Page 50: ...MP_TX_ON Hardware Receive Filter Modes none HWTSTAMP_FILTER_NONE all HWTSTAMP_FILTER_ALL On the master side ifconfig eth0 up ifconfig eth0 192 168 1 100 ptp4l i eth0 p dev ptp1 m On the slave side ifc...

Page 51: ...ig files under include configs directory Option Identifier Description CONFIG_LPUART Enable LPUART support CONFIG_FSL_LPUART Enable NXP LPUART support CONFIG_LPUART_32B_REG Select 32 bit LPUART regist...

Page 52: ...000 0x0 0x1000 interrupts GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH clocks sysclk clock names ipg fsl lpuart32 status okay Source Files The following source file are related to this feature in U Boot Source File...

Page 53: ...in sgmii mode eTSEC2 is in sgmii mode eTSEC1 eTSEC2 PRIME eTSEC3 Verification in Linux 1 After uboot startup set the command line parameter to pass to the linux kernel including console ttyLP0 115200...

Page 54: ...enabled for FlexSPI CONFIG_NXP_FSPI y CONFIG_FSPI_AHB_EN_4BYTE y CONFIG_SYS_FSPI_AHB_INIT y Kernel Configure Tree View Options Device Drivers Memory Technology Device MTD support RAM ROM Flash chip dr...

Page 55: ...s 0x0 Written OK sf read 81100000 0 1000 SF 4096 bytes 0x0 Read OK cm b 81100000 82000000 1000 Total of 4096 byte s were the same Verification in Linux The booting log nxp fspi 20c0000 flexspi mt35xu5...

Page 56: ...stem time from RTC on startup and resume new rtc0 RTC used to set the system time new sys class rtc rtcN sysfs proc driver rtc procfs for rtc0 dev rtcN character devices Enable RTC driver Compile time...

Page 57: ...patible string Required Should be dallas ds3232 Default node i2c 3000 address cells 1 size cells 0 compatible fsl i2c reg 0x3000 0x100 interrupts 43 2 interrupt parent mpic dfsrr rtc 68 compatible dal...

Page 58: ...erred can be represented in memory as contiguous or noncontiguous using scatter gather table s Channel virtualization is supported through enqueuing of DMA jobs to or dequeuing DMA jobs from different...

Page 59: ...32 503430 dmatest Started 4 threads using dma0chan1 32 508939 dmatest Started 4 threads using dma0chan2 32 520073 dmatest dma0chan0 copy0 summary 100 tests 0 failures 4904 iops 2452 KB s 0 32 520076 d...

Page 60: ...aa2 qdma The qDMA driver file Verification in Linux Create DPDMAI object using restool restool dpdmai create priorities 2 5 restool dprc assign dprc 1 object dpdmai 0 plugged 1 Configure parameters fo...

Page 61: ...dma0chan3 sg1 summary 10 tests 0 failures 1830 iops 414714 KB s 0 68 515016 dmatest dma0chan3 sg0 summary 10 tests 0 failures 1670 iops 512859 KB s 0 4 2 8 Serial Advanced Technology Attachment SATA D...

Page 62: ...ad cache enabled doesn t support DPO or FUA sda sda1 sda2 sda3 sda4 sda5 sda6 sd 0 0 0 0 sda Attached SCSI disk 3 play with the disk according to the following log root ls1046 root fdisk l dev sda Dis...

Page 63: ...seamlessly with in kernel crypto users such as IPsec in a way that any IPsec suite that configures IPsec tunnels with the kernel will automatically use the hardware to do the crypto SEC v5 x is backwa...

Page 64: ...piled in the same multi platform kernel image however run time detection will make sure only the proper one is active However JRI QI and JRI DPSECI are valid combinations and both backends will be act...

Page 65: ...encryption AEAD caamalg_qi2 Module loading CAAM device drivers can be compiled either built in or as modules with the exception of DPSECI backend which is always built in See section Source Files on...

Page 66: ...hash algorithm implementations with Crypto API hashing only via JRI caamhash driver Register public key cryptography implementations with Crypto API asymmetric public key only via JRI caam_pkc driver...

Page 67: ...caam alg No test for echainiv authenc hmac sha256 cbc aes echainiv authenc hmac sha256 cbc aes caam alg No test for authenc hmac sha384 cbc aes authenc hmac sha384 cbc aes caam alg No test for echain...

Page 68: ...aes caam qi alg No test for echainiv authenc hmac sha384 cbc aes echainiv authenc hmac sha384 cbc aes caam qi alg No test for echainiv authenc hmac sha512 cbc aes echainiv authenc hmac sha512 cbc aes...

Page 69: ...The AEAD algorithms are mainly for use with IPsec ESP however there is also support for TLS 1 0 record layer encryption CAAM drivers currently supports offloading the following AEAD algorithms stitch...

Page 70: ...niv Yes also echainiv Yes also echainiv authenc hmac sha224 cbc d es3_ede Yes also echainiv Yes also echainiv Yes also echainiv authenc hmac sha256 cbc d es3_ede Yes also echainiv Yes also echainiv Ye...

Page 71: ...512 rfc36 86 ctr aes Yes also seqiv Yes also seqiv Yes also seqiv authenc hmac md5 ecb ciph er_null Yes No No authenc hmac sha1 ecb ciph er_null Yes No No authenc hmac sha224 ecb ci pher_null Yes No N...

Page 72: ...re and zero loss benchmarks have in fact produced better results with this option turned off If selected two additional options become effective Job Ring interrupt coalescing count threshold CRYPTO_DE...

Page 73: ...supported by the driver If the algorithm is supported there is a possibility that the driver is in polling mode NAPI mechanism and the hardware statistics in debugfs inbound outbound bytes encrypted p...

Page 74: ...r Inbound Bytes Validated Register ib_rq_decrypted holds contents of PC_IB_DEC_REQ Performance Counter Inbound Decrypt Requests Register kek holds contents of JDKEKR Job Descriptor Key Encryption Key...

Page 75: ...as the form callback struct device dev u32 desc u32 stat void arg areq optional pointer to a user argument for use at callback time caam_qi_enqueue Name caam_qi_enqueue Enqueue a frame descriptor FD i...

Page 76: ...on as a standalone USB xHCI host controller USB dual role operation and can be configured as host or device Super speed 5 GT s High speed 480 Mbps full speed 12 Mbps and low speed 1 5 Mbps operations...

Page 77: ...USB sound devices USB Audio MIDI driver Enables support for USB Audio devices This driver is needed for USB microphone Device Drivers USB support USB Gadget Support M USB Gadget Drivers USB functions...

Page 78: ...B_ETH y m n n Enable Ethernet style communication CONFIG_USB_MASS_ STORAGE m n n Enable USB Mass Storage disk drive CONFIG_SOUND y m n y Enables Sound Card Support CONFIG_SND y m n y Enables ALSA Adva...

Page 79: ...0x3100000 0x0 0x10000 interrupts GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH dr_mode peripheral maximum speed super speed Host Testing Following are serial console logs that appear during bootup if dr_mode set to...

Page 80: ...treme 0001 PQ 0 ANSI 6 sd 0 0 0 0 sda 31277232 512 byte logical blocks 16 0 GB 14 9 GiB sd 0 0 0 0 Attached scsi generic sg0 type 0 sd 0 0 0 0 sda Write Protect is off sd 0 0 0 0 sda Write cache disab...

Page 81: ...freescale df Filesystem 1K blocks Used Available Use Mounted on shm 516684 0 516684 0 dev shm rwfs 512 0 512 0 mnt rwfs root freescale mkdir my_mnt root freescale root freescale root freescale mkfs e...

Page 82: ...tree usbcore registered new interface driver usbfs usbcore registered new interface driver hub usbcore registered new device driver usb usbcore registered new interface driver usb storage Make sure d...

Page 83: ...rd 0 FSLVF610TWRBOAR FSL VF610 TWR BOARD device 0 HiFi sgtl5000 0 Subdevices 1 1 Subdevice 0 subdevice 0 card 1 USB Jabra SPEAK 410 USB device 0 USB Audio USB Audio Subdevices 1 1 Subdevice 0 subdevic...

Page 84: ...Mono Playback 2 18 28 00dB on b volume up down Below commands are trying to set volume to 11 and 2 performing volume up and down respectively root freescale amixer c1 set PCM 11 Simple mixer control...

Page 85: ...59 eth0 Link encap Ethernet HWaddr 00 E0 0C BC E5 60 BROADCAST MULTICAST MTU 1500 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 colli...

Page 86: ...10 56 data bytes 64 bytes from 10 232 1 10 seq 0 ttl 128 time 5 294 ms 64 bytes from 10 232 1 10 seq 1 ttl 128 time 6 101 ms 64 bytes from 10 232 1 10 seq 2 ttl 128 time 4 170 ms 64 bytes from 10 232...

Page 87: ...er Space Application The following applications will be used during functional or performance testing Please refer to the UM document for the detailed build procedure Command Name Description Package...

Page 88: ...as wake up source with the default Ubuntu root filesystem add watchdog device dev watchdog to etc watchdog conf NOTE 4 2 12 Networking 4 2 12 1 Interface naming Following section documents the associ...

Page 89: ...access remote hosts connected to switch ports Internal Internal enetc 3 0000 00 00 6 Connected internally MAC to MAC to the Ethernet switch This interface is present if bit 851 is set in RCW 1G SWP0 t...

Page 90: ...0 1 RGMII interface is not present on RDB board and the associated ENETC interface is disabled in device tree enetc_port1 status disabled On QDS this requires an RCW that explicitly enables RGMII bits...

Page 91: ...how to enable switching across these ports see Felix Ethernet switch Internal Internal swp4 Connected internally MAC to MAC to eno2 Internal Internal swp5 Connected internally MAC to MAC to eno3 4 2...

Page 92: ...rent its device_type pci bus range 0x0 0x0 dma coherent msi map 0 its 0 0xe iommu map 0 smmu 0x4000 0xe ranges PF0 6 BAR0 non prefetchable memory PF0 6 BAR2 prefetchable memory PF0 VF BAR0 non prefetc...

Page 93: ..._enetc 0000 00 00 0 eth0 ENETC PF driver v0 9 iommu Adding device 0000 00 00 1 to group 1 fsl_enetc 0000 00 00 1 enabling device 0400 0402 fsl_enetc 0000 00 00 1 eth1 ENETC PF driver v0 9 iommu Adding...

Page 94: ...ver features Overview of supported Linux Ethernet driver features PF and VF PCI Endpoint drivers Basic net device features Multi queue support 1 Rx queue per CPU 8 Tx queues Per Rx Tx queue group MSI...

Page 95: ...y m mscc_felix ko Felix switch driver CONFIG_MSCC_FELIX_SWI TCH y m1 1 Building options must confirm with the fact that the mscc_ocelot_common module dependency must be satisfied before load mscc_fel...

Page 96: ...signated switch port The CPU port function allows injecting frames on a specific switch port the injected frames bypass the switch frame processing core Consequently it also allows extraction of speci...

Page 97: ...tions between the switch and corresponding ENETC Ethernet endpoints ENETC PF2 or ENETC Port 2 and switch port 4 ENETC PF6 or ENETC Port 3 and switch port 5 Besides these MAC to MAC connections with th...

Page 98: ...ice The peer net device is designated by the cpu ethernet device tree property On reception the L2Switch will strip the header apply the frame updates for example write timestamp on PTP frames and put...

Page 99: ...r the bridge interface br0 The br0 interface must be configured with an IP address in this example the IP is 192 168 2 1 The swp5 represents the CPU port that can be used to monitor the traffic from L...

Page 100: ...wps i tr dc 0 9 ip link set swps i netns SW_NETNS EXEC_SWNS ip link set swps i master BRIDGE EXEC_SWNS ip link set swps i up done bring up ENETC ports connected to switch ports enetc2 ls sys bus pci d...

Page 101: ...Full flow control off Generic PHY fixed 0 02 attached PHY driver Generic PHY mii_bus phy_addr fixed 0 02 irq POLL br0 port 5 swp4 entered blocking state br0 port 5 swp4 entered forwarding state 8021q...

Page 102: ...000 link ether bc 8d bf 7c 5b 00 brd ff ff ff ff ff ff RX bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX bytes packets errors dropped carrier collsns 0 0 0 0 0 0 bash 4 4 bash 4 4 S ping 19...

Page 103: ...s for i 0 i nr i do ip link set swps i address MAC_ROOT echo swps i tr dc 0 9 ip addr add swpip i 1 24 dev swps i ip link set swps i up done bring up ENETC Port3 seth ls sys bus pci devices 0000 00 00...

Page 104: ...g instance qcifmiget Get flow metering instance cbsset Set TCs credit based shaper configure cbsget Get TCs credit based shaper status qbuset Set one 8 bit vector showing the preemptable traffic class...

Page 105: ...ter is must set If not set a vi text editor prompt is required to input the gate list basetime value AdminBaseTime cycletime value AdminCycleTime cycleextend value AdminCycleTimeExtension enable disab...

Page 106: ...meEnable oversize StreamBlockedDueToOversizeFrame qcisfiget command device ifname Interface such as eth0 sw0p0 index value Index entry number in this controller Must have qcisgiset command device ifna...

Page 107: ..._LONG nanoseconds Do not input 0 time long OCTET_MAX The maximum number of octets that are permitted to pass the gate If zero there is no maximum t0 1b 1 50000 10 qcisgiget command device ifname inter...

Page 108: ...class 0 A bit value of 0 indicates express A bit value of 1 indicates preemptable cbsset command device ifname Interface such as eth0 sw0p0 tc value Traffic class number percentage value Set percenta...

Page 109: ...engine seq_len value SEQ_SPACE_LOG2 Min value is 1 and maximum value is 28 tsnSeqGenSpace 2 SEQ_SPACE_LOG2 For example if this value is 12 the valid sequence numbers are from 0x0 to 0xFFF seq_num valu...

Page 110: ...the command If you input half of the parameter name press Tab key can list all the related names Non interactive mode In non interactive mode input the command list following up the tsntool command Fo...

Page 111: ...support Location Device Drivers Network device support NETDEVICES y Ethernet driver support ETHERNET y Freescale devices NET_VENDOR_FREESCALE y Symbol MSCC_FELIX_SWITCH_TSN y Type tristate Prompt TSN...

Page 112: ...n HWTSTAMP_TX_ON Hardware Receive Filter Modes none HWTSTAMP_FILTER_NONE all HWTSTAMP_FILTER_ALL Configure IP address and run ptp4l on two boards ifconfig eth0 ip_addr ptp4l i eth0 p dev ptp0 m After...

Page 113: ...file qbv1 txt basetime 0x2000011234 tsntool qbvget device eth0 You can check configchange time tsntool regtool 0 0x11a10 check pending status 0x1 means time gate is working waiting to change state pin...

Page 114: ...stream identify package check and other streams will pass gate tsntool qcisfiset device eth0 index 2 gateid 2 Streams no streamhandle should pass this filter tsntool qcisfiget device eth0 index 2 2 Se...

Page 115: ...index 1 initgate 0 5 Send one frame from Test center tsntool qcisfiget device eth0 index 1 should look like below match pass gate_drop sdu_pass sdu_drop red 1 0 1 1 0 0 Test Source Stream identify En...

Page 116: ...0 index 2 cm cf cbs 1500 cir 50000 ebs 1500 eir 2000000 The following example shows how to get information of color frame counters showing at application layer tsntool qcifmiget device eth0 index 2 by...

Page 117: ...is the hardware test diagram Figure 12 Hardware test diagram Setup2 cbsset device eth0 tc 7 percentage 60 cbsset device eth0 tc 6 percentage 20 pktgen pktgen_twoqueue sh i eth0 q 6 s 1500 n 0 m 10 11...

Page 118: ...switch ip link set eth6 up ip link set eth7 master switch ip link set eth7 up ip link set eth8 master switch ip link set eth8 up ip link set eth9 master switch ip link set eth9 up 4 2 13 4 2 Enable ti...

Page 119: ...tool qbvset device eth5 entryfile qbv0 txt send one broadcast frame to eth4 on TestCenter ethtool S eth5 Should get one frame from eth5 on TestCenter Basetime test Get current second time devmem 0x1fc...

Page 120: ...tream to eth4 on TestCenter The stream would get about half line rate from eth5 4 2 13 4 4 Qbu test The following figure shows the Qbu test setup Figure 15 Qbu test setup map PCP value of VLan to queu...

Page 121: ...eth6 Only eth5 can get the frame Stream gate control echo t0 1b 3 50000 200 sgi txt tsntool qcisgiset device eth4 enable index 1 initgate 1 initipv 0 gatelistfile sgi txt basetime 0x0 Explain index g...

Page 122: ...of VLan to dp value on port 0 to recognize yellow frames tsntool pcpmap device eth4 enable Send one yellow stream rate 100M on TestCenter ethtool S eth4 All frames pass and get all yellow frames Send...

Page 123: ...th limited of queue is Max_bandwidth 40 400M Send two streams from Test center then check the frames count ethtool S eth6 Frames of queue 1 is half of queue2 Note Stream rate must lager than bandwidth...

Page 124: ...0 2 We can get frames from eth6 on TestCenter each frame add the sequence number 23450801 23450802 23450803 On board B tcpdump i eth2 w eth2 pcap We also can get a copy frames from eth2 on board B whi...

Page 125: ...following table describes RCW for LCD controller on the LS1028ARDB and LS1028AQDS boards Board RCW LS1028ARDB HWA_CGA_M3_CLK_SEL 2 LS1028AQDS HWA_CGA_M3_CLK_SEL 2 Kernel configure options tree view T...

Page 126: ...ion in Linux DisplayPort supports four resolutions 480p 720x480p60 720p 1280x720p60 1080p 1920x1080p60 and 4k 3840x2160p60 Follow the below procedure to provide support for 480p 720p 1080p or 4k resol...

Page 127: ...bout the location of DP firmware see LS1028A BSP Memory Layout Use the following commands to load DP firmware at U Boot Get DP firmware with XSPI flash boot sf probe sf read 0x98000000 0x900000 0x4000...

Page 128: ...m pixel engine reset 2 540599 drm CDN_ _Write_Register_blocking setting LANES_CONFIG 4e 2 549371 drm AFE_init 2 552095 drm deasserted reset 2 555585 Wait for A2 ACK 2 579947 drm AFE_power exit 2 58318...

Page 129: ...DPTX_SetVideo_blocking ret 0 2 822714 drm HDMI DP Cable Plug In 2 897464 mali dp f080000 display fb0 frame buffer device 2 903577 drm Initialized mali dp 1 0 0 20160106 for f080000 display on minor 0...

Page 130: ...dix 2 kernels Creating kernel fft_radix2 0 p 1 Creating kernel fft_radix2 1 p 2 Creating kernel fft_radix2 2 p 4 Creating kernel fft_radix2 3 p 8 Creating kernel fft_radix2 4 p 16 Creating kernel fft_...

Page 131: ...ston tty 1 root localhost cd opt vdk root localhost opt vdk tutorial1 4 2 14 3 Synchronous audio interface SAI Description This section describes how to configure and test SAI audio driver for the LS1...

Page 132: ...support CODEC drivers Freescale SGTL5000 CODEC ASoC Simple sound card support DMA Engine support Freescale eDMA engine support support Enable ALSA SoC driver I2C driver and EDMA driver Identifier The...

Page 133: ...soc fsl ALSA SoC driver source Verification in Linux Follow the below procedure for the verification 1 The kernel boot process displays the following messages sgtl5000 2 000a sgtl5000 revision 0x11 s...

Page 134: ...x1 i2c mw 0x66 0x5b 0x93 d The lineout interface is J57 4 Run the following aplay command to test playback aplay f S16_LE r 44100 t wav c 2 44k 16bit stereo wav 5 Use alsamixer to adjust the volume fo...

Page 135: ......

Page 136: ...nder its patent rights nor the rights of others NXP sells products pursuant to standard terms and conditions of sale which can be found at the following address nxp com SalesTermsandConditions While N...

Reviews: