OS and Libraries Document Collection (UG643)

OS and Libraries Document Collection (UG643)

OS and Libraries Document Collection UG643 (v2015.3) September 30, 2015 Summary The Software Development Kit (SDK) provides a variety of Xilinx® software packages, including drivers, libraries, board support packages, and complete operating systems to help you develop a software platform. This document collection provides information on these. Complete documentation for other operating systems can be found in the their respective reference guides. Device drivers are documented along with the corresponding peripheral documentation. The documentation is listed in the following table; click the name to open the document. Table 1-1: OS and Libraries Document Collection Contents Document Name Summary LibXil Standard C Libraries Describes the software libraries available for the embedded processors. Standalone (v.5.2) Describes the Standalone platform, a single-threaded, simple operating system (OS) platform that provides the lowest layer of software modules used to access processor- specific functions. Some typical functions offered by the Standalone platform include setting up the interrupts and exceptions systems, configuring caches, and other hardware specific functions. The Hardware Abstraction Layer (HAL) is described in this document. Xilkernel (v6.2) Describes the Xilkernel, a simple embedded processor kernel that can be customized to a large degree for a given system. Xilkernel has the key features of an embedded kernel such as multi-tasking, priority-driven preemptive scheduling, inter-process communication, synchronization facilities, and interrupt handling. Xilkernel is small, modular, user-customizable, and can be used in different system configurations. Applications link statically with the kernel to form a single executable. LibXil Memory File System (MFS) Describes a simple, memory-based file system that can reside in RAM, ROM, or Flash (v2.0) memory. lwIP 1.4.1 Library (v1.2) Describes the SDK port of the third party networking library, Light Weight IP (lwIP) for embedded processors. LibXil Flash (v4.1) Describes the functionality provided in the flash programming library. This library provides access to flash memory devices that conform to the Common Flash Interface (CFI) standard. Intel and AMD CFI devices for some specific part layouts are currently supported. LibXil Isf (v5.3) Describes the In System Flash hardware library, which enables higher-layer software (such as an application) to communicate with the Isf. LibXil Isf supports the Xilinx In- System Flash and external Serial Flash memories from Atmel (AT45XXXD), Spansion(S25FLXX), Winbond W25QXX, and Micron N25QXX. LibXil FFS (v3.1) Xilffs is a generic FAT file system that is primarily added for use with SD/eMMC driver. The file system is open source and a glue layer is implemented to link it to the SD/eMMC driver. A link to the source of file system is provided in the PDF where the file system description can be found. © Copyright 2002 - 2015 Xilinx, Inc. XILINX, the Xilinx logo, Virtex, Spartan, ISE and other designated brands included herein are trademarks of Xilinx in the United States and other countries. All other trademarks are the property of their respective owners.. UG643 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 1 Library Organization Table 1-1: OS and Libraries Document Collection Contents (Cont’d) Document Name Summary LibXil RSA for Zynq-7000 AP SoC The LibXil RSA library provides APIs to use RSA encryption and decryption algorithms Devices (v1.1) and SHA algorithms. LibXil SKey for Zynq-7000 AP The LibXil SKey Library provides a programming mechanism for user-defined eFUSE SoC Devices (v3.0) bits and for programming the KEY into battery-backed RAM (BBRAM) of Zynq® SoC and also provides programming mechanisms for eFUSE bits of UltraScale™ devices. About the Libraries The Standard C support library consists of the newlib, libc, which contains the standard C functions such as stdio, stdlib, and string routines. The math library is an enhancement over the newlib math library, libm, and provides the standard math routines. The LibXil libraries consist of the following: • LibXil Driver (Xilinx device drivers) • LibXil MFS (Xilinx memory file system) • LibXil Flash (a parallel flash programming library) • LibXil Isf (a serial flash programming library) There are two operating system options provided in the Xilinx software package: the Standalone Platform and Xilkernel. The Hardware Abstraction Layer (HAL) provides common functions related to register IO, exception, and cache. These common functions are uniform across MicroBlaze™ and Cortex A9 processors. The Standalone platform document provides some processor specific functions and macros for accessing the processor-specific features. Most routines in the library are written in C and can be ported to any platform. User applications must include appropriate headers and link with required libraries for proper compilation and inclusion of required functionality. These libraries and their corresponding include files are created in the processor \lib and \include directories, under the current project, respectively. The -I and -L options of the compiler being used should be leveraged to add these directories to the search paths. Library Organization The organization of the libraries is illustrated in the figure below. As shown, your application can interface with the components in a variety of ways. The libraries are independent of each other, with the exception of some interactions. For UG643 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 2 Additional Resources example, Xilkernel uses the Standalone platform internally. The LibXil Drivers and the Standalone form the lowermost hardware abstraction layer. The library and OS components rely on standard C library components. The math library, libm.a is also available for linking with the user applications. Note: “LibXil Drivers” are the device drivers included in the software platform to provide an interface to the peripherals in the system. These drivers are provided along with SDK and are configured by Libgen. This document collection contains a section that briefly discusses the concept of device drivers and the way they integrate with the board support package in SDK. Taking into account some restrictions and implications, which are described in the reference guides for each component, you can mix and match the component libraries. User Application stdio stdlib Xilkernel string XilMFS XillSF Other XilFlash Standalone Xilinx Drivers C, Math and GCC Libraries X10968_102908 Figure 1: Library Organization X-Ref Target - Figure 1-1 Additional Resources Xilinx Documentation For more Xilinx documentation, including Vivado® and Zynq® documentation, see the following resources: • MicroBlaze Processor Reference Guide (UG081) • Zynq-7000 All Programmable SoC Software Developers Guide (UG821) UG643 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 3 Revision History • Vivado Design Suite User Guide: Release Notes, Installation, and Licensing (UG973) • Vivado Design Suite Documentation Revision History The following table lists the revision history of the OS and Libraries Document Collection Date Version Revision 09/30/2015 2015.3 •New version of Standalone (v.5.2) •New version of lwIP 1.4.1 Library (v1.2) •New version of LibXil Flash (v4.1) •New version of LibXil Isf (v5.3) •New version of LibXil FFS (v3.1) • Added LibXil RSA for Zynq-7000 AP SoC Devices (v1.1) • Added LibXil SKey for Zynq-7000 AP SoC Devices (v3.0) 06/24/2015 2015.2 •New version of LibXil Isf (v5.2). •New version of Standalone (v.5.1). •New version of lwIP 1.4.1 Library (v1.1). 04/01/2015 2015.1 • New version of lwIP 141 (v1.0). • New version of XilIsf (v5.1). • New version of LibXil FFS (v3.0). • New version of Standalone (v5.0) • New version of Xilkernel (v6.2) UG643 (v2015.3) September 30, 2015 www.xilinx.com Send Feedback 4 LibXil Standard C Libraries UG645 March 20, 2013 Overview The Xilinx® Software Development Kit (SDK) libraries and device drivers provide standard C library functions, as well as functions to access peripherals. The SDK libraries are automatically configured based on the Microprocessor Software Specification (MSS) file. These libraries and include files are saved in the current project lib and include directories, respectively. The -I and -L options of mb-gcc are used to add these directories to its library search paths. Additional • MicroBlaze Processor Reference Guide (UG081) Resources http://www.xilinx.com/ise/embedded/mb_ref_guide.pdf • Embedded System Tools Reference Manual (UG1043): http://www.xilinx.com/support/documentation/sw_manuals/xilinx2014_3/ug1043- embedded-system-tools.pdf Standard C The standard C library, libc.a, contains the standard C functions compiled for the Library (libc.a) MicroBlaze™ processor or the Cortex A9 processor. You can find the header files corresponding to these C standard functions in <XILINX_SDK>/gnu/<processor>/<platform>/<processor-lib>/include, where: • <XILINX_SDK> is the <Installation directory> • <processor> is arm or microblaze • <platform> is sol, nt, or lin • <processor-lib> is arm-xilinx-eabi or microblaze-xilinx-elf The lib.c directories and functions are: _ansi.h fastmath.h machine/ reent.h stdlib.h utime.h _syslist.h fcntl.h malloc.h regdef.h string.h utmp.h ar.h float.h math.h setjmp.h sys/ assert.h grp.h paths.h signal.h termios.h ctype.h ieeefp.h process.h stdarg.h time.h dirent.h limits.h pthread.h stddef.h unctrl.h errno.h locale.h pwd.h stdio.h unistd.h Programs accessing

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    197 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us