Advertisement

Quick Links

Linux 5.10 Yocto SDK
User Manual
V 2.2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Linux 5.10 Yocto SDK and is the answer not in the manual?

Questions and answers

Summary of Contents for MicroSys Linux 5.10 Yocto SDK

  • Page 1 Linux 5.10 Yocto SDK User Manual V 2.2...
  • Page 2 1 Introduction Thank you for choosing a miriac Single Board Computer from MicroSys. This User Manual shows the steps needed to boot Linux, to run programs on the SBC, including your own benchmarks, and also details how to make modifications and updates to the U-Boot bootloader and/or the Linux kernel to meet your own requirements.
  • Page 3: Board Preparation And Power-Up

    Connect the power cable to the ST3 connector, while the power supply is still switched off. ■ Open a terminal console on the host PC (set to 115200, 8, N, 1) ■ Switch on the power. Linux 5.10 Yocto SDK V2.1 3/25 © MicroSys Electronics GmbH 2022...
  • Page 4 8 Pin Molex Mini-Fit to ST5, while the power supply is still switched off. ■ Open a terminal console on the host PC (set to 115200, 8, N, 1) ■ Switch on the ATX power supply and press the power up button. Linux 5.10 Yocto SDK V2.1 4/25 © MicroSys Electronics GmbH 2022...
  • Page 5: Operation

    Enter ‘root’ and hit return. By default, no password is set for root. mpxls10xx login: root root@mpxls10xx:~# You can now enter Linux commands and run programs. Continue in section 2.2 Linux 5.10 Yocto SDK V2.1 5/25 © MicroSys Electronics GmbH 2022...
  • Page 6 Linux: root@mpxls10xx:~# reboot The system is going down for reboot NOW! (ttyS0) (Fri Aug 20 11:17:00 2021): INIT: Sending processes the TERM signal Linux 5.10 Yocto SDK V2.1 6/25 © MicroSys Electronics GmbH 2022...
  • Page 7 # /etc/network/interfaces -- configuration file for ifup(8), if- down(8) # The loopback interface auto lo iface lo inet loopback # The fm1-mac3 interface auto fm1-mac3 iface fm1-mac3 inet dhcp Linux 5.10 Yocto SDK V2.1 7/25 © MicroSys Electronics GmbH 2022...
  • Page 8 $ echo $CC aarch64-fsl-linux-gcc --sysroot=/home/user/yocto- sdk/build_mpxls1046/tmp/work/aarch64-fsl-linux/meta-ide-sup- port/1.0-r3/recipe-sysroot $ $CC helloWorld.c -o hello Now you can transfer the executable file hello over to your target and run it there. Linux 5.10 Yocto SDK V2.1 8/25 © MicroSys Electronics GmbH 2022...
  • Page 9: Boot Media

    Windows host, then use the directory shared between Windows and your Linux VM (VirtualBox or VMware). Also for Windows hosts you will need to have a TFTP server running. Linux 5.10 Yocto SDK V2.1 9/25 © MicroSys Electronics GmbH 2022...
  • Page 10: Memory Map

    5.2 Memory Map This version of the MicroSys Yocto SDK contains major changes to the boot flow compared to the previous release for the 5.10.35 kernel. This version uses TF-A in- stead of PPA as used in the previous release.
  • Page 11 It is advisable to deploy the default images to a second, new microSD card so that you have a back-up. MicroSys recommends using a microSD card with a capacity of at least 4GB. The SBC will accept SDHC cards up to 32GB and an SDXC card of 64GB has also been successfully tested.
  • Page 12 Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done Step 2) Now mount this partition and copy the rootfs and Image Tree Binary over. Linux 5.10 Yocto SDK V2.1 12/25 © MicroSys Electronics GmbH 2022...
  • Page 13 # mkdir /media/SD # mount /dev/sdd1 /media/SD # sudo tar xf microsys-image-networking-mpxls10xx-date.rootfs.tar.gz -C /media/SD # cp fitImage.itb /media/SD/boot Step 3) You still need to copy U-Boot and various microcodes to the SD card. There are 2 methods to do this. The easiest is to use Linux while you still have your SD card mounted on your Linux host.
  • Page 14: Qspi Flash

    => setenv loadaddr a0000000 // should already be set => tftp xspi_firmware.img // download from server => sf probe => sf erase 0 +$filesize => sf write $loadaddr 0 $filesize Linux 5.10 Yocto SDK V2.1 14/25 © MicroSys Electronics GmbH 2022...
  • Page 15 MicroSys uses a Yocto-based Software Development Kit (SDK) for the miriac Sin- gle Board Computers. The current release of MicroSys' Linux 5.10 Yocto SDK uses "Yocto Project Core – Hardknott 3.3". If you are new to Yocto, then documentation to get you started can be found at https://docs.yoctoproject.org/3.3.4/...
  • Page 16 -h option (help) it lists all the possible target machines, which are mainly NXP Reference Design Boards. The final targets in the list should be the MicroSys Single Board Computers. Now invoke the command with the -m option (machine) and choose the mpxls1043 as your target machine.
  • Page 17 SDK; only U-Boot and the Device Trees are different between the modules. Yocto will also generate a complete SD card image which can be copied directly onto an SD card inserted in the Linux host with the following command: Linux 5.10 Yocto SDK V2.1 17/25...
  • Page 18 Go to the sources/ directory and create your layer there: $ bitbake-layers create-layer --priority 20 meta-mylayer Note 1: because the priority of meta-microsys-layerscape is 10, it is recommended to choose a higher number as priority for your own layer (but less than 99).
  • Page 19 The resulting linux images are: fitImage-5.10.35-3.0+<commit>.itb and device tree binaries. If you now want to test your new Linux you can create a new boot image with: $ devtool build-image microsys-image-layerscape Linux 5.10 Yocto SDK V2.1 19/25 © MicroSys Electronics GmbH 2022...
  • Page 20 5. Now you can rebuild your image including your changes with: $ bitbake microsys-image-layerscape Note: if you want to modify the Linux kernel configuration you can call: $ bitbake -c menuconfig linux-qoriq Linux 5.10 Yocto SDK V2.1 20/25 © MicroSys Electronics GmbH 2022...
  • Page 21 Inference... 100% | 956 | FPS: 191.11 | ETA: 00:00:00 Inference result: Duration: 00:00:05 FPS: 191.10 Send Rate: 1878.58 Mbit/s Recv Rate: 3305.87 Mbit/s For scanning the available Hailo devices please use: Linux 5.10 Yocto SDK V2.1 21/25 © MicroSys Electronics GmbH 2022...
  • Page 22 # hailortcli scan Hailo PCIe Devices: [-] Device BDF: 0000:01:00.0 [-] Device BDF: 0001:01:00.0 Linux 5.10 Yocto SDK V2.1 22/25 © MicroSys Electronics GmbH 2022...
  • Page 23: Further Reading

    Free Open Source Software licenses. If however you encounter any problems in obtaining the full corresponding source code we would be much obliged if you notify us using the email address gpl@microsys.de, stating the product and describing the problem (please do NOT send large attachments such as source code archives to this email address) 7.2 Alternative Operating Systems...
  • Page 24 PSCI and Arm’s SMC calling convention. PSCI Power State Coordination Interface. An Arm standard interface. Reset Configuration Word. The first data the processor loads to configure various interfaces and internal frequencies. Linux 5.10 Yocto SDK V2.1 24/25 © MicroSys Electronics GmbH 2022...
  • Page 25: Document History

    Update to LSDK 20.12 2021-11-18 Update to LSDK 21.08 and added support for SBC-LX2160A 2021-12-01 Added support for AIP-LX2160A 2022-04-26 Update link to curl tool Table 7-1 Document history Linux 5.10 Yocto SDK V2.1 25/25 © MicroSys Electronics GmbH 2022...

Table of Contents